In the world of cryptography, Merkle trees are the undisputed kings of data integrity. They allow us to "commit" to a massive dataset with a single hash and later prove that a specific item belongs to that set. However, Merkle trees have a nagging limitation: the size of those proofs grows logarithmically with the size of the data. As blockchains grow to gigabytes and proof systems like STARKs become more complex, these "logarithmic" proofs are starting to feel heavy.
In this paper, Dan Boneh, Benedikt Bünz, and Ben Fisch from Stanford University introduce a suite of batching and aggregation techniques for cryptographic accumulators and vector commitments that achieve the holy grail of proof systems: constant-sized proofs, regardless of how much data you are committing to.
TL;DR
The authors develop new techniques for cryptographic accumulators in groups of unknown order that allow multiple membership and non-membership proofs to be aggregated into a single, constant-sized proof. This enables "stateless" blockchains where nodes store almost no data and reduces the proof size of systems like STARKs by more than 60%.
What Problem Does This Paper Address?
The primary challenge is the communication-storage tradeoff in distributed systems.
- Stateless Blockchains: Currently, Bitcoin and Ethereum nodes must store the entire "state" (all account balances or unspent coins) to verify new transactions. A "stateless" blockchain would allow nodes to store only a tiny commitment (a few bytes). However, in existing stateless designs using Merkle trees, every transaction must carry a "membership proof." As the state grows, these proofs get larger, clogging the network.
- Interactive Oracle Proofs (IOPs): Modern zero-knowledge proof systems like STARKs rely on Merkle trees. A large portion of a STARK proof (up to 80%) consists of Merkle paths. If these paths could be compressed, the total proof size would drop dramatically.
The authors aim to replace the logarithmic proofs of Merkle trees with constant-sized proofs that can be batched together efficiently without requiring a trusted central manager.
Methods
The paper moves away from hash-based Merkle trees and toward groups of unknown order (such as RSA groups or class groups). Their approach builds on several novel cryptographic protocols:
- PoKE (Proof of Knowledge of Exponent): A protocol where a prover convinces a verifier they know an exponent $x$ such that $u^x = w$ in a group of unknown order, without sending the large integer $x$.
- PoKCR (Proof of Knowledge of Co-prime Roots): A method to aggregate multiple proofs into one. If you have $n$ different proofs for $n$ different elements, you can squash them into a single group element.
- Non-Membership Proofs: Unlike many previous systems, this one allows a prover to succinctly prove that an element is not in the set.
- Trapdoor-free Construction: Traditional RSA-based accumulators often require a "trusted setup" (someone has to generate the RSA modulus and then pinky-promise to destroy the secret keys). This paper develops techniques that work in "class groups," which require no such trusted setup.
Datasets
As a theoretical cryptography paper, it does not use traditional training datasets. Instead, the authors evaluate their methods against the benchmarks of existing state-of-the-art proof systems:
- Aurora: A succinct non-interactive argument system.
- STARKs: Specifically the benchmarks provided by the "Scalable, Transparent, Autoregressive Knowledge" (STARK) framework.
- UTXO sets: Modeled after the Bitcoin unspent transaction output set.
Key Insights and Ideas
- The Power of Batching: The authors show that you don't just have to batch proofs for the same person; a "block proposer" or miner can take proofs from hundreds of different users and aggregate them into one single proof for the entire block.
- Universal Accumulators: By supporting both membership and non-membership proofs, the system can handle complex logic, like proving an account has enough balance (membership in the "has funds" set) or that a specific serial number hasn't been spent yet (non-membership in the "spent" set).
- Bypassing Impossibility Results: The authors use a short "Common Reference String" (CRS) to bypass previous mathematical proofs that suggested certain types of these protocols were impossible in groups of unknown order.
Key Results
The quantitative improvements are significant for the future of blockchain scalability:
- STARK Proof Reduction: Replacing Merkle trees with these new Vector Commitments (VCs) reduces the size of a STARK proof for a circuit with $2^{52}$ gates from 600 KB to approximately 222 KB (a 63% reduction).
- Aurora Proof Reduction: For a circuit of size $2^{20}$, proof sizes drop from 222 KB to less than 100 KB (a 54% reduction).
- Constant-Sized Openings: Their Vector Commitment is the first to achieve both constant-sized proofs and constant-sized public parameters, a major theoretical milestone.
- Verification Efficiency: While the math is more complex than hashing, the authors show that verifying a proof is roughly equivalent to $k$ modular multiplications, which is often faster than verifying the dozens of hashes required by a Merkle path.
Limitations and Future Work
- Quantum Vulnerability: The security of these techniques relies on the hardness of factoring or similar problems in groups of unknown order. Unlike Merkle trees, these are not quantum-secure. If a large-scale quantum computer is built, these proofs could be forged.
- Prover Complexity: While the verifier's job is easy, the prover (the one creating the proof) has to do significantly more work (modular exponentiations) compared to the simple hashing used in Merkle trees.
- Open Problem: The authors note that proving "extraction" (that the prover actually knows the secret) under a "falsifiable assumption" rather than just in the "generic group model" remains an open challenge for the community.
Summary updated