Skip to main content

Module verify_shielded_encrypted_notes

Module verify_shielded_encrypted_notes 

Source
Expand description

Module for verifying shielded encrypted notes

Structs§

VerifiedShieldedEncryptedNote
A single shielded note item recovered from a verified GetShieldedEncryptedNotes proof: the fixed-layout bytes copied out of the stored cmx || nullifier || cv_net || encrypted_note commitment-tree item.

Constants§

SHIELDED_ENCRYPTED_NOTE_LEN
On-wire size of the Orchard TransmittedNoteCiphertext with Dash’s 36-byte memo: epk(32) + enc_ciphertext(104) + out_ciphertext(80). grovedb’s commitment tree size-locks the stored ciphertext to this length, so every well-formed note item is exactly 32 + 32 + 32 + 216 = 312 bytes.