Zero-knowledge using garbled circuits: how to prove non-algebraic statements efficiently

Marek Jawurek, Florian Kerschbaum, Claudio Orlandi

TL;DR

This paper introduces a novel zero-knowledge proof protocol that efficiently proves statements about non-algebraic functions, like hash functions, which were previously impractical to prove. By cleverly adapting Yao's garbled circuit technique, they achieve active security with only a modest performance overhead compared to passive security, opening doors for practical applications in areas like secure data verification.

What Problem Does This Paper Address?

Zero-knowledge (ZK) proofs are a cornerstone of modern cryptography, allowing one party (the prover) to convince another (the verifier) that a statement is true without revealing any information beyond its validity. While efficient ZK protocols exist for problems with algebraic structures (like discrete logarithms), proving statements about generic, non-algebraic functions (e.g., "I know the input x such that y = SHA-256(x)") has been a significant challenge. Existing generic ZK constructions are too inefficient for practical use. This gap limits the application of ZK in scenarios involving common cryptographic primitives like hash functions, where proving knowledge of specific inputs is crucial.

Methods

The core of this paper's contribution lies in adapting Yao's garbled circuit technique for zero-knowledge proofs. Here's a breakdown of their approach:

  • Garbled Circuits for ZK: They leverage Yao's famous technique for secure two-party computation (2PC), where one party (the circuit constructor) garbles a circuit representing a function, and the other (the evaluator) evaluates it on their secret input. In their ZK protocol, the prover (P) acts as the evaluator, and the verifier (V) acts as the circuit constructor.
  • Honest Verifier ZK (HVZK) as a Warm-up: They first present a protocol for the simpler case where the verifier is honest. This involves the verifier garbling a circuit for the NP verification function and then running oblivious transfers (OTs) with the prover. The prover evaluates the circuit and commits to the output.
  • Active Security for Malicious Verifiers: To achieve full ZK against a malicious verifier, they extend the HVZK protocol. A key innovation is that after the protocol, the verifier (circuit constructor) can "open" the garbled circuit. This allows the prover to verify the verifier's honesty without compromising the zero-knowledge property. This is a significant improvement over traditional 2PC active security techniques like cut-and-choose, which often have a complexity that grows linearly with the security parameter.
  • Verifiable Garbling Scheme: They define and utilize a "verifiable projective garbling scheme" with specific correctness, soundness, and verifiability properties, which are crucial for their protocol's security.
  • Oblivious Transfer (OT) and Commitment: The protocol relies on secure OT and commitment functionalities. They discuss how these can be instantiated using existing, efficient protocols, including a "weak flavor of committing oblivious transfer" that is sufficient for their needs.

Datasets

Not discussed in the paper. The paper focuses on theoretical constructions and experimental evaluation of these constructions on example cryptographic functions.

Key Insights and Ideas

  • Garbled Circuits are Versatile: The paper demonstrates that Yao's garbled circuits, primarily known for 2PC, can be effectively repurposed for efficient zero-knowledge proofs, even for non-algebraic functions.
  • Active Security with Minimal Overhead: The core insight is that for ZK, the verifier (circuit constructor) has no secrets. This allows for a novel approach to active security where the verifier can "open" the circuit post-evaluation, leading to a protocol that is only about twice as slow as its passive counterpart, a significant improvement over prior methods.
  • Bridging the Gap: The work directly addresses the long-standing problem of proving statements about generic functions (like hash functions) efficiently, which was a major limitation of existing ZK techniques.
  • Practicality of ZK for Symmetric Primitives: The paper shows that ZK proofs for operations like AES and SHA-256 can be achieved with performance that makes them viable for real-world applications, challenging the notion that only algebraic primitives are suitable for efficient ZK.

Key Results

The paper presents a protocol that achieves active zero-knowledge for proving statements about non-algebraic functions.

  • Performance: Experimental results show that their protocol for proving knowledge of AES keys or inputs to MD5/SHA-256 takes only a few seconds.
  • Active Security Overhead: The ZK AES protocol (active security) is shown to be less than 20% slower than the HVZK AES protocol (passive security), which is significantly better than the factor of 2 that might have been predicted.
  • Competitiveness: Compared to other active secure 2PC solutions for AES, their protocol is orders of magnitude faster. For example, it's significantly faster than a solution reporting 192s for AES evaluation on standard hardware.

Limitations and Future Work

  • Implementation Overhead: While the performance is good, the authors acknowledge that their prototype implementation is not fully optimized and uses publicly available tools, which adds overhead. They believe an ad-hoc implementation for a specific circuit could be much faster.
  • OT Protocol Choice: The choice of OT protocol impacts performance. They note that while OT-extension can be used, for their specific applications with small witness sizes, using one OT per input bit was more efficient.
  • Open Problems:
    • Finding protocols for OT (or OT-extension) that securely implement a relaxed OT functionality (FCOT) but not the full OT functionality (FCOT), and are more efficient than existing FCOT protocols.
  • Optimizing IKOS's framework for "concrete efficiency."
    • Constructing non-interactive zero-knowledge proofs for SAT that are efficient and only use cheap (symmetric) cryptographic primitives.

Summary updated

BibTeX
@article{jawurek2013zero,
  author = {Marek Jawurek and Florian Kerschbaum and Claudio Orlandi},
  title = {{Zero-knowledge using garbled circuits: how to prove non-algebraic statements efficiently}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2013},
  url = {https://openreview.net/forum?id=kN180OJ1Lp6},
}

Loading related content...

Figure