Post
Topic
Board Development & Technical Discussion
Merits 2 from 1 user
Re: Same private key, different P2WSH address
by
nc50lc
on 10/07/2024, 05:09:48 UTC
⭐ Merited by vapourminer (2)
Quote from: vneos
But when I use bitcoin core, the address I get using private key '1' is
Code:
bc1qrp33g0q5c5txsp9arysrx4k6zdkfs4nce4xj0gdcccefvpysxf3qccfmv3
, which can be confirmed here: https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki/#examples
This is the correct address which is properly imported to Bitcoin Core,
you probably used this descriptor: wsh(pk(KwDiBf89QgGbjEhKnhXJuH7LrciVrZi3qYjgd9M7rFU73sVHnoWn))

Code:
bc1qpac4ht6afshdx2tctnhjnetz7u6g3j9zhwwmc4cqkdsa2jumq42qd3drf7
, which is the same as the result generated by the tool provided on github: https://github.com/fortesp/bitcoinaddress.
Now this is as if they've forcefully created it with the descriptor: wsh(KwDiBf89QgGbjEhKnhXJuH7LrciVrZi3qYjgd9M7rFU73sVHnoWn)
Which will not work since its redeeem script would be the public key itself.