Skip to content

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

  1. I hold a pass in the pool.

    leaf = Poseidon(Poseidon(secret), limit, expiry) is under root

  2. I have not used up today's limit.

    counter < limit

  3. My pass has not expired.

    day ≤ expiry

  4. This is a message I have not sent before.

    nullifier = Poseidon(secret, day, counter)

  5. 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.

  1. Roota recent root of the pool
  2. Daytoday
  3. Nullifierfollows from the pass, the day and the counter
  4. Payload hashthis exact payload
  5. Relaythis relay submits it

Generates a proof in this browser with a demonstration pass.

  1. Loading the prover
  2. Proving
  3. 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