Prove you control an Ethereum address while guarding your public key.
Account
Statement
Proof
- Sign
- Commit
- Sumcheck
- Ligero
- Check
✓ Proof ready
It shows that the key behind signed your statement. Your public key and the signature stayed in this tab; neither is in the proof.
How does this work?
Signature vs. Sigard Proof
- “The key that owns this address signed this statement.”
- Public: the address and the statement.
- Hidden: the public key and the signature. The proof shows that they exist and fit together, and nothing else about them.
A signature 65 bytes
what personal_sign hands the verifier
- Addresspublic0xf39f…2266
- StatementpublicI control this address.
- Signaturepublicr, s and v
- Public keypublic↳ recovered from the signature
A sigard proof about 292 kB
what the proof file hands the verifier
- Addresspublic0xf39f…2266
- StatementpublicI control this address.
- Signaturehidden
- Public keyhidden
How it is made
- Your wallet signs the statement, exactly as typed, with
personal_sign. Your private key never leaves the wallet. - The page recovers your public key from the signature, inside the WebAssembly module.
- It proves two things at once: the signature verifies under that key (ECDSA on secp256k1), and the last twenty bytes of the key's Keccak-256 hash are the address.
Why hide the public key
An address is a hash of a public key, and until the account sends a transaction the chain holds only the hash. Justin Drake's call for “bunker mode” rests on that: if ECDSA is ever broken, by a quantum computer or by something sooner, a private key could be worked out from its public key but not from an address, so funds are safest behind a key that has never been shown. A plain signature gives the key away, because the key can be recovered from it. This proof does not, so an address can show it has an owner without leaving the bunker. If the account has already sent a transaction, its key is public anyway; the proof still withholds the signature.
Nothing leaves this page
- This is one HTML file with the prover inside it.
- Its content security policy forbids every network request, so it could not send your signature anywhere if it tried.
- Checking a proof works anywhere, online or off, even from a file opened from disk. Making one needs a wallet, and wallets only appear on pages served over http or https.
What is inside
- Longfellow, Google's zero-knowledge proof system: sumcheck and Ligero, with no trusted setup.
- Compiled to WebAssembly by clanging-ape, a C and C++ compiler in a single file.
- No other code: no framework, no wallet library, no package manager.
Address Control Circuit
The hidden inputs also include working values the two checks need: the key's bits and four intermediate Keccak states.
| Circuit | … |
| Public inputs | the address and the hash of the statement, as personal_sign hashes it |
| Private inputs | the public key, the signature, and their intermediate values |
| Proof | about 292 kB |
| Circuit identifier | … |