Main circuits
| Circuit | Publics | Proves |
|---|---|---|
shield | commitment, asset, amount | well-formed note for a public deposit |
initiate | note_root, nullifiers[2], change_commitment, payment_root, recipient_fi_index, deadline_bucket, time_bucket, fee, relayer | 2 inputs owned by the prover (pk_d recomputed from sk) and in the tree under note_root, nullifiers H(NULL, nk, leaf_index); one asset; Σ inputs = amount + change + fee; change and refund notes owned by the sender; sender_private describes exactly the witnessed inputs and nk_commitment = H(NK_COMMIT, nk, nonce); payload_root and payment_root recomputed from plaintext; deadline_bucket > time_bucket |
resolve | payment_root, output_commitment, time_bucket | envelope plaintext recomputes payment_root with sender_private_root opaque; witness bit selects: accept → output_commitment is the recipient note from shared fields, and a Schnorr signature under an ak whose derived pk_d is the recipient's verifies over payment_root; reject → output_commitment == shared.refund_commitment |
reclaim | payment_root, output_commitment, time_bucket | same recomputation with sender_private open; refund note owner recomputed from sk; output_commitment == shared.refund_commitment; time_bucket > deadline_bucket |
unshield | note_root, nullifiers[2], change_commitment, asset, amount, recipient | standard exit: two inputs as in initiate, change back to the sender |
A zero-amount input is a dummy: ownership and membership are skipped
and its nullifier is H(NULL_DUMMY, nk, rho), domain-separated so it can
never collide with a real note's. Leaf indices are range-checked to 32 bits
so the nullifier and the path agree on the index. This lets a single-note
spend use the two-input shape.
The resolve circuit instantiates each shared gadget once (root recomputation, note commitment, signature verify) and lets the branch bit multiplex the values fed into them, so the disjunction costs little more than the larger branch.
Unshield has no FI policy slot in v1. This is deliberate and listed as a
non-goal; a fourth Ctx phase and VK slot is the reserved extension.
These are the protocol team's circuits; FI developers never touch them.