Skip to content

Commit 7bedbed

Browse files
authored
Merge pull request #406 from csralvall/fix-10_5
Fix error in chapter 10.5
2 parents 63658e1 + d0dfc62 commit 7bedbed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

10_5_Scripting_a_Segwit_Script.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ $ bitcoin-cli listunspent
3636
"safe": true
3737
}
3838
```
39-
More importantly, there's a `redeemScript`, which decodes to `OP_0 OP_PUSHDATA (20 bytes) 3ab2a09a1a5f2feb6c799b5ab345069a96e1a0a`. The should look familiar, because it's an `OP_0` followed by 20-byte hexcode of a public key hash. In other words, a P2SH-SegWit is just a SegWit `scriptPubKey` jammed into a script. That's all there is to it. It precisely matches how modern multisigs are a multsig jammed into a P2SH, as discussed in [§10.4: Scripting a Multisig](10_4_Scripting_a_Multisig.md).
39+
More importantly, there's a `redeemScript`, which decodes to `OP_0 OP_PUSHDATA (20 bytes) 3ab2a09a1a5f2feb6c799b5ab345069a96e1a0a`. This should look familiar, because it's an `OP_0` followed by 20-byte hexcode of a public key hash. In other words, a P2SH-SegWit is just a SegWit `scriptPubKey` jammed into a script. That's all there is to it. It precisely matches how modern multisigs are a multsig jammed into a P2SH, as discussed in [§10.4: Scripting a Multisig](10_4_Scripting_a_Multisig.md).
4040

4141
The raw transaction reveals a bit more when you look at the `vout` `1`:
4242
```

0 commit comments

Comments
 (0)