What a private transaction reveals
A private transaction hides what happens inside private actors, not everything. Each section below is a published part, from ProvenExecution (lee/state_machine/core/src/circuit_io.rs) or the message around it, and what an observer learns from it.
The boundary
The list of messages that crossed between private and public actors, all in the clear. For each crossing an observer sees:
- the destination actor;
- the sender, at the address it presented;
- the full message bytes;
- the grants and PDA seeds that came with it.
This is the main leak, by design: the sequencer runs the public handler, so it must see the message.
You control the sender address: a private sender can present a blinded address, so the public side sees a pseudonym, not the account.
Rule of thumb: anything a private actor says to a public actor is public. Only who said it can be hidden.
The public context
Published in full: the public actors the transaction declares, the accounts it authorizes, which AsyncMessages it asked to deliver in the transaction, and, when the root is public, the private actors it holds grants over, at the addresses they presented. An observer learns which public actors the transaction was prepared to touch, even ones never reached.
The public root
Published if it targets a public actor, not if it targets a private one.
Private actions
For each private account the transaction touched, one entry:
- a nullifier, which marks an old version as spent;
- a commitment to the new version;
- an encrypted note with the new contents.
None of the three names an account or links to earlier entries. Each action also carries the commitment-tree root it was proven against, which shows roughly when the proof was built.
The reference wallet pads every private transaction up to seven private actions and every note to at least 512 bytes (lez/wallet/src/account_manager.rs); a note for a larger account ships at its own length. For transactions it builds, an observer cannot tell one private action from seven. Eight is the zone’s hard cap (MAX_PRIVATE_ACTIONS in lez/programs/fee/core/src/market.rs, enforced in lez/chain_state/src/classify.rs), so a count of eight is the only one that shows as itself. The count covers more than the accounts touched: a message being collected, any pending credits the wallet claimed alongside, and a fee payer brought in from outside the transaction.
A proven fee carries a fallback when the payer’s balance before the transaction covers it alone, so its presence shows the payer held at least the public reserve. The fallback repeats the payer’s nullifier, which picks out the payer’s action within the transaction but links nothing across transactions (FeeFallback, lee/state_machine/core/src/circuit_io.rs).
Sealed async messages
A stored message sent by a private actor is published as a commitment and an encrypted note. Sender, destination and contents are hidden. An observer learns that this transaction sent a sealed message, and its padded size.
Clear publications
A stored async message from a private actor is published sealed or in the clear, at the sender’s choice; one from a public actor is always in the clear. A private sender that publishes in the clear can pay an address with a recovery binding without holding the recipient’s viewing keys, at the cost of publishing the body in full: destination, contents, and from as the sender presented it. The reference wallet presents a fresh blinded alias there, hiding the sender’s canonical address. The alias is fresh per message except for the fee payer, which keeps one alias per transaction, so a sender that also pays the fee is linked to the fee payment. Settlement only requires that the destination is bound, on chain or by a recovery binding in the same transaction (lee/state_machine/src/validated_state_diff/mod.rs).
There is no CLI flag or FFI call for it, and the wallet never picks clear on its own: async_destinations only seals or adds recovery bindings. A wallet library caller requests it, through NativeTokenTransfer::transfer_clear or by listing the message in AsyncDelivery::clear_messages (lez/wallet/src/lib.rs).
When a public account pays a private one, everyone sees the amount and the destination address. Paid at its account id, the payment publishes that id. Paid at a fresh blinded address, it does not, but every payment to that address is linked. Either destination needs a recovery binding when the payment is stored for later.
Recovery bindings
A newly registered receive address is published with its encrypted note. An observer learns that an address was registered, and by which transaction.
Validity windows
Published. A tight window narrows when the transaction was built and can hint at what it does (a deadline, a vote period).
Program claims
A disclosed claim names the program and its image. An undisclosed claim only says “some immutable program”, but a private actor that messages a public one still shows its program as the sender’s. See Program identity.
The native token and the program loader run as protocol code and are never claimed (lee/privacy_preserving_circuit/src/main.rs), and the reference prover claims only the programs a proof ran (lee/state_machine/src/privacy_preserving_transaction/circuit/mod.rs). So a wallet-built proof with no claims ran only protocol code or a shadow program, which in practice marks a native send or collection. A shadow program is never deployed, and the proof publishes no claim for it.
Signatures and nonces
A public account authorized by signature has its id and nonce published, which links it to everything else the transaction shows.
What is not published
- The contents and ids of private accounts.
- Messages between private actors that were delivered inside the transaction.
- The inputs and responses of private handlers.
- Events emitted by private handlers, which are dropped.
Metadata outside the transaction
- Timing. When a transaction lands, and how it correlates with others.
- Network. Who submitted it, unless the user takes care.
- Patterns. A pseudonym used twice is linkable to itself.
- Fees. A private transaction pays either through a reserve proven inside itself, which crosses to the fee inbox, or through a fee declaration by one of its public signers, which links that signer to the transaction as any signature does (
lez/chain_state/src/classify.rs). The reserve amount is public. The payer is that crossing’s sender, presented like any boundary sender: blinded by default, canonical if the prover chooses. The reserve is an upper bound, not the fee, since a surplus is refunded (Private fees). The refund target is published: by default the payer’s blinded alias, or a public account the prover names (--refund-toin the wallet), which links that account to the transaction.
Worked example: a private voter
Dana holds a ballot in a private actor and votes in a public election.
| Field | What an observer sees |
|---|---|
| Boundary | one message to the public tally: Vote { proposal: 7, choice: Yes }, from a blinded address of the voting program |
| Private actions | seven entries that name no account |
| Program claim | the voting program, disclosed |
| Signatures | none |
They learn that a valid ballot voted Yes on proposal 7, not that it was Dana’s.
Worked example: a public salary to a private employee
A public company account sends a native credit of 3,000 to an employee’s blinded address as an async message.
| Field | What an observer sees |
|---|---|
| The public transaction | the company’s account, the amount, the destination address |
| The publication | the same, stored |
| Later, a private transaction | seven entries that name no account; only timing ties it to the publication |
They learn that the company paid 3,000 to an address, not who owns it, or when or whether it was collected. To hide the amount too, the company pays from a private account, which seals the message.