Decide what has to stay privateBefore you choose, decide which parts of a trade must be hidden (the size and
price, the counterparties, or both), who must still see them, such as an
auditor or regulator, and whether both legs have to settle atomically onchain.
Compare the three solutions
Custom Rings, which add auditor access and can hide the counterparties, are in security audit. Private Channels is coming, but is not yet ready for production.| Solution | Trade size and price | Counterparties | Auditor and regulator access | Atomic settlement | Availability |
|---|---|---|---|---|---|
| Confidential Balances | Transfer amounts encrypted; deposits and withdrawals in the clear | Public | Optional auditor key on each mint decrypts transfer amounts | Not through the DvP program: a confidential leg settles in public | Available on mainnet |
| Solana Privacy Rings | Asset and amount private | Public in the Default Ring, private in anonymous Rings | Custom Rings can give an auditor visibility | Helius describes private escrow in Solana programs | Default Ring on mainnet; Custom Rings in audit |
| Private Channels | Hidden from outside observers | Hidden from outside observers | The institution controls who participates, what rules apply, and how data is accessed | Not covered by the Private Channels docs | Coming soon: audited; on devnet |
What the DvP program settles today
The DvP program, used in the Settle a trade tutorial, moves ordinary, visible token balances:- Each party funds its leg with a standard
TransferCheckedinto the trade’s escrow account, and Settle moves both legs out withTransferChecked. Both legs settle in one transaction, or neither does. - A mint with the Confidential Balances extension is accepted as a leg, but the
amounts on that leg are public. The escrow cannot receive confidential
transfers: configuring it for them would need the trade’s program-derived
address to sign
ConfigureAccount, and the program has no instruction that does that. - The program rejects any mint that carries the transfer fee extension. The PYUSD and USDG mints on mainnet carry it (with a zero fee), so they cannot be a DvP leg; USDC can.
TransferChecked transfers. See
supported tokens for the full list
of extensions the program accepts.
Confidential Balances
Confidential Balances is a Token-2022 extension that encrypts token balances and transfer amounts while trades still move between public token accounts.- Trade size and price: confidential transfer amounts and balances are encrypted. Moving tokens between an account’s public and confidential balances (deposit and withdraw) shows the amount in the clear, so the size of flows entering and leaving confidential balances is visible.
- Counterparties: public. The mint, token accounts, and owners stay visible, so anyone can see who traded with whom.
- Auditor and regulator access: each mint can set an optional auditor ElGamal key, set and rotated by the mint’s Confidential Balances authority. The auditor can decrypt every transfer amount for that mint, but not an account’s full balance. An owner can also share its own keys with a specific party, which discloses all of that owner’s confidential balances.
- Atomic settlement: a confidential leg cannot settle through the DvP program (see above).
- Tokens: only Token-2022 mints that enabled the extension when they were created. USDC is an SPL Token mint and cannot use it; see which stablecoins support it.
Set up confidential trading for an asset you issue
- Enable it when you create the mint. Add the Confidential Balances extension at creation; it can’t be added later. See create a confidential mint, or the Enable confidentiality (optional) step of the Issue an asset tutorial.
- Approve accounts. With a manual approve policy, approve each investor’s account after your own checks, such as KYC, before it can trade confidentially. See approve accounts.
- Set an auditor key. Give an auditor or regulator the ability to decrypt transfer amounts. See configure an auditor and the auditor and compliance guidance.
- Choose how each trade settles. For atomic delivery versus payment, settle through the DvP program and accept that both legs are public. For confidential amounts, move each leg with a confidential transfer; these docs don’t cover settling two confidential legs atomically.