Start ยท What is a ZKP?
Start here

What is a Zero-Knowledge Proof?

Say a friend tells you they solved a really hard puzzle, but they won't show you how. You don't fully believe them. Maybe they're bluffing. So you say, okay, prove it. The problem is that the obvious way to prove it is to show you the answer, and once they do that, the secret is gone. Anyone standing nearby just learned it too.

A zero-knowledge proof is a way around this. It lets your friend convince you they know the answer while still keeping the answer to themselves.

Prove It Without Revealing It

You're not trying to find what the secret is, you want to know whether they actually know it without them telling you the sceret.

You probably depend on this kind of thing already:

Each of these has a secret, some claim you're making about that secret, and a way for the other person to check the claim without ever seeing the secret. That last part is the whole trick, and it's what the rest of this site is about.

Two Roles: Prover and Verifier

Most zero-knowledge proofs come down to two people. We'll call them Peggy, who does the proving, and Victor, who does the checking.

So the two of them go back and forth. Peggy sends over some evidence, Victor looks at it and asks her something else, she answers, and so on. After enough rounds Victor is convinced, even though the secret itself never showed up anywhere in the conversation.

Trust isn't enough. Just saying "I know the answer" doesn't prove anything. And going the other way, handing over the answer, isn't zero-knowledge at all, because now Victor knows everything. The interesting part is the middle: a back-and-forth that leaves Victor convinced and the secret still hidden.

What's Ahead

Zero-knowledge proofs can get pretty mathematical once you dig in, This guide starts with the intuition, and demos and games you can click around in, and leaves the heavier math for whenever you feel like it.

  1. The Three Rules, which lay out what any honest ZKP has to guarantee.
  2. Ali Baba Cave, the story that usually makes the whole thing click, with a demo.
  3. Try It Yourself, where you play both sides using graph coloring and Sudoku.
  4. Schnorr Protocol, which is where the actual math shows up.
  5. zkSNARKs, a quick look at what's running under a lot of today's privacy apps.

You don't need anything to start except some curiosity. If you can work through a logic puzzle, the first half of this site will make sense.