[][src]Function zcash_primitives::note_encryption::try_sapling_output_recovery

pub fn try_sapling_output_recovery<P: Parameters>(
    height: u32,
    ovk: &OutgoingViewingKey,
    cv: &ExtendedPoint,
    cmu: &Scalar,
    epk: &SubgroupPoint,
    enc_ciphertext: &[u8],
    out_ciphertext: &[u8]
) -> Option<(Note, PaymentAddress, Memo)>

Recovery of the full note plaintext by the sender.

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

Implements section 4.17.3 of the Zcash Protocol Specification.