类 ScriptOpCodes
- java.lang.Object
-
- io.nuls.base.script.ScriptOpCodes
-
public class ScriptOpCodes extends Object
Various constants that define the assembly-like scripting language that forms part of the Bitcoin protocol. Seeorg.bitcoinj.script.Scriptfor details. Also provides a method to convert them to a string.
-
-
字段概要
字段 修饰符和类型 字段 说明 static intOP_0static intOP_0NOTEQUALstatic intOP_1static intOP_10static intOP_11static intOP_12static intOP_13static intOP_14static intOP_15static intOP_16static intOP_1ADDstatic intOP_1NEGATEstatic intOP_1SUBstatic intOP_2static intOP_2DIVstatic intOP_2DROPstatic intOP_2DUPstatic intOP_2MULstatic intOP_2OVERstatic intOP_2ROTstatic intOP_2SWAPstatic intOP_3static intOP_3DUPstatic intOP_4static intOP_5static intOP_6static intOP_7static intOP_8static intOP_9static intOP_ABSstatic intOP_ADDstatic intOP_ANDstatic intOP_BOOLANDstatic intOP_BOOLORstatic intOP_CATstatic intOP_CHECKLOCKTIMEVERIFYCheck lock time of the block.static intOP_CHECKMULTISIGstatic intOP_CHECKMULTISIGVERIFYstatic intOP_CHECKSIGstatic intOP_CHECKSIGVERIFYstatic intOP_CODESEPARATORstatic intOP_DEPTHstatic intOP_DIVstatic intOP_DROPstatic intOP_DUPstatic intOP_ELSEstatic intOP_ENDIFstatic intOP_EQUALstatic intOP_EQUALVERIFYstatic intOP_FALSEstatic intOP_FROMALTSTACKstatic intOP_GREATERTHANstatic intOP_GREATERTHANOREQUALstatic intOP_HASH160static intOP_HASH256static intOP_IFstatic intOP_IFDUPstatic intOP_INVALIDOPCODEstatic intOP_INVERTstatic intOP_LEFTstatic intOP_LESSTHANstatic intOP_LESSTHANOREQUALstatic intOP_LSHIFTstatic intOP_MAXstatic intOP_MINstatic intOP_MODstatic intOP_MULstatic intOP_NEGATEstatic intOP_NIPstatic intOP_NOPstatic intOP_NOP1static intOP_NOP10static intOP_NOP2已过时。static intOP_NOP3static intOP_NOP4static intOP_NOP5static intOP_NOP6static intOP_NOP7static intOP_NOP8static intOP_NOP9static intOP_NOTstatic intOP_NOTIFstatic intOP_NUMEQUALstatic intOP_NUMEQUALVERIFYstatic intOP_NUMNOTEQUALstatic intOP_ORstatic intOP_OVERstatic intOP_PICKstatic intOP_PUSHDATA1static intOP_PUSHDATA2static intOP_PUSHDATA4static intOP_RESERVEDstatic intOP_RESERVED1static intOP_RESERVED2static intOP_RETURNstatic intOP_RIGHTstatic intOP_RIPEMD160static intOP_ROLLstatic intOP_ROTstatic intOP_RSHIFTstatic intOP_SHA1static intOP_SHA256static intOP_SIZEstatic intOP_SUBstatic intOP_SUBSTRstatic intOP_SWAPstatic intOP_TOALTSTACKstatic intOP_TRUEstatic intOP_TUCKstatic intOP_VERstatic intOP_VERIFstatic intOP_VERIFYstatic intOP_VERNOTIFstatic intOP_WITHINstatic intOP_XOR
-
构造器概要
构造器 构造器 说明 ScriptOpCodes()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static intgetOpCode(String opCodeName)Converts the given OpCodeName into an intstatic StringgetOpCodeName(int opcode)Converts the given OpCode into a string (eg "0", "PUSHDATA", or "NON_OP(10)")static StringgetPushDataName(int opcode)Converts the given pushdata OpCode into a string (eg "PUSHDATA2", or "PUSHDATA(23)")
-
-
-
字段详细资料
-
OP_0
public static final int OP_0
- 另请参阅:
- 常量字段值
-
OP_FALSE
public static final int OP_FALSE
- 另请参阅:
- 常量字段值
-
OP_PUSHDATA1
public static final int OP_PUSHDATA1
- 另请参阅:
- 常量字段值
-
OP_PUSHDATA2
public static final int OP_PUSHDATA2
- 另请参阅:
- 常量字段值
-
OP_PUSHDATA4
public static final int OP_PUSHDATA4
- 另请参阅:
- 常量字段值
-
OP_1NEGATE
public static final int OP_1NEGATE
- 另请参阅:
- 常量字段值
-
OP_RESERVED
public static final int OP_RESERVED
- 另请参阅:
- 常量字段值
-
OP_1
public static final int OP_1
- 另请参阅:
- 常量字段值
-
OP_TRUE
public static final int OP_TRUE
- 另请参阅:
- 常量字段值
-
OP_2
public static final int OP_2
- 另请参阅:
- 常量字段值
-
OP_3
public static final int OP_3
- 另请参阅:
- 常量字段值
-
OP_4
public static final int OP_4
- 另请参阅:
- 常量字段值
-
OP_5
public static final int OP_5
- 另请参阅:
- 常量字段值
-
OP_6
public static final int OP_6
- 另请参阅:
- 常量字段值
-
OP_7
public static final int OP_7
- 另请参阅:
- 常量字段值
-
OP_8
public static final int OP_8
- 另请参阅:
- 常量字段值
-
OP_9
public static final int OP_9
- 另请参阅:
- 常量字段值
-
OP_10
public static final int OP_10
- 另请参阅:
- 常量字段值
-
OP_11
public static final int OP_11
- 另请参阅:
- 常量字段值
-
OP_12
public static final int OP_12
- 另请参阅:
- 常量字段值
-
OP_13
public static final int OP_13
- 另请参阅:
- 常量字段值
-
OP_14
public static final int OP_14
- 另请参阅:
- 常量字段值
-
OP_15
public static final int OP_15
- 另请参阅:
- 常量字段值
-
OP_16
public static final int OP_16
- 另请参阅:
- 常量字段值
-
OP_NOP
public static final int OP_NOP
- 另请参阅:
- 常量字段值
-
OP_VER
public static final int OP_VER
- 另请参阅:
- 常量字段值
-
OP_IF
public static final int OP_IF
- 另请参阅:
- 常量字段值
-
OP_NOTIF
public static final int OP_NOTIF
- 另请参阅:
- 常量字段值
-
OP_VERIF
public static final int OP_VERIF
- 另请参阅:
- 常量字段值
-
OP_VERNOTIF
public static final int OP_VERNOTIF
- 另请参阅:
- 常量字段值
-
OP_ELSE
public static final int OP_ELSE
- 另请参阅:
- 常量字段值
-
OP_ENDIF
public static final int OP_ENDIF
- 另请参阅:
- 常量字段值
-
OP_VERIFY
public static final int OP_VERIFY
- 另请参阅:
- 常量字段值
-
OP_RETURN
public static final int OP_RETURN
- 另请参阅:
- 常量字段值
-
OP_TOALTSTACK
public static final int OP_TOALTSTACK
- 另请参阅:
- 常量字段值
-
OP_FROMALTSTACK
public static final int OP_FROMALTSTACK
- 另请参阅:
- 常量字段值
-
OP_2DROP
public static final int OP_2DROP
- 另请参阅:
- 常量字段值
-
OP_2DUP
public static final int OP_2DUP
- 另请参阅:
- 常量字段值
-
OP_3DUP
public static final int OP_3DUP
- 另请参阅:
- 常量字段值
-
OP_2OVER
public static final int OP_2OVER
- 另请参阅:
- 常量字段值
-
OP_2ROT
public static final int OP_2ROT
- 另请参阅:
- 常量字段值
-
OP_2SWAP
public static final int OP_2SWAP
- 另请参阅:
- 常量字段值
-
OP_IFDUP
public static final int OP_IFDUP
- 另请参阅:
- 常量字段值
-
OP_DEPTH
public static final int OP_DEPTH
- 另请参阅:
- 常量字段值
-
OP_DROP
public static final int OP_DROP
- 另请参阅:
- 常量字段值
-
OP_DUP
public static final int OP_DUP
- 另请参阅:
- 常量字段值
-
OP_NIP
public static final int OP_NIP
- 另请参阅:
- 常量字段值
-
OP_OVER
public static final int OP_OVER
- 另请参阅:
- 常量字段值
-
OP_PICK
public static final int OP_PICK
- 另请参阅:
- 常量字段值
-
OP_ROLL
public static final int OP_ROLL
- 另请参阅:
- 常量字段值
-
OP_ROT
public static final int OP_ROT
- 另请参阅:
- 常量字段值
-
OP_SWAP
public static final int OP_SWAP
- 另请参阅:
- 常量字段值
-
OP_TUCK
public static final int OP_TUCK
- 另请参阅:
- 常量字段值
-
OP_CAT
public static final int OP_CAT
- 另请参阅:
- 常量字段值
-
OP_SUBSTR
public static final int OP_SUBSTR
- 另请参阅:
- 常量字段值
-
OP_LEFT
public static final int OP_LEFT
- 另请参阅:
- 常量字段值
-
OP_RIGHT
public static final int OP_RIGHT
- 另请参阅:
- 常量字段值
-
OP_SIZE
public static final int OP_SIZE
- 另请参阅:
- 常量字段值
-
OP_INVERT
public static final int OP_INVERT
- 另请参阅:
- 常量字段值
-
OP_AND
public static final int OP_AND
- 另请参阅:
- 常量字段值
-
OP_OR
public static final int OP_OR
- 另请参阅:
- 常量字段值
-
OP_XOR
public static final int OP_XOR
- 另请参阅:
- 常量字段值
-
OP_EQUAL
public static final int OP_EQUAL
- 另请参阅:
- 常量字段值
-
OP_EQUALVERIFY
public static final int OP_EQUALVERIFY
- 另请参阅:
- 常量字段值
-
OP_RESERVED1
public static final int OP_RESERVED1
- 另请参阅:
- 常量字段值
-
OP_RESERVED2
public static final int OP_RESERVED2
- 另请参阅:
- 常量字段值
-
OP_1ADD
public static final int OP_1ADD
- 另请参阅:
- 常量字段值
-
OP_1SUB
public static final int OP_1SUB
- 另请参阅:
- 常量字段值
-
OP_2MUL
public static final int OP_2MUL
- 另请参阅:
- 常量字段值
-
OP_2DIV
public static final int OP_2DIV
- 另请参阅:
- 常量字段值
-
OP_NEGATE
public static final int OP_NEGATE
- 另请参阅:
- 常量字段值
-
OP_ABS
public static final int OP_ABS
- 另请参阅:
- 常量字段值
-
OP_NOT
public static final int OP_NOT
- 另请参阅:
- 常量字段值
-
OP_0NOTEQUAL
public static final int OP_0NOTEQUAL
- 另请参阅:
- 常量字段值
-
OP_ADD
public static final int OP_ADD
- 另请参阅:
- 常量字段值
-
OP_SUB
public static final int OP_SUB
- 另请参阅:
- 常量字段值
-
OP_MUL
public static final int OP_MUL
- 另请参阅:
- 常量字段值
-
OP_DIV
public static final int OP_DIV
- 另请参阅:
- 常量字段值
-
OP_MOD
public static final int OP_MOD
- 另请参阅:
- 常量字段值
-
OP_LSHIFT
public static final int OP_LSHIFT
- 另请参阅:
- 常量字段值
-
OP_RSHIFT
public static final int OP_RSHIFT
- 另请参阅:
- 常量字段值
-
OP_BOOLAND
public static final int OP_BOOLAND
- 另请参阅:
- 常量字段值
-
OP_BOOLOR
public static final int OP_BOOLOR
- 另请参阅:
- 常量字段值
-
OP_NUMEQUAL
public static final int OP_NUMEQUAL
- 另请参阅:
- 常量字段值
-
OP_NUMEQUALVERIFY
public static final int OP_NUMEQUALVERIFY
- 另请参阅:
- 常量字段值
-
OP_NUMNOTEQUAL
public static final int OP_NUMNOTEQUAL
- 另请参阅:
- 常量字段值
-
OP_LESSTHAN
public static final int OP_LESSTHAN
- 另请参阅:
- 常量字段值
-
OP_GREATERTHAN
public static final int OP_GREATERTHAN
- 另请参阅:
- 常量字段值
-
OP_LESSTHANOREQUAL
public static final int OP_LESSTHANOREQUAL
- 另请参阅:
- 常量字段值
-
OP_GREATERTHANOREQUAL
public static final int OP_GREATERTHANOREQUAL
- 另请参阅:
- 常量字段值
-
OP_MIN
public static final int OP_MIN
- 另请参阅:
- 常量字段值
-
OP_MAX
public static final int OP_MAX
- 另请参阅:
- 常量字段值
-
OP_WITHIN
public static final int OP_WITHIN
- 另请参阅:
- 常量字段值
-
OP_RIPEMD160
public static final int OP_RIPEMD160
- 另请参阅:
- 常量字段值
-
OP_SHA1
public static final int OP_SHA1
- 另请参阅:
- 常量字段值
-
OP_SHA256
public static final int OP_SHA256
- 另请参阅:
- 常量字段值
-
OP_HASH160
public static final int OP_HASH160
- 另请参阅:
- 常量字段值
-
OP_HASH256
public static final int OP_HASH256
- 另请参阅:
- 常量字段值
-
OP_CODESEPARATOR
public static final int OP_CODESEPARATOR
- 另请参阅:
- 常量字段值
-
OP_CHECKSIG
public static final int OP_CHECKSIG
- 另请参阅:
- 常量字段值
-
OP_CHECKSIGVERIFY
public static final int OP_CHECKSIGVERIFY
- 另请参阅:
- 常量字段值
-
OP_CHECKMULTISIG
public static final int OP_CHECKMULTISIG
- 另请参阅:
- 常量字段值
-
OP_CHECKMULTISIGVERIFY
public static final int OP_CHECKMULTISIGVERIFY
- 另请参阅:
- 常量字段值
-
OP_CHECKLOCKTIMEVERIFY
public static final int OP_CHECKLOCKTIMEVERIFY
Check lock time of the block. Introduced in BIP 65, replacing OP_NOP2- 另请参阅:
- 常量字段值
-
OP_NOP1
public static final int OP_NOP1
- 另请参阅:
- 常量字段值
-
OP_NOP2
@Deprecated public static final int OP_NOP2
已过时。Deprecated by BIP 65- 另请参阅:
- 常量字段值
-
OP_NOP3
public static final int OP_NOP3
- 另请参阅:
- 常量字段值
-
OP_NOP4
public static final int OP_NOP4
- 另请参阅:
- 常量字段值
-
OP_NOP5
public static final int OP_NOP5
- 另请参阅:
- 常量字段值
-
OP_NOP6
public static final int OP_NOP6
- 另请参阅:
- 常量字段值
-
OP_NOP7
public static final int OP_NOP7
- 另请参阅:
- 常量字段值
-
OP_NOP8
public static final int OP_NOP8
- 另请参阅:
- 常量字段值
-
OP_NOP9
public static final int OP_NOP9
- 另请参阅:
- 常量字段值
-
OP_NOP10
public static final int OP_NOP10
- 另请参阅:
- 常量字段值
-
OP_INVALIDOPCODE
public static final int OP_INVALIDOPCODE
- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
getOpCodeName
public static String getOpCodeName(int opcode)
Converts the given OpCode into a string (eg "0", "PUSHDATA", or "NON_OP(10)")
-
getPushDataName
public static String getPushDataName(int opcode)
Converts the given pushdata OpCode into a string (eg "PUSHDATA2", or "PUSHDATA(23)")
-
getOpCode
public static int getOpCode(String opCodeName)
Converts the given OpCodeName into an int
-
-