← zk-playground

Binius64: prove you know a secret

Publish only the SHA-256 of a secret (a password, a recovery phrase, the opening of a commitment). Later, prove you still know the secret for a fresh challenge, without revealing it and without the verifier storing anything but the hash. The challenge is bound into the proof, so a proof cannot be replayed for another challenge. Everything runs in this tab; test data only.

Run everything

Commits, proves, verifies, then checks that four kinds of cheating are caught.


      

1 · Commit to a secret

Published SHA-256:

—

2 · Prover: prove knowledge

No proof yet.

3 · Verifier: check

The verifier knows only the hash and its challenge. Change either to see the proof fail.

4 · Tamper with the proof

Numbers

Log

Circuit: SHA-256 of a private, variable-length secret equals a public digest; zero-knowledge mode, the challenge signed into the proof (binius64 signature of knowledge). Package: libraries/binius/ in the repository.