Opcodes · criptografía · habilitado

OP_CHECKSIGVERIFY (0xad)

OP_CHECKSIG seguido de OP_VERIFY: falla a menos que la firma sea válida.

Verificado
Pila: entrada → salida
sig pubkey → ∅
Desde
Script original de Bitcoin
Costo
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.
Estado en Bitcoin
Funciona de otra manera en Bitcoin (BTC)Same opcode, but BTC's signature types and signing serialization differ.

Ejemplo

<sig> <pubkey> OP_CHECKSIGVERIFY

Recórrelo opcode por opcode en Bitauth IDE, el depurador de la VM de BCH en el navegador.

Fuentes

  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)