Package org.bitcoinj.script
Class ScriptOpCodes
java.lang.Object
org.bitcoinj.script.ScriptOpCodes
Various constants that define the assembly-like scripting language that forms part of the Bitcoin protocol.
See
Script
for details. Also provides a method to convert them to a string.-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Check lock time of the block.static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Deprecated.static final int
Deprecated.static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
Converts the given OpCodeName into an intstatic String
getOpCodeName
(int opcode) Converts the given OpCode into a string (eg "0", "PUSHDATA", or "NON_OP(10)")static String
getPushDataName
(int opcode) Converts the given pushdata OpCode into a string (eg "PUSHDATA2", or "PUSHDATA(23)")
-
Field Details
-
OP_0
public static final int OP_0- See Also:
-
OP_FALSE
public static final int OP_FALSE- See Also:
-
OP_PUSHDATA1
public static final int OP_PUSHDATA1- See Also:
-
OP_PUSHDATA2
public static final int OP_PUSHDATA2- See Also:
-
OP_PUSHDATA4
public static final int OP_PUSHDATA4- See Also:
-
OP_1NEGATE
public static final int OP_1NEGATE- See Also:
-
OP_RESERVED
public static final int OP_RESERVED- See Also:
-
OP_1
public static final int OP_1- See Also:
-
OP_TRUE
public static final int OP_TRUE- See Also:
-
OP_2
public static final int OP_2- See Also:
-
OP_3
public static final int OP_3- See Also:
-
OP_4
public static final int OP_4- See Also:
-
OP_5
public static final int OP_5- See Also:
-
OP_6
public static final int OP_6- See Also:
-
OP_7
public static final int OP_7- See Also:
-
OP_8
public static final int OP_8- See Also:
-
OP_9
public static final int OP_9- See Also:
-
OP_10
public static final int OP_10- See Also:
-
OP_11
public static final int OP_11- See Also:
-
OP_12
public static final int OP_12- See Also:
-
OP_13
public static final int OP_13- See Also:
-
OP_14
public static final int OP_14- See Also:
-
OP_15
public static final int OP_15- See Also:
-
OP_16
public static final int OP_16- See Also:
-
OP_NOP
public static final int OP_NOP- See Also:
-
OP_VER
public static final int OP_VER- See Also:
-
OP_IF
public static final int OP_IF- See Also:
-
OP_NOTIF
public static final int OP_NOTIF- See Also:
-
OP_VERIF
public static final int OP_VERIF- See Also:
-
OP_VERNOTIF
public static final int OP_VERNOTIF- See Also:
-
OP_ELSE
public static final int OP_ELSE- See Also:
-
OP_ENDIF
public static final int OP_ENDIF- See Also:
-
OP_VERIFY
public static final int OP_VERIFY- See Also:
-
OP_RETURN
public static final int OP_RETURN- See Also:
-
OP_TOALTSTACK
public static final int OP_TOALTSTACK- See Also:
-
OP_FROMALTSTACK
public static final int OP_FROMALTSTACK- See Also:
-
OP_2DROP
public static final int OP_2DROP- See Also:
-
OP_2DUP
public static final int OP_2DUP- See Also:
-
OP_3DUP
public static final int OP_3DUP- See Also:
-
OP_2OVER
public static final int OP_2OVER- See Also:
-
OP_2ROT
public static final int OP_2ROT- See Also:
-
OP_2SWAP
public static final int OP_2SWAP- See Also:
-
OP_IFDUP
public static final int OP_IFDUP- See Also:
-
OP_DEPTH
public static final int OP_DEPTH- See Also:
-
OP_DROP
public static final int OP_DROP- See Also:
-
OP_DUP
public static final int OP_DUP- See Also:
-
OP_NIP
public static final int OP_NIP- See Also:
-
OP_OVER
public static final int OP_OVER- See Also:
-
OP_PICK
public static final int OP_PICK- See Also:
-
OP_ROLL
public static final int OP_ROLL- See Also:
-
OP_ROT
public static final int OP_ROT- See Also:
-
OP_SWAP
public static final int OP_SWAP- See Also:
-
OP_TUCK
public static final int OP_TUCK- See Also:
-
OP_CAT
public static final int OP_CAT- See Also:
-
OP_SUBSTR
public static final int OP_SUBSTR- See Also:
-
OP_LEFT
public static final int OP_LEFT- See Also:
-
OP_RIGHT
public static final int OP_RIGHT- See Also:
-
OP_SIZE
public static final int OP_SIZE- See Also:
-
OP_INVERT
public static final int OP_INVERT- See Also:
-
OP_AND
public static final int OP_AND- See Also:
-
OP_OR
public static final int OP_OR- See Also:
-
OP_XOR
public static final int OP_XOR- See Also:
-
OP_EQUAL
public static final int OP_EQUAL- See Also:
-
OP_EQUALVERIFY
public static final int OP_EQUALVERIFY- See Also:
-
OP_RESERVED1
public static final int OP_RESERVED1- See Also:
-
OP_RESERVED2
public static final int OP_RESERVED2- See Also:
-
OP_1ADD
public static final int OP_1ADD- See Also:
-
OP_1SUB
public static final int OP_1SUB- See Also:
-
OP_2MUL
public static final int OP_2MUL- See Also:
-
OP_2DIV
public static final int OP_2DIV- See Also:
-
OP_NEGATE
public static final int OP_NEGATE- See Also:
-
OP_ABS
public static final int OP_ABS- See Also:
-
OP_NOT
public static final int OP_NOT- See Also:
-
OP_0NOTEQUAL
public static final int OP_0NOTEQUAL- See Also:
-
OP_ADD
public static final int OP_ADD- See Also:
-
OP_SUB
public static final int OP_SUB- See Also:
-
OP_MUL
public static final int OP_MUL- See Also:
-
OP_DIV
public static final int OP_DIV- See Also:
-
OP_MOD
public static final int OP_MOD- See Also:
-
OP_LSHIFT
public static final int OP_LSHIFT- See Also:
-
OP_RSHIFT
public static final int OP_RSHIFT- See Also:
-
OP_BOOLAND
public static final int OP_BOOLAND- See Also:
-
OP_BOOLOR
public static final int OP_BOOLOR- See Also:
-
OP_NUMEQUAL
public static final int OP_NUMEQUAL- See Also:
-
OP_NUMEQUALVERIFY
public static final int OP_NUMEQUALVERIFY- See Also:
-
OP_NUMNOTEQUAL
public static final int OP_NUMNOTEQUAL- See Also:
-
OP_LESSTHAN
public static final int OP_LESSTHAN- See Also:
-
OP_GREATERTHAN
public static final int OP_GREATERTHAN- See Also:
-
OP_LESSTHANOREQUAL
public static final int OP_LESSTHANOREQUAL- See Also:
-
OP_GREATERTHANOREQUAL
public static final int OP_GREATERTHANOREQUAL- See Also:
-
OP_MIN
public static final int OP_MIN- See Also:
-
OP_MAX
public static final int OP_MAX- See Also:
-
OP_WITHIN
public static final int OP_WITHIN- See Also:
-
OP_RIPEMD160
public static final int OP_RIPEMD160- See Also:
-
OP_SHA1
public static final int OP_SHA1- See Also:
-
OP_SHA256
public static final int OP_SHA256- See Also:
-
OP_HASH160
public static final int OP_HASH160- See Also:
-
OP_HASH256
public static final int OP_HASH256- See Also:
-
OP_CODESEPARATOR
public static final int OP_CODESEPARATOR- See Also:
-
OP_CHECKSIG
public static final int OP_CHECKSIG- See Also:
-
OP_CHECKSIGVERIFY
public static final int OP_CHECKSIGVERIFY- See Also:
-
OP_CHECKMULTISIG
public static final int OP_CHECKMULTISIG- See Also:
-
OP_CHECKMULTISIGVERIFY
public static final int OP_CHECKMULTISIGVERIFY- See Also:
-
OP_CHECKLOCKTIMEVERIFY
public static final int OP_CHECKLOCKTIMEVERIFYCheck lock time of the block. Introduced in BIP 65, replacing OP_NOP2- See Also:
-
OP_CHECKSEQUENCEVERIFY
public static final int OP_CHECKSEQUENCEVERIFY- See Also:
-
OP_NOP1
public static final int OP_NOP1- See Also:
-
OP_NOP2
Deprecated.Deprecated by BIP 65- See Also:
-
OP_NOP3
Deprecated.Deprecated by BIP 112- See Also:
-
OP_NOP4
public static final int OP_NOP4- See Also:
-
OP_NOP5
public static final int OP_NOP5- See Also:
-
OP_NOP6
public static final int OP_NOP6- See Also:
-
OP_NOP7
public static final int OP_NOP7- See Also:
-
OP_NOP8
public static final int OP_NOP8- See Also:
-
OP_NOP9
public static final int OP_NOP9- See Also:
-
OP_NOP10
public static final int OP_NOP10- See Also:
-
OP_INVALIDOPCODE
public static final int OP_INVALIDOPCODE- See Also:
-
-
Constructor Details
-
ScriptOpCodes
public ScriptOpCodes()
-
-
Method Details
-
getOpCodeName
Converts the given OpCode into a string (eg "0", "PUSHDATA", or "NON_OP(10)") -
getPushDataName
Converts the given pushdata OpCode into a string (eg "PUSHDATA2", or "PUSHDATA(23)") -
getOpCode
Converts the given OpCodeName into an int
-