Enum bitcoin::blockdata::opcodes::All [] [src]

pub enum All {
    OP_PUSHBYTES_0,
    OP_PUSHBYTES_1,
    OP_PUSHBYTES_2,
    OP_PUSHBYTES_3,
    OP_PUSHBYTES_4,
    OP_PUSHBYTES_5,
    OP_PUSHBYTES_6,
    OP_PUSHBYTES_7,
    OP_PUSHBYTES_8,
    OP_PUSHBYTES_9,
    OP_PUSHBYTES_10,
    OP_PUSHBYTES_11,
    OP_PUSHBYTES_12,
    OP_PUSHBYTES_13,
    OP_PUSHBYTES_14,
    OP_PUSHBYTES_15,
    OP_PUSHBYTES_16,
    OP_PUSHBYTES_17,
    OP_PUSHBYTES_18,
    OP_PUSHBYTES_19,
    OP_PUSHBYTES_20,
    OP_PUSHBYTES_21,
    OP_PUSHBYTES_22,
    OP_PUSHBYTES_23,
    OP_PUSHBYTES_24,
    OP_PUSHBYTES_25,
    OP_PUSHBYTES_26,
    OP_PUSHBYTES_27,
    OP_PUSHBYTES_28,
    OP_PUSHBYTES_29,
    OP_PUSHBYTES_30,
    OP_PUSHBYTES_31,
    OP_PUSHBYTES_32,
    OP_PUSHBYTES_33,
    OP_PUSHBYTES_34,
    OP_PUSHBYTES_35,
    OP_PUSHBYTES_36,
    OP_PUSHBYTES_37,
    OP_PUSHBYTES_38,
    OP_PUSHBYTES_39,
    OP_PUSHBYTES_40,
    OP_PUSHBYTES_41,
    OP_PUSHBYTES_42,
    OP_PUSHBYTES_43,
    OP_PUSHBYTES_44,
    OP_PUSHBYTES_45,
    OP_PUSHBYTES_46,
    OP_PUSHBYTES_47,
    OP_PUSHBYTES_48,
    OP_PUSHBYTES_49,
    OP_PUSHBYTES_50,
    OP_PUSHBYTES_51,
    OP_PUSHBYTES_52,
    OP_PUSHBYTES_53,
    OP_PUSHBYTES_54,
    OP_PUSHBYTES_55,
    OP_PUSHBYTES_56,
    OP_PUSHBYTES_57,
    OP_PUSHBYTES_58,
    OP_PUSHBYTES_59,
    OP_PUSHBYTES_60,
    OP_PUSHBYTES_61,
    OP_PUSHBYTES_62,
    OP_PUSHBYTES_63,
    OP_PUSHBYTES_64,
    OP_PUSHBYTES_65,
    OP_PUSHBYTES_66,
    OP_PUSHBYTES_67,
    OP_PUSHBYTES_68,
    OP_PUSHBYTES_69,
    OP_PUSHBYTES_70,
    OP_PUSHBYTES_71,
    OP_PUSHBYTES_72,
    OP_PUSHBYTES_73,
    OP_PUSHBYTES_74,
    OP_PUSHBYTES_75,
    OP_PUSHDATA1,
    OP_PUSHDATA2,
    OP_PUSHDATA4,
    OP_PUSHNUM_NEG1,
    OP_RESERVED,
    OP_PUSHNUM_1,
    OP_PUSHNUM_2,
    OP_PUSHNUM_3,
    OP_PUSHNUM_4,
    OP_PUSHNUM_5,
    OP_PUSHNUM_6,
    OP_PUSHNUM_7,
    OP_PUSHNUM_8,
    OP_PUSHNUM_9,
    OP_PUSHNUM_10,
    OP_PUSHNUM_11,
    OP_PUSHNUM_12,
    OP_PUSHNUM_13,
    OP_PUSHNUM_14,
    OP_PUSHNUM_15,
    OP_PUSHNUM_16,
    OP_NOP,
    OP_VER,
    OP_IF,
    OP_NOTIF,
    OP_VERIF,
    OP_VERNOTIF,
    OP_ELSE,
    OP_ENDIF,
    OP_VERIFY,
    OP_RETURN,
    OP_TOALTSTACK,
    OP_FROMALTSTACK,
    OP_2DROP,
    OP_2DUP,
    OP_3DUP,
    OP_2OVER,
    OP_2ROT,
    OP_2SWAP,
    OP_IFDUP,
    OP_DEPTH,
    OP_DROP,
    OP_DUP,
    OP_NIP,
    OP_OVER,
    OP_PICK,
    OP_ROLL,
    OP_ROT,
    OP_SWAP,
    OP_TUCK,
    OP_CAT,
    OP_SUBSTR,
    OP_LEFT,
    OP_RIGHT,
    OP_SIZE,
    OP_INVERT,
    OP_AND,
    OP_OR,
    OP_XOR,
    OP_EQUAL,
    OP_EQUALVERIFY,
    OP_RESERVED1,
    OP_RESERVED2,
    OP_1ADD,
    OP_1SUB,
    OP_2MUL,
    OP_2DIV,
    OP_NEGATE,
    OP_ABS,
    OP_NOT,
    OP_0NOTEQUAL,
    OP_ADD,
    OP_SUB,
    OP_MUL,
    OP_DIV,
    OP_MOD,
    OP_LSHIFT,
    OP_RSHIFT,
    OP_BOOLAND,
    OP_BOOLOR,
    OP_NUMEQUAL,
    OP_NUMEQUALVERIFY,
    OP_NUMNOTEQUAL,
    OP_LESSTHAN,
    OP_GREATERTHAN,
    OP_LESSTHANOREQUAL,
    OP_GREATERTHANOREQUAL,
    OP_MIN,
    OP_MAX,
    OP_WITHIN,
    OP_RIPEMD160,
    OP_SHA1,
    OP_SHA256,
    OP_HASH160,
    OP_HASH256,
    OP_CODESEPARATOR,
    OP_CHECKSIG,
    OP_CHECKSIGVERIFY,
    OP_CHECKMULTISIG,
    OP_CHECKMULTISIGVERIFY,
    OP_NOP1,
    OP_NOP2,
    OP_NOP3,
    OP_NOP4,
    OP_NOP5,
    OP_NOP6,
    OP_NOP7,
    OP_NOP8,
    OP_NOP9,
    OP_NOP10,
    OP_RETURN_186,
    OP_RETURN_187,
    OP_RETURN_188,
    OP_RETURN_189,
    OP_RETURN_190,
    OP_RETURN_191,
    OP_RETURN_192,
    OP_RETURN_193,
    OP_RETURN_194,
    OP_RETURN_195,
    OP_RETURN_196,
    OP_RETURN_197,
    OP_RETURN_198,
    OP_RETURN_199,
    OP_RETURN_200,
    OP_RETURN_201,
    OP_RETURN_202,
    OP_RETURN_203,
    OP_RETURN_204,
    OP_RETURN_205,
    OP_RETURN_206,
    OP_RETURN_207,
    OP_RETURN_208,
    OP_RETURN_209,
    OP_RETURN_210,
    OP_RETURN_211,
    OP_RETURN_212,
    OP_RETURN_213,
    OP_RETURN_214,
    OP_RETURN_215,
    OP_RETURN_216,
    OP_RETURN_217,
    OP_RETURN_218,
    OP_RETURN_219,
    OP_RETURN_220,
    OP_RETURN_221,
    OP_RETURN_222,
    OP_RETURN_223,
    OP_RETURN_224,
    OP_RETURN_225,
    OP_RETURN_226,
    OP_RETURN_227,
    OP_RETURN_228,
    OP_RETURN_229,
    OP_RETURN_230,
    OP_RETURN_231,
    OP_RETURN_232,
    OP_RETURN_233,
    OP_RETURN_234,
    OP_RETURN_235,
    OP_RETURN_236,
    OP_RETURN_237,
    OP_RETURN_238,
    OP_RETURN_239,
    OP_RETURN_240,
    OP_RETURN_241,
    OP_RETURN_242,
    OP_RETURN_243,
    OP_RETURN_244,
    OP_RETURN_245,
    OP_RETURN_246,
    OP_RETURN_247,
    OP_RETURN_248,
    OP_RETURN_249,
    OP_RETURN_250,
    OP_RETURN_251,
    OP_RETURN_252,
    OP_RETURN_253,
    OP_RETURN_254,
    OP_RETURN_255,
}

A script Opcode

Variants

Push an empty array onto the stack

Push the next byte as an array onto the stack

Push the next 2 bytes as an array onto the stack

Push the next 2 bytes as an array onto the stack

Push the next 4 bytes as an array onto the stack

Push the next 5 bytes as an array onto the stack

Push the next 6 bytes as an array onto the stack

Push the next 7 bytes as an array onto the stack

Push the next 8 bytes as an array onto the stack

Push the next 9 bytes as an array onto the stack

Push the next 10 bytes as an array onto the stack

Push the next 11 bytes as an array onto the stack

Push the next 12 bytes as an array onto the stack

Push the next 13 bytes as an array onto the stack

Push the next 14 bytes as an array onto the stack

Push the next 15 bytes as an array onto the stack

Push the next 16 bytes as an array onto the stack

Push the next 17 bytes as an array onto the stack

Push the next 18 bytes as an array onto the stack

Push the next 19 bytes as an array onto the stack

Push the next 20 bytes as an array onto the stack

Push the next 21 bytes as an array onto the stack

Push the next 22 bytes as an array onto the stack

Push the next 23 bytes as an array onto the stack

Push the next 24 bytes as an array onto the stack

Push the next 25 bytes as an array onto the stack

Push the next 26 bytes as an array onto the stack

Push the next 27 bytes as an array onto the stack

Push the next 28 bytes as an array onto the stack

Push the next 29 bytes as an array onto the stack

Push the next 30 bytes as an array onto the stack

Push the next 31 bytes as an array onto the stack

Push the next 32 bytes as an array onto the stack

Push the next 33 bytes as an array onto the stack

Push the next 34 bytes as an array onto the stack

Push the next 35 bytes as an array onto the stack

Push the next 36 bytes as an array onto the stack

Push the next 37 bytes as an array onto the stack

Push the next 38 bytes as an array onto the stack

Push the next 39 bytes as an array onto the stack

Push the next 40 bytes as an array onto the stack

Push the next 41 bytes as an array onto the stack

Push the next 42 bytes as an array onto the stack

Push the next 43 bytes as an array onto the stack

Push the next 44 bytes as an array onto the stack

Push the next 45 bytes as an array onto the stack

Push the next 46 bytes as an array onto the stack

Push the next 47 bytes as an array onto the stack

Push the next 48 bytes as an array onto the stack

Push the next 49 bytes as an array onto the stack

Push the next 50 bytes as an array onto the stack

Push the next 51 bytes as an array onto the stack

Push the next 52 bytes as an array onto the stack

Push the next 53 bytes as an array onto the stack

Push the next 54 bytes as an array onto the stack

Push the next 55 bytes as an array onto the stack

Push the next 56 bytes as an array onto the stack

Push the next 57 bytes as an array onto the stack

Push the next 58 bytes as an array onto the stack

Push the next 59 bytes as an array onto the stack

Push the next 60 bytes as an array onto the stack

Push the next 61 bytes as an array onto the stack

Push the next 62 bytes as an array onto the stack

Push the next 63 bytes as an array onto the stack

Push the next 64 bytes as an array onto the stack

Push the next 65 bytes as an array onto the stack

Push the next 66 bytes as an array onto the stack

Push the next 67 bytes as an array onto the stack

Push the next 68 bytes as an array onto the stack

Push the next 69 bytes as an array onto the stack

Push the next 70 bytes as an array onto the stack

Push the next 71 bytes as an array onto the stack

Push the next 72 bytes as an array onto the stack

Push the next 73 bytes as an array onto the stack

Push the next 74 bytes as an array onto the stack

Push the next 75 bytes as an array onto the stack

Read the next byte as N; push the next N bytes as an array onto the stack

Read the next 2 bytes as N; push the next N bytes as an array onto the stack

Read the next 4 bytes as N; push the next N bytes as an array onto the stack

Push the array [0x80] onto the stack

Synonym for OP_RETURN

Push the array [0x01] onto the stack

Push the array [0x02] onto the stack

Push the array [0x03] onto the stack

Push the array [0x04] onto the stack

Push the array [0x05] onto the stack

Push the array [0x06] onto the stack

Push the array [0x07] onto the stack

Push the array [0x08] onto the stack

Push the array [0x09] onto the stack

Push the array [0x0a] onto the stack

Push the array [0x0b] onto the stack

Push the array [0x0c] onto the stack

Push the array [0x0d] onto the stack

Push the array [0x0e] onto the stack

Push the array [0x0f] onto the stack

Push the array [0x10] onto the stack

Does nothing

Synonym for OP_RETURN

Pop and execute the next statements if a nonzero element was popped

Pop and execute the next statements if a zero element was popped

Fail the script unconditionally, does not even need to be executed

Fail the script unconditionally, does not even need to be executed

Execute statements if those after the previous OP_IF were not, and vice-versa. If there is no previous OP_IF, this acts as a RETURN.

Pop and execute the next statements if a zero element was popped

If the top value is zero or the stack is empty, fail; otherwise, pop the stack

Fail the script immediately. (Must be executed.)

Pop one element from the main stack onto the alt stack

Pop one element from the alt stack onto the main stack

Drops the top two stack items

Duplicates the top two stack items as AB -> ABAB

Duplicates the two three stack items as ABC -> ABCABC

Copies the two stack items of items two spaces back to the front, as xxAB -> ABxxAB

Moves the two stack items four spaces back to the front, as xxxxAB -> ABxxxx

Swaps the top two pairs, as ABCD -> CDAB

Duplicate the top stack element unless it is zero

Push the current number of stack items onto te stack

Drops the top stack item

Duplicates the top stack item

Drops the second-to-top stack item

Copies the second-to-top stack item, as xA -> AxA

Pop the top stack element as N. Copy the Nth stack element to the top

Pop the top stack element as N. Move the Nth stack element to the top

Rotate the top three stack items, as [top next1 next2] -> [next2 top next1]

Swap the top two stack items

Copy the top stack item to before the second item, as [top next] -> [top next top]

Fail the script unconditionally, does not even need to be executed

Fail the script unconditionally, does not even need to be executed

Fail the script unconditionally, does not even need to be executed

Fail the script unconditionally, does not even need to be executed

Pushes the length of the top stack item onto the stack

Fail the script unconditionally, does not even need to be executed

Fail the script unconditionally, does not even need to be executed

Fail the script unconditionally, does not even need to be executed

Fail the script unconditionally, does not even need to be executed

Pushes 1 if the inputs are exactly equal, 0 otherwise

Returns success if the inputs are exactly equal, failure otherwise

Synonym for OP_RETURN

Synonym for OP_RETURN

Increment the top stack element in place

Decrement the top stack element in place

Fail the script unconditionally, does not even need to be executed

Fail the script unconditionally, does not even need to be executed

Multiply the top stack item by -1 in place

Absolute value the top stack item in place

Map 0 to 1 and everything else to 0, in place

Map 0 to 0 and everything else to 1, in place

Pop two stack items and push their sum

Pop two stack items and push the second minus the top

Fail the script unconditionally, does not even need to be executed

Fail the script unconditionally, does not even need to be executed

Fail the script unconditionally, does not even need to be executed

Fail the script unconditionally, does not even need to be executed

Fail the script unconditionally, does not even need to be executed

Pop the top two stack items and push 1 if both are nonzero, else push 0

Pop the top two stack items and push 1 if either is nonzero, else push 0

Pop the top two stack items and push 1 if both are numerically equal, else push 0

Pop the top two stack items and return success if both are numerically equal, else return failure

Pop the top two stack items and push 0 if both are numerically equal, else push 1

Pop the top two items; push 1 if the second is less than the top, 0 otherwise

Pop the top two items; push 1 if the second is greater than the top, 0 otherwise

Pop the top two items; push 1 if the second is <= the top, 0 otherwise

Pop the top two items; push 1 if the second is >= the top, 0 otherwise

Pop the top two items; push the smaller

Pop the top two items; push the larger

Pop the top three items; if the top is >= the second and < the third, push 1, otherwise push 0

Pop the top stack item and push its RIPEMD160 hash

Pop the top stack item and push its SHA1 hash

Pop the top stack item and push its SHA256 hash

Pop the top stack item and push its RIPEMD(SHA256) hash

Pop the top stack item and push its SHA256(SHA256) hash

Ignore this and everything preceding when deciding what to sign when signature-checking

https://en.bitcoin.it/wiki/OP_CHECKSIG pushing 1/0 for success/failure

https://en.bitcoin.it/wiki/OP_CHECKSIG returning success/failure

Pop N, N pubkeys, M, M signatures, a dummy (due to bug in reference code), and verify that all M signatures are valid. Push 1 for "all valid", 0 otherwise

Like the above but return success/failure

Does nothing

Does nothing

Does nothing

Does nothing

Does nothing

Does nothing

Does nothing

Does nothing

Does nothing

Does nothing

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Synonym for OP_RETURN

Methods

impl All
[src]

Classifies an Opcode into a broad class

Trait Implementations

impl Copy for All
[src]

impl Clone for All
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for All
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for All
[src]

impl Debug for All
[src]

Formats the value using the given formatter.

impl From<u8> for All
[src]

Performs the conversion.

impl Display for All
[src]

Formats the value using the given formatter.

impl<D: SimpleDecoder> ConsensusDecodable<D> for All
[src]

Decode an object with a well-defined format

impl<S: SimpleEncoder> ConsensusEncodable<S> for All
[src]

Encode an object with a well-defined format

impl Serialize for All
[src]

Serializes this value into this serializer.