BeCuriouzLearn something new every day
How to prove you know a secret — without revealing it
💡 A zero-knowledge proof lets you prove a statement is true while revealing nothing else — the engine behind scalable rollups and on-chain privacy.
Imagine proving you know a password without typing it, or that your bank balance tops $1,000 without showing the number. That's a zero-knowledge proof (ZKP): a way for one party (the prover) to convince another (the verifier) that a statement is true, while revealing nothing beyond its truth.
The classic picture is a loop-shaped cave with a locked door at the far end. You claim to know the door's code. Instead of showing it, you enter and a skeptic shouts which side you must exit. Come out correctly across many rounds and the odds you're bluffing shrink to near zero — yet the skeptic never learns the code. Good ZKPs are complete (true claims pass), sound (false ones almost never pass), and zero-knowledge (no extra info leaks).
In blockchains this is transformative. zk-Rollups bundle thousands of transactions off-chain, then post one compact proof (a zk-SNARK or zk-STARK) to a chain like Ethereum. The chain verifies it cheaply and trusts every transaction was valid — without re-executing them. ZKPs also power privacy coins and identity systems, letting you prove eligibility ("I'm over 18") without exposing the data behind it.