Merge rust-bitcoin/rust-bitcoin#4599: Add backticks around OPCodes

ebb9861c58 Add backticks around OPCodes (yancy)

Pull request description:

  Item in documentation is missing backticks

ACKs for top commit:
  tcharding:
    ACK ebb9861c58
  apoelstra:
    ACK ebb9861c58419c1f2e3cce2ef4ecdfa1dee144e0; successfully ran local tests

Tree-SHA512: 1a06db90c026544efda2b248d2e1fd2ca49af9e9828c52b427077edf65e8a6fa789b691e9411d704459a55aae7f28b4bd784a493e89506b83c872b4ecbb9fe1e
This commit is contained in:
merge-script 2025-06-08 18:44:43 +00:00
commit 17cd382327
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
2 changed files with 168 additions and 168 deletions

View File

@ -153,7 +153,7 @@ all_opcodes! {
OP_PUSHDATA2 => 0x4d, "Read the next 2 bytes as N; push the next N bytes as an array onto the stack."; OP_PUSHDATA2 => 0x4d, "Read the next 2 bytes as N; push the next N bytes as an array onto the stack.";
OP_PUSHDATA4 => 0x4e, "Read the next 4 bytes as N; push the next N bytes as an array onto the stack."; OP_PUSHDATA4 => 0x4e, "Read the next 4 bytes as N; push the next N bytes as an array onto the stack.";
OP_PUSHNUM_NEG1 => 0x4f, "Push the array `0x81` onto the stack."; OP_PUSHNUM_NEG1 => 0x4f, "Push the array `0x81` onto the stack.";
OP_RESERVED => 0x50, "Synonym for OP_RETURN."; OP_RESERVED => 0x50, "Synonym for `OP_RETURN`.";
OP_PUSHNUM_1 => 0x51, "Push the array `0x01` onto the stack."; OP_PUSHNUM_1 => 0x51, "Push the array `0x01` onto the stack.";
OP_PUSHNUM_2 => 0x52, "Push the array `0x02` onto the stack."; OP_PUSHNUM_2 => 0x52, "Push the array `0x02` onto the stack.";
OP_PUSHNUM_3 => 0x53, "Push the array `0x03` onto the stack."; OP_PUSHNUM_3 => 0x53, "Push the array `0x03` onto the stack.";
@ -171,35 +171,35 @@ all_opcodes! {
OP_PUSHNUM_15 => 0x5f, "Push the array `0x0f` onto the stack."; OP_PUSHNUM_15 => 0x5f, "Push the array `0x0f` onto the stack.";
OP_PUSHNUM_16 => 0x60, "Push the array `0x10` onto the stack."; OP_PUSHNUM_16 => 0x60, "Push the array `0x10` onto the stack.";
OP_NOP => 0x61, "Does nothing."; OP_NOP => 0x61, "Does nothing.";
OP_VER => 0x62, "Synonym for OP_RETURN."; OP_VER => 0x62, "Synonym for `OP_RETURN`.";
OP_IF => 0x63, "Pop and execute the next statements if a nonzero element was popped."; OP_IF => 0x63, "Pop and execute the next statements if a nonzero element was popped.";
OP_NOTIF => 0x64, "Pop and execute the next statements if a zero element was popped."; OP_NOTIF => 0x64, "Pop and execute the next statements if a zero element was popped.";
OP_VERIF => 0x65, "Fail the script unconditionally, does not even need to be executed."; OP_VERIF => 0x65, "Fail the script unconditionally, does not even need to be executed.";
OP_VERNOTIF => 0x66, "Fail the script unconditionally, does not even need to be executed."; OP_VERNOTIF => 0x66, "Fail the script unconditionally, does not even need to be executed.";
OP_ELSE => 0x67, "Execute statements if those after the previous OP_IF were not, and vice-versa. \ OP_ELSE => 0x67, "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."; If there is no previous `OP_IF`, this acts as a RETURN.";
OP_ENDIF => 0x68, "Pop and execute the next statements if a zero element was popped."; OP_ENDIF => 0x68, "Pop and execute the next statements if a zero element was popped.";
OP_VERIFY => 0x69, "If the top value is zero or the stack is empty, fail; otherwise, pop the stack."; OP_VERIFY => 0x69, "If the top value is zero or the stack is empty, fail; otherwise, pop the stack.";
OP_RETURN => 0x6a, "Fail the script immediately. (Must be executed.)."; OP_RETURN => 0x6a, "Fail the script immediately. (Must be executed.).";
OP_TOALTSTACK => 0x6b, "Pop one element from the main stack onto the alt stack."; OP_TOALTSTACK => 0x6b, "Pop one element from the main stack onto the alt stack.";
OP_FROMALTSTACK => 0x6c, "Pop one element from the alt stack onto the main stack."; OP_FROMALTSTACK => 0x6c, "Pop one element from the alt stack onto the main stack.";
OP_2DROP => 0x6d, "Drops the top two stack items."; OP_2DROP => 0x6d, "Drops the top two stack items.";
OP_2DUP => 0x6e, "Duplicates the top two stack items as AB -> ABAB."; OP_2DUP => 0x6e, "Duplicates the top two stack items as `AB` -> `ABAB`.";
OP_3DUP => 0x6f, "Duplicates the two three stack items as ABC -> ABCABC."; OP_3DUP => 0x6f, "Duplicates the two three stack items as `ABC` -> `ABCABC`.";
OP_2OVER => 0x70, "Copies the two stack items of items two spaces back to the front, as xxAB -> ABxxAB."; OP_2OVER => 0x70, "Copies the two stack items of items two spaces back to the front, as `xxAB` -> `ABxxAB`.";
OP_2ROT => 0x71, "Moves the two stack items four spaces back to the front, as xxxxAB -> ABxxxx."; OP_2ROT => 0x71, "Moves the two stack items four spaces back to the front, as `xxxxAB` -> `ABxxxx`.";
OP_2SWAP => 0x72, "Swaps the top two pairs, as ABCD -> CDAB."; OP_2SWAP => 0x72, "Swaps the top two pairs, as `ABCD` -> `CDAB`.";
OP_IFDUP => 0x73, "Duplicate the top stack element unless it is zero."; OP_IFDUP => 0x73, "Duplicate the top stack element unless it is zero.";
OP_DEPTH => 0x74, "Push the current number of stack items onto the stack."; OP_DEPTH => 0x74, "Push the current number of stack items onto the stack.";
OP_DROP => 0x75, "Drops the top stack item."; OP_DROP => 0x75, "Drops the top stack item.";
OP_DUP => 0x76, "Duplicates the top stack item."; OP_DUP => 0x76, "Duplicates the top stack item.";
OP_NIP => 0x77, "Drops the second-to-top stack item."; OP_NIP => 0x77, "Drops the second-to-top stack item.";
OP_OVER => 0x78, "Copies the second-to-top stack item, as xA -> AxA."; OP_OVER => 0x78, "Copies the second-to-top stack item, as `xA` -> `AxA`.";
OP_PICK => 0x79, "Pop the top stack element as N. Copy the Nth stack element to the top."; OP_PICK => 0x79, "Pop the top stack element as N. Copy the Nth stack element to the top.";
OP_ROLL => 0x7a, "Pop the top stack element as N. Move the Nth stack element to the top."; OP_ROLL => 0x7a, "Pop the top stack element as N. Move the Nth stack element to the top.";
OP_ROT => 0x7b, "Rotate the top three stack items, as [top next1 next2] -> [next2 top next1]."; OP_ROT => 0x7b, "Rotate the top three stack items, as `[top next1 next2]` -> `[next2 top next1]`.";
OP_SWAP => 0x7c, "Swap the top two stack items."; OP_SWAP => 0x7c, "Swap the top two stack items.";
OP_TUCK => 0x7d, "Copy the top stack item to before the second item, as [top next] -> [top next top]."; OP_TUCK => 0x7d, "Copy the top stack item to before the second item, as `[top next]` -> `[top next top]`.";
OP_CAT => 0x7e, "Fail the script unconditionally, does not even need to be executed."; OP_CAT => 0x7e, "Fail the script unconditionally, does not even need to be executed.";
OP_SUBSTR => 0x7f, "Fail the script unconditionally, does not even need to be executed."; OP_SUBSTR => 0x7f, "Fail the script unconditionally, does not even need to be executed.";
OP_LEFT => 0x80, "Fail the script unconditionally, does not even need to be executed."; OP_LEFT => 0x80, "Fail the script unconditionally, does not even need to be executed.";
@ -211,8 +211,8 @@ all_opcodes! {
OP_XOR => 0x86, "Fail the script unconditionally, does not even need to be executed."; OP_XOR => 0x86, "Fail the script unconditionally, does not even need to be executed.";
OP_EQUAL => 0x87, "Pushes 1 if the inputs are exactly equal, 0 otherwise."; OP_EQUAL => 0x87, "Pushes 1 if the inputs are exactly equal, 0 otherwise.";
OP_EQUALVERIFY => 0x88, "Returns success if the inputs are exactly equal, failure otherwise."; OP_EQUALVERIFY => 0x88, "Returns success if the inputs are exactly equal, failure otherwise.";
OP_RESERVED1 => 0x89, "Synonym for OP_RETURN."; OP_RESERVED1 => 0x89, "Synonym for `OP_RETURN`.";
OP_RESERVED2 => 0x8a, "Synonym for OP_RETURN."; OP_RESERVED2 => 0x8a, "Synonym for `OP_RETURN`.";
OP_1ADD => 0x8b, "Increment the top stack element in place."; OP_1ADD => 0x8b, "Increment the top stack element in place.";
OP_1SUB => 0x8c, "Decrement the top stack element in place."; OP_1SUB => 0x8c, "Decrement the top stack element in place.";
OP_2MUL => 0x8d, "Fail the script unconditionally, does not even need to be executed."; OP_2MUL => 0x8d, "Fail the script unconditionally, does not even need to be executed.";
@ -262,76 +262,76 @@ all_opcodes! {
OP_NOP9 => 0xb8, "Does nothing."; OP_NOP9 => 0xb8, "Does nothing.";
OP_NOP10 => 0xb9, "Does nothing."; OP_NOP10 => 0xb9, "Does nothing.";
// Every other opcode acts as OP_RETURN // Every other opcode acts as OP_RETURN
OP_CHECKSIGADD => 0xba, "OP_CHECKSIGADD post tapscript."; OP_CHECKSIGADD => 0xba, "`OP_CHECKSIGADD` post tapscript.";
OP_RETURN_187 => 0xbb, "Synonym for OP_RETURN."; OP_RETURN_187 => 0xbb, "Synonym for `OP_RETURN`.";
OP_RETURN_188 => 0xbc, "Synonym for OP_RETURN."; OP_RETURN_188 => 0xbc, "Synonym for `OP_RETURN`.";
OP_RETURN_189 => 0xbd, "Synonym for OP_RETURN."; OP_RETURN_189 => 0xbd, "Synonym for `OP_RETURN`.";
OP_RETURN_190 => 0xbe, "Synonym for OP_RETURN."; OP_RETURN_190 => 0xbe, "Synonym for `OP_RETURN`.";
OP_RETURN_191 => 0xbf, "Synonym for OP_RETURN."; OP_RETURN_191 => 0xbf, "Synonym for `OP_RETURN`.";
OP_RETURN_192 => 0xc0, "Synonym for OP_RETURN."; OP_RETURN_192 => 0xc0, "Synonym for `OP_RETURN`.";
OP_RETURN_193 => 0xc1, "Synonym for OP_RETURN."; OP_RETURN_193 => 0xc1, "Synonym for `OP_RETURN`.";
OP_RETURN_194 => 0xc2, "Synonym for OP_RETURN."; OP_RETURN_194 => 0xc2, "Synonym for `OP_RETURN`.";
OP_RETURN_195 => 0xc3, "Synonym for OP_RETURN."; OP_RETURN_195 => 0xc3, "Synonym for `OP_RETURN`.";
OP_RETURN_196 => 0xc4, "Synonym for OP_RETURN."; OP_RETURN_196 => 0xc4, "Synonym for `OP_RETURN`.";
OP_RETURN_197 => 0xc5, "Synonym for OP_RETURN."; OP_RETURN_197 => 0xc5, "Synonym for `OP_RETURN`.";
OP_RETURN_198 => 0xc6, "Synonym for OP_RETURN."; OP_RETURN_198 => 0xc6, "Synonym for `OP_RETURN`.";
OP_RETURN_199 => 0xc7, "Synonym for OP_RETURN."; OP_RETURN_199 => 0xc7, "Synonym for `OP_RETURN`.";
OP_RETURN_200 => 0xc8, "Synonym for OP_RETURN."; OP_RETURN_200 => 0xc8, "Synonym for `OP_RETURN`.";
OP_RETURN_201 => 0xc9, "Synonym for OP_RETURN."; OP_RETURN_201 => 0xc9, "Synonym for `OP_RETURN`.";
OP_RETURN_202 => 0xca, "Synonym for OP_RETURN."; OP_RETURN_202 => 0xca, "Synonym for `OP_RETURN`.";
OP_RETURN_203 => 0xcb, "Synonym for OP_RETURN."; OP_RETURN_203 => 0xcb, "Synonym for `OP_RETURN`.";
OP_RETURN_204 => 0xcc, "Synonym for OP_RETURN."; OP_RETURN_204 => 0xcc, "Synonym for `OP_RETURN`.";
OP_RETURN_205 => 0xcd, "Synonym for OP_RETURN."; OP_RETURN_205 => 0xcd, "Synonym for `OP_RETURN`.";
OP_RETURN_206 => 0xce, "Synonym for OP_RETURN."; OP_RETURN_206 => 0xce, "Synonym for `OP_RETURN`.";
OP_RETURN_207 => 0xcf, "Synonym for OP_RETURN."; OP_RETURN_207 => 0xcf, "Synonym for `OP_RETURN`.";
OP_RETURN_208 => 0xd0, "Synonym for OP_RETURN."; OP_RETURN_208 => 0xd0, "Synonym for `OP_RETURN`.";
OP_RETURN_209 => 0xd1, "Synonym for OP_RETURN."; OP_RETURN_209 => 0xd1, "Synonym for `OP_RETURN`.";
OP_RETURN_210 => 0xd2, "Synonym for OP_RETURN."; OP_RETURN_210 => 0xd2, "Synonym for `OP_RETURN`.";
OP_RETURN_211 => 0xd3, "Synonym for OP_RETURN."; OP_RETURN_211 => 0xd3, "Synonym for `OP_RETURN`.";
OP_RETURN_212 => 0xd4, "Synonym for OP_RETURN."; OP_RETURN_212 => 0xd4, "Synonym for `OP_RETURN`.";
OP_RETURN_213 => 0xd5, "Synonym for OP_RETURN."; OP_RETURN_213 => 0xd5, "Synonym for `OP_RETURN`.";
OP_RETURN_214 => 0xd6, "Synonym for OP_RETURN."; OP_RETURN_214 => 0xd6, "Synonym for `OP_RETURN`.";
OP_RETURN_215 => 0xd7, "Synonym for OP_RETURN."; OP_RETURN_215 => 0xd7, "Synonym for `OP_RETURN`.";
OP_RETURN_216 => 0xd8, "Synonym for OP_RETURN."; OP_RETURN_216 => 0xd8, "Synonym for `OP_RETURN`.";
OP_RETURN_217 => 0xd9, "Synonym for OP_RETURN."; OP_RETURN_217 => 0xd9, "Synonym for `OP_RETURN`.";
OP_RETURN_218 => 0xda, "Synonym for OP_RETURN."; OP_RETURN_218 => 0xda, "Synonym for `OP_RETURN`.";
OP_RETURN_219 => 0xdb, "Synonym for OP_RETURN."; OP_RETURN_219 => 0xdb, "Synonym for `OP_RETURN`.";
OP_RETURN_220 => 0xdc, "Synonym for OP_RETURN."; OP_RETURN_220 => 0xdc, "Synonym for `OP_RETURN`.";
OP_RETURN_221 => 0xdd, "Synonym for OP_RETURN."; OP_RETURN_221 => 0xdd, "Synonym for `OP_RETURN`.";
OP_RETURN_222 => 0xde, "Synonym for OP_RETURN."; OP_RETURN_222 => 0xde, "Synonym for `OP_RETURN`.";
OP_RETURN_223 => 0xdf, "Synonym for OP_RETURN."; OP_RETURN_223 => 0xdf, "Synonym for `OP_RETURN`.";
OP_RETURN_224 => 0xe0, "Synonym for OP_RETURN."; OP_RETURN_224 => 0xe0, "Synonym for `OP_RETURN`.";
OP_RETURN_225 => 0xe1, "Synonym for OP_RETURN."; OP_RETURN_225 => 0xe1, "Synonym for `OP_RETURN`.";
OP_RETURN_226 => 0xe2, "Synonym for OP_RETURN."; OP_RETURN_226 => 0xe2, "Synonym for `OP_RETURN`.";
OP_RETURN_227 => 0xe3, "Synonym for OP_RETURN."; OP_RETURN_227 => 0xe3, "Synonym for `OP_RETURN`.";
OP_RETURN_228 => 0xe4, "Synonym for OP_RETURN."; OP_RETURN_228 => 0xe4, "Synonym for `OP_RETURN`.";
OP_RETURN_229 => 0xe5, "Synonym for OP_RETURN."; OP_RETURN_229 => 0xe5, "Synonym for `OP_RETURN`.";
OP_RETURN_230 => 0xe6, "Synonym for OP_RETURN."; OP_RETURN_230 => 0xe6, "Synonym for `OP_RETURN`.";
OP_RETURN_231 => 0xe7, "Synonym for OP_RETURN."; OP_RETURN_231 => 0xe7, "Synonym for `OP_RETURN`.";
OP_RETURN_232 => 0xe8, "Synonym for OP_RETURN."; OP_RETURN_232 => 0xe8, "Synonym for `OP_RETURN`.";
OP_RETURN_233 => 0xe9, "Synonym for OP_RETURN."; OP_RETURN_233 => 0xe9, "Synonym for `OP_RETURN`.";
OP_RETURN_234 => 0xea, "Synonym for OP_RETURN."; OP_RETURN_234 => 0xea, "Synonym for `OP_RETURN`.";
OP_RETURN_235 => 0xeb, "Synonym for OP_RETURN."; OP_RETURN_235 => 0xeb, "Synonym for `OP_RETURN`.";
OP_RETURN_236 => 0xec, "Synonym for OP_RETURN."; OP_RETURN_236 => 0xec, "Synonym for `OP_RETURN`.";
OP_RETURN_237 => 0xed, "Synonym for OP_RETURN."; OP_RETURN_237 => 0xed, "Synonym for `OP_RETURN`.";
OP_RETURN_238 => 0xee, "Synonym for OP_RETURN."; OP_RETURN_238 => 0xee, "Synonym for `OP_RETURN`.";
OP_RETURN_239 => 0xef, "Synonym for OP_RETURN."; OP_RETURN_239 => 0xef, "Synonym for `OP_RETURN`.";
OP_RETURN_240 => 0xf0, "Synonym for OP_RETURN."; OP_RETURN_240 => 0xf0, "Synonym for `OP_RETURN`.";
OP_RETURN_241 => 0xf1, "Synonym for OP_RETURN."; OP_RETURN_241 => 0xf1, "Synonym for `OP_RETURN`.";
OP_RETURN_242 => 0xf2, "Synonym for OP_RETURN."; OP_RETURN_242 => 0xf2, "Synonym for `OP_RETURN`.";
OP_RETURN_243 => 0xf3, "Synonym for OP_RETURN."; OP_RETURN_243 => 0xf3, "Synonym for `OP_RETURN`.";
OP_RETURN_244 => 0xf4, "Synonym for OP_RETURN."; OP_RETURN_244 => 0xf4, "Synonym for `OP_RETURN`.";
OP_RETURN_245 => 0xf5, "Synonym for OP_RETURN."; OP_RETURN_245 => 0xf5, "Synonym for `OP_RETURN`.";
OP_RETURN_246 => 0xf6, "Synonym for OP_RETURN."; OP_RETURN_246 => 0xf6, "Synonym for `OP_RETURN`.";
OP_RETURN_247 => 0xf7, "Synonym for OP_RETURN."; OP_RETURN_247 => 0xf7, "Synonym for `OP_RETURN`.";
OP_RETURN_248 => 0xf8, "Synonym for OP_RETURN."; OP_RETURN_248 => 0xf8, "Synonym for `OP_RETURN`.";
OP_RETURN_249 => 0xf9, "Synonym for OP_RETURN."; OP_RETURN_249 => 0xf9, "Synonym for `OP_RETURN`.";
OP_RETURN_250 => 0xfa, "Synonym for OP_RETURN."; OP_RETURN_250 => 0xfa, "Synonym for `OP_RETURN`.";
OP_RETURN_251 => 0xfb, "Synonym for OP_RETURN."; OP_RETURN_251 => 0xfb, "Synonym for `OP_RETURN`.";
OP_RETURN_252 => 0xfc, "Synonym for OP_RETURN."; OP_RETURN_252 => 0xfc, "Synonym for `OP_RETURN`.";
OP_RETURN_253 => 0xfd, "Synonym for OP_RETURN."; OP_RETURN_253 => 0xfd, "Synonym for `OP_RETURN`.";
OP_RETURN_254 => 0xfe, "Synonym for OP_RETURN."; OP_RETURN_254 => 0xfe, "Synonym for `OP_RETURN`.";
OP_INVALIDOPCODE => 0xff, "Synonym for OP_RETURN." OP_INVALIDOPCODE => 0xff, "Synonym for `OP_RETURN`."
} }
/// Classification context for the opcode. /// Classification context for the opcode.

View File

@ -155,7 +155,7 @@ all_opcodes! {
OP_PUSHDATA2 => 0x4d, "Read the next 2 bytes as N; push the next N bytes as an array onto the stack."; OP_PUSHDATA2 => 0x4d, "Read the next 2 bytes as N; push the next N bytes as an array onto the stack.";
OP_PUSHDATA4 => 0x4e, "Read the next 4 bytes as N; push the next N bytes as an array onto the stack."; OP_PUSHDATA4 => 0x4e, "Read the next 4 bytes as N; push the next N bytes as an array onto the stack.";
OP_PUSHNUM_NEG1 => 0x4f, "Push the array `0x81` onto the stack."; OP_PUSHNUM_NEG1 => 0x4f, "Push the array `0x81` onto the stack.";
OP_RESERVED => 0x50, "Synonym for OP_RETURN."; OP_RESERVED => 0x50, "Synonym for `OP_RETURN`.";
OP_PUSHNUM_1 => 0x51, "Push the array `0x01` onto the stack."; OP_PUSHNUM_1 => 0x51, "Push the array `0x01` onto the stack.";
OP_PUSHNUM_2 => 0x52, "Push the array `0x02` onto the stack."; OP_PUSHNUM_2 => 0x52, "Push the array `0x02` onto the stack.";
OP_PUSHNUM_3 => 0x53, "Push the array `0x03` onto the stack."; OP_PUSHNUM_3 => 0x53, "Push the array `0x03` onto the stack.";
@ -173,35 +173,35 @@ all_opcodes! {
OP_PUSHNUM_15 => 0x5f, "Push the array `0x0f` onto the stack."; OP_PUSHNUM_15 => 0x5f, "Push the array `0x0f` onto the stack.";
OP_PUSHNUM_16 => 0x60, "Push the array `0x10` onto the stack."; OP_PUSHNUM_16 => 0x60, "Push the array `0x10` onto the stack.";
OP_NOP => 0x61, "Does nothing."; OP_NOP => 0x61, "Does nothing.";
OP_VER => 0x62, "Synonym for OP_RETURN."; OP_VER => 0x62, "Synonym for `OP_RETURN`.";
OP_IF => 0x63, "Pop and execute the next statements if a nonzero element was popped."; OP_IF => 0x63, "Pop and execute the next statements if a nonzero element was popped.";
OP_NOTIF => 0x64, "Pop and execute the next statements if a zero element was popped."; OP_NOTIF => 0x64, "Pop and execute the next statements if a zero element was popped.";
OP_VERIF => 0x65, "Fail the script unconditionally, does not even need to be executed."; OP_VERIF => 0x65, "Fail the script unconditionally, does not even need to be executed.";
OP_VERNOTIF => 0x66, "Fail the script unconditionally, does not even need to be executed."; OP_VERNOTIF => 0x66, "Fail the script unconditionally, does not even need to be executed.";
OP_ELSE => 0x67, "Execute statements if those after the previous OP_IF were not, and vice-versa. \ OP_ELSE => 0x67, "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."; If there is no previous `OP_IF`, this acts as a RETURN.";
OP_ENDIF => 0x68, "Pop and execute the next statements if a zero element was popped."; OP_ENDIF => 0x68, "Pop and execute the next statements if a zero element was popped.";
OP_VERIFY => 0x69, "If the top value is zero or the stack is empty, fail; otherwise, pop the stack."; OP_VERIFY => 0x69, "If the top value is zero or the stack is empty, fail; otherwise, pop the stack.";
OP_RETURN => 0x6a, "Fail the script immediately. (Must be executed.)."; OP_RETURN => 0x6a, "Fail the script immediately. (Must be executed.).";
OP_TOALTSTACK => 0x6b, "Pop one element from the main stack onto the alt stack."; OP_TOALTSTACK => 0x6b, "Pop one element from the main stack onto the alt stack.";
OP_FROMALTSTACK => 0x6c, "Pop one element from the alt stack onto the main stack."; OP_FROMALTSTACK => 0x6c, "Pop one element from the alt stack onto the main stack.";
OP_2DROP => 0x6d, "Drops the top two stack items."; OP_2DROP => 0x6d, "Drops the top two stack items.";
OP_2DUP => 0x6e, "Duplicates the top two stack items as AB -> ABAB."; OP_2DUP => 0x6e, "Duplicates the top two stack items as `AB` -> `ABAB`.";
OP_3DUP => 0x6f, "Duplicates the two three stack items as ABC -> ABCABC."; OP_3DUP => 0x6f, "Duplicates the two three stack items as `ABC` -> `ABCABC`.";
OP_2OVER => 0x70, "Copies the two stack items of items two spaces back to the front, as xxAB -> ABxxAB."; OP_2OVER => 0x70, "Copies the two stack items of items two spaces back to the front, as `xxAB` -> `ABxxAB`.";
OP_2ROT => 0x71, "Moves the two stack items four spaces back to the front, as xxxxAB -> ABxxxx."; OP_2ROT => 0x71, "Moves the two stack items four spaces back to the front, as `xxxxAB` -> `ABxxxx`.";
OP_2SWAP => 0x72, "Swaps the top two pairs, as ABCD -> CDAB."; OP_2SWAP => 0x72, "Swaps the top two pairs, as `ABCD` -> `CDAB`.";
OP_IFDUP => 0x73, "Duplicate the top stack element unless it is zero."; OP_IFDUP => 0x73, "Duplicate the top stack element unless it is zero.";
OP_DEPTH => 0x74, "Push the current number of stack items onto the stack."; OP_DEPTH => 0x74, "Push the current number of stack items onto the stack.";
OP_DROP => 0x75, "Drops the top stack item."; OP_DROP => 0x75, "Drops the top stack item.";
OP_DUP => 0x76, "Duplicates the top stack item."; OP_DUP => 0x76, "Duplicates the top stack item.";
OP_NIP => 0x77, "Drops the second-to-top stack item."; OP_NIP => 0x77, "Drops the second-to-top stack item.";
OP_OVER => 0x78, "Copies the second-to-top stack item, as xA -> AxA."; OP_OVER => 0x78, "Copies the second-to-top stack item, as `xA` -> `AxA`.";
OP_PICK => 0x79, "Pop the top stack element as N. Copy the Nth stack element to the top."; OP_PICK => 0x79, "Pop the top stack element as N. Copy the Nth stack element to the top.";
OP_ROLL => 0x7a, "Pop the top stack element as N. Move the Nth stack element to the top."; OP_ROLL => 0x7a, "Pop the top stack element as N. Move the Nth stack element to the top.";
OP_ROT => 0x7b, "Rotate the top three stack items, as [top next1 next2] -> [next2 top next1]."; OP_ROT => 0x7b, "Rotate the top three stack items, as `[top next1 next2]` -> `[next2 top next1]`.";
OP_SWAP => 0x7c, "Swap the top two stack items."; OP_SWAP => 0x7c, "Swap the top two stack items.";
OP_TUCK => 0x7d, "Copy the top stack item to before the second item, as [top next] -> [top next top]."; OP_TUCK => 0x7d, "Copy the top stack item to before the second item, as `[top next]` -> `[top next top]`.";
OP_CAT => 0x7e, "Fail the script unconditionally, does not even need to be executed."; OP_CAT => 0x7e, "Fail the script unconditionally, does not even need to be executed.";
OP_SUBSTR => 0x7f, "Fail the script unconditionally, does not even need to be executed."; OP_SUBSTR => 0x7f, "Fail the script unconditionally, does not even need to be executed.";
OP_LEFT => 0x80, "Fail the script unconditionally, does not even need to be executed."; OP_LEFT => 0x80, "Fail the script unconditionally, does not even need to be executed.";
@ -213,8 +213,8 @@ all_opcodes! {
OP_XOR => 0x86, "Fail the script unconditionally, does not even need to be executed."; OP_XOR => 0x86, "Fail the script unconditionally, does not even need to be executed.";
OP_EQUAL => 0x87, "Pushes 1 if the inputs are exactly equal, 0 otherwise."; OP_EQUAL => 0x87, "Pushes 1 if the inputs are exactly equal, 0 otherwise.";
OP_EQUALVERIFY => 0x88, "Returns success if the inputs are exactly equal, failure otherwise."; OP_EQUALVERIFY => 0x88, "Returns success if the inputs are exactly equal, failure otherwise.";
OP_RESERVED1 => 0x89, "Synonym for OP_RETURN."; OP_RESERVED1 => 0x89, "Synonym for `OP_RETURN`.";
OP_RESERVED2 => 0x8a, "Synonym for OP_RETURN."; OP_RESERVED2 => 0x8a, "Synonym for `OP_RETURN`.";
OP_1ADD => 0x8b, "Increment the top stack element in place."; OP_1ADD => 0x8b, "Increment the top stack element in place.";
OP_1SUB => 0x8c, "Decrement the top stack element in place."; OP_1SUB => 0x8c, "Decrement the top stack element in place.";
OP_2MUL => 0x8d, "Fail the script unconditionally, does not even need to be executed."; OP_2MUL => 0x8d, "Fail the script unconditionally, does not even need to be executed.";
@ -264,76 +264,76 @@ all_opcodes! {
OP_NOP9 => 0xb8, "Does nothing."; OP_NOP9 => 0xb8, "Does nothing.";
OP_NOP10 => 0xb9, "Does nothing."; OP_NOP10 => 0xb9, "Does nothing.";
// Every other opcode acts as OP_RETURN // Every other opcode acts as OP_RETURN
OP_CHECKSIGADD => 0xba, "OP_CHECKSIGADD post tapscript."; OP_CHECKSIGADD => 0xba, "`OP_CHECKSIGADD` post tapscript.";
OP_RETURN_187 => 0xbb, "Synonym for OP_RETURN."; OP_RETURN_187 => 0xbb, "Synonym for `OP_RETURN`.";
OP_RETURN_188 => 0xbc, "Synonym for OP_RETURN."; OP_RETURN_188 => 0xbc, "Synonym for `OP_RETURN`.";
OP_RETURN_189 => 0xbd, "Synonym for OP_RETURN."; OP_RETURN_189 => 0xbd, "Synonym for `OP_RETURN`.";
OP_RETURN_190 => 0xbe, "Synonym for OP_RETURN."; OP_RETURN_190 => 0xbe, "Synonym for `OP_RETURN`.";
OP_RETURN_191 => 0xbf, "Synonym for OP_RETURN."; OP_RETURN_191 => 0xbf, "Synonym for `OP_RETURN`.";
OP_RETURN_192 => 0xc0, "Synonym for OP_RETURN."; OP_RETURN_192 => 0xc0, "Synonym for `OP_RETURN`.";
OP_RETURN_193 => 0xc1, "Synonym for OP_RETURN."; OP_RETURN_193 => 0xc1, "Synonym for `OP_RETURN`.";
OP_RETURN_194 => 0xc2, "Synonym for OP_RETURN."; OP_RETURN_194 => 0xc2, "Synonym for `OP_RETURN`.";
OP_RETURN_195 => 0xc3, "Synonym for OP_RETURN."; OP_RETURN_195 => 0xc3, "Synonym for `OP_RETURN`.";
OP_RETURN_196 => 0xc4, "Synonym for OP_RETURN."; OP_RETURN_196 => 0xc4, "Synonym for `OP_RETURN`.";
OP_RETURN_197 => 0xc5, "Synonym for OP_RETURN."; OP_RETURN_197 => 0xc5, "Synonym for `OP_RETURN`.";
OP_RETURN_198 => 0xc6, "Synonym for OP_RETURN."; OP_RETURN_198 => 0xc6, "Synonym for `OP_RETURN`.";
OP_RETURN_199 => 0xc7, "Synonym for OP_RETURN."; OP_RETURN_199 => 0xc7, "Synonym for `OP_RETURN`.";
OP_RETURN_200 => 0xc8, "Synonym for OP_RETURN."; OP_RETURN_200 => 0xc8, "Synonym for `OP_RETURN`.";
OP_RETURN_201 => 0xc9, "Synonym for OP_RETURN."; OP_RETURN_201 => 0xc9, "Synonym for `OP_RETURN`.";
OP_RETURN_202 => 0xca, "Synonym for OP_RETURN."; OP_RETURN_202 => 0xca, "Synonym for `OP_RETURN`.";
OP_RETURN_203 => 0xcb, "Synonym for OP_RETURN."; OP_RETURN_203 => 0xcb, "Synonym for `OP_RETURN`.";
OP_RETURN_204 => 0xcc, "Synonym for OP_RETURN."; OP_RETURN_204 => 0xcc, "Synonym for `OP_RETURN`.";
OP_RETURN_205 => 0xcd, "Synonym for OP_RETURN."; OP_RETURN_205 => 0xcd, "Synonym for `OP_RETURN`.";
OP_RETURN_206 => 0xce, "Synonym for OP_RETURN."; OP_RETURN_206 => 0xce, "Synonym for `OP_RETURN`.";
OP_RETURN_207 => 0xcf, "Synonym for OP_RETURN."; OP_RETURN_207 => 0xcf, "Synonym for `OP_RETURN`.";
OP_RETURN_208 => 0xd0, "Synonym for OP_RETURN."; OP_RETURN_208 => 0xd0, "Synonym for `OP_RETURN`.";
OP_RETURN_209 => 0xd1, "Synonym for OP_RETURN."; OP_RETURN_209 => 0xd1, "Synonym for `OP_RETURN`.";
OP_RETURN_210 => 0xd2, "Synonym for OP_RETURN."; OP_RETURN_210 => 0xd2, "Synonym for `OP_RETURN`.";
OP_RETURN_211 => 0xd3, "Synonym for OP_RETURN."; OP_RETURN_211 => 0xd3, "Synonym for `OP_RETURN`.";
OP_RETURN_212 => 0xd4, "Synonym for OP_RETURN."; OP_RETURN_212 => 0xd4, "Synonym for `OP_RETURN`.";
OP_RETURN_213 => 0xd5, "Synonym for OP_RETURN."; OP_RETURN_213 => 0xd5, "Synonym for `OP_RETURN`.";
OP_RETURN_214 => 0xd6, "Synonym for OP_RETURN."; OP_RETURN_214 => 0xd6, "Synonym for `OP_RETURN`.";
OP_RETURN_215 => 0xd7, "Synonym for OP_RETURN."; OP_RETURN_215 => 0xd7, "Synonym for `OP_RETURN`.";
OP_RETURN_216 => 0xd8, "Synonym for OP_RETURN."; OP_RETURN_216 => 0xd8, "Synonym for `OP_RETURN`.";
OP_RETURN_217 => 0xd9, "Synonym for OP_RETURN."; OP_RETURN_217 => 0xd9, "Synonym for `OP_RETURN`.";
OP_RETURN_218 => 0xda, "Synonym for OP_RETURN."; OP_RETURN_218 => 0xda, "Synonym for `OP_RETURN`.";
OP_RETURN_219 => 0xdb, "Synonym for OP_RETURN."; OP_RETURN_219 => 0xdb, "Synonym for `OP_RETURN`.";
OP_RETURN_220 => 0xdc, "Synonym for OP_RETURN."; OP_RETURN_220 => 0xdc, "Synonym for `OP_RETURN`.";
OP_RETURN_221 => 0xdd, "Synonym for OP_RETURN."; OP_RETURN_221 => 0xdd, "Synonym for `OP_RETURN`.";
OP_RETURN_222 => 0xde, "Synonym for OP_RETURN."; OP_RETURN_222 => 0xde, "Synonym for `OP_RETURN`.";
OP_RETURN_223 => 0xdf, "Synonym for OP_RETURN."; OP_RETURN_223 => 0xdf, "Synonym for `OP_RETURN`.";
OP_RETURN_224 => 0xe0, "Synonym for OP_RETURN."; OP_RETURN_224 => 0xe0, "Synonym for `OP_RETURN`.";
OP_RETURN_225 => 0xe1, "Synonym for OP_RETURN."; OP_RETURN_225 => 0xe1, "Synonym for `OP_RETURN`.";
OP_RETURN_226 => 0xe2, "Synonym for OP_RETURN."; OP_RETURN_226 => 0xe2, "Synonym for `OP_RETURN`.";
OP_RETURN_227 => 0xe3, "Synonym for OP_RETURN."; OP_RETURN_227 => 0xe3, "Synonym for `OP_RETURN`.";
OP_RETURN_228 => 0xe4, "Synonym for OP_RETURN."; OP_RETURN_228 => 0xe4, "Synonym for `OP_RETURN`.";
OP_RETURN_229 => 0xe5, "Synonym for OP_RETURN."; OP_RETURN_229 => 0xe5, "Synonym for `OP_RETURN`.";
OP_RETURN_230 => 0xe6, "Synonym for OP_RETURN."; OP_RETURN_230 => 0xe6, "Synonym for `OP_RETURN`.";
OP_RETURN_231 => 0xe7, "Synonym for OP_RETURN."; OP_RETURN_231 => 0xe7, "Synonym for `OP_RETURN`.";
OP_RETURN_232 => 0xe8, "Synonym for OP_RETURN."; OP_RETURN_232 => 0xe8, "Synonym for `OP_RETURN`.";
OP_RETURN_233 => 0xe9, "Synonym for OP_RETURN."; OP_RETURN_233 => 0xe9, "Synonym for `OP_RETURN`.";
OP_RETURN_234 => 0xea, "Synonym for OP_RETURN."; OP_RETURN_234 => 0xea, "Synonym for `OP_RETURN`.";
OP_RETURN_235 => 0xeb, "Synonym for OP_RETURN."; OP_RETURN_235 => 0xeb, "Synonym for `OP_RETURN`.";
OP_RETURN_236 => 0xec, "Synonym for OP_RETURN."; OP_RETURN_236 => 0xec, "Synonym for `OP_RETURN`.";
OP_RETURN_237 => 0xed, "Synonym for OP_RETURN."; OP_RETURN_237 => 0xed, "Synonym for `OP_RETURN`.";
OP_RETURN_238 => 0xee, "Synonym for OP_RETURN."; OP_RETURN_238 => 0xee, "Synonym for `OP_RETURN`.";
OP_RETURN_239 => 0xef, "Synonym for OP_RETURN."; OP_RETURN_239 => 0xef, "Synonym for `OP_RETURN`.";
OP_RETURN_240 => 0xf0, "Synonym for OP_RETURN."; OP_RETURN_240 => 0xf0, "Synonym for `OP_RETURN`.";
OP_RETURN_241 => 0xf1, "Synonym for OP_RETURN."; OP_RETURN_241 => 0xf1, "Synonym for `OP_RETURN`.";
OP_RETURN_242 => 0xf2, "Synonym for OP_RETURN."; OP_RETURN_242 => 0xf2, "Synonym for `OP_RETURN`.";
OP_RETURN_243 => 0xf3, "Synonym for OP_RETURN."; OP_RETURN_243 => 0xf3, "Synonym for `OP_RETURN`.";
OP_RETURN_244 => 0xf4, "Synonym for OP_RETURN."; OP_RETURN_244 => 0xf4, "Synonym for `OP_RETURN`.";
OP_RETURN_245 => 0xf5, "Synonym for OP_RETURN."; OP_RETURN_245 => 0xf5, "Synonym for `OP_RETURN`.";
OP_RETURN_246 => 0xf6, "Synonym for OP_RETURN."; OP_RETURN_246 => 0xf6, "Synonym for `OP_RETURN`.";
OP_RETURN_247 => 0xf7, "Synonym for OP_RETURN."; OP_RETURN_247 => 0xf7, "Synonym for `OP_RETURN`.";
OP_RETURN_248 => 0xf8, "Synonym for OP_RETURN."; OP_RETURN_248 => 0xf8, "Synonym for `OP_RETURN`.";
OP_RETURN_249 => 0xf9, "Synonym for OP_RETURN."; OP_RETURN_249 => 0xf9, "Synonym for `OP_RETURN`.";
OP_RETURN_250 => 0xfa, "Synonym for OP_RETURN."; OP_RETURN_250 => 0xfa, "Synonym for `OP_RETURN`.";
OP_RETURN_251 => 0xfb, "Synonym for OP_RETURN."; OP_RETURN_251 => 0xfb, "Synonym for `OP_RETURN`.";
OP_RETURN_252 => 0xfc, "Synonym for OP_RETURN."; OP_RETURN_252 => 0xfc, "Synonym for `OP_RETURN`.";
OP_RETURN_253 => 0xfd, "Synonym for OP_RETURN."; OP_RETURN_253 => 0xfd, "Synonym for `OP_RETURN`.";
OP_RETURN_254 => 0xfe, "Synonym for OP_RETURN."; OP_RETURN_254 => 0xfe, "Synonym for `OP_RETURN`.";
OP_INVALIDOPCODE => 0xff, "Synonym for OP_RETURN." OP_INVALIDOPCODE => 0xff, "Synonym for `OP_RETURN`."
} }
/// Classification context for the opcode. /// Classification context for the opcode.