Concepts
Notes
A private balance is a set of notes (UTXOs). Each note has an owner, an asset and an amount, sealed in a Poseidon commitment in a height-32 Merkle tree. Spending a note publishes its nullifier, so it cannot be spent twice, and nobody can tell which note it was.
Who sees what
| Flow | Hidden on chain | Public on chain |
|---|---|---|
| Deposit (public to private) | nothing new | depositor, asset, amount |
| Private transfer | asset, amount, memo | sender address, recipient address, that a transfer happened |
| Withdraw (private to public) | remaining balance | destination, asset, amount |
| Merge | asset, amount | owner address, that notes were merged |
Keys
One EIP-712 signature gives two keys: a nullifier secret (to spend) and a viewing key (to read). The SDK derives them from the signature. Your shielded address is your EVM address plus the two public keys. Register it once so others can pay you privately. No server holds a user key. The prover receives the nullifier secret inside the witness of each proof and keeps nothing (see the security notes).
Viewing keys for one transaction
The sender of a transaction can export its viewing key (rtvk1:…). It opens that one transaction only. It cannot spend, and it opens no other transaction.
Relayer
You can send a private transfer or a withdraw yourself, or sign an EIP-712 owner authorization and let the relayer send it. The relayer then pays the gas and takes a fee from your private balance. The authorization names the address that sends the transaction, so no other address can use it. The relayer never holds your key.