Function zcash_note_encryption::try_note_decryption[][src]

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

Trial decryption of the full note plaintext by the recipient.

Attempts to decrypt and validate the given enc_ciphertext using the given ivk. If successful, the corresponding note and memo are returned, along with the address to which the note was sent.

Implements section 4.19.2 of the Zcash Protocol Specification.