Design
What the shielded space hides, what it shows, and how a shielded transaction moves through the node.
Threat model
The shielded space is designed for an adversary who records everything public today and attacks it later, possibly with a quantum computer.
Privacy must survive. Commitments are statistically hiding, so recorded data reveals nothing about a note's owner, value or randomness, whatever the attacker's computing power.
Soundness must not depend on a trapdoor. There is no trusted setup. Forging a proof means breaking the hash functions.
A broken hash would allow counterfeiting going forward, not exposure of the past. Binding is computational (a Poseidon2 collision would be needed). Hiding does not depend on Poseidon2 at all.
What is public
That a valid 2-in × 2-out spend happened
Who sent it, and to whom
Two nullifiers and two output commitments
Which notes were spent
The anchor (a past tree root)
The amounts of the notes
The shield-in amount, for a shield-in
Links between the spends of one user
The shield-out amount and destination, for a shield-out
The note openings
The constant fee
A recovery tag and a sealed recovery slot
Their meaning, without the sender's seed
A shielded body has no sender, no nonce, no signature and no gas. The proof alone authorises the spend.
Lifecycle of a shielded transaction
Where the state lives
The pool state lives in two accounts at the shield-in bridge address 0x0888…09:
in the shielded space: spent nullifiers, the frontier of the commitment tree, the recorded roots (anchors), and deposit credits for shield-ins;
in the native space: the backing balance, which holds every unit of value inside the shielded space. It pays shield-outs. Fees are burned from it.
Network separation
A proof is valid for one chain only. The Fiat–Shamir transcript starts from a domain that includes the chain ID, the proof system ID and the circuit ID, and the sighash covers the chain ID. The shielded chain ID is set with shielded_chain_id and defaults to the chain's ID.
Last updated