pub(crate) fn auth_digest(trans: &Transaction) -> AuthDigest {
    let alt_tx: zcash_primitives::transaction::Transaction = trans
        .try_into()
        .expect("zcash_primitives and Zebra transaction formats must be compatible");

    let digest_bytes: [u8; 32] = alt_tx
        .auth_commitment()
        .as_ref()
        .try_into()
        .expect("digest has the correct size");

    AuthDigest(digest_bytes)
}
/// Compute the authorizing data commitment of this transaction as specified
/// in [ZIP-244].
///
/// # Panics
///
/// If passed a pre-v5 transaction.
///
/// [ZIP-244]: https://zips.z.cash/zip-0244.
Compute the authorizing data commitment of this transaction as specified
in [ZIP-244].
Compute the authorizing data commitment of this transaction as specified in [ ZIP - 244 ] .
pub(crate) fn auth_digest(trans: &Transaction) -> AuthDigest {
    let alt_tx: zcash_primitives::transaction::Transaction = trans
        .try_into()
        .expect("zcash_primitives and Zebra transaction formats must be compatible");
    let digest_bytes: [u8; 32] = alt_tx
        .auth_commitment()
        .as_ref()
        .try_into()
        .expect("digest has the correct size");
    AuthDigest(digest_bytes)
}
pub ( crate ) fn auth_digest ( trans : & Transaction ) -> AuthDigest { let alt_tx : zcash_primitives :: transaction :: Transaction = trans . try_into ( ) . expect ( " " ) ; let digest_bytes : [ u8 ; 32 ] = alt_tx . auth_commitment ( ) . as_ref ( ) . try_into ( ) . expect ( " " ) ; AuthDigest ( digest_bytes ) }
Compute the authorizing data commitment of this transaction as specified
in [ZIP-244].
Compute the authorizing data commitment of this transaction as specified in [ ZIP - 244 ] .
trans
&Transaction
panics
If passed a pre-v5 transaction.


If passed a pre - v5 transaction .