Skip to main content

p2sh_input_sigop_count

Function p2sh_input_sigop_count 

Source
pub(crate) fn p2sh_input_sigop_count(
    input: &Input,
    spent_output: &Output,
) -> u32
Expand description

Returns the P2SH sigop count for a single input.

Returns 0 for non-P2SH inputs, coinbase inputs, and P2SH inputs where no redeem script can be extracted from the scriptSig.