MIRAGE: Succinct Arguments for Randomized Algorithms with Applications to Universal zk-SNARKs

Ahmed E. Kosba, Dimitrios Papadopoulos, Charalampos Papamanthou, Dawn Song

TL;DR

This paper introduces MIRAGE, a novel universal zk-SNARK system that significantly improves the efficiency of proving and verifying randomized algorithms. By decoupling randomness generation from the main circuit and designing a linear-size universal circuit, MIRAGE achieves succinct proofs and efficient verification, making zk-SNARKs more practical for applications like privacy-preserving smart contracts.

What Problem Does This Paper Address?

Zero-knowledge succinct non-interactive arguments of knowledge (zk-SNARKs) are powerful cryptographic tools that allow a prover to convince a verifier of a statement's truth without revealing any underlying information. However, their practical deployment faces several challenges:

  • Trusted Setup: Most efficient zk-SNARKs require a trusted setup phase to generate cryptographic keys. This setup is computation-specific, meaning a new setup is needed for each distinct computation, which is impractical for dynamic applications.
  • Universal zk-SNARKs: To overcome the per-computation setup, "universal" zk-SNARKs have been proposed. These systems aim to use a single setup for a class of computations. However, existing universal zk-SNARKs often suffer from significantly increased proof sizes, verification overhead, or prover computation costs, making them impractical for real-world use.
  • Randomized Algorithms: Many algorithms, especially in areas like cryptography and smart contracts, inherently involve randomness. Efficiently incorporating and verifying these randomized computations within zk-SNARK circuits without incurring prohibitive costs is a key challenge.

MIRAGE aims to bridge this gap by providing a universal zk-SNARK that is both efficient and practical for randomized algorithms, specifically addressing the limitations of existing universal zk-SNARKs and enabling their use in privacy-preserving applications.

Methods

MIRAGE introduces two main innovations:

  1. Separated zk-SNARKs: This technique addresses the challenge of incorporating randomness efficiently. Instead of encoding randomness generation directly within the arithmetic circuit, MIRAGE separates the witness values into those that depend on randomness and those that don't. Randomness is then generated by committing to the non-random parts and using this to produce the random-dependent parts. This separation allows for more efficient verification, adding only a small overhead compared to standard zk-SNARKs. This approach is also beneficial for proving languages in the MA complexity class.
  2. Linear-Size Universal Circuit: The authors design a novel universal circuit that can verify any arithmetic circuit with a bounded number of operations. Unlike previous universal circuits that had quasi-linear complexity (e.g., O(N log N)), MIRAGE's circuit achieves linear complexity (O(N)). This is achieved by using a linear-size permutation verification circuit based on polynomial identities and random point checks, significantly reducing the overhead associated with verifying arbitrary computations.

By combining these two techniques, MIRAGE constructs a universal zk-SNARK system with very succinct proofs and efficient verification, making it suitable for practical applications.

Datasets

Not discussed in the paper. The paper focuses on theoretical constructions and experimental evaluation of algorithms, not on training or evaluating models on specific datasets.

Key Insights and Ideas

  • Decoupling Randomness is Key: The core insight is that separating the generation of randomness from the main computation within a zk-SNARK circuit dramatically improves efficiency. This allows for more practical prover times and simpler verification logic.
  • Linear Complexity for Universal Circuits is Achievable: The paper demonstrates that universal circuits don't inherently need to be quasi-linear. By cleverly leveraging polynomial properties and randomized checks, a linear-size universal circuit is feasible, which is a significant improvement over prior work.
  • Practicality for Smart Contracts: MIRAGE's efficiency makes it a strong candidate for privacy-preserving smart contracts. It addresses the critical issue of per-contract trusted setups by allowing a single, universal verification key to be hardcoded on the blockchain, with only a small encoding of the computation needed for each new contract.
  • MA Complexity Class Benefits: The "separated zk-SNARKs" technique is not only useful for universal circuits but also provides an efficient zk-SNARK for the MA complexity class, highlighting its broader cryptographic utility.

Key Results

  • Succinct Proofs: MIRAGE's proof size is only one additional group element compared to state-of-the-art per-circuit preprocessing zk-SNARKs (like Groth's).
  • Efficient Verification: The verification overhead is minimal, adding just one pairing operation and two hash function calls compared to Groth's zk-SNARK.
  • Linear-Size Universal Circuit: The universal circuit has a linear complexity (O(N)) in the number of operations, a significant improvement over the quasi-linear complexity of previous approaches like vnTinyRAM.
  • Practical Performance: Experimental evaluations show that MIRAGE's universal circuit supports larger-scale applications than vnTinyRAM for the same circuit size. For instance, it supports a matrix multiplication of size m=41 with only 33% unused instructions, compared to vnTinyRAM's m=7 with 33% unused instructions.
  • Smart Contract Application: In privacy-preserving smart contracts (like HAWK), MIRAGE reduces the trusted setup per contract to a single group element for the verification key, making it much more scalable. The verification time on-chain is only about 1.4x more expensive than standard zk-SNARK verification.

Limitations and Future Work

  • Prover Overhead: While MIRAGE significantly improves universal circuit efficiency, the proof computation overhead is still more expensive than non-universal SNARK approaches.
  • No Updatable CRS: Unlike some other universal zk-SNARKs (e.g., Sonic, Groth et al.), MIRAGE's common reference string (CRS) is not updatable.
  • Workload Characterization: The paper suggests future work in characterizing workloads to find optimal distributions of opcodes within the universal circuit for specific applications.
  • High-Level Tooling: Developing a high-level tool to compile computations into MIRAGE's specification format would further enhance usability.
  • Scalability: For extremely large computations, distributed proof generation (e.g., using DIZK) or recursive SNARKs could be explored to manage memory consumption.
  • Cryptographic Opcodes: Integrating opcodes for common cryptographic primitives could further reduce the overhead for applications that heavily rely on them.

Summary updated

Abstract

The last few years have witnessed increasing interest in the deployment of zero-knowledge proof systems, in particular ones with succinct proofs and efficient verification (zk-SNARKs). One of the main challenges facing the wide deployment of zk-SNARKs is the requirement of a trusted key generation phase per different computation to achieve practical proving performance. Existing zero-knowledge proof systems that do not require trusted setup or have a single trusted preprocessing phase suffer from increased proof size and/or additional verification overhead. On the other other hand, although universal circuit generators for zk-SNARKs (that can eliminate the need for per-computation preprocessing) have been introduced in the literature, the performance of the prover remains far from practical for real-world applications. In this paper, we first present a new zk-SNARK system that is well-suited for randomized algorithms---in particular it does not encode randomness generation within the arithmetic circuit allowing for more practical prover times. Then, we design a universal circuit that takes as input any arithmetic circuit of a bounded number of operations as well as a possible value assignment, and performs randomized checks to verify consistency. Our universal circuit is linear in the number of operations instead of quasi-linear like other universal circuits. By applying our new zk-SNARK system to our universal circuit, we build MIRAGE, a universal zk-SNARK with very succinct proofs---the proof contains just one additional element compared to the per-circuit preprocessing state-of-the-art zk-SNARK by Groth (Eurocrypt 2016). Finally, we implement MIRAGE and experimentally evaluate its performance for different circuits and in the context of privacy-preserving smart contracts.
BibTeX
@article{kosba2020mirage,
  author = {Ahmed E. Kosba and Dimitrios Papadopoulos and Charalampos Papamanthou and Dawn Song},
  title = {{MIRAGE: Succinct Arguments for Randomized Algorithms with Applications to Universal zk-SNARKs}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2020},
}

Loading related content...

Figure