pub fn count_script_sigops(script: &[u8]) -> u32
Count HSD witness sigops without executing the script. A malformed trailing push terminates scanning after the valid prefix, matching HSD.