[−][src]Function zcash_primitives::note_encryption::try_sapling_output_recovery
pub fn try_sapling_output_recovery(
ovk: &OutgoingViewingKey,
cv: &Point<Bls12, Unknown>,
cmu: &Fr,
epk: &Point<Bls12, PrimeOrder>,
enc_ciphertext: &[u8],
out_ciphertext: &[u8]
) -> Option<(Note<Bls12>, PaymentAddress<Bls12>, 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.