Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [wallet-import-format]

Wallet Import Format is how Bitcoin Core represents private keys outside of the client. Example: 5HueCGU8rMjxEXxiPuD5BDku4MkFqeZyd4dZ1jvhTVqvbTLvyTJ

Filter by
Sorted by
Tagged with
4 votes
1 answer

Why bitcoin private key WIF format always be started in K or L?

According to, the bitcoin private wif format key is create by below step. And it says that the compressed wif key always start with 'K' or 'L', this ...
kinjia's user avatar
  • 81
3 votes
6 answers

Correct way to convert a 256-bit private key to WIF?

On the Bitcoin wiki it has steps to convert a private key to WIF. So I tried following these steps in attempt to get the same result. So I took the private key. ...
Nick's user avatar
  • 33
2 votes
2 answers

Why are compressed private keys typically longer than their uncompressed counterpart?

From what I understood, compressed private keys are supposed to represent the same secret key, stored more efficiently thus taking up less space. I assume 'more efficiently' has to do with secp256k1 ...
RocketNuts's user avatar
  • 1,061
6 votes
2 answers

litecoin constants and prefixes

Is there any list of litecoin constants available? Something like Bitcoin list of address prefixes
Oskyk's user avatar
  • 222
5 votes
3 answers

How to import a HD wallet from an extended private key

I'd like to export a derived private key from my Electrum HD wallet, and use it as a HD wallet master key in a Mycelium wallet. I used bx to get the key like this (m/2'/0) (where m is the unencrypted ...
sevcsik's user avatar
  • 183
3 votes
2 answers

What is the private key format?

I wasn't aware of a private key format, however numerous stackoverflow posts hint towards a formatting of some kind Format of private key Which private key format is this? What encoding or format ...
arshbot's user avatar
  • 1,788
3 votes
1 answer

Why do we need two different formats of WIF (wallet import format)?

I know that a public key can be compressed. However, a public key and its compressed one have the same private key. Then why do we need two different Wallet import formats for each compressed and ...
Константин Ван's user avatar
2 votes
1 answer

Private key to WIF compressed: which one is correct?

This is how we can find the WIF from a private key: private_key = '000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f' decoded_private_key = bitcoin.decode_privkey(private_key, 'hex') ...
Basj's user avatar
  • 354
2 votes
1 answer

Format of private key

On this website, we can see that the the private key 1 is written in this format. 5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf I would like to know what is this format.
John Smith's user avatar
0 votes
1 answer

Priv Key with 58 characters to WIF

I have an old paper wallet with Private Keys of 58 characters (all starting with a 6). These can be imported e.g. on, but since I still have BSV on this key, I have to import/sweep it ...
Umumba's user avatar
  • 1