Opcodes · crypto · enabled

OP_CHECKSIGVERIFY (0xad)

OP_CHECKSIG followed by OP_VERIFY: fails unless the signature is valid.

Verified
Stack in → out
sig pubkey → ∅
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). Also counted by the 2020 SigChecks limit.
Bitcoin status
Behaves differently in Bitcoin (BTC)Same opcode, but BTC's signature types and signing serialization differ.

Example

<sig> <pubkey> OP_CHECKSIGVERIFY

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-05-15 Schnorr signatures
  3. CHIP-2021-05 VM Limits: Targeted Virtual Machine Limits
  4. BCHN script interpreter (interpreter.cpp)