Grotto: Screaming fast (2+1)-PC or ℤ2n via (2, 2)-DPFs
Kyle Storrier, Adithya Vadapalli, Allan Lyons, Ryan Henry
Abstract
We introduce Grotto, a framework and C++ library for space- and time-efficient (2+1)-party piecewise polynomial (i.e., spline) evaluation on secrets additively shared over ℤ2n. Grotto improves on the state-of-the-art approaches based on distributed comparison functions (DCFs) in almost every metric, offering asymptotically superior communication and computation costs with the same or lower round complexity. At the heart of Grotto is a novel observation about the structure of the ''tree'' representation underlying the most efficient distributed point functions (DPFs) from the literature, alongside an efficient algorithm that leverages this structure to do with a lightweight DPF what state-of-the-art approaches require comparatively heavyweight DCFs to do. Our open-source Grotto implementation supports dozens of useful functions out of the box, including trigonometric and hyperbolic functions with their inverses; various logarithms; roots, reciprocals, and reciprocal roots; sign testing and bit counting; and over two dozen of the most common univariate activation functions from the deep-learning literature.
Ask about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Your agent calls
Lunesearch_papers
Free to start. No credit card required.
Terminal
Install the CLIlune papers get b4f5e4ab-5979-45a6-8db8-5d6867dc75a1Cited by top-tier papers1
Ask how each one uses itRelated papers
- CAVERN: Efficient Honest-Majority Maliciously Secure (2+1)-PC for via DPFYang Liu, Liang Feng ZhangS&P 2026
- Half-Tree: Halving the Cost of Tree Expansion in COT and DPFXiaojie Guo, Kang Yang, Xiao Wang, Wenhao Zhang et al.EUROCRYPT 2023 · 30 citations
- Distributed Function Secret Sharing and ApplicationsPengzhi Xing, Hongwei Li, Meng Hao, Hanxiao Chen et al.NDSS 2025
- Efficient and High-Accuracy Secure Two-Party Protocols for a Class of Functions with Real-number InputsHao Guo, Zhaoqian Liu, Liqiang Peng, Shuaishuai Li et al.USENIX Security 2026 · 1 citation
- NFGen: Automatic Non-linear Function Evaluation Code Generator for General-purpose MPC PlatformsXiaoyu Fan, Kun Chen, Guosai Wang, Mingchun Zhuang et al.CCS 2022 · 9 citations
