Author

Topic: Wallet Convertor (Read 680 times)

full member
Activity: 137
Merit: 112
December 02, 2013, 07:40:30 PM
#2
I need some tests on different systems to take care of the possible bugs.
Open to suggestions and comments Smiley
full member
Activity: 137
Merit: 112
December 01, 2013, 02:24:05 AM
#1
Hi

I had a really hard time converting my Bitcoin-QT wallet.dat files to something that is possible to import to Multibit Wallet. (Not that hard but stupid to go all that way for something that should have been simple)
So I ended up writing a python program to do so from now on.

Github : https://github.com/shayanb/Open-Wallet-Format/

Open-Wallet-Format

Bitcoin Wallet Convertor (for now) 1.0


OWF.py reads the keys from Bitcoin-QT wallet (e.g wallet.dat) and exports them to MultiBit wallet format (e.g multibit.key) but also applicable for Blockchain.info imports. In short it's a bitcoin wallet convertor from wallet.dat to multibit.key.

I used jackjack-jj fork of Pywallet.py (https://github.com/jackjack-jj/pywallet) to read wallet.dat and it is included in this repository. so you need to install the pywallet dependencies prior to the use of this.


Why should I use this?

To Convert your wallet.dat (or exported wallet from Bitcoin-QT) to:

  • MultiBit Wallet
  • Blockchain Importable format
  • Backup your private keys in a format that would not be as complicated as wallet.dat and less possible to be corrupted

WARNING: the output is not encrypted so take good care of the file!


Usage:

Usage: OWF.py [options]

Options:

--version show program's version number and exit

      -h, --help show this help message and exit

      --wallet=Wallet                    wallet.dat or the exported wallet from Bitcoin-QT to be converted

      --newwallet=NewWallet          New wallet name (multibit format) (in the same directory as the --wallet


Example

              ./OWF.py --wallet ./wallet.dat

              ./OWF.py --wallet ./wallet.dat --newwallet ./newwallet.key


TODO


  • Less dependencies to pywallet.py
  • Add --passphrase to read encrypted wallet.dat
  • Nicer code! for now it works fine but it could be implemented in less hacky-code style
  • Should be tested on windows too (tested on Mac and Linux so far)
  • Add the other way convertion (Using Import Private keys of Pywallet.py)
  • Define a standard for wallet format as .OWF


Support

Please support the work by either writing code or donate to 1owfJHTsWrrCpgaaYjC1vbJevuQzYRTYn
It would be greatly appreciated.
Jump to: