Skip to content

Commit 529cb47

Browse files
committed
Merge #595: Fix typos in SegWit Wallet Development Guide
3f7a30c Fix typos in SegWit Wallet Development Guide (Federico Bond) Pull request description: Tree-SHA512: f3b02862f003fe1ae74f42cfa3bef834f3d8bc506d4e3f7e7a8bb7bc013e2961ebc3497d097cca39a76cf286ad95694f42cbc68aa6090d23c1bb6dbc830f1c20
2 parents 1d39ab5 + 3f7a30c commit 529cb47

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_posts/en/pages/2016-01-18-segwit-wallet-dev.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ If a wallet supports script types other than just single signature, such as mult
115115
1. Define a script, called (<code>witnessScript</code>)
116116
2. Calculate the SHA256 of the <code>witnessScript</code> (<code>scripthash</code>). Please pay attention that a single SHA256 is used, not double SHA256 nor RIPEMD160(SHA256)
117117
3. The P2SH <code>redeemScript</code> is always 34 bytes. It starts with a <code>OP_0</code>, followed by a canonical push of the <code>scripthash</code> (i.e. <code>0x0020{32-byte scripthash}</code>)
118-
4. Same as any other P2SH, the <code>scripPubKey</code> is <code>OP_HASH160 hash160(redeemScript) OP_EQUAL</code>, and the address is the corresponding P2SH address with prefix 3.
118+
4. Same as any other P2SH, the <code>scriptPubKey</code> is <code>OP_HASH160 hash160(redeemScript) OP_EQUAL</code>, and the address is the corresponding P2SH address with prefix 3.
119119
* Restrictions on the script
120120
* The script evaluation must not fail, and MUST leave one and only one TRUE stack item after evaluation. Otherwise, the evaluation is failed.
121121
* Any public key inside P2SH-P2WSH scripts MUST be compressed key, or fund may be lost permanently.
@@ -143,14 +143,14 @@ The following functions are not required for initial segwit support.
143143

144144
#### Native Pay-to-Witness-Public-Key-Hash (P2WPKH)
145145

146-
* Native P2WPKH is a <code>scripPubKey</code> of 22 bytes. It starts with a <code>OP_0</code>, followed by a canonical push of the <code>keyhash</code> (i.e. <code>0x0014{20-byte keyhash}</code>)
146+
* Native P2WPKH is a <code>scriptPubKey</code> of 22 bytes. It starts with a <code>OP_0</code>, followed by a canonical push of the <code>keyhash</code> (i.e. <code>0x0014{20-byte keyhash}</code>)
147147
* Same as P2SH-P2WPKH, <code>keyhash</code> is RIPEMD160(SHA256) of a compressed public key.
148148
* When spending a native P2WPKH, the <code>scriptSig</code> MUST be empty, and the witness stack format and signature generating rules are same as P2SH-P2WPKH (including the requirement of using compressed public key)
149149
* [Example](http://n.bitcoin.ninja/checktx?txid=d869f854e1f8788bcff294cc83b280942a8c728de71eb709a2c29d10bfe21b7c)
150150

151151
#### Native Pay-to-Witness-Script-Hash (P2WSH)
152152

153-
* Native P2WSH is a <code>scripPubKey</code> of 34 bytes. It starts with a <code>OP_0</code>, followed by a canonical push of the <code>scripthash</code> (i.e. <code>0x0020{32-byte scripthash}</code>)
153+
* Native P2WSH is a <code>scriptPubKey</code> of 34 bytes. It starts with a <code>OP_0</code>, followed by a canonical push of the <code>scripthash</code> (i.e. <code>0x0020{32-byte scripthash}</code>)
154154
* Same as P2SH-P2WSH, <code>scripthash</code> is SHA256 of the <code>witnessScript</code>.
155155
* When spending a native P2WSH, the <code>scriptSig</code> MUST be empty, and the witness stack format and signature generating rules are same as P2SH-P2WSH (including the requirement of using compressed public key)
156156
* [Example](http://n.bitcoin.ninja/checktx?txid=78457666f82c28aa37b74b506745a7c7684dc7842a52a457b09f09446721e11c)

0 commit comments

Comments
 (0)