Skip to content

Commit 511e670

Browse files
authored
Merge pull request bitcoin#1651 from michael1011/46-fix-pubkey
BIP46 clarify witness
2 parents 3b72a7f + f1a5c71 commit 511e670

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bip-0046.mediawiki

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ month = 1 + index % 12
9090
To derive the address from the above calculated public key and timelock, we create a <tt>witness script</tt> which locks the funds until the <tt>timelock</tt>, and then checks the signature of the <tt>derived_key</tt>. The <tt>witness script</tt> is hashed with SHA256 to produce a 32-byte hash value that forms the <tt>witness program</tt> in the output script of the P2WSH address.
9191

9292
witnessScript: <timelock> OP_CHECKLOCKTIMEVERIFY OP_DROP <derived_key> OP_CHECKSIG
93-
witness: <signature> <pubkey>
93+
witness: <signature> <witnessScript>
9494
scriptSig: (empty)
9595
scriptPubKey: 0 <32-byte-hash>
9696
(0x0020{32-byte-hash})

0 commit comments

Comments
 (0)