Skip to main content

count_taproot

Function count_taproot 

Source
pub const fn count_taproot(_script: &Script, _witness: &[Vec<u8>]) -> u32
Expand description

Counts taproot sigops under BIP342’s per-input budget model.

Taproot does not contribute to the legacy per-block sigop cost. Tapscript’s OP_CHECKSIG and OP_CHECKSIGADD budget is enforced per input by the delegated interpreter, so this block-level counter returns zero.