0

Can I import a 256 bit private key in a Wallet (binary format)? Or do I have to convert it in another format?

1
  • It all depends on the wallet, sometimes it's not possible to directly import a private key, sometimes it uses some specific format (for example WIF for Bitcoin Core). I think you should be more specific or really we can't help much.
    – Sosthène
    Sep 29 '20 at 16:08
1

dumpprivkey in bitcoin core returns private key in WIF

importprivkey adds a private key (as returned by dumpprivkey) to your wallet.

Private key to WIF: https://bitcoin.stackexchange.com/a/99101/

1

Most wallets (and by that, I mean almost all) will not accept a binary 256 bit private key, you will have to convert your 1's and 0's to a WIF format.

There are libraries in python and javascript (and I'm sure other languages too) available that can do this function conversion for you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.