Closed winteraz closed 6 years ago
I believe the BTC is lost. I fixed the issue by using(from now on) a pay-to-pubkey-hash address resulted from ExtendedKey.Address instead of the previously segwit pay-to-script-hash style
address.
Disclosure: I don't know what I'm doing but seems to work so I'm closing this.
I'm trying to generate pairs of bitcoin private keys and public addresses. To test it I sent a small amount of BTC to the child BTC address from an external wallet. The BTC was sent but the issue is that the corresponding private key from path/chain is not recognised by any wallet software(i.e. they error out saying that the private key doesn't match the address) so I can't use the coins sent anymore. Any idea if this is a bug in
hdkeychain/btcutil
package or am I doing something wrong ? The code below prints:I used btc child public (
3HAkEb9NTC4jJCUBevuB2VrFoucc5vdzz4
) as receiving address but it doesn't seem to match the generated private key5J1HZKEP9YBd4apoBKyJLgZ6uUsxDuJ9ap4ncWSeFd3DpFuPkf1