Edit this page on GitHub (opens in a new tab)
An outgoing viewing key (OVK) is a 32-byte value used only to encrypt the outgoing ciphertext of a shielded output. It lets a party recover the note plaintext that was sent (recipient address, value, and memo) without the ability to spend funds or see incoming notes.
The recipient always decrypts the incoming note with their own incoming viewing key. The choice of OVK does not change what the recipient sees. There is no standard encoding for a raw OVK; it is simply 32 bytes.
zcash_client_backend; almost every wallet today uses only the default Sender policy.Wallets built on zcash_client_backend select an OvkPolicy when they build a transaction:
| Policy | Outgoing ciphertexts | Who can later recover the outgoing plaintext |
|---|---|---|
| Sender (default) | Encrypted to the account’s normal OVK | The sending account’s Unified Full Viewing Key |
| Custom | Encrypted to the key(s) you supply | Whoever holds the supplied key(s) |
| Discard | No OVK is used (ovk = ⊥) | No one (not even the sender) |
A convenience constructor creates a Custom policy from a single 32-byte value so that both the external and internal OVK are the same key.

See the OvkPolicy documentation and ZIP 310.
Sender is ordinary wallet behavior. After the transaction is mined, anyone holding the account’s UFVK can decrypt the outgoing ciphertexts and recover the recipient addresses, amounts, and memos.
Custom lets you hand a third party (auditor, payment processor, receipt system, or separate device) the ability to decrypt specific outgoing payments without giving them the full viewing key. You can also use an ephemeral key that you throw away after the transaction, or use different keys for different counterparties so that no single key sees every outgoing payment.
Discard means the sending wallet cannot recover the outgoing plaintext from the chain. This is useful when you want to minimize what is recoverable if the UFVK is later compromised, or when you deliberately do not want an on-chain record that the account’s OVK can open.
Even when Discard or a custom OVK is used, a holder of the account’s UFVK can still:
What is not visible is the individual recipient addresses, the split of the amount, and the memos. The WalletWrite documentation warns that data about transactions created under Discard (or a random custom OVK) is not recoverable from chain data if the local record is lost.
OvkPolicy only controls recovery of the outgoing plaintext. It does not hide spends or net amounts from the account’s own UFVK.
The only reliable way to keep an amount from being visible to a particular UFVK is to ensure the notes that carried that amount never belonged to the account that UFVK controls:
A UFVK is per-account. Notes that never lived in that account never appear in its balance or outflow totals.
Almost every production wallet uses only the default Sender policy, so full outgoing history is recoverable from the UFVK. The other two policies exist in the library but are rarely exposed in user interfaces.
Possible future options include: