So after long digging I finally found my private key which is in hex format. When I paste it in one website it does validate the address, it is a legacy address, it is in hex format, but it's 66 characters long, I know privkey is 64 long, but when I uncompress it like I thought it may be just the public key, it shows different address I mean nothing close to mine? I'm confused literally, also what am I doing wrong, is this really the privkey, and if it is how can I import it?
1 Answers
is this really the [private] key [...]
According to Mastering Bitcoin, 2nd Edition by Andreas M. Antonopoulos, 66 characters is a possible compressed key in hex
and
This compressed public key corresponds to the same private key, meaning it is generated from the same private key. However, it looks different from the uncompressed public key. More importantly, if we convert this compressed public key to a bitcoin address using the double-hash function (RIPEMD160(SHA256(K))) it will produce a different bitcoin address. This can be confusing, because it means that a single private key can produce a public key expressed in two different formats (compressed and uncompressed) that produce two different bitcoin addresses. However, the private key is identical for both bitcoin addresses.
(my emphasis)
Antonopulos also gives an example of a compressed private key that I count as 66 characters long.
I would also check the format of your string against the examples in answers to how does the blockchain addresses relate to the blockchain WIF?
I strongly suggest no one ever puts a possible private key into any web-site. To me that is less safe than giving your physical wallet and bank login details to a passing stranger at a train station and asking them to come back next week and tell you if the contents are valid.
[...] and if [it is, how can I] import it?
See How do I import a private key into Bitcoin-Core? but remember, with many wallets you have to make a separate backup of the private key because imported keys are not recovered when using the recovery phrase. I think with Bitcoin core it may be enough to use it's "backup wallet" option and keep fresh copies of the backup on several different devices in different buildings. It is a good idea to test recovery from offsite backups before assuming your money is safe.

- 26,841
- 3
- 25
- 51