try_note_decryption

Function try_note_decryption 

Source
pub fn try_note_decryption<D: Domain, Output: ShieldedOutput<D, ENC_CIPHERTEXT_SIZE>>(
    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 shielded output 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.