From 57520b2eec21993e98f8262945be2301df74e199 Mon Sep 17 00:00:00 2001 From: "Andreas M. Antonopoulos" Date: Wed, 15 Feb 2017 14:30:43 +0700 Subject: [PATCH] update scriptops appendix add timelock opcodes add missing attribution to Wiki --- appdx-scriptops.asciidoc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/appdx-scriptops.asciidoc b/appdx-scriptops.asciidoc index 495baa4b..857b0e22 100644 --- a/appdx-scriptops.asciidoc +++ b/appdx-scriptops.asciidoc @@ -4,6 +4,8 @@ ((("Script language", id="ix_appdx-scriptops-asciidoc0", range="startofrange")))((("Script language","reserved operator codes", id="ix_appdx-scriptops-asciidoc1", range="startofrange")))<> shows operators for pushing values onto the stack.((("Script language","push operators"))) +_Tables and descriptions sourced from https://en.bitcoin.it/wiki/Script_ + [[tx_script_ops_table_pushdata]] .Push value onto stack [options="header"] @@ -39,6 +41,17 @@ | OP_RETURN | 0x6a | Halt and invalidate transaction |======= +<> shows operators used for timelocks.((("Script language","timelock operators"))) + +[[tx_script_ops_table_timelock]] +.Timelock operations +[options="header"] +|======= +| Symbol | Value (hex) | Description +| OP_CHECKLOCKTIMEVERIFY (previously OP_NOP2) | 0xb1 | Marks transaction as invalid if the top stack item is greater than the transaction's nLockTime field, otherwise script evaluation continues as though an OP_NOP was executed. Transaction is also invalid if 1. the stack is empty; or 2. the top stack item is negative; or 3. the top stack item is greater than or equal to 500000000 while the transaction's nLockTime field is less than 500000000, or vice versa; or 4. the input's nSequence field is equal to 0xffffffff. The precise semantics are described in BIP-65 | +| OP_CHECKSEQUENCEVERIFY (previously OP_NOP3) | 0xb2 | 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. The precise semantics are described in BIP-112| +|======= + <> shows operators used to manipulate the stack.((("Script language","stack manipulation operators"))) [[tx_script_ops_table_stack]]