mirror of
https://github.com/bitcoinbook/bitcoinbook
synced 2025-04-20 17:19:05 +00:00
Made changes to ch05.asciidoc
This commit is contained in:
parent
78d1a503d5
commit
fa4422ec08
@ -299,7 +299,7 @@ In <<simplemath_script>>, the script +2 3 OP_ADD 5 OP_EQUAL+ demonstrates the ar
|
||||
.Bitcoin's script validation doing simple math
|
||||
image::images/msbt_0502.png["TxScriptSimpleMathExample"]
|
||||
|
||||
The following is a slightly more complex script, which calculates +((2 + 3) * 2) + 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
|
||||
|
Loading…
Reference in New Issue
Block a user