Module BSV::Script::Opcodes ¶
All Bitcoin script opcodes as integer constants.
Includes data push operations, flow control, stack manipulation, splice, bitwise, arithmetic, and cryptographic opcodes. Also provides {.name_for} for reverse lookup (opcode byte → name).
Constants¶
NAME ¶
Reverse lookup: opcode byte → name string. Sorted so canonical names (OP_0, OP_1) win over aliases (OP_FALSE, OP_TRUE) regardless of Module#constants enumeration order.
OP_0 ¶
Push value
OP_0NOTEQUAL ¶
Not documented.
OP_1 ¶
Not documented.
OP_10 ¶
Not documented.
OP_11 ¶
Not documented.
OP_12 ¶
Not documented.
OP_13 ¶
Not documented.
OP_14 ¶
Not documented.
OP_15 ¶
Not documented.
OP_16 ¶
Not documented.
OP_1ADD ¶
Arithmetic
OP_1NEGATE ¶
Not documented.
OP_1SUB ¶
Not documented.
OP_2 ¶
Not documented.
OP_2DIV ¶
Not documented.
OP_2DROP ¶
Not documented.
OP_2DUP ¶
Not documented.
OP_2MUL ¶
Not documented.
OP_2OVER ¶
Not documented.
OP_2ROT ¶
Not documented.
OP_2SWAP ¶
Not documented.
OP_3 ¶
Not documented.
OP_3DUP ¶
Not documented.
OP_4 ¶
Not documented.
OP_5 ¶
Not documented.
OP_6 ¶
Not documented.
OP_7 ¶
Not documented.
OP_8 ¶
Not documented.
OP_9 ¶
Not documented.
OP_ABS ¶
Not documented.
OP_ADD ¶
Not documented.
OP_AND ¶
Not documented.
OP_BIN2NUM ¶
Not documented.
OP_BOOLAND ¶
Not documented.
OP_BOOLOR ¶
Not documented.
OP_CAT ¶
Splice
OP_CHECKLOCKTIMEVERIFY ¶
Not documented.
OP_CHECKMULTISIG ¶
Not documented.
OP_CHECKMULTISIGVERIFY ¶
Not documented.
OP_CHECKSEQUENCEVERIFY ¶
Not documented.
OP_CHECKSIG ¶
Not documented.
OP_CHECKSIGVERIFY ¶
Not documented.
OP_CODESEPARATOR ¶
Not documented.
OP_DEPTH ¶
Not documented.
OP_DIV ¶
Not documented.
OP_DROP ¶
Not documented.
OP_DUP ¶
Not documented.
OP_ELSE ¶
Not documented.
OP_ENDIF ¶
Not documented.
OP_EQUAL ¶
Not documented.
OP_EQUALVERIFY ¶
Not documented.
OP_FALSE ¶
Not documented.
OP_FROMALTSTACK ¶
Not documented.
OP_GREATERTHAN ¶
Not documented.
OP_GREATERTHANOREQUAL ¶
Not documented.
OP_HASH160 ¶
Not documented.
OP_HASH256 ¶
Not documented.
OP_IF ¶
Not documented.
OP_IFDUP ¶
Not documented.
OP_INVALIDOPCODE ¶
Not documented.
OP_INVERT ¶
Bitwise logic
OP_LESSTHAN ¶
Not documented.
OP_LESSTHANOREQUAL ¶
Not documented.
OP_LSHIFT ¶
Not documented.
OP_MAX ¶
Not documented.
OP_MIN ¶
Not documented.
OP_MOD ¶
Not documented.
OP_MUL ¶
Not documented.
OP_NEGATE ¶
Not documented.
OP_NIP ¶
Not documented.
OP_NOP ¶
Flow control
OP_NOP1 ¶
Expansion
OP_NOP10 ¶
Not documented.
OP_NOP4 ¶
Not documented.
OP_NOP5 ¶
Not documented.
OP_NOP6 ¶
Not documented.
OP_NOP7 ¶
Not documented.
OP_NOP8 ¶
Not documented.
OP_NOP9 ¶
Not documented.
OP_NOT ¶
Not documented.
OP_NOTIF ¶
Not documented.
OP_NUM2BIN ¶
Not documented.
OP_NUMEQUAL ¶
Not documented.
OP_NUMEQUALVERIFY ¶
Not documented.
OP_NUMNOTEQUAL ¶
Not documented.
OP_OR ¶
Not documented.
OP_OVER ¶
Not documented.
OP_PICK ¶
Not documented.
OP_PUBKEY ¶
Not documented.
OP_PUBKEYHASH ¶
Pseudo-words (not used in scripts)
OP_PUSHDATA1 ¶
Not documented.
OP_PUSHDATA2 ¶
Not documented.
OP_PUSHDATA4 ¶
Not documented.
OP_RESERVED ¶
Not documented.
OP_RESERVED1 ¶
Not documented.
OP_RESERVED2 ¶
Not documented.
OP_RETURN ¶
Not documented.
OP_RIPEMD160 ¶
Crypto
OP_ROLL ¶
Not documented.
OP_ROT ¶
Not documented.
OP_RSHIFT ¶
Not documented.
OP_SHA1 ¶
Not documented.
OP_SHA256 ¶
Not documented.
OP_SIZE ¶
Not documented.
OP_SPLIT ¶
Not documented.
OP_SUB ¶
Not documented.
OP_SWAP ¶
Not documented.
OP_TOALTSTACK ¶
Stack
OP_TRUE ¶
Not documented.
OP_TUCK ¶
Not documented.
OP_VER ¶
Not documented.
OP_VERIF ¶
Not documented.
OP_VERIFY ¶
Not documented.
OP_VERNOTIF ¶
Not documented.
OP_WITHIN ¶
Not documented.
OP_XOR ¶
Not documented.
Public Class Methods¶
name_for(opcode) ¶
Look up the canonical name for an opcode byte. - @param opcode [Integer] the opcode byte value - @return [String, nil] the opcode name (e.g. +"OP_DUP"+), or +nil+ if unknown