Leaking Arbitrarily Many Secrets: Any-out-of-Many Proofs and Applications to RingCT Protocols

Tianyu Zheng, Shang Gao, Bin Xiao, Yubo Song

This paper introduces a novel "any-out-of-many" zero-knowledge proof system designed to enhance the privacy and efficiency of Ring Confidential Transaction (RingCT) protocols. By allowing users to prove knowledge of an arbitrary number of secrets from a public set without revealing the exact count, and utilizing Bulletproofs-style compression, the proposed protocol achieves logarithmic proof sizes and significantly expanded anonymity sets.

The Challenge of Multi-Input Transactions

Privacy-centric cryptocurrencies like Monero rely on RingCT to obscure transaction details, including the sender, receiver, and amount. However, existing implementations face a significant bottleneck: they are built on "one-out-of-many" proofs.

When a user spends from multiple accounts (inputs) in a single transaction, they must currently provide a separate proof for each input. This leads to two primary issues. First, efficiency suffers as transaction size grows linearly with the number of inputs, resulting in higher fees and blockchain bloat. Second, this structure leaks metadata; by providing separate proofs, the user reveals exactly how many real accounts they are spending from. Chain analysis firms can use this information to narrow down the identities of users over time.

A Unified Protocol Architecture

To address these issues, the authors propose a shift from multiple individual proofs to a single, unified "any-out-of-many" proof. This approach treats the number of secrets ($k$) as private information, effectively hiding the number of inputs being spent.

Architecture of the RingCT protocol on a stateless blockchain.

As shown in the architecture above, the protocol integrates several advanced cryptographic techniques:

  • Unified Ring Signatures: Instead of separate decoy sets for each input, all inputs share a single, large "unified ring." This makes it much harder for an attacker who knows some keys in the ring to identify the real spenders.
  • Bulletproofs Compression: The protocol extends Bulletproofs-style inner-product arguments to reduce the proof size to a logarithmic scale relative to the ring size.
  • Trapdoor-less Accumulators: This component allows for "stateless" verification, where nodes can check if an account is unspent without needing to store the entire multi-gigabyte blockchain history.

Amortization and Compression

A core innovation of this work is the amortization technique. To avoid the linear cost of proving multiple secrets, the protocol uses random challenges to "compress" multiple secret keys into a single field element.

Visualization of the amortization technique compressing multiple secrets into a unified structure.

This transformation allows the use of efficient inner-product arguments to handle the complex quadratic relations necessary for proving knowledge of multiple secrets simultaneously. The resulting proof size is $2\lceil \log_2(N) \rceil + 9$, where $N$ is the total number of accounts in the ring. This ensures that the proof remains compact even as the number of inputs or the size of the decoy set increases.

Privacy and Performance Gains

By making the number of inputs private, the "anonymity space"—the number of possible configurations an attacker must guess—grows exponentially. For a ring of 128 accounts, the anonymity set jumps from approximately $2^{32}$ in existing protocols to $2^{128}$ in this new scheme. Furthermore, the protocol supports "zero-to-zero" transactions. These allow a user to prove knowledge of zero secrets, creating cost-free "decoy" transactions that add noise for chain analysts without transferring value.

Experimental results using the secp256k1 elliptic curve demonstrate the protocol's practicality. A transaction with a ring size of 16 can be generated in just 249ms. Verification is roughly five times faster than proving, making it suitable for real-world network nodes. Notably, the protocol requires no "trusted setup," a significant security advantage over systems like zk-SNARKs.

Limitations and Future Work

While the protocol offers substantial improvements, some challenges remain. The trapdoor-less accumulator used for tagging spent accounts relies on prime numbers; a very high volume of transactions could eventually exhaust the supply of small primes. The authors suggest alternative public key schemes as a potential long-term fix. Additionally, while the current inner-product transformation is optimized for quadratic relations, extending it to higher-degree polynomials could offer even greater compression, though it currently requires too many commitments to be efficient. Finally, implementing this in a live environment like Monero would require a significant community-driven hard fork.

Summary updated

BibTeX
@article{zheng2021leaking,
  author = {Tianyu Zheng and Shang Gao and Bin Xiao and Yubo Song},
  title = {{Leaking Arbitrarily Many Secrets: Any-out-of-Many Proofs and Applications to RingCT Protocols}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2021},
  url = {https://openreview.net/forum?id=JJ2rf5rcn24},
}
Figure