Bitcoin Forum
May 14, 2024, 06:26:07 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Invalid private key encoding (code -5) ?  (Read 880 times)
calkob (OP)
Hero Member
*****
Offline Offline

Activity: 1092
Merit: 520


View Profile
March 29, 2017, 09:27:18 PM
 #1

currently trying to importprivkey from an encrypted bitaddress.org paperwallet.  am getting "Invalid private key encoding (code -5)"   any ideas?
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715667967
Hero Member
*
Offline Offline

Posts: 1715667967

View Profile Personal Message (Offline)

Ignore
1715667967
Reply with quote  #2

1715667967
Report to moderator
1715667967
Hero Member
*
Offline Offline

Posts: 1715667967

View Profile Personal Message (Offline)

Ignore
1715667967
Reply with quote  #2

1715667967
Report to moderator
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3388
Merit: 6637


Just writing some code


View Profile WWW
March 29, 2017, 09:28:49 PM
 #2

Are you sure you copied it correctly? Are you sure your private key is in WIF format (begins with 5, K, or L)?

calkob (OP)
Hero Member
*****
Offline Offline

Activity: 1092
Merit: 520


View Profile
March 29, 2017, 09:40:36 PM
 #3

starts with a 6 from bitaddress.  does the encryption have anything to do with it?

i can sweep it on to breadwallet, but was trying to import it straight to core wallet.


Dont scare me like that man.......... Shocked  had to go sweep it there to make sure.....lol
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3388
Merit: 6637


Just writing some code


View Profile WWW
March 29, 2017, 09:50:40 PM
 #4

starts with a 6 from bitaddress.  does the encryption have anything to do with it?
Yes. That means that it is BIP 38 encrypted. Bitcoin Core does not support importing BIP 38 encrypted private keys. You will need to decrypt it and get the normal WIF private key.

calkob (OP)
Hero Member
*****
Offline Offline

Activity: 1092
Merit: 520


View Profile
March 29, 2017, 09:55:25 PM
 #5

starts with a 6 from bitaddress.  does the encryption have anything to do with it?
Yes. That means that it is BIP 38 encrypted. Bitcoin Core does not support importing BIP 38 encrypted private keys. You will need to decrypt it and get the normal WIF private key.

Cheers Achow, just checked it out on bitaddress, many thanks.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!