Module note_encryption

Module note_encryption 

Source
Expand description

Implementation of in-band secret distribution for Zcash transactions.

NB: the example code is only covering the post-Canopy case.

Re-exports§

pub use crate::keys::PreparedEphemeralPublicKey;
pub use crate::keys::PreparedIncomingViewingKey;

Structs§

CompactOutputDescription
SaplingDomain

Enums§

Zip212Enforcement
The enforcement policy for ZIP 212 that should be applied when creating or decrypting Sapling outputs.

Constants§

KDF_SAPLING_PERSONALIZATION
PRF_OCK_PERSONALIZATION

Functions§

plaintext_version_is_valid
prf_ock
Sapling PRF^ock.
sapling_note_encryption
Creates a new encryption context for the given note.
try_sapling_compact_note_decryption
try_sapling_note_decryption
try_sapling_output_recovery
Recovery of the full note plaintext by the sender.
try_sapling_output_recovery_with_ock
Recovery of the full note plaintext by the sender.