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§
Enums§
- Zip212
Enforcement - 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§
- Compact
Note Ciphertext Bytes - The byte encoding of a compact Sapling note ciphertext.
- Compact
Note Plaintext Bytes - The byte encoding of a compact Sapling note plaintext.
- Note
Ciphertext Bytes - The byte encoding of an encrypted Sapling note plaintext.
- Note
Plaintext Bytes - The byte encoding of a Sapling note plaintext.