ConstDecode a raw transaction into a structured object (with derived txid/wtxid).
Encode a tx (just TxData — no derived fields needed) back to raw
bytes.
Compute the txid (double-SHA256, reversed) of a raw transaction.
Compute the witness txid (wtxid) of a raw transaction.
Transaction utilities.