Sixteen lessons have built numbers, polynomials, fields, groups, curves, pairings, hashes, commitments, and Merkle trees. This lesson adds the last idea: how do you measure a secret, and what does it actually mean for a proof to reveal nothing? The tool is entropy. Once it’s measurable, “zero-knowledge” stops being a slogan and becomes something you can check.
Entropy is counting yes/no questions
Information is surprise. Learn something you already knew, and you learn nothing. Learn something you couldn’t have guessed, and you learn a lot. Entropy measures how many yes/no questions it takes to pin down an unknown, counted in bits.
For a random variable with outcomes of probability , entropy is . When there are equally likely outcomes, this collapses to bits — the exact same halving that gives a Merkle proof its length.
Each extra bit doubles the number of outcomes. That’s exactly why 256 bits — the size of the secrets this series has used throughout — sits beyond brute force.
Entropy depends on the odds, not just the count
Entropy isn’t only about how many outcomes exist — it’s about how likely each one is. A predictable secret is a weak secret even when it has plenty of possible values.
A certain outcome carries zero bits — there’s nothing left to ask. Skew the odds and the entropy climbs partway. Only when every outcome is equally likely does entropy hit its maximum for that many outcomes. A good secret isn’t just big, in other words — it has to be uniformly random too.
Low-entropy vs. high-entropy secrets
This is where entropy turns practical. Take the nullifier secret from the last lesson: its hash is published, and anyone can see it. Whether that’s safe depends entirely on the entropy behind it — not on the fact that it went through a hash function at all.
Ten thousand possible values is nothing to a computer — trying every guess and checking it against the published hash takes moments. Two to the 256 possible values is a different story: brute-forcing it would outlast the universe. A hash hides a secret only as well as the secret’s own entropy allows, which is exactly why nullifier secrets, and the blinding factors from two lessons back, have to come from a genuine random source, at full length.
Why the Pedersen commitment hides perfectly
The commitments lesson introduced the Pedersen commitment, , without fully explaining why it hides so completely. Entropy is the reason.
For any message an attacker might guess, there is exactly one blinding factor that produces the same . Because is drawn uniformly from the whole field, every such is equally plausible given only .
Perfect means perfect here: even an attacker with unlimited computing power learns nothing about from alone. That’s the maximum-entropy idea from the last section, doing exactly the work it promised.
Two kinds of security
That word “perfect” is doing real work, and it comes with a trade-off worth naming directly.
Pedersen hiding is information-theoretic: safe against any attacker, no matter how much computing power they have, because the information simply isn’t there. Pedersen binding is only computational: safe because breaking it means solving the discrete log problem, which stays hard but isn’t impossible in principle. No commitment scheme gets both guarantees at full strength at once — Pedersen picks perfect hiding and computational binding; hash-based commitments tend to choose the other way around.
The simulation argument
So how does anyone actually prove a proof leaks nothing? By showing that someone who doesn’t know the secret can produce a transcript indistinguishable from a real one. If a fake looks exactly like the truth, the truth wasn’t carrying any extra information. Here’s the Schnorr proof from two lessons back, run both ways.
Public: and . Real: pick a random , send , receive a challenge , reply . Simulated: pick a random and first, then compute — no needed anywhere. Both transcripts pass the identical check , and both are distributed exactly the same way.
Since the verifier could have produced this transcript entirely on their own, the transcript teaches the verifier nothing beyond the fact that the statement holds. That’s the formal meaning of zero-knowledge.
The three promises
Put all of this together, and every proof system built across this series — Groth16, PLONK, the rest — is ultimately judged by the same three promises.
Completeness: if the statement is true and the prover is honest, the verifier always accepts — built from polynomial division with zero remainder and the pairing equation. Soundness: if the statement is false, a cheating prover gets caught except with negligible probability — built from Schwartz-Zippel and binding commitments. Zero-knowledge: the verifier learns nothing except that the statement is true — built from random blinding factors and the simulator this lesson just walked through.
That’s the full arc of this series, from modular arithmetic to these three guarantees. Complete, sound, and zero-knowledge — no longer a slogan, but something you can now measure and check.
- Entropy measures how many yes/no questions it takes to pin down an unknown secret, counted in bits.
- Entropy depends on the odds, not just the count — a predictable secret is weak even with many possible values, and uniform randomness maximizes it.
- A hash only hides a secret as well as the secret’s own entropy allows — a 4-digit PIN is broken in moments once its hash is public, a 256-bit random value never is.
- The Pedersen commitment hides perfectly (information-theoretic security, safe against unlimited computing power) but binds only computationally (depends on the discrete log problem staying hard).
- The simulation argument — a fake transcript indistinguishable from a real one, built without the secret — is the formal meaning of zero-knowledge, completing this series’ three promises: completeness, soundness, and zero-knowledge.