WIPIVERSE All articles

Zero-knowledge proof

In cryptography, a zero-knowledge proof (also known as a ZK proof or ZKP) is a protocol in which one party (the prover) can convince another party (the verifier) that some given statement is true, without conveying to the verifier any information beyond the mere fact of that statement's truth.

Definition and Properties

A zero-knowledge proof of some statement must satisfy three properties:

  1. Completeness: If the statement is true, an honest verifier will be convinced of this fact by an honest prover.
  2. Soundness: If the statement is false, no cheating prover can convince an honest verifier that it is true, except with some small probability.
  3. Zero-knowledge: If the statement is true, no verifier learns anything other than the fact that the statement is true.

Zero-knowledge proofs are probabilistic rather than deterministic, meaning there is a small soundness error that a cheating prover could convince the verifier of a false statement. This error can be reduced to negligibly small values through repetition.

Illustrative Examples

Common examples used to explain the concept include:

  • The red card proof: A prover shows that a drawn card is red by revealing all black cards from the remaining deck, proving the hidden card must be red without revealing which red card it is.
  • Where's Waldo: A prover covers a page with a board containing a small hole positioned over Waldo, allowing the verifier to see Waldo without revealing his location on the page.
  • Ali Baba cave: A prover enters a ring-shaped cave with a magic door, takes one of two paths, and reliably appears at the exit named by the verifier, demonstrating knowledge of a secret word without revealing it.
  • Two balls and the color-blind friend: A prover distinguishes between two differently colored balls for a color-blind verifier without revealing which ball is which color.

History

Zero-knowledge proofs were first conceived in 1985 by Shafi Goldwasser, Silvio Micali, and Charles Rackoff in their paper "The Knowledge Complexity of Interactive Proof-Systems." This work introduced the concept of knowledge complexity and gave the first zero-knowledge proof for deciding quadratic nonresidues modulo m. The five authors (including László Babai and Shlomo Moran for related work on interactive proof systems) won the first Gödel Prize in 1993.

Oded Goldreich, Silvio Micali, and Avi Wigderson later showed that, assuming the existence of unbreakable encryption, all problems in NP have zero-knowledge proofs.

Variants

Zero-knowledge proofs can be classified as:

  • Interactive: The prover and verifier exchange messages according to a protocol.
  • Non-interactive: The verifier is convinced by a single prover message with no other communication.
  • Perfect zero-knowledge: The simulator and proof protocol produce exactly the same distributions.
  • Statistical zero-knowledge: The distributions are statistically close but not necessarily identical.
  • Computational zero-knowledge: No efficient algorithm can distinguish the two distributions.

Applications

Zero-knowledge proofs are used in various domains, including:

  • Authentication systems: Proving identity or knowledge of a secret without revealing the secret itself.
  • Nuclear disarmament: Allowing inspectors to confirm whether an object is a nuclear weapon without revealing internal workings.
  • Blockchain and cryptocurrency: Used in protocols such as Zerocoin, Zerocash (Zcash), and Bulletproofs to enable private transactions.
  • Identity verification: Proving attributes (e.g., being over 18) without revealing underlying personal details.
  • Database analytics: Zero-knowledge coprocessors that execute queries and return verifiable proofs of correctness.

Protocols

Popular zero-knowledge proof protocols include zk-SNARKs, zk-STARKs, Bulletproofs, and others. These vary in properties such as transparency (whether they require a trusted setup), universality, and post-quantum security.

Browse

More topics to explore

    Browse all articles