Skip to main content

to_txid

Function to_txid 

Source
pub fn to_txid(
    txversion: TxVersion,
    consensus_branch_id: BranchId,
    digests: &Zip244Digests<Hash>,
) -> Option<TxId>
Expand description

Combines transaction component digests into a transaction ID.

Returns None if txversion is incompatible with digests.

V6 and later transactions include the Ironwood bundle digest as a separate Orchard-shaped digest using Ironwood personalization. If any shielded bundle digest is absent, this substitutes the protocol-defined empty bundle digest for that pool.