From f9d370d3da35a242a6568179aee8d7ab66b37e69 Mon Sep 17 00:00:00 2001 From: theborakompanioni Date: Thu, 23 May 2024 15:52:46 +0200 Subject: [PATCH] chore(bip-0046): scriptPubKey -> witness programm --- bip-0046.mediawiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bip-0046.mediawiki b/bip-0046.mediawiki index ea006664..7f2ef5e6 100644 --- a/bip-0046.mediawiki +++ b/bip-0046.mediawiki @@ -83,7 +83,7 @@ month = 1 + index % 12 === Address derivation === -To derive the address from the above calculated public key and timelock, we create a witness script which locks the funds until the timelock, and then checks the signature of the derived_key. The witness script is hashed with SHA256 to produce a 32-byte hash value that forms the scriptPubKey of the P2WSH address. +To derive the address from the above calculated public key and timelock, we create a witness script which locks the funds until the timelock, and then checks the signature of the derived_key. The witness script is hashed with SHA256 to produce a 32-byte hash value that forms the witness program in the output script of the P2WSH address. witnessScript: OP_CHECKLOCKTIMEVERIFY OP_DROP OP_CHECKSIG witness: