Bitcoin Forum

Other => MultiBit => Topic started by: fagiano on April 21, 2018, 10:03:55 PM



Title: multibit.key file strange private key format
Post by: fagiano on April 21, 2018, 10:03:55 PM
hello, some months ago i export my private key from multibit wallet, beacuse multibit was deprecated and i change wallet. i export my multibit.key file and import in new wallet and yes All was goog.

Today im trining to use the multibit.key file to export my old private key on a bitcoingold wallet, i wanto to receive the bitcoingold of the fork.

i install coinomi wallet but when import the key alwais receive this message :"unknow key format"

The strange is that my private key inside the multibit.key file start with "S" or "o" or "u" or "d" .... start with some strange word!!!

What is doing? what i can do?

thank you to all.


Title: Re: multibit.key file strange private key format
Post by: TryNinja on April 22, 2018, 03:40:00 AM
What are you trying to import into your Coinomi wallet? (your private-keys should start with a L, K or 5)

Did you try to export your private-keys by following this article[1] and using them?

i export my multibit.key file and import in new wallet and yes All was goog.
In which wallet did you import your multibit.key file?

[1] https://multibit.org/help/v0.5/help_exportingPrivateKeys.html


Title: Re: multibit.key file strange private key format
Post by: pooya87 on April 22, 2018, 04:18:56 AM
The strange is that my private key inside the multibit.key file start with "S" or "o" or "u" or "d" .... start with some strange word!!!

the only reason why you can see letters outside of Base58 character set such as "o" or letters outside of hexadecimal characters is when you encrypt your wallet file. in which case you should also see characters such as "+" and "=" since it is going to be in base64 format. in this case you will need the password for it.

my suggestion is to first figure out what format it is that you are seeing here and also make sure this file was not edited manually or after import in some other wallet at some other time.


Title: Re: multibit.key file strange private key format
Post by: fagiano on April 22, 2018, 02:59:04 PM

the only reason why you can see letters outside of Base58 character set such as "o" or letters outside of hexadecimal characters is when you encrypt your wallet file. in which case you should also see characters such as "+" and "=" since it is going to be in base64 format. in this case you will need the password for it.


Hello, yes there are some "+" and yes i have the password for it. But how can i do to convert it? reinstal multibit and import this file and encript with passord... it work?

thank you


Title: Re: multibit.key file strange private key format
Post by: fagiano on April 22, 2018, 03:05:28 PM
What are you trying to import into your Coinomi wallet? (your private-keys should start with a L, K or 5)

Hello, this is the history. Mounts ago i have a btc wallet on multibit. Multibit was deprecated so i send my little btc to other wallet without export private key because i am not expert user. After this I discovered the bitcoincahs fork, so i export from multibit my old private key (in total safety because my BTC are elsewhere on another wallet) to get Bitcoincash, and this work good. Now with the same old private key i am trining to get bitcoin gold but have that problem


Title: Re: multibit.key file strange private key format
Post by: pooya87 on April 24, 2018, 04:11:50 AM

the only reason why you can see letters outside of Base58 character set such as "o" or letters outside of hexadecimal characters is when you encrypt your wallet file. in which case you should also see characters such as "+" and "=" since it is going to be in base64 format. in this case you will need the password for it.


Hello, yes there are some "+" and yes i have the password for it. But how can i do to convert it? reinstal multibit and import this file and encript with passord... it work?

thank you

if the file was encrypted with Multibit then the easiest way to decrypt it properly is to use the same wallet software (the same Multibit version) that you used in first place.
there is a link for each version here: https://multibit.org/help/hd0.3/change-password.html

it is worth reading this blog post also: https://multibit.org/blog/2017/07/26/multibit-shutdown.html
it has a video at the bottom and also it introduces this tool: https://github.com/Multibit-Legacy/read-multibit-wallet-file so that you can extract the keys from your Multibit wallet file.


Title: Re: multibit.key file strange private key format
Post by: HCP on April 24, 2018, 11:54:44 AM
As per the MultiBit classic documentation: https://multibit.org/help/v0.5/help_exportingPrivateKeys.html

Your options are to use either MultiBit Classic or OpenSSL to decrypt the file...
Export file format (password protected)
Below is an example of a password protected private key export file containing demonstration private keys. You typically use MultiBit Classic or OpenSSL when working with this file.
Code:
U2FsdGVkX1+YqTr9vabcfVlfKlCVTjR7kEg/xD4rEUB1tBBQm6chWSOSIUyJKK/9yjxFSHkge/xI
UCFq3MfFKqUbRnYcmOhNLBabcGRrbvsx3AawNvzp1sdHFXNvH3I+INMtYaoTjMEJVkQM8KnaUwZI
GE5PYKtMHncv+2pYA1/3Lg09hPA++jbvwL7L+NH6ZcljvYZxseu+3M45YNK1CJ/4xQJ+Yvo6OVqJ
nL7xIR0=

If you'd like to use OpenSSL, there are instructions on the MultiBit Wiki here: https://github.com/Multibit-Legacy/multibit/wiki/Export%20and%20limited%20import%20of%20private%20keys

In short:
Quote
To decrypt a MultiBit private key export file use:
Code:
openssl enc -d -p -aes-256-cbc -a -in \<ciphertext file\> -out \<plaintext file\> -pass pass:\<password\>


Title: Re: multibit.key file strange private key format
Post by: fagiano on April 24, 2018, 10:35:48 PM
I can not do anything you have told me. Installing the old version is impossible because it is not found, it is only multibit hd, the rest is Arabic for me.

thanks anyway




Title: Re: multibit.key file strange private key format
Post by: HCP on April 25, 2018, 01:30:16 AM
I can not do anything you have told me. Installing the old version is impossible because it is not found, it is only multibit hd, the rest is Arabic for me.
The older releases are available for download here: https://multibit.org/release-info/classic/v0.5.19.html
(actual files are here: https://multibit.org/releases/multibit-classic/multibit-classic-0.5.19/)

For future reference, it's a bit hidden at the bottom of the multibit.org page... under "Developers -> Releases -> Older MultiBit Classic -> Installers and Signatures"