- Introduced by
- Shafi Goldwasser, Silvio Micali, Charles Rackoff
- Year
- 1985
- Type
- Cryptographic authentication and verification
- Family
- Interactive proof systems
What does it do?
A zero-knowledge proof is a cryptographic protocol in which a prover convinces a verifier that a statement is true without revealing anything beyond the truth of that statement.
Goldwasser, Micali, and Rackoff introduced the concept in the mid-1980s. It is used for authentication without transmitting secrets, for privacy-preserving verification, and in some blockchain systems.
The intuition behind the method
Imagine proving that you know the solution to a puzzle without showing the solution. In an interactive zero-knowledge proof, the prover answers a series of verifier challenges, and each answer is hard to produce without the secret, so a cheater is caught with high probability over repeated rounds. The verifier becomes convinced that the statement is true, yet the transcript of messages could be generated by a simulator that does not know the secret, so the verifier gains no further knowledge about it. There are two forms: interactive protocols with several rounds of messages, and non-interactive protocols in which the prover sends a single message that anyone can check. The non-interactive form is convenient in blockchain settings but usually depends on a setup assumption or a hash-based transformation.
History
Goldwasser, Micali, and Rackoff introduced zero-knowledge proofs in the mid-1980s; their journal paper, The Knowledge Complexity of Interactive Proof Systems, appeared in 1989 in the SIAM Journal on Computing. They gave examples for quadratic residuosity and quadratic nonresiduosity, languages not known to be efficiently recognizable. In 1988, Ben-Or, Goldwasser, Kilian, and Wigderson showed in a multi-prover model that all NP languages have perfect zero-knowledge proof systems without intractability assumptions. The Fiat–Shamir heuristic (1986) made interactive proofs non-interactive using hash functions; zk-SNARKs emerged in the 2010s; and zk-STARKs (2018) aimed at transparency without a trusted setup. Zero-knowledge proofs are now used in cryptocurrency privacy and in blockchain scaling solutions.
When to use it
Choose a zero-knowledge proof when a party must show that it knows a secret, or that a property holds, and revealing the underlying data would be undesirable or unnecessary. Examples include password-free authentication and showing that a credential has a given attribute without showing the credential itself. Non-interactive variants suit settings where one message must be verifiable by many parties without a live exchange, such as on-chain verification, but their setup assumptions must be considered first. Do not use these protocols when plain disclosure of the data is acceptable and simpler, or when a conventional signature or certificate already gives the verifier the assurance it needs. Proof generation can be expensive for large or complex statements, so workloads with many proofs need an explicit cost estimate. Privacy regulations may motivate such designs, but whether a given system satisfies a legal requirement depends on the jurisdiction and must be assessed separately.
Limitations and considerations
- Interactive protocols need several rounds of messages between prover and verifier, which adds latency and makes them unsuitable where the verifier cannot respond in real time.
- Generating and verifying proofs can be computationally heavy for complex statements, and the cost grows with the size of the statement being proved.
- Designing an efficient construction for an arbitrary statement is non-trivial, and efficiency usually depends on how the statement is encoded.
- Many non-interactive constructions, such as zk-SNARKs, depend on a trusted setup whose secret material, if retained, could allow forged proofs. Transparent constructions such as zk-STARKs, mentioned in the history, avoid this assumption, and Fiat–Shamir-based variants rely instead on modelling a hash function as a random oracle.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Hides the secret itself: the verifier learns that the statement is true and nothing about the prover's secret beyond that, which is the property tested by the simulation argument.
- Soundness holds computationally: a prover without the secret can succeed only with negligibly small probability, and repeating independent challenge rounds drives this error down.
- Completeness: an honest prover who holds the secret always passes verification.
- Non-interactive variants let a single proof be checked later by any party without a live exchange, which suits distributed systems.
Applications
- Authentication: proving knowledge of a password or credential without transmitting it
- Privacy-preserving credentials: demonstrating that a condition is met, such as eligibility, without disclosing the underlying personal data
- Blockchain transactions: Zcash uses zk-SNARKs to conceal transaction details
- Scalability: zk-rollups, a Layer 2 approach, use zero-knowledge proofs to compress many transactions into a single proof that is checked on-chain
- Identity verification: self-sovereign identity systems that verify attributes without exposing the identity behind them
How it works
How it works
The prover sends a commitment, a value computed from fresh randomness (for example, a random group element in Schnorr-style protocols), which binds the prover to its choice and does not reveal the secret.
The verifier sends a random challenge (a question derived from the protocol) that the prover must answer correctly only if they possess the secret knowledge.
The prover computes a response from the secret, the randomness used in the commitment, and the challenge, and sends it back to the verifier.
The verifier checks the response against the commitment, the challenge, and the public statement using the protocol's verification equation. In Schnorr's discrete-logarithm protocol, for example, the prover shows knowledge of a secret exponent x for a public value y = g^x, and the verifier accepts when g raised to the response equals the commitment multiplied by y raised to the challenge. An honest prover always passes. A dishonest prover can pass a single round only with a probability that shrinks as the challenge space grows, so repeated independent rounds are needed to make success negligibly small. The four steps describe the interactive form; non-interactive variants combine these messages into a single proof, as the FAQ explains.
Common pitfalls
- Treating any sound proof as zero-knowledge. The defining property is that the verifier's view can be simulated without the secret; a protocol that leaks even a related value fails this property regardless of its soundness.
- Mis-deriving the challenge in a non-interactive variant. When the Fiat–Shamir transformation is used, the challenge must depend on the full statement and the prover's commitments; omitting parts of this transcript can allow a cheating prover to produce accepted proofs.
- Hand-implementing a protocol from its description instead of using vetted implementations. Subtle errors in the verification equation can break soundness without any visible failure.
- Deploying a zk-SNARK without understanding its trusted setup. Whoever holds the setup secrets may be able to forge proofs, so this trust assumption must be assessed before deployment.
- Assuming post-quantum security. The elliptic-curve based systems discussed in the FAQ are not expected to resist quantum attacks, and a quantum adversary could forge their proofs.
Frequently asked questions
If I send a zero-knowledge proof, how does the verifier know I am not cheating?
The verifier cannot be certain from a single run. The protocol is designed so that an honest prover always passes, while a cheater passes any given challenge only with limited probability. Repeating the challenge-response rounds with fresh, independent challenges makes the chance of a successful cheat negligibly small.
What is the difference between interactive and non-interactive zero-knowledge proofs?
Interactive proofs require real-time exchange of several messages between prover and verifier. Non-interactive proofs, such as zk-SNARKs, need only one message from the prover to the verifier. Making a proof non-interactive can rely on a trusted setup phase, as in many zk-SNARKs, or on the Fiat–Shamir transformation with a hash function, which does not require a trusted setup. Non-interactive proofs suit blockchain and offline settings, but any setup assumption must be understood before use.
Are zero-knowledge proofs quantum-resistant?
Current widely used zk-SNARK constructions based on elliptic curves are not expected to be quantum-resistant. Post-quantum zero-knowledge protocols, including lattice-based designs, are an active research area, but their efficiency remains a challenge.
What does zero-knowledge really mean? Does it mean the verifier learns nothing?
Not quite. The verifier learns that the statement is true, with an error probability that can be made negligibly small. Zero-knowledge means the verifier learns nothing else about the prover's secret: a simulator without the secret could produce an indistinguishable transcript, so the protocol reveals no more than the truth of the statement.
Related methods
Sources
Goldwasser, S., Micali, S., & Rackoff, C. (1985). The knowledge complexity of interactive proof systems. SIAM Journal on Computing, 18(1), 186–208.
Open DOI referenceBen-Or, M., Goldwasser, S., Kilian, J., & Wigderson, A. (1988). Multi-prover interactive proofs: How to remove intractability assumptions. Proceedings of the 20th ACM STOC, 113–131.
Open DOI referenceGroth, J. (2016). On the size of pairing-based non-interactive arguments. Advances in Cryptology – EUROCRYPT 2016, 305–326.
Open DOI reference