Opcodes · crypto · enabled

OP_CODESEPARATOR (0xab)

Marks a position in the script: signature checks sign only the bytecode after the last executed OP_CODESEPARATOR. OP_ACTIVEBYTECODE also starts from it.

Verified
Stack in → out
∅ → ∅
Since
Original Bitcoin script
Cost
Base instruction cost 100.
Bitcoin status
Same in Bitcoin (BTC)Tapscript changes what it commits to (BIP-342).

Example

OP_CODESEPARATOR <pubkey> OP_CHECKSIG

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. BIP-342: Validation of Taproot Scripts