Bitcoin Forum
January 18, 2020, 08:22:59 AM *
News: Latest Bitcoin Core release: 0.19.0.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Is there a way to recover those funds? Error is BIP143 rejects uncompressed  (Read 100 times)
pakavat
Newbie
*
Offline Offline

Activity: 5
Merit: 3


View Profile
May 31, 2019, 04:09:04 PM
Merited by LoyceV (2), ETFbitcoin (1)
 #1

I happened to have old WIF for the uncompressed public key.

Then I made a p2sh segwit address out of it, using bitcoinjs v3:

Code:
      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!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1579335779
Hero Member
*
Offline Offline

Posts: 1579335779

View Profile Personal Message (Offline)

Ignore
1579335779
Reply with quote  #2

1579335779
Report to moderator
1579335779
Hero Member
*
Offline Offline

Posts: 1579335779

View Profile Personal Message (Offline)

Ignore
1579335779
Reply with quote  #2

1579335779
Report to moderator
HCP
Legendary
*
Online Online

Activity: 1218
Merit: 2126

<insert witty quote here>


View Profile
May 31, 2019, 09:46:25 PM
 #2

Did you read BIP143?

Restrictions on public key type

As a default policy, only compressed public keys are accepted in P2WPKH and P2WSH. Each public key passed to a sigop inside version 0 witness program must be a compressed key: the first byte MUST be either 0x02 or 0x03, and the size MUST be 33 bytes. Transactions that break this rule will not be relayed or mined by default.

Since this policy is preparation for a future softfork proposal, to avoid potential future funds loss, users MUST NOT use uncompressed keys in version 0 witness programs.

Looks like your coins are stuck... Undecided

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!