Skip to content

Commit 426264f

Browse files
committed
small final (v3) edits
1 parent ae095a0 commit 426264f

2 files changed

Lines changed: 14 additions & 6 deletions

File tree

‎docs/14_1_Using_Script_Conditionals.md‎

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ ENDIF
9393
OP_EQUALVERIFY
9494
OP_CHECKSIG
9595
```
96-
So, you might think, if the `OP_DUP` is successful, then we get to do the first block, else the second. But that doesn't make any sense! Why wouldn't the `OP_DUP` succeed?!
96+
So, you might think, if the `OP_DUP` is successful, then we get to do the first block, else the second. But that doesn't make any sense! Why wouldn't the `OP_DUP` succeed?
9797

9898
And, indeed, it doesn't make any sense, because we accidentally read
9999
the statement using thewrong notation. The correct reading of this is:
@@ -229,13 +229,21 @@ Script: IF OP_CHECKSIG ELSE OP_DUP OP_HASH160 <pubKeyHashB> OP_EQUALVERIFY OP_CH
229229
Running: <pubKeyHashB> <pubKeyHashA> OP_EQUAL
230230
Stack: [ <signatureB> <pubKeyB> False ]
231231
```
232-
Whoop! The result was `False` because `<pubKeyHashB>` does not equal `<pubKeyHashA>`. Now when the `IF` runs, it collapses down to just the `ELSE` statement:
232+
233+
Whoop! The result was `False` because `<pubKeyHashB>` does not equal
234+
`<pubKeyHashA>`. Now when the `IF` runs, it collapses down to just the
235+
`ELSE` statement:
236+
233237
```
234238
Script: OP_DUP OP_HASH160 <pubKeyHashB> OP_EQUALVERIFY OP_CHECKSIG
235239
Running: False IF
236240
Stack: [ <signatureB> <pubKeyB> ]
237241
```
238-
Afterward, we go through the whole rigamarole again, starting with another `OP_DUP`, but eventually testing against the other `pubKeyHash`:
242+
243+
Afterward, we go through the whole rigamarole again, starting with
244+
another `OP_DUP`, but eventually testing against the other
245+
`pubKeyHash`:
246+
239247
```
240248
Script: OP_HASH160 <pubKeyHashB> OP_EQUALVERIFY OP_CHECKSIG
241249
Running: <pubKeyB> OP_DUP

‎docs/14_2_Using_Other_Script_Commands.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# 14.2: Using Other Script Commands
22

3-
You may already have in hand most of the Bitcoin Script opcodes that
3+
You already have in hand most of the Bitcoin Script opcodes that
44
you'll be using in most scripts. However, Bitcoin Script offers a lot
5-
more options, which might be exactly what you need to create the
6-
financial instrument of your dreams.
5+
of additional options, which might be exactly what you need to create
6+
the financial instrument of your dreams.
77

88
You should consult the [Bitcoin Script
99
page](https://en.bitcoin.it/wiki/Script) for a more thorough look at

0 commit comments

Comments
 (0)