Stacked Garbling - Garbled Circuit Proportional to Longest Execution Path
David Heath, Vladimir Kolesnikov
Abstract
Secure two party computation (2PC) of arbitrary programs can be efficiently achieved using garbled circuits (GC). The bottleneck of GC efficiency is communication. It is widely believed that for direct 2PC evaluation of a Boolean circuit, it is necessary to transmit the entire GC, including garbled truth tables corresponding to subcomputations whose output is ultimately discarded by conditional logic.
This folklore belief is false.
We propose a novel GC technique, stacked garbling, that eliminates the communication cost of inactive conditional branches. We extend the ideas of conditional GC evaluation explored in (Kolesnikov, Asiacrypt 18) and (Heath and Kolesnikov, Eurocrypt 20). Unlike these works, ours is for general 2PC where no player knows which conditional branch is taken.
Our garbling scheme, Stack, requires communication proportional to the longest execution path rather than to the entire circuit. Stack is compatible with state-of-the-art techniques, such as free XOR and half-gates.
Stack is a garbling scheme. As such, it can be plugged into a variety of existing protocols, and the resulting round complexity is the same as that of standard GC. The approach does incur computation cost quadratic in the conditional branching factor vs linear in standard schemes, but the tradeoff is beneficial for most programs: GC computation even on weak hardware is faster than GC transmission on fast channels.
We implemented Stack in C++. Stack reduces communication cost by approximately the branching factor: for 16 branches, communication is reduced by 10.5x. In terms of wall-clock time for circuits with branching factor 16 over a 50 Mbps WAN on a laptop, Stack outperforms state-of- the-art half-gates-based 2PC by more than 4x.
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 a45f56e4-a986-44a9-aeea-fd9dbbd6573fCited by top-tier papers5
- One Hot GarblingDavid Heath, Vladimir KolesnikovCCS 2021 · 20 citations
- Speed-Stacking: Fast Sublinear Zero-Knowledge Proofs for DisjunctionsAarushi Goel, Mathias Hall-Andersen, Gabriel Kaptchuk, Nicholas SpoonerEUROCRYPT 2023 · 12 citations
- Garbled Circuit Lookup Tables with Logarithmic Number of CiphertextsDavid Heath, Vladimir Kolesnikov, Lucien K. L. NgEUROCRYPT 2024 · 11 citations
- Experimenting with Collaborative zk-SNARKs: Zero-Knowledge Proofs for Distributed SecretsAlex Ozdemir, Dan BonehUSENIX Security 2022
- Toss: Garbled PIR from Table-Only StackingLucien K. L. Ng, Vladimir KolesnikovCCS 2025
Related papers
- Secure Multiparty Computation with Free BranchingAarushi Goel, Mathias Hall-Andersen, Aditya Hegde, Abhishek JainEUROCRYPT 2022 · 4 citations
- Actively Secure Half-Gates with Minimum Overhead Under Duplex NetworksHongrui Cui, Xiao Wang, Kang Yang, Yu YuEUROCRYPT 2023 · 16 citations
- Stacked Garbling for Disjunctive Zero-Knowledge ProofsDavid Heath, Vladimir KolesnikovEUROCRYPT 2020 · 55 citations
- Garbled Circuits with Sublinear EvaluatorAbida Haque, David Heath, Vladimir Kolesnikov, Steve Lu et al.EUROCRYPT 2022 · 6 citations
- sf LogStack: Stacked Garbling with O(b log b) ComputationDavid Heath, Vladimir KolesnikovEUROCRYPT 2021 · 10 citations
