Bitcoin Forum

Other => MultiBit => Topic started by: BobbyP on December 20, 2017, 07:20:42 PM



Title: Can't export private key from Multibit Classic to Electrum
Post by: BobbyP on December 20, 2017, 07:20:42 PM
I'm trying to retrieve my Bitcoin Cash from a Multibit Classic wallet. I downloaded Electrum, at startup picked "create standard wallet", then "use public or private keys", then I paste my exported key (unencrypted) from Multibit into the box. The key starts with L and ends with Z. The problem is the NEXT button remains greyed out and I can't proceed. Any idea how to do this?

 - I also followed this YouTube video and it said to do the exact same thing: https://www.youtube.com/watch?v=LaijbTcxsv8&feature=youtu.be


Title: Re: Can't export private key from Multibit Classic to Electrum
Post by: HCP on December 21, 2017, 03:21:39 AM
Unfortunately, the import options changed in the newer versions of Electrum, so following the YouTube tutorial when using Electrum v3+ won't work.

Fortunately, you CAN still import into Electrum... Just use:

File -> new/restore -> import Bitcoin addresses or private keys

This option will allow you to use your private key starting with "5", "K" or "L" (aka WIF format)


Title: Re: Can't export private key from Multibit Classic to Electrum
Post by: tc8 on January 08, 2018, 05:49:41 PM
I'm trying the exact same thing, importing a private key from multibit classic into electrum. But the next button stays greyed out, even when using the new instructions.

I have two keys, one starts with K and ends with N. The other starts with K and ends with M. I made sure not to encrypt the export.

any ideas? Much appreciated.


Title: Re: Can't export private key from Multibit Classic to Electrum
Post by: HCP on January 09, 2018, 12:25:50 AM
Are you using Electrum v3.0.x or an older Electrum v2.x? ???


Your "exported" keys file (unencrypted) should look something like this... note that the keys are ONLY the bit highlighted in the red box... DO NOT copy the date/time at the end of the line:
https://talkimg.com/images/2023/11/15/zD801.png



In Electrum, you want to create a new wallet file... "File -> New/Restore", then give the wallet a unique name to make it easy to identify:
https://talkimg.com/images/2023/11/15/zDbmm.png



Select the wallet type... if using v3.0.x, you MUST use "Import Bitcoin addresses or private keys":
https://talkimg.com/images/2023/11/15/zDpJW.png



Then enter your private keys from the export file, ONE per line:
https://talkimg.com/images/2023/11/15/zDDpJ.png



Click next, and your wallet should be created, with the same addresses/transactions as your old MultiBit Classic wallet:
https://talkimg.com/images/2023/11/15/zDWZC.png


Title: Re: Can't export private key from Multibit Classic to Electrum
Post by: tc8 on January 10, 2018, 05:57:09 PM
I'm on Electrum 3.0.5 and followed your steps exactly - the Next button still isn't clickable after I enter my keys.  ???

Thank you though!


Title: Re: Can't export private key from Multibit Classic to Electrum
Post by: HCP on January 10, 2018, 07:08:30 PM
That is very strange... something is either wrong with the keys you are attempting to import, or your Electrum is bad... what happens if you attempt to import this private key:

Code:
KyRmVbFNN95UUKBzVVkzC3xqoR4k6rrTBCsBpTTcxZBZCQzzhjfT

Is the Next button still not clickable? If so, then it might be that your copy of Electrum is bad?? Did you get it from the official site? https://electrum.org/#download ???

If you can import that private address, then, for some unknown reason, the keys you have exported from MBC are bad??!? :-\


Title: Re: Can't export private key from Multibit Classic to Electrum
Post by: Zyloth on January 19, 2018, 05:17:19 PM
Does an older version of Electrum accept the encripted keys from Multibit Classic - as I'm having the same problem ...?


Title: Re: Can't export private key from Multibit Classic to Electrum
Post by: HCP on January 20, 2018, 01:34:08 AM
No, the encrypted keys from MultiBit are not able to be imported into ANY wallet software that I know of... you must export them unencrypted or you will not be able to import them anywhere.

If your exported key file does not look like this:
https://talkimg.com/images/2023/11/15/zD3bc.png

Then you have exported it incorrectly. Also, as per the instructions above, you only want to import the keys... NOT the timestamps at the end.


Title: Re: Can't export private key from Multibit Classic to Electrum
Post by: bitcoinmedic on February 01, 2018, 08:02:42 AM
If you are not able to recover the keys from MultiBit PM us. We have the tools to help you.


Title: Re: Can't export private key from Multibit Classic to Electrum
Post by: janf on May 16, 2019, 12:39:14 PM
I unfortunately only have the exported Key file which appear in the right format !!  Unfortunately the laptop with the original wallet on has been wiped :(  Can anyone give me hope that the Key file can be intepretted to get the private keys?


Title: Re: Can't export private key from Multibit Classic to Electrum
Post by: HCP on May 16, 2019, 07:57:01 PM
I unfortunately only have the exported Key file which appear in the right format !!  Unfortunately the laptop with the original wallet on has been wiped :(  Can anyone give me hope that the Key file can be intepretted to get the private keys?
So you have a .key file that shows as plaintext like the one in the pic above? And it has keys displayed like this?
Code:
Kx2v6DfqgkY7vU9jRQ4R5K2jQQKebbY8ooHCdkxTDdev8oyBp8By 2019-05-17T02:31:25Z
KxEsbxNPNWPF9c4cSGB53zAcKrfMosdeJgW4wWNPUSYYKu5tNWxM 2019-05-17T02:31:25Z
L27TfzcwzgaZ9EofkPrb93dMUHpWxrPr8tD6J4zLfQZMzTqSLP24  2019-05-17T02:31:25Z
KwGXxAUyZYqvgyE78WjSFzXbYNoXvCrKn26GjBZVuHAWXetC4B2R  2019-05-17T02:31:25Z
KwKAe9JqMmaLQnNm5JHwsNTDcYy59WzAu5tc2HzzmqBiTnbitMVp  2019-05-17T02:31:25Z

If so, you can simply import or sweep those private keys into a new wallet.


However, if it is an encrypted .key file and the contents looks like this:
Code:
U2FsdGVkX19xxlTkfbYzdH4c57XUp+MjeYOEC+y/mA4H1R1+OLehyiU7rw+35t2BPZ03xPXrKdsn
kX1fuGVkX1/Kl/4BIzl+7rG0o58yRIA2azd3JLrZp1c53lLNsTId8WNmQBotyy/4SS7E/ybScPVb
akk6nv0t5a3mlJg+Clpo+E/NNCyhi17ZmKipBmlvQyA+V4Norg/s

Then, you would need to download an old version of multibit and try to import the .key file, then re-export the keys unencrypted to access the private keys.


Title: Re: Can't export private key from Multibit Classic to Electrum
Post by: janf on May 17, 2019, 01:59:13 PM
I tried the download of two different versions of Multibit Classic 0.5.19 and 0.5.15. and unfortunately neither would import my file !!
I have then spent alot of time working through recreating the problem and looking for patterns. I did find that the openSSL command which is shown in all the documentation did not work even on a freshly created encrypted key file with a password that I had entered 2 minutes previously !!! i thought I had cracked it when I fell upon a one line suggestion which was to add teh qualifier -md md5 to the openssl command. That solved the problem with the test file I created yesterday from givign an error 12732 EVP_DECRYPTFINAL_EX:BAD DECRYPT
but I was absolutely gutted to find it didnt quite decypher my key file.
The output it came up with appeared to bee close with teh same sort of structure  i.e. private key string and then spaces and then date although the characters were not as expected e.g. "*****¬†½4B™B‚“åÒ'***" and "¿ƒ" for a date.....
 As I say I feel I might be close but that doesnt get me my keys back !!  I have started trying alot of other parameters  but as yu can probably tell from my ramblings I am working on trial and error rather than any in depth knowledge of why these things are working !!!
Any suggestions would be very gratefully received


Title: Re: Can't export private key from Multibit Classic to Electrum
Post by: HCP on May 17, 2019, 10:24:48 PM
If neither of those versions of MultiBit are able to import your .key file... then chances are the password you are using is incorrect.

What is the error you get when you attempt to import the key file? ???


Title: Re: Can't export private key from Multibit Classic to Electrum
Post by: janf on May 20, 2019, 08:32:07 AM
If neither of those versions of MultiBit are able to import your .key file... then chances are the password you are using is incorrect.

What is the error you get when you attempt to import the key file? ???

The error message in the application is
The private keys unlock failed. The error was "Could not decrypt input string"


Title: Re: Can't export private key from Multibit Classic to Electrum
Post by: NeuroticFish on May 20, 2019, 10:48:23 AM
"Could not decrypt input string"

This is indeed, most probably caused by wrong password (https://github.com/Multibit-Legacy/multibit/issues/607).
Another link is also provided in that article (this link (https://github.com/Multibit-Legacy/multibit/wiki/Export-and-limited-import-of-private-keys)) with the technical details on export/import of private keys, but that's useless without the correct password.


Title: Re: Can't export private key from Multibit Classic to Electrum
Post by: HCP on May 20, 2019, 09:57:37 PM
There is/was/are some issues with MultiBit and the way it encrypts some things... I've had instances where I am 110% certain of the password, because it works within the MultiBit app, but it fails when using the openssl commandline tools on the auto backup files. I've had limited success in the past trying to figure it all out. :-\

But yes, as NeuroticFish has suggested... if the app is giving you "Could not decrypt input string", then I am fairly confident that you have the wrong password...