Bitcoin Forum
April 25, 2024, 09:59:10 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Importing private keys form MultiBit Classic to Bitcoin ABC. Invalid private key  (Read 1123 times)
chemodan (OP)
Member
**
Offline Offline

Activity: 99
Merit: 12


View Profile
October 09, 2017, 09:16:04 PM
 #1

I exported private keys from MultiBit Classic in a file. After I open the file, copy its contents, after with the command importprivkey "my private key" I trying to import into Bitcoin ABC. It returns: Invalid private key encoding (code -5). What am I doing wrong?
The block chain is the main innovation of Bitcoin. It is the first distributed timestamping system.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
cr1776
Legendary
*
Offline Offline

Activity: 4018
Merit: 1299


View Profile
October 09, 2017, 09:27:47 PM
 #2

I exported private keys from MultiBit Classic in a file. After I open the file, copy its contents, after with the command importprivkey "my private key" I trying to import into Bitcoin ABC. It returns: Invalid private key encoding (code -5). What am I doing wrong?


 Is the first character of the private key 5? D? Or C? Or something else?
chemodan (OP)
Member
**
Offline Offline

Activity: 99
Merit: 12


View Profile
October 09, 2017, 09:42:45 PM
 #3

Is the first character of the private key 5? D? Or C? Or something else?
It's U
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
October 09, 2017, 09:44:35 PM
 #4

Is the first character of the private key 5? D? Or C? Or something else?
It's U

It's AES/BIP38 encrypted most likely if it begins with a U. You'll have to decrypt it first. How did you get it out of multibit classic? Did you put the wrong passsword in, can you retry extracting it?

ALTERNATIVELY:
Go to an offline version of this: https://www.bitaddress.org/bitaddress.org-v3.3.0-SHA256-dec17c07685e1870960903d8f58090475b25af946fe95a734f88408cef4aa194.html
and click "Wallet Details", tick Bip38 and imput the password you used on the multibit wallet.


You want a key that starts with a 5, a K or an L preferably as these are the most common types imo (electrum tends to print the ones that begin L or K as these are compressed with WIF compression and the ones beginning with a 5 are uncompressed ones).

chemodan (OP)
Member
**
Offline Offline

Activity: 99
Merit: 12


View Profile
October 09, 2017, 10:04:07 PM
 #5

You'll have to decrypt it first.
How?
How did you get it out of multibit classic? Did you put the wrong passsword in, can you retry extracting it?
Menu -> Tools -> Export private keys. After I enter password in the field "Wallet password". If I'd enter wrong password it returns error: The wallet password is incorrect. So I entered correct password
ALTERNATIVELY:
Go to an offline version of this: https://www.bitaddress.org/bitaddress.org-v3.3.0-SHA256-dec17c07685e1870960903d8f58090475b25af946fe95a734f88408cef4aa194.html
and click "Wallet Details", tick Bip38 and imput the password you used on the multibit wallet.


You want a key that starts with a 5, a K or an L preferably as these are the most common types imo (electrum tends to print the ones that begin L or K as these are compressed with WIF compression and the ones beginning with a 5 are uncompressed ones).


When I pasted there my private key it returns error: The text you entered is not a valid Private Key!Would you like to use the entered text as a passphrase and create a Private Key using a SHA256 hash of the passphrase?Warning: Choosing a strong passphrase is important to avoid brute force attempts to guess your passphrase and steal your bitcoins.
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
October 09, 2017, 11:09:43 PM
 #6

You are exporting a password protected key file from MultiBit classic... This actually encrypts the contents of the file, making it useless for what you're trying to achieve. It probably looks like this:




You need to enter your wallet password at the top, and then leave the password field at the bottom empty... Select the "do not password protect export file" option:



Note: you don't want to copy the datetime stamp at the end of the private keys when trying to import them into Bitcoin ABC... Wink

This will create a plaintext version of the export file which you will find then contains the private keys in the correct "WIF" format... Ie. You'll see keys beginning with a "K" or "L"... Like this:

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
chemodan (OP)
Member
**
Offline Offline

Activity: 99
Merit: 12


View Profile
October 10, 2017, 01:40:32 AM
Last edit: October 10, 2017, 08:06:48 PM by chemodan
 #7

HCP, thanks. I'll try this

PS: It works!
davecarter
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
January 07, 2018, 12:20:13 PM
 #8

Wow! It worked for me too!
Thanks a lot for sharing!!

The reason why it wasn't working before is because Multibit Classic was encripting the .key file.
I copy/pasted the 4 unencripted keys that my wallet had into EXODUS (Menu Developer/Assets/Bitcoin Cash/Move Funds WIF) and it worked like a charm.

You made my day guys!!
Love u
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!