stack item is checked against the current time or block height. 2-16 The number in the word name (2-16) is pushed onto the stack. The disadvantage of this transaction form is that the whole public key needs to be known in advance, implying longer payment addresses, and that it provides less protection in the event of a break in the ecdsa signature algorithm. There are some words which existed in very early versions of Bitcoin but were removed out of concern that the client might have a bug in their implementation. OP_greaterthanorequal 162 0xa2 a b out Returns 1 if a is greater than or equal to b, 0 otherwise. sig pubKey expiry time OP_checklocktimeverify OP_drop OP_DUP OP_hash160 pubKeyHash OP_equalverify OP_checksig scriptSig and scriptPubKey are combined. See Also External Links (cf.
number of public keys Nothing / fail Same as OP_checkmultisig, but OP_verify is executed afterward. Output, description, oP_0, OP_false 0 0x00, nothing. This transaction was successfully spent by The required data happened to be the Genesis block, and the given hash in the script was the genesis block header hashed twice with SHA-256. OP_equal 135 0x87 x1 x2 True / false Returns 1 if the inputs are exactly equal, 0 otherwise. For example the SHA1 script: scriptPubKey: OP_2DUP OP_equal OP_NOT OP_verify OP_SHA1 OP_swap OP_SHA1 OP_equal scriptSig: preimage1 preimage2 See the bitcointalk thread 2 and reddit thread 3 for more details. MyFaucet - Bitcoin Faucet Script. It is intentionally not Turing-complete, with no loops. OP_1SUB 140 0x8c in out 1 is subtracted from the input.
OP_pushdata4 78 0x4e (special) data The next four bytes contain the number of bytes to be pushed onto the stack in little endian order. Incentivized finding of hash collisions In 2013 Peter Todd created scripts that result in true if a hash collision is found. Word Opcode Hex When used. Standard Transaction to Bitcoin address (pay-to-pubkey-hash) scriptPubKey: OP_DUP OP_hash160 pubKeyHash OP_equalverify OP_checksig scriptSig: sig pubKey To demonstrate how scripts look on the wire, here is a raw scriptPubKey: 76 A9 14 OP_DUP OP_hash160 Bytes to push 89 AB CD EF AB BA AB. (empty value an empty array of bytes is pushed onto the stack. OP_SHA256 168 0xa8 in hash The input is hashed using SHA-256. Non-bracketed words are opcodes. Utxo, txn structure, script, bitcoin zakt verder weg lock unlock transaction, password script. Contents, opcodes, this is a list of all Script words, also known as opcodes, commands, or functions. OP_lshift 152 0x98 a b out Shifts a left b bits, preserving sign. OP_checksequenceverify (previously OP_NOP3) 178 0xb2 x x / fail Marks transaction as invalid if the relative lock time of the input (enforced by BIP 0068 with nSequence) is not equal to or longer than the value of the top stack item.