Title: Lost my seed, have the password and the mbhd.wallet.aes & mbhd.yaml files Post by: martinblack on February 04, 2016, 07:02:38 PM Hello people. How can I reconstruct my wallet with those 2 files or at least extract the xpriv or private keys?
Title: Re: Lost my seed, have the password and the mbhd.wallet.aes & mbhd.yaml files Post by: jim618 on February 05, 2016, 01:26:21 PM Not using the UI of MultiBit HD no.
You need one of the encrypted backups that are created and the wallet words to decrypt them to recreate a complete wallet directory for everything to work properly. The wallet is encrypted with the wallet password so you could do it programmatically and dump the private keys yes. Title: Re: Lost my seed, have the password and the mbhd.wallet.aes & mbhd.yaml files Post by: martinblack on April 17, 2016, 10:00:45 AM Not using the UI of MultiBit HD no. You need one of the encrypted backups that are created and the wallet words to decrypt them to recreate a complete wallet directory for everything to work properly. The wallet is encrypted with the wallet password so you could do it programmatically and dump the private keys yes. Hi Jim, thanks for the response. I tried some tools on a Linux box and wasn't able to decrypt the .aes file. Could you let me know which one should I use? Thank you. Title: Re: Lost my seed, have the password and the mbhd.wallet.aes & mbhd.yaml files Post by: protonewb on April 17, 2016, 06:17:33 PM I would also like to know this...Tried AEScrypt and some others (error: bad format ), need to decrypt the wallet file and retrieve the existing keys.
Yes, I know about just restoring or sending the money - have the wallet and wallet password, please lay out the steps to decrypt - thanks! Title: Re: Lost my seed, have the password and the mbhd.wallet.aes & mbhd.yaml files Post by: GoldTiger69 on April 17, 2016, 06:23:54 PM The one I use is https://github.com/gurnec/btcrecover. If you want me to recover your wallet my fee is 20% of the total of the wallet (or 0.1 btc as a minimum).
Hope that helps. Title: Re: Lost my seed, have the password and the mbhd.wallet.aes & mbhd.yaml files Post by: protonewb on April 17, 2016, 06:28:55 PM Thanks GoldTiger - but finding the password is NOT the problem.
Have a mutibit wallet AND the password (and other required files/folders). It opens successfully in Multibit HD with the password. How do I decrypt the .aes wallet file WITHOUT the multibit HD client, that is the question. Tried to decrypt with AESCrypt and others - yes with the correct password - and it gives an error. Appreciate the devs help here! Title: Re: Lost my seed, have the password and the mbhd.wallet.aes & mbhd.yaml files Post by: GoldTiger69 on April 17, 2016, 06:52:31 PM Thanks GoldTiger - but finding the password is NOT the problem. Have a mutibit wallet AND the password (and other required files/folders). It opens successfully in Multibit HD with the password. How do I decrypt the .aes wallet file WITHOUT the multibit HD client, that is the question. Tried to decrypt with AESCrypt and others - yes with the correct password - and it gives an error. Appreciate the devs help here! Oh, I misunderstood what you where trying to say, my mistake. Title: Re: Lost my seed, have the password and the mbhd.wallet.aes & mbhd.yaml files Post by: martinblack on April 19, 2016, 07:14:01 AM Bump! Anyone?
Title: Re: Lost my seed, have the password and the mbhd.wallet.aes & mbhd.yaml files Post by: jim6181 on April 19, 2016, 10:05:22 AM You can only really do it programmatically. All the backup/restore in MultiBit HD itself are based on you knowing your wallet words.
If you have a look at : org.multibit.hd.core.crypto.EncryptedFileReaderWriter org.multibit.hd.core.crypto.EncryptedFileReaderWriterTest that's the code that encrypts and decrypts the wallet files with the password. The codebase is here: https://github.com/bitcoin-solutions/multibit-hd Title: Re: Lost my seed, have the password and the mbhd.wallet.aes & mbhd.yaml files Post by: martinblack on April 21, 2016, 07:05:59 AM OK, so I got something.
I added this code to the test and ran it with a newly created wallet file, so I can post the results here: Code: File encrypted = new File("/tmp/mbhd.wallet.aes"); I can't make sense of most of the result, probably forgot some extra step in decoding the contents? I could find anything related to an xprv or xpub, only addresses (not mine, it's a new walelt, maybe BRIT fees?) and some strings related to the wallet file. Here's part of the end, where you can see something that makes sense and a lot of gibberish. Could you point me to the right direction? Thank you! Code: r3.-k껛 enM3&(2 Title: Re: Lost my seed, have the password and the mbhd.wallet.aes & mbhd.yaml files Post by: jim6181 on April 21, 2016, 10:30:44 AM That decrypted file IS a wallet.
You should be able to load it up and print it out - there is a toString on the wallet object that takes a boolean to print out the private keys IIRC Look at WalletManager for loading options. |