Tested tool guide
Tested browser tools
Checked August 16, 2026
What Zero-Knowledge Proof Demo does, with a checked example
A zero-knowledge proof lets one party convince another that a statement is true - "I know a valid 3-coloring of this graph" - while revealing nothing that would let the verifier re-prove it. This tool makes the idea concrete with the two classic demonstrations: the Ali Baba cave, where the prover survives a path challenge only by knowing a secret word, and graph coloring, where the prover commits to a randomized coloring and the verifier inspects one edge per round. The surprise most users hit: one round proves nothing, because passing it can be luck; only many rounds give real evidence.
Worked example
A concrete input and expected output from the current implementation.
Input
Run the cave demo for 10 rounds, with the prover claiming to know the secret word.
->
Expected output
All 10 rounds pass and the verifier accepts. The confidence is on the impostor side: a prover without the word survives one round only by guessing which exit the verifier will demand (probability 1/2), so surviving all 10 has probability (1/2)^10 = 1/1024, under 0.1%.
An honest prover always complies, because the door is the only crossing in the cave, so the transcript is 10/10 deterministically. What makes the verdict strong is repetition: each round halves an impostor's survival odds.