How it works
Notes
A shielded balance is a set of notes. A note is an amount of one asset, an owner key and a random blinding value. On chain it appears only as its commitment:
ownerKey = Poseidon(spendingKey) commitment = Poseidon(amount, ownerKey, blinding)
Commitments are leaves of a Merkle tree of depth 23 in each pool (8,388,608 leaves). The pool keeps the last 128 roots, so a proof made against a slightly older root still goes through.
Nullifiers
Spending a note publishes its nullifier, which only the owner can compute:
signature = Poseidon(spendingKey, commitment, leafIndex) nullifier = Poseidon(commitment, leafIndex, signature)
The pool records every nullifier and refuses a second spend. Nobody can tell which commitment a nullifier belongs to without the spending key.
Join-split
Every action is one transaction that spends up to two notes and creates two notes, with a public amount that enters (shield) or leaves (withdraw, swap) the pool. The proof shows that the inputs exist in the tree, that the caller owns them, and that the sums balance:
sum(inputs) + publicAmount = sum(outputs) publicAmount = extAmount - relayerFee
Unused inputs are zero notes and an output you do not need is a zero note, so every transaction looks the same shape on chain.
Sealed notes
Each new note is encrypted to its owner and published with the commitment. The sealing uses X25519 key agreement with a one-time key and XChaCha20-Poly1305. Both outputs are sealed at the same size, so your change and a payment to someone else look alike. Your browser tries every sealed note against your note key and keeps the ones that open and match their commitment.
Keys from one signature
Talos derives your spending key and your note key from a wallet signature over a fixed message. Nothing is stored on a server and there is no seed phrase to back up: the same wallet signs the same message and gets the same keys. Your shielded address carries your owner key and your public note key, and lets anyone send you a note without learning anything else.
Two pools
USDC and HYPE each have their own pool contract with the same verifier. A private swap moves value from one pool to the other through Uniswap v4 in one transaction.
Talos