What is private
Privacy belongs to each leg of a trade
On Midnight a shielded token's leg hides the amount, the coins and the link to you. An unshielded token's leg — NIGHT is one — shows the address and the amount to anyone reading the chain, as on any other chain. Every Fondaco request names one of three privacy levels, and the swap tells you in one sentence what will be public before your wallet signs.
hidden only the named party knows it public anyone reading the chain can see it
Not live yet. The privacy level ships in the relay, the wallet SDK and the web swap before mainnet (docs/privacy-levels.md). Until then every fill is what the public level describes: the NIGHT leg is public, the shielded side hidden.
The three levels
What you get, and what the explorer shows, for each level.
| Level | What the user gets | What the explorer shows |
|---|---|---|
public | The token they asked for, in whatever kind it has (NIGHT unshielded) | The unshielded leg: address and amount. The shielded leg: nothing |
shielded | Every leg of theirs shielded. A want of NIGHT is delivered as its shielded form (SNIGHT) once that token is registered; until then, only pairs whose tokens are both shielded | That a transaction happened; nullifiers and commitments |
compliant | shielded, plus a disclosure record of the fill encrypted to a viewing key the user holds and can hand to an auditor | As shielded |
public is the honest name for a fill of NIGHT today: the shielded side of a public fill is still hidden. Shielded delivery of NIGHT needs SNIGHT, a shielded form of NIGHT, to be listed; until it is, a shielded request for NIGHT is refused with a sentence that says so, never quietly filled in public. Shielded NIGHT cannot pay network fees: DUST comes only from unshielded NIGHT.
Rendered from docs/privacy-levels.md, last changed 27 November 2026.
The sentence you see, by direction
The swap shows exactly one of these, chosen by your trade and your level.
You receive NIGHT. NIGHT is public on Midnight: the explorer will show your NIGHT address and the amount. The USDM you pay stays hidden.
Not available for NIGHT yet. Choose a shielded pair, or receive NIGHT publicly.
As shielded, plus a disclosure record your wallet encrypts to a key you keep. Hand the key to an auditor if you need to.
The NIGHT you sell is public: your NIGHT address and the amount. The USDM you receive stays hidden.
Not available for NIGHT yet. Choose a shielded pair, or receive NIGHT publicly.
As shielded, plus a disclosure record your wallet encrypts to a key you keep. Hand the key to an auditor if you need to.
Not offered: both tokens of this pair are shielded, so the selector shows shielded and compliant only.
Nothing about this trade is visible on the explorer beyond that a transaction happened.
As shielded, plus a disclosure record your wallet encrypts to a key you keep. Hand the key to an auditor if you need to.
| Your trade | Public | Shielded | Compliant |
|---|---|---|---|
| Buy NIGHT with USDM | You receive NIGHT. NIGHT is public on Midnight: the explorer will show your NIGHT address and the amount. The USDM you pay stays hidden. | Not available for NIGHT yet. Choose a shielded pair, or receive NIGHT publicly. | As shielded, plus a disclosure record your wallet encrypts to a key you keep. Hand the key to an auditor if you need to. |
| Sell NIGHT for USDM | The NIGHT you sell is public: your NIGHT address and the amount. The USDM you receive stays hidden. | Not available for NIGHT yet. Choose a shielded pair, or receive NIGHT publicly. | As shielded, plus a disclosure record your wallet encrypts to a key you keep. Hand the key to an auditor if you need to. |
| A shielded pair (USDM ↔ a shielded token) | Not offered: the pair is shielded | Nothing about this trade is visible on the explorer beyond that a transaction happened. | As shielded, plus a disclosure record your wallet encrypts to a key you keep. Hand the key to an auditor if you need to. |
Shielded delivery of NIGHT needs SNIGHT, a shielded form of NIGHT, to be listed; until then a shielded request for NIGHT is refused with this sentence rather than quietly filled in public.
The compliant level's disclosure record is encrypted to a key only you hold. All three levels, leg by leg.
All sentences in one table
| Direction | public | shielded | compliant |
|---|---|---|---|
| Buy NIGHT with USDM | "You receive NIGHT. NIGHT is public on Midnight: the explorer will show your NIGHT address and the amount. The USDM you pay stays hidden." | "You receive SNIGHT, shielded NIGHT. The explorer shows only that a transaction happened." (or, before SNIGHT is listed: "Not available for NIGHT yet. Choose a shielded pair, or receive NIGHT publicly.") | "As shielded, plus a disclosure record your wallet encrypts to a key you keep. Hand the key to an auditor if you need to." |
| Sell NIGHT for USDM | "The NIGHT you sell is public: your NIGHT address and the amount. The USDM you receive stays hidden." | "Sell SNIGHT instead; nothing about the trade is visible." (same availability rule) | as above |
| Shielded pair (USDM ↔ tsSIT, USDM ↔ SNIGHT) | not offered: the pair is shielded; the selector shows shielded and compliant | "Nothing about this trade is visible on the explorer beyond that a transaction happened." | as above |
What the level does not change
The level constrains your own legs. It says nothing about what the relay sees (the pair, the size, the app, your IP address) or what the winning solver sees (its own leg and your receiver address). Those are in the threat model.
Compliant: a record only you can open
At the compliant level your wallet encrypts a record of the fill to a viewing key you derive and keep, labelled by period (for example a tax quarter). Hand that key to an auditor and they can read that period's fills and nothing else. If you post the record to the relay, it stores an opaque blob it cannot read. When Midnight's ledger-level viewing keys ship, the record becomes the index to on-chain disclosure.
Fees are always shielded
The protocol fee and the app fee are shielded outputs inside the settlement, paid in the pair's shielded token. Their amounts and recipients do not appear on the explorer; the relay checks them from openings the solver discloses to it.