A zero-knowledge proof lets one party show that a statement is true without revealing the information that makes it true. You can prove you know a password without sending the password, or prove you are over 18 without handing over a birth date. The party making the claim is the prover, and the party checking it is the verifier.

The idea is older than crypto. It appeared in a 1985 paper, “The knowledge complexity of interactive proof systems,” and ethereum.org’s guide to zero-knowledge proofs uses that paper’s definition: a way for one party to prove something is true “without revealing any information apart from the fact that this specific statement is true.” What changed is that blockchains gave it two jobs: keeping transaction details private, and proving that a large amount of computing was done correctly.

A cave, a door and a secret phrase

The classic illustration is a ring-shaped cave with a magic door at the back that opens only for someone who knows a secret phrase. Peggy, the prover, walks in by either the left or the right path while Victor, the verifier, waits outside. Victor then calls out which side she should come back from. If she knows the phrase, she can always do it, opening the door when she has to cross over. If she does not, she can only succeed by luck.

One round proves little: a faker has a 1 in 2 chance of getting through. But the odds halve with every round, so after five rounds only 1 in 32 fakers would still be passing. Victor ends up convinced, and he has never heard the phrase.

Ethereum.org lists three properties every zero-knowledge proof must have:

  • Completeness: if the statement is true and both sides act honestly, the proof is accepted.
  • Soundness: if the statement is false, a lying prover cannot fool an honest verifier, except with a tiny margin of probability.
  • Zero knowledge: the verifier learns nothing about the statement beyond whether it is true.

From a conversation to a single message

The cave game needs Peggy and Victor to go back and forth many times. That makes it an interactive proof. Blockchains need something that can be posted once and checked by anyone later, so they use non-interactive proofs: the prover sends one message, and any verifier can check it with a verification algorithm.

The best-known version is the zk-SNARK, short for Zero-Knowledge Succinct Non-Interactive Argument of Knowledge. “Succinct” is the useful word for blockchains. Zcash’s explanation notes that such proofs can be verified in a few milliseconds, with a proof of only a few hundred bytes, even for statements about very large programs.

SNARKs and STARKs

Ethereum.org describes two main families, and the difference matters for trust and for the future.

zk-SNARK zk-STARK
Setup Needs public parameters, often made in a “trusted setup” ceremony No trusted setup; relies on publicly verifiable randomness
Proof size Smaller Larger, so verification generally costs more
Cryptography underneath Elliptic curves Collision-resistant hash functions
Quantum computers A future quantum computer could break the elliptic-curve assumption Considered immune, because it relies only on hashing

The trusted setup is the awkward part of SNARKs. If someone learned the secret randomness behind the public parameters, they could create false proofs that look valid. Zcash handled this for its early pools by generating the parameters in multi-party ceremonies, and its 2022 Orchard protocol uses a proving system called Halo 2 that removes the trusted setup. The quantum row is why zero-knowledge keeps turning up in debates about the post-quantum future of blockchains, including Ethereum’s hash-based plan.

Where zero-knowledge proofs are used

Private payments. Most blockchain transactions are public. Zcash was the first widespread application of zk-SNARKs: shielded transactions can be fully encrypted on the blockchain and still be checked as valid under the network’s rules. Our note on the Zcash NU7 upgrade covers the latest network changes.

Scaling. A zero-knowledge rollup runs thousands of transactions off the main chain and posts a validity proof to Ethereum, which can accept the result without re-running every transaction. Ethereum.org says verifying one such SNARK proof costs about 500,000 gas on Ethereum, and that STARK proofs cost more.

Identity. Ethereum.org points to Bhutan’s National Digital ID, which uses proofs so a citizen can show “I am over 18” without revealing the data on the ID. Google open-sourced its own zero-knowledge libraries for age assurance on July 3, 2025, saying they let a person prove something about themselves without exchanging any other data.

What a proof does not tell you

A zero-knowledge proof shows that a rule was followed. It does not show that the rule is the right one, or that the software built around it has no flaws, so a system is only as trustworthy as the statement being proved and the code that checks it.

There are also real costs. Ethereum.org lists three: generating proofs takes complex calculation best done on specialized, expensive hardware, verifying them adds cost, and SNARKs carry trust assumptions in their setup.

Finally, privacy from a proof is not the same as privacy of your keys or coins. A proof can hide a transaction’s details, but it does nothing for a wallet whose seed phrase has leaked.