try_compact_note_decryption

Function try_compact_note_decryption 

Source
pub fn try_compact_note_decryption<D: Domain, Output: ShieldedOutput<D, COMPACT_NOTE_SIZE>>(
    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 given compact shielded output 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.