Skip to content

Commit d72c1bf

Browse files
committed
Update bip-0141.mediawiki
The byte representation of "<0 <32-byte-hash>>" is "0x220020{32-byte-hash}" What was listed here would be the byte representation of "0 <32-byte-hash>". The text explains that there is only one item in scriptSig, so I'm guessing the byte representation is wrong. Also the corrected byte representation would produce the same sig/pubkey described in P2WSH after following the bip16 rules.
1 parent 932d075 commit d72c1bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bip-0141.mediawiki

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ The following example is the same 1-of-2 multi-signature P2WSH witness program,
166166

167167
witness: 0 <signature1> <1 <pubkey1> <pubkey2> 2 CHECKMULTISIG>
168168
scriptSig: <0 <32-byte-hash>>
169-
(0x0020{32-byte-hash})
169+
(0x220020{32-byte-hash})
170170
scriptPubKey: HASH160 <20-byte-hash> EQUAL
171171
(0xA914{20-byte-hash}87)
172172

0 commit comments

Comments
 (0)