This paper, presented by researchers from Protocol Labs, ITU Denmark, and Aarhus University, introduces a new cryptographic primitive: Short, Homomorphic, Doubly-Hiding Key-Value Commitments. It provides a way to commit to a "dictionary" of data (like a crypto wallet containing various amounts of different tokens) such that both the types of tokens (keys) and their amounts (values) remain secret, yet you can still perform math on the commitments and prove their contents in zero-knowledge.
TL;DR
The authors develop a cryptographic commitment scheme for key-value maps that is both "double-hiding" (hides keys and values) and homomorphic (allows adding commitments together). They introduce efficient, transparent zero-knowledge proofs for these commitments, enabling private, multi-asset blockchain ledgers that scale better than existing solutions.
What Problem Does This Paper Address?
In privacy-preserving blockchains (like Zcash or Monero), users need to prove they have enough funds to make a transaction without revealing their balance. Standard tools for this, like Pedersen commitments, usually work for a single asset type. However, modern DeFi requires handling many different assets (USD, BTC, ETH, NFTs) in a single "wallet."
Existing solutions have major trade-offs:
- Merkle Trees: Great for proving a value exists in a map, but they aren't "homomorphic"—you can't add two Merkle roots together to get the root of the sum.
- Vector Commitments: These are homomorphic but usually require a fixed, public set of "positions" (keys). They don't easily hide which assets you own if the asset universe is large.
- Trusted Setups: Many efficient systems require a "toxic waste" ceremony (a trusted setup), which is a security risk.
The authors sought a "Holy Grail" construction: a commitment that is short, supports a massive universe of keys, hides everything, allows addition, and works without a trusted setup (transparent).
Methods
The authors propose a commitment construction where a map is committed as: $$c = \prod_{k \in K} \mathcal{H}(k)^{v_k} h^r$$ Here, $\mathcal{H}$ is a hash function mapping keys to group elements, $v_k$ are the values, and $h^r$ is a blinding factor for privacy. This is essentially a Pedersen commitment where the "basis" (the generators) is derived dynamically from the keys.
To prove properties about these commitments in Zero-Knowledge (ZK), they introduce two main protocols:
- Z$\Phi$-dp (Doubly-Private): Designed for when both keys and values are entirely secret. It uses a "key-tag" technique where the prover provides masked versions of the keys. This allows the prover to "bridge" the gap between the hash-based commitment and the arithmetic circuit used for the ZK proof.
- Z$\Phi$-set (Registered Keys): An optimization for when the set of "active" keys in the system is public (e.g., a list of all registered tokens), even if a specific user's keys are private. This version uses Algebraic Accumulators (in groups of unknown order) to significantly speed up verification.
The ZK proofs are built using "transparent" frameworks like Bulletproofs, meaning they require no trusted setup.
Datasets
As a theoretical cryptography and systems paper, it does not use standard machine learning datasets. Instead, the authors evaluate their construction using:
- Experimental Benchmarks: Conducted on a standard laptop (i7-6820HQ CPU @ 2.70 GHz).
- Cryptographic Libraries: They used the
dalek-cryptographyandarkworksecosystems for implementing Ristretto curve operations and Poseidon hashes.
Key Insights and Ideas
- The "Key-Tag" Bridge: Proving a hash function ($\mathcal{H}$) inside a ZK circuit is computationally expensive. The authors' "aha moment" was creating intermediate "key-tags"—masked versions of the generators. By proving these tags are well-formed once, they can use them as a fixed basis for the rest of the proof, isolating the expensive hashing logic.
- Offline/Online Preprocessing: The authors realized that proving the validity of keys doesn't depend on the specific values in a transaction. A user can generate "offline" proofs for their asset types and then quickly generate "online" proofs for specific transactions, reducing latency.
- Scalable Anonymity: They apply their work to QuisQuis, a privacy-preserving ledger. By using their homomorphic key-value commitments, they extend QuisQuis to support multiple asset types while keeping the "state" (the data miners must store) linear to the number of users, rather than the number of transactions.
Key Results
- Performance: For a commitment opening 100 values (e.g., a wallet with 100 different tokens), the system can prove they are within a valid range in approximately one minute.
- Proof Size: Using Bulletproofs, the resulting proofs are quite small, estimated at under 6KB for 100 values.
- Verification Speedup: The
ZΦ-setoptimization (using accumulators) can make verification one order of magnitude faster than the fully privateZΦ-dpversion by avoiding the need to verify hashes inside the ZK circuit.
Limitations and Future Work
- Proving Overhead: While verification is fast, the proving time (especially for the hashing part) is still significant for real-time mobile applications, though the offline/online split helps.
- Complexity of Unknown Order Groups: The
ZΦ-setoptimization requires groups of unknown order (like RSA groups or Class groups), which are more mathematically complex and have larger group elements than standard elliptic curves. - Future Directions: The authors suggest extending these techniques to other ledger frameworks like Veksel and exploring more complex "structured objects" beyond simple key-value maps.
Summary updated