[−][src]Function zcash_primitives::note_encryption::try_sapling_compact_note_decryption
pub fn try_sapling_compact_note_decryption(
ivk: &Fs,
epk: &Point<Bls12, PrimeOrder>,
cmu: &Fr,
enc_ciphertext: &[u8]
) -> Option<(Note<Bls12>, PaymentAddress<Bls12>)>
Trial decryption of the compact note plaintext by the recipient for light clients.
Attempts to decrypt and validate the first 52 bytes of enc_ciphertext
using the
given ivk
. If successful, the corresponding Sapling note is returned, along with the
PaymentAddress
to which the note was sent.
Implements the procedure specified in ZIP 307
.