try_sapling_output_recovery_with_ock

Function try_sapling_output_recovery_with_ock 

Source
pub fn try_sapling_output_recovery_with_ock(
    ock: &OutgoingCipherKey,
    output: &OutputDescription<GrothProofBytes>,
    zip212_enforcement: Zip212Enforcement,
) -> Option<(Note, PaymentAddress, [u8; 512])>
Expand description

Recovery of the full note plaintext by the sender.

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

Implements part of section 4.19.3 of the Zcash Protocol Specification. For decryption using a Full Viewing Key see try_sapling_output_recovery.