fn sighash_inner(
precomputed_tx_data: &PrecomputedTxData,
sighash_type: SighashType,
input_index_script_code: Option<(usize, Vec<u8>)>,
) -> Result<SigHash, SighashError>Expand description
Internal sighash computation that surfaces precondition violations through
Result instead of spreading .expect() calls across multiple sites.
All callers in zebra-chain unwrap the returned Result at the public
boundary, but funnelling the error variants through one type makes it
obvious which preconditions each call site relies on.