Opcodes · crypto · enabled

OP_CHECKMULTISIGVERIFY (0xaf)

OP_CHECKMULTISIG followed by OP_VERIFY.

Verified
Stack in → out
dummy sig… m pubkey… n → ∅
Since
Original Bitcoin script
Cost
Base instruction cost 101 (including the 1-byte true result it pushes and then pops) plus 26,000 per signature check, plus hashing cost for the signing serialization (2025 VM limits). Schnorr mode counts one check per signature (M). ECDSA mode counts one per public key (N), or none if every signature is empty. Also counted by the 2020 SigChecks limit.
Bitcoin status
Behaves differently in Bitcoin (BTC)Disabled in BTC Tapscript (BIP-342); no Schnorr mode.

Example

OP_0 <sigA> <sigB> OP_2 <pkA> <pkB> <pkC> OP_3 OP_CHECKMULTISIGVERIFY

Step through it opcode by opcode in Bitauth IDE, the in-browser BCH VM debugger.

Sources

  1. Libauth BCH_2023_05 opcodes (bch-2023-opcodes.ts)
  2. BCHN upgrade specs: 2019-11-15 Schnorr multisig
  3. CHIP-2021-05 VM Limits: Targeted Virtual Machine Limits
  4. BIP-342: Validation of Taproot Scripts
  5. BCHN script interpreter (interpreter.cpp)