Concepts
Withdrawals
A withdrawal (unshield) is a join-split with a public exit: publicAssetId names the asset, extAmount is negative, and recipient receives the funds. It is submitted by the relayer, which takes a fee in the withdrawn asset.
| Asset | Testnet minimum fee |
|---|---|
| SEI | 0.01 SEI |
| USDC | 0.05 USDC |
On testnet the fee doesn't cover the relayer's gas; it exists to make spam cost something.
What it reveals
Recipient, asset, exact amount, fee, relayer and time. The change note it creates is labelled with the asset. What it doesn't reveal is which notes paid for it.
How withdrawals get linked anyway
Cryptography hides the path between a deposit and a withdrawal. Behaviour can still give it away.
- Matching amounts. 37.12 in and 37.12 out is linkable by anyone. Use round amounts, and split large exits.
- Timing. A withdrawal minutes after a deposit, in a quiet pool, is easy to pair. Wait.
- Addresses. Withdrawing to the account that deposited links the two. The app warns when you pick your funding account.
- A small pool. On testnet the anonymity set is tiny. It is only as large as real usage.
The two-note limit
The circuit spends at most two notes per transaction. If your balance is spread across many notes, the largest single withdrawal is your two biggest notes minus the fee. Combine notes in Settings merges your two largest notes into one with a private self-payment.
Source: apps/web/content/docs/withdrawals.md