mirror of
https://github.com/bitcoinbook/bitcoinbook
synced 2025-05-29 04:08:49 +00:00
Made changes to ch05.asciidoc
This commit is contained in:
parent
fa4422ec08
commit
1bd8838e88
@ -302,7 +302,7 @@ image::images/msbt_0502.png["TxScriptSimpleMathExample"]
|
|||||||
The following is a slightly more complex script, which calculates ++2 + 7 – 3 + 1++. Notice that when the script contains several operators in a row, the stack allows the results of one operator to be acted upon by the next operator:
|
The following is a slightly more complex script, which calculates ++2 + 7 – 3 + 1++. Notice that when the script contains several operators in a row, the stack allows the results of one operator to be acted upon by the next operator:
|
||||||
|
|
||||||
----
|
----
|
||||||
2 3 OP_ADD 2 OP_MUL 1 OP_ADD 11 OP_EQUAL
|
2 7 OP_ADD 3 OP_SUB 1 OP_ADD 7 OP_EQUAL
|
||||||
----
|
----
|
||||||
Try validating the preceding script yourself using pencil and paper. When the script execution ends, you should be left with the value TRUE on the stack.
|
Try validating the preceding script yourself using pencil and paper. When the script execution ends, you should be left with the value TRUE on the stack.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user