pub(super) fn p2sh_sigop_count(
tx: &Transaction,
spent_outputs: &[Output],
) -> u32Expand description
Returns the total number of P2SH sigops across all inputs of the transaction.
Mirrors zcashd’s GetP2SHSigOpCount():
https://github.com/zcash/zcash/blob/v6.11.0/src/main.cpp#L1191
§Panics
Callers must ensure spent_outputs.len() matches the number of transparent inputs.