Post
Topic
Board Bitcoin Technical Support
Re: Invalid private key encoding (code -5)
by
pedrog
on 31/01/2015, 22:13:24 UTC
I have two keys to import, one starts with 'D' the other with 'C', same error with both.

Your private keys aren't in Wallet Import Format, they are base58 which doesn't work with Bitcoin Core.

On blockchain.info, go to import/export > export unencrypted and on the dropdown "select private key format" select "Bitcoin-Qt Format". They should begin with 5, K or L.

That's it!!!

Thanks Blazr and shorena for your help.