zebra_chain::primitives::zcash_note_encryption

Function decrypts_successfully

source
pub fn decrypts_successfully(
    transaction: &Transaction,
    network: &Network,
    height: Height,
) -> bool
Expand description

Returns true if all Sapling or Orchard outputs, if any, decrypt successfully with an all-zeroes outgoing viewing key.

§Panics

If passed a network/height without matching consensus branch ID (pre-Overwinter), since librustzcash won’t be able to parse it.