Description

GetSigOpCount provides a quick count of the number of signature operations in a script. a CHECKSIG operations counts for 1, and a CHECK_MULTISIG for 20. If the script fails to parse, then the count up to the point of failure is returned.

GetSigOpCount is referenced in 2 repositories

github.com/btcsuite/btcd

...