Function zcash_note_encryption::try_compact_note_decryption[][src]

pub fn try_compact_note_decryption<D: Domain, Output: ShieldedOutput<D>>(
    domain: &D,
    ivk: &D::IncomingViewingKey,
    output: &Output
) -> Option<(D::Note, D::Recipient)>
Expand description

Trial decryption of the compact note plaintext by the recipient for light clients.

Attempts to decrypt and validate the first 52 bytes of enc_ciphertext using the given ivk. If successful, the corresponding note is returned, along with the address to which the note was sent.

Implements the procedure specified in ZIP 307.