Skip to content

Commit f9d370d

Browse files
chore(bip-0046): scriptPubKey -> witness programm
1 parent 00c7d0b commit f9d370d

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
@@ -83,7 +83,7 @@ month = 1 + index % 12
8383

8484
=== Address derivation ===
8585

86-
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>scriptPubKey</tt> of the P2WSH address.
86+
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.
8787

8888
witnessScript: <timelock> OP_CHECKLOCKTIMEVERIFY OP_DROP <derived_key> OP_CHECKSIG
8989
witness: <signature> <pubkey>

0 commit comments

Comments
 (0)