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

# Privacy guarantees

> What Cloak hides, what stays public, and the assumptions privacy rests on

This page is the integrator's version of "who can see what". Read it before you write UI copy that
makes a privacy claim, so the claim matches what the protocol provides.

## What the chain sees

Every Cloak transaction is the same `Transact` instruction: a Groth16 proof plus a fixed-size public
input blob. An observer of the ledger sees, per transaction:

| Visible | Not visible |
| - | - |
| The pool (one per token: SOL, USDC, USDT, BRS) | Which notes were spent |
| The public amount crossing the pool edge: positive on a deposit, negative on a withdrawal, zero on a private send | The amount of a private send |
| The depositing wallet on a deposit, and the recipient address on a withdrawal | Who sent a private send, and who received it |
| Two nullifiers and two opaque output commitments | The link between a nullifier and the commitment it spends |
| A small encrypted chain note, readable only with the sender's viewing key | The note contents (amount, owner, blinding) |

A nullifier cannot be linked to the commitment it spends, and every note carries fresh randomness
(`blinding`), so equal amounts do not produce equal commitments. That is what breaks the link between
a deposit and a later withdrawal. The mechanics are in [UTXO model](https://docs.cloak.ag/concepts/utxo-model.md).

## What each party can do

| Party | Can | Cannot |
| - | - | - |
| A chain observer | See deposits enter a pool and withdrawals leave it | Link a withdrawal to a specific deposit, or see private sends between balances |
| The program | Verify proofs, reject reused nullifiers, enforce fees and amounts | Learn note contents |
| Cloak infrastructure | Submit private sends, withdrawals and swaps on the user's behalf, so the user's wallet never appears as the sender | Hold keys or funds, read a balance without the viewing key, or move value without a valid proof |
| Holder of the viewing key `nk` | Find and read the account's notes and history | Spend anything |
| Holder of the spending key or the full note secrets plus the owner key | Spend the notes | Be stopped: there is no freeze or clawback |

## The assumptions privacy rests on

Privacy in a shielded pool is statistical, not absolute. State these limits in your product rather
than promising more:

* **The anonymity set is the pool's activity.** A withdrawal hides among the deposits of the same
  token. Few similar deposits make timing and amount correlation easier. Withdrawing exactly what was
  deposited, minutes later, is the easiest case to correlate.
* **Entry and exit are public.** The wallet that funds a deposit and the address that receives a
  withdrawal are on chain. Withdrawing to an address tied to an identity reveals that endpoint.
* **History before shielding stays public.** Cloak does not rewrite past transactions.
* **The device is in scope.** The spending key and the note secrets live on the client. Malware or
  a leaked backup defeats the protocol's guarantees.
* **Screening happens.** Deposits carry a signed risk assessment that the program checks, and
  withdrawals and swaps are screened before they are authorized. See
  [Viewing keys and compliance](https://docs.cloak.ag/concepts/viewing-keys-compliance.md).

## What this means for your app

* Prefer private sends (`cloak.send` to a `cloak_` address) for payments between users: the amount
  and both parties stay hidden.
* Do not pre-fill a withdrawal amount equal to the user's last deposit.
* Never log note secrets, seeds or the viewing key. Treat a payment-link URL like cash: its secret is
  the fragment after `#`.
* Describe Cloak as privacy, not anonymity. [Privacy is not anonymity](https://docs.cloak.ag/learn/privacy-is-not-anonymity.md)
  explains the difference in user-facing language.

## Related

> [card] [Privacy architecture](https://docs.cloak.ag/concepts/privacy-architecture.md)
>
> How the program, the proofs and the client fit together.

> [card] [Security considerations](https://docs.cloak.ag/resources/security.md)
>
> Trust boundaries, key handling and operational controls for integrators.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.