Experimenting with Collaborative zk-SNARKs: Zero-Knowledge Proofs for Distributed Secrets

Alex Ozdemir, Dan Boneh

TL;DR

This paper introduces collaborative zk-SNARKs, a way for multiple parties to jointly generate a single zero-knowledge proof over a secret witness that is distributed among them. By carefully optimizing the proof generation process for Multi-Party Computation (MPC), the authors achieve performance that is nearly as fast as a single-prover setup, making distributed privacy-preserving audits and statistics practical for the first time.

What Problem Does This Paper Address?

Standard zk-SNARKs (Zero-Knowledge Succinct Non-interactive ARguments of Knowledge) allow a "prover" to convince a "verifier" that a statement is true without revealing the underlying secret data (the "witness"). However, they traditionally assume a single prover holds the entire secret.

In the real world, data is often siloed. Imagine three banks wanting to prove a customer has sufficient total assets without any one bank seeing the customer's balances at the other two. Or hospitals wanting to compute aggregate health statistics without leaking individual patient records.

While you could theoretically use general-purpose Multi-Party Computation (MPC) to run a SNARK prover, a naive implementation would be "millions of times slower" than a single prover. This paper tackles the challenge of making collaborative proving efficient enough for real-world use.

Methods

The authors "lift" existing single-prover SNARKs (specifically Groth16, Marlin, Plonk, and Fractal) into the MPC setting. Their approach relies on several key technical innovations:

  • Exploiting Linearity: They observe that the most computationally expensive parts of a SNARK prover—Fast Fourier Transforms (FFTs) and Multi-Scalar Multiplications (MSMs)—are linear operations. In secret-sharing-based MPC, linear operations can be performed locally by each party with zero network communication.
  • MPC-Optimized Sub-protocols: For the non-linear "bottlenecks" (like polynomial division or the product-checks used in Plonk), they implement specialized, constant-round MPC protocols. For example, they use a technique by Bar-Ilan and Beaver to compute sequences of partial products in a fixed number of communication rounds.
  • The arkworks Lift: They implemented their system by modifying the popular arkworks Rust library. They replaced low-level field and curve operations with "wrapper types" that automatically handle secret sharing (using both SPDZ for dishonest majority and GSZ for honest majority settings).

Datasets

The paper does not use traditional machine learning datasets. Instead, it evaluates performance using:

  • Synthetic Benchmarks: Rank-1 Constraint Systems (R1CS) of varying sizes, ranging from $2^0$ to $2^{20}$ (over 1 million) constraints.
  • Application Modeling: A simulated scenario involving private audits of a transaction graph distributed across multiple banks to prove the absence of specific transaction chains or to verify net asset thresholds.

Key Insights and Ideas

  • MPC-Friendliness as a Metric: The authors propose that "MPC-friendliness" should be a core criterion for designing future SNARKs. They categorize existing SNARKs: Groth16 and Marlin are highly friendly, while Plonk is more challenging due to its high number of multiplications.
  • The Efficiency Paradox: In most fields, moving from a single-party to a multi-party computation incurs a massive overhead (often $100x$ to $1000x$). Here, the authors achieve a mere $1x$ to $2x$ slowdown.
  • Why is it so fast? The "aha" moment is that the local work of a SNARK prover is so heavy that it completely dwarfs the network latency of the few MPC steps required. The "free" local linear operations do the heavy lifting.

Key Results

  • Near-Native Speed: On a high-speed (3Gb/s) link, a 3-party honest-majority protocol (GSZ) runs in essentially the same time as a single-prover SNARK.
  • Malicious Security: Even in a "dishonest majority" setting (where only one party needs to be honest), the protocol only sees a $2x$ slowdown.
  • Practicality: For a million-constraint proof, the collaborative cost is only about 3 cents in cloud compute and bandwidth. They demonstrated that three banks could prove a statement about 2,900 transactions in roughly 165 seconds.

Limitations and Future Work

  • Network Sensitivity: While performance is great on gigabit links, it degrades linearly with bandwidth. On a 1Mb/s link, the network becomes the primary bottleneck.
  • Communication Lower Bound: The authors prove a theoretical lower bound showing that communication must scale at least linearly ($\Omega(n)$) with the number of constraints, suggesting there is a limit to how much the network overhead can be reduced.
  • RAM vs. Circuits: The current approach works for "circuit-like" computations. It does not easily support programs with complex, data-dependent branching (RAM-based execution), which would require more complex MPC techniques.
  • Parallelization: The current benchmarks are single-threaded. The authors note that multi-threading the local components could provide even further speedups.

Summary updated

BibTeX
@inproceedings{ozdemir2022experimenting,
  author = {Alex Ozdemir and Dan Boneh},
  title = {{Experimenting with Collaborative zk-SNARKs: Zero-Knowledge Proofs for Distributed Secrets}},
  booktitle = {USENIX Security},
  year = {2022},
}
Figure