Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: jubalix on June 27, 2017, 12:10:31 AM



Title: Invalid private key encoding (code -5)
Post by: jubalix on June 27, 2017, 12:10:31 AM
Hi

I am trying to import a private key, and get this.....

what do I do to fix this.

I dumped the keys with pywallet


Title: Re: Invalid private key encoding (code -5)
Post by: achow101 on June 27, 2017, 04:31:37 AM
Do your private keys begin with a '5', 'K', or 'L'?

If it begins with a '5', is the private key 51 characters long?

If it begins with a 'K' or 'L', is the private key 52 character long?

If none of the above, then you don't have a valid private key.


Title: Re: Invalid private key encoding (code -5)
Post by: jubalix on June 27, 2017, 08:30:49 AM
Do your private keys begin with a '5', 'K', or 'L'?

If it begins with a '5', is the private key 51 characters long?

If it begins with a 'K' or 'L', is the private key 52 character long?

If none of the above, then you don't have a valid private key.

Yes I am fine with that numbers are correct....

its something to do with wif format????

I exported with pywallet


Title: Re: Invalid private key encoding (code -5)
Post by: jubalix on June 27, 2017, 09:05:32 AM
Do your private keys begin with a '5', 'K', or 'L'?

If it begins with a '5', is the private key 51 characters long?

If it begins with a 'K' or 'L', is the private key 52 character long?

If none of the above, then you don't have a valid private key.

thanks ok now i figured a way around it