> ## Documentation Index
> Fetch the complete documentation index at: https://solana.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> This page is part of the Solana developer documentation at https://solana.com/developers/docs. Append `.md` to any docs URL, or send `Accept: text/markdown`, to get the page as Markdown.
> Index of all pages: https://solana.com/llms.txt. Per-section indexes such as https://solana.com/developers/docs/payments/llms.txt are smaller; prefer them when working on one task.
> Coding agents: install the official Solana skill for current APIs and conventions with `npx skills add https://github.com/solana-foundation/solana-dev-skill` (also served at https://solana.com/SKILL.md).
> Code in the cookbook and task pages comes from tested example files. Prefer it over writing API calls from memory.

# Confidential settlement

> What Confidential Balances, Solana Privacy Rings, and Private Channels keep private when you settle a trade, who can audit it, and what DvP supports today.

A trade settled onchain is public by default. With the
[DvP program](/developers/docs/defi/dvp-program), the trade record stores both parties,
both mints, and the agreed amount of each leg, so anyone who reads the record
can work out the trade size and price. The record is closed at settlement, but
the terms can still be read from the transaction that created the trade. Three
solutions keep parts of a trade private. Confidential Balances and the Default
Ring of Solana Privacy Rings are available on mainnet, and none of the three
settles through the DvP program with hidden amounts.

<Info>
  **Decide what has to stay private**

  Before 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.
</Info>

## 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       |

For payments rather than trades, see [Private payments](/developers/docs/finance/privacy).

## What the DvP program settles today

The DvP program, used in the
[Settle a trade tutorial](/developers/docs/defi/settle-trade), moves ordinary, visible
token balances:

- Each party funds its leg with a standard `TransferChecked` into the trade's
  escrow account, and Settle moves both legs out with `TransferChecked`. 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.

As a result, none of the stablecoins named on
[Private payments](/developers/docs/finance/privacy#which-tokens-support-it) that have
Confidential Balances can be a DvP leg today.

The same holds for [DvP using delegation](/developers/docs/tokenization/dvp), which
settles with delegated, public `TransferChecked` transfers. See
[supported tokens](/developers/docs/defi/dvp-program#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](/developers/docs/finance/privacy#which-tokens-support-it).

### Set up confidential trading for an asset you issue

1. **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](/developers/docs/tokens/extensions/confidential-transfer/issuer-guide#create-a-confidential-mint),
   or the
   [Enable confidentiality (optional)](/developers/docs/assets/issue-asset/local#enable-confidentiality-optional)
   step of the Issue an asset tutorial.
2. **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](/developers/docs/tokens/extensions/confidential-transfer/issuer-guide#approve-accounts-manual-policy).
3. **Set an auditor key.** Give an auditor or regulator the ability to decrypt
   transfer amounts. See
   [configure an auditor](/developers/docs/tokens/extensions/confidential-transfer/issuer-guide#configure-an-auditor)
   and the
   [auditor and compliance guidance](/developers/docs/tokens/extensions/confidential-transfer/integration-guide#auditors-and-compliance).
4. **Choose how each trade settles.** For atomic delivery versus payment, settle
   through the [DvP program](/developers/docs/defi/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.

[Learn how Confidential Balances works](/developers/docs/tokens/extensions/confidential-transfer).

## Solana Privacy Rings

Solana Privacy Rings provide encrypted onchain balances and programmable
privacy. Helius launched the permissionless Default Ring on Solana mainnet on
November 10, 2026; Custom Rings are in security audit and not yet on mainnet.
The asset and amount of a transfer are private; Custom Rings add policy and
auditor controls and can also hide the counterparties. Helius describes private
escrow in Solana programs for swaps and trading.

[Read the Solana Privacy Rings documentation](https://www.helius.dev/docs/privacy/).

## Private Channels

Coming soon. Private Channels is private execution infrastructure that an
institution runs: participants deposit tokens into an escrow program on
mainnet, transfer inside the channel, and withdraw back to mainnet. Transfers
inside the channel are not recorded on mainnet, so outside observers can't see
them, and there is no public mempool. The institution controls who
participates, what rules apply, and how data is accessed. The Private
Channels docs don't describe settling a trade inside a channel. OtterSec and
Cantina have audited it, but those docs target the devnet program, which
predates many of the audit fixes. Have the commit you deploy reviewed before
you use it with real funds.

[Explore Private Channels](/developers/docs/tools/private-channels) or
[view the product page](https://launch.solana.com/products/private-channels).
