Zero-Knowledge Proofs, Simply Explained by Tokamak
Prove something is true without revealing the details. That’s the magic of zero-knowledge proofs.
What is a zero-knowledge proof?
A zero-knowledge proof (ZKP) lets someone show a statement is true without sharing any of the secret information behind it.
- Prover: the person who knows the secret
- Verifier: the person who wants to be convinced it’s true
The key idea: the verifier learns that “it’s true,” but learns nothing else.
Everyday analogy
Imagine a club that only lets in people 18 and older. With a ZKP, you could prove you’re over 18 without showing your actual birthday or your name. The bouncer gets the answer they need, and your personal info stays private.
Why does this matter?
- Privacy: Share just the fact, not your data
- Security: Fewer details exposed means less to steal or leak
- Efficiency: In blockchains, ZKPs can compress lots of work into tiny proofs, speeding things up
Where are ZKPs used?
- Logins and identity: Prove you’re allowed to access something without revealing who you are
- Payments: Prove you’ve paid or have enough funds without revealing your balance
- Blockchains: Prove a whole batch of transactions is valid without showing each one
A tiny mental model
Think of a sealed envelope test:
- The prover hides a correct answer in an envelope.
- The verifier checks the rules without opening the envelope.
- If the rules always pass, the verifier becomes convinced the prover must know the answer.
Real ZKPs do this with math, not envelopes. But the feeling is the same: strong confidence, zero extra information.
What ZKPs don’t do
- They don’t guess secrets
- They don’t break encryption
- They don’t reveal hidden data — that’s the point
Two popular flavors
- zk-SNARKs: Very short proofs and fast to verify. Often need a one-time setup ceremony.
- zk-STARKs: Transparent setup and post-quantum friendly, usually larger proofs but great for scalability.
Quick example in payments
“I can afford this purchase.”
- With ZK: You prove your balance is above the price without revealing the balance itself.
- Result: The merchant gets the yes or no they need, and your privacy stays intact.
Why blockchains love ZK
- Scale: Prove a big computation happened correctly with a small proof
- Privacy: Keep transaction details hidden while still proving validity
In one sentence
Zero-knowledge proofs let you prove truth without revealing secrets — privacy and trust, at the same time.