Proof
Each message carries a Groth16 proof that its writer holds a pass, and nothing about which one. It is made in the browser, in 256 bytes.
What it states
I hold a pass in the pool.
leaf = Poseidon(Poseidon(secret), limit, expiry) is under root
I have not used up today's limit.
counter < limit
My pass has not expired.
day ≤ expiry
This is a message I have not sent before.
nullifier = Poseidon(secret, day, counter)
It is this payload, through this relay.
payload hash and relay are bound to the proof
Public inputs
The five values the chain is given with the proof.
- Roota recent root of the pool
- Daytoday
- Nullifierfollows from the pass, the day and the counter
- Payload hashthis exact payload
- Relaythis relay submits it
Generates a proof in this browser with a demonstration pass.
- Loading the prover
- Proving
- Verifying
Measured figures
1.4s
One proof, made in a browser
120,879compute units
One message, verified on chain
1,540bytes
One message, as a transaction
3,157bytes
Message capacity