You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I happened to have old WIF for the uncompressed public key.
Then I made a p2sh segwit address out of it, using bitcoinjs v3:
let keyPair = bitcoin.ECPair.fromWIF(secret);
let pubKey = keyPair.getPublicKeyBuffer();
let witnessScript = bitcoin.script.witnessPubKeyHash.output.encode(bitcoin.crypto.hash160(pubKey));
let scriptPubKey = bitcoin.script.scriptHash.output.encode(bitcoin.crypto.hash160(witnessScript));
address = bitcoin.address.fromOutputScript(scriptPubKey);
And sent some bitcoins there.
Now apparently it is unspendable..? Or is there a way to recover those funds?
Error Im getting is BIP143 rejects uncompressed public keys in P2WPKH or P2WSH
Thanks!
The text was updated successfully, but these errors were encountered:
I happened to have old WIF for the uncompressed public key.
Then I made a p2sh segwit address out of it, using bitcoinjs v3:
And sent some bitcoins there.
Now apparently it is unspendable..? Or is there a way to recover those funds?
Error Im getting is
BIP143 rejects uncompressed public keys in P2WPKH or P2WSH
Thanks!
The text was updated successfully, but these errors were encountered: