Bitcoin Forum
May 06, 2024, 02:44:36 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Wallet Convertor  (Read 651 times)
btctalk (OP)
Full Member
***
Offline Offline

Activity: 137
Merit: 112



View Profile WWW
December 01, 2013, 07:24:05 AM
Last edit: December 05, 2013, 04:47:55 AM by btctalk
 #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.

Persian Blockchain Podcast: https://shiryakhat.net
Super Bitcoiner Club http://superbitcoiner.com
Persian Blockchain Community - http://coiniran.com - http://fb.com/IranBitcoin
1714963476
Hero Member
*
Offline Offline

Posts: 1714963476

View Profile Personal Message (Offline)

Ignore
1714963476
Reply with quote  #2

1714963476
Report to moderator
1714963476
Hero Member
*
Offline Offline

Posts: 1714963476

View Profile Personal Message (Offline)

Ignore
1714963476
Reply with quote  #2

1714963476
Report to moderator
1714963476
Hero Member
*
Offline Offline

Posts: 1714963476

View Profile Personal Message (Offline)

Ignore
1714963476
Reply with quote  #2

1714963476
Report to moderator
"With e-currency based on cryptographic proof, without the need to trust a third party middleman, money can be secure and transactions effortless." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714963476
Hero Member
*
Offline Offline

Posts: 1714963476

View Profile Personal Message (Offline)

Ignore
1714963476
Reply with quote  #2

1714963476
Report to moderator
btctalk (OP)
Full Member
***
Offline Offline

Activity: 137
Merit: 112



View Profile WWW
December 03, 2013, 12:40:30 AM
 #2

I need some tests on different systems to take care of the possible bugs.
Open to suggestions and comments Smiley

Persian Blockchain Podcast: https://shiryakhat.net
Super Bitcoiner Club http://superbitcoiner.com
Persian Blockchain Community - http://coiniran.com - http://fb.com/IranBitcoin
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!