Bitcoin Forum
May 24, 2024, 03:59:51 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?
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3402
Merit: 6648


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: 3402
Merit: 6648


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!