Post
Topic
Board Bitcoin Technical Support
Re: Please, I need help for converting a very old btc private key to WIF.
by
bluecat4
on 24/06/2025, 15:21:58 UTC
So, I don't understand how the WIF private key depending if it's compressed or uncompressed can affect the UTXOs.
But first, take note that WIF is encoded with or without a "compressed byte" flag that tells the client which pair public key form to compute from it.
So, compressed and uncompressed WIF specifically point to their corresponding compressed and uncompressed pubKey format.

Then, simplest explanation to the UTXO: it's "locked" using the hash of the public key. (Pay-to-Pub-Key-Hash)
Since compressed and uncompressed pubKeys are entirely different, their hashes will be different.
So the UTXO created with them only corresponds to the public key that can reproduce its hash.

I think I understand.

So, I see that the uncompressed WIF private key has a direct relationship with the uncompressed master public key. And it works in the same way between the compressed WIF private key and the compressed master public key.

Firstly, I’ll check the balance with the uncompressed master public key and the compressed master public key using 2 watch-only wallets. If the balance is different, I’d need to import both WIF private keys. If the balance is the same, my idea is to import the uncompressed WIF.

Many thanks.