Skip to main content

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§

COMPACT_NOTE_SIZE
The size of a compact note plaintext.
ENC_CIPHERTEXT_SIZE
The size of an encrypted Sapling note plaintext.
KDF_SAPLING_PERSONALIZATION
NOTE_PLAINTEXT_SIZE
The size of a Sapling note plaintext.
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.

Type Aliases§

CompactNoteCiphertextBytes
The byte encoding of a compact Sapling note ciphertext.
CompactNotePlaintextBytes
The byte encoding of a compact Sapling note plaintext.
NoteCiphertextBytes
The byte encoding of an encrypted Sapling note plaintext.
NotePlaintextBytes
The byte encoding of a Sapling note plaintext.