[][src]Function zcash_primitives::note_encryption::try_sapling_note_decryption

pub fn try_sapling_note_decryption(
    ivk: &Fs,
    epk: &Point<Bls12, PrimeOrder>,
    cmu: &Fr,
    enc_ciphertext: &[u8]
) -> Option<(Note<Bls12>, PaymentAddress<Bls12>, Memo)>

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 Sapling note and memo are returned, along with the PaymentAddress to which the note was sent.

Implements section 4.17.2 of the Zcash Protocol Specification.