One answer per person
Nullifiers let the contract refuse a second answer from the same person without ever learning who they are, and keep their answers to different forms unlinkable.
A receipt is keyed by a nullifier: a number the person's browser computes inside the proof.
nullifier = Poseidon("mitome:nullifier", seed, this contract's address)The contract refuses a second receipt with the same nullifier ("You have already answered this form"). Because the contract's own address is part of it, the same person gets an unrelated nullifier on every form, so nobody can link their answers across forms.
Where the seed comes from
| Form | Seed | So "once" means |
|---|---|---|
| Without checks | The person's own secret, made by their browser | Once per browser |
| With checks | A seed from Mitome's checker, derived from the verified identity | Once per passport, account, email or wallet, on any device |
For a form with checks, the checker computes the seed from what it verified, keyed with its own secret:
seed = HMAC(checker key, "mitome:seed:v1" | form address | kind | identity)The identity is ZKPassport's per-form anonymous identifier for passports, the provider and account id for accounts, the email address, or the wallet address. If a form has several checks, the first of passport, account, email, wallet is used. The checker signs the seed into the pass, and the circuit uses it. Since the seed is the same however many times someone verifies, a fresh browser with the same email produces the same nullifier, and the person's browser checks the chain for it before proving: "You've already answered this form".
The checker doesn't need to remember anyone to make this work, and it doesn't: it keeps a session for up to an hour, then forgets it. It could, while it has the seed, compute which receipt belongs to that identity; that's stated on Who sees what.
The subject key: a pass only works for its owner
The checker's pass is signed over the person's subject key, Poseidon("mitome:subject", secret), which the browser sends when it starts the checks. Inside the proof, the circuit recomputes the subject key from the secret and checks the signature against it. A pass copied to someone else's browser fails ("This pass is not valid"), and a pass for one form fails on another, because the signature also covers the contract's address and the form's rules.
Two ways to say "this answer is theirs"
Each answer also gets a one-time Ed25519 key, made in the browser. Its public half goes into the call and onto the chain under the nullifier; its private half signs the sealed answer and stays in the browser (unless the person moves their entry with Open on another device). Without any account, that key means:
- anyone can check a stored answer is exactly what was sent (the signature matches the key on chain);
- the person can delete their answer later by signing a request with it;
- if a proof must be rebuilt, Mitome accepts the new one only if that same key signs it;
- only the entry's own browser can show its ticket (a fresh code signed every 20 seconds) or send a winner's claim.
Proofs in the browser, no wallet
How a person's browser builds, proves and seals an answer to Midnight without a wallet, a proof server or tokens, and how Mitome pays for it.
The fair draw
Public rules, a dice roll from a Midnight block nobody can know in advance, and a result sealed in the form's contract.