| Enum Constant and Description |
|---|
APPCALL
Reads a script hash and executes the corresponding contract.
|
CALL
Current context is copied to the invocation stack.
|
CHECKMULTISIG
A set of n public keys (an array or value n followed by n pubkeys) is validated
against a set of m signatures (an array or value m followed by m signatures).
|
CHECKSIG
The publickey and signature are taken from main stack.
|
HASH160
The input is hashed using Hash160: first with SHA-256 and then with RIPEMD-160.
|
HASH256
The input is hashed using Hash256: twice with SHA-256.
|
JMP
Reads a 2-byte value n and a jump is performed to relative position n-3.
|
JMPIF
A boolean value b is taken from main stack and reads a 2-byte value n,
if b is True then a jump is performed to relative position n-3.
|
JMPIFNOT
A boolean value b is taken from main stack and reads a 2-byte value n,
if b is False then a jump is performed to relative position n-3.
|
NOP
No operation.
|
PACK
A value n is taken from top of main stack.
|
PUSH0
An empty array of bytes is pushed onto the stack.
|
PUSH1
The number 1 is pushed onto the stack.
|
PUSH10
The number 10 is pushed onto the stack.
|
PUSH11
The number 11 is pushed onto the stack.
|
PUSH12
The number 12 is pushed onto the stack.
|
PUSH13
The number 13 is pushed onto the stack.
|
PUSH14
The number 14 is pushed onto the stack.
|
PUSH15
The number 15 is pushed onto the stack.
|
PUSH16
The number 16 is pushed onto the stack.
|
PUSH2
The number 2 is pushed onto the stack.
|
PUSH3
The number 3 is pushed onto the stack.
|
PUSH4
The number 4 is pushed onto the stack.
|
PUSH5
The number 5 is pushed onto the stack.
|
PUSH6
The number 6 is pushed onto the stack.
|
PUSH7
The number 7 is pushed onto the stack.
|
PUSH8
The number 8 is pushed onto the stack.
|
PUSH9
The number 9 is pushed onto the stack.
|
PUSHBYTES1
0x01-0x4B The next opcode bytes is data to be pushed onto the stack.
|
PUSHBYTES33 |
PUSHBYTES64 |
PUSHBYTES75 |
PUSHDATA1
The next byte contains the number of bytes to be pushed onto the stack.
|
PUSHDATA2
The next two bytes contain the number of bytes to be pushed onto the stack.
|
PUSHDATA4
The next four bytes contain the number of bytes to be pushed onto the stack.
|
PUSHF |
PUSHM1
The number -1 is pushed onto the stack.
|
PUSHT |
RET
Stops the execution if invocation stack is empty.
|
SHA1
The input is hashed using SHA-1.
|
SHA256
The input is hashed using SHA-256.
|
SYSCALL
Reads a string and executes the corresponding operation.
|
TAILCALL
Reads a script hash and executes the corresponding contract.
|
VERIFY
The publickey, signature and message are taken from main stack.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
getValue() |
static java.lang.String |
toHexString(OpCode opCode) |
java.lang.String |
toString() |
static OpCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OpCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OpCode PUSH0
An empty array of bytes is pushed onto the stack.
public static final OpCode PUSHF
public static final OpCode PUSHBYTES1
0x01-0x4B The next opcode bytes is data to be pushed onto the stack.
public static final OpCode PUSHBYTES33
public static final OpCode PUSHBYTES64
public static final OpCode PUSHBYTES75
public static final OpCode PUSHDATA1
The next byte contains the number of bytes to be pushed onto the stack.
public static final OpCode PUSHDATA2
The next two bytes contain the number of bytes to be pushed onto the stack.
public static final OpCode PUSHDATA4
The next four bytes contain the number of bytes to be pushed onto the stack.
public static final OpCode PUSHM1
The number -1 is pushed onto the stack.
public static final OpCode PUSH1
The number 1 is pushed onto the stack.
public static final OpCode PUSHT
public static final OpCode PUSH2
The number 2 is pushed onto the stack.
public static final OpCode PUSH3
The number 3 is pushed onto the stack.
public static final OpCode PUSH4
The number 4 is pushed onto the stack.
public static final OpCode PUSH5
The number 5 is pushed onto the stack.
public static final OpCode PUSH6
The number 6 is pushed onto the stack.
public static final OpCode PUSH7
The number 7 is pushed onto the stack.
public static final OpCode PUSH8
The number 8 is pushed onto the stack.
public static final OpCode PUSH9
The number 9 is pushed onto the stack.
public static final OpCode PUSH10
The number 10 is pushed onto the stack.
public static final OpCode PUSH11
The number 11 is pushed onto the stack.
public static final OpCode PUSH12
The number 12 is pushed onto the stack.
public static final OpCode PUSH13
The number 13 is pushed onto the stack.
public static final OpCode PUSH14
The number 14 is pushed onto the stack.
public static final OpCode PUSH15
The number 15 is pushed onto the stack.
public static final OpCode PUSH16
The number 16 is pushed onto the stack.
public static final OpCode NOP
No operation. Nothing is done.
public static final OpCode JMP
Reads a 2-byte value n and a jump is performed to relative position n-3.
public static final OpCode JMPIF
A boolean value b is taken from main stack and reads a 2-byte value n, if b is True then a jump is performed to relative position n-3.
public static final OpCode JMPIFNOT
A boolean value b is taken from main stack and reads a 2-byte value n, if b is False then a jump is performed to relative position n-3.
public static final OpCode CALL
Current context is copied to the invocation stack. Reads a 2-byte value n and a jump is performed to relative position n-3.
public static final OpCode RET
Stops the execution if invocation stack is empty.
public static final OpCode APPCALL
Reads a script hash and executes the corresponding contract. If script hash is zero, performs dynamic invoke by taking script hash from main stack.
public static final OpCode SYSCALL
Reads a string and executes the corresponding operation.
public static final OpCode TAILCALL
Reads a script hash and executes the corresponding contract. If script hash is zero, performs dynamic invoke by taking script hash from main stack. Disposes the top item on invocation stack.
public static final OpCode SHA1
The input is hashed using SHA-1.
public static final OpCode SHA256
The input is hashed using SHA-256.
public static final OpCode HASH160
The input is hashed using Hash160: first with SHA-256 and then with RIPEMD-160.
public static final OpCode HASH256
The input is hashed using Hash256: twice with SHA-256.
public static final OpCode CHECKSIG
The publickey and signature are taken from main stack.
Verifies if transaction was signed by given publickey and a boolean output is put on top of the main stack.
public static final OpCode VERIFY
The publickey, signature and message are taken from main stack.
Verifies if given message was signed by given publickey and a boolean output is put on top of the main stack.
public static final OpCode CHECKMULTISIG
A set of n public keys (an array or value n followed by n pubkeys) is validated against a set of m signatures (an array or value m followed by m signatures).
Verify transaction as multisig and a boolean output is put on top of the main stack.
public static final OpCode PACK
A value n is taken from top of main stack. The next n items on main stack are removed, put inside n-sized array and this array is put on top of the main stack.
public static OpCode[] values()
for (OpCode c : OpCode.values()) System.out.println(c);
public static OpCode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic byte getValue()
public static java.lang.String toHexString(OpCode opCode)
public java.lang.String toString()
toString in class java.lang.Enum<OpCode>