wallet importer/exporter
Clone or download
Pull request Compare This branch is 23 commits ahead of jackjack-jj:master.
Latest commit 0a8d565 Oct 28, 2014
Type Name Latest commit message Commit time
Failed to load latest commit information.
foundkeys oh well Oct 12, 2014
README update Oct 12, 2014
blake8.py adding blake8.py Oct 11, 2014
pywallet.py update Oct 28, 2014


Ported by BlueDragon747 for Blakecoin/Photon

Please Note:

added Blake hashing and Blakecoin pubkey version and have done basic testing for recovery and dumping

tested both non encrypted and encrypted seems to create a working wallet.dat


Dump on Windows
python pywallet.py --dumpwallet --otherversion=26 --datadir=C:\pywallet > dump.txt

Recovery on Windows
python pywallet.py --recover --recov_device C:\pywallet\wallet.dat --recov_size 10Gio --recov_outputdir C:\pywallet\foundkeys

Recovery on Linux
./pywallet.py --recover --recov_device /pywallet/wallet.dat --recov_size 10Gio --recov_outputdir /pywallet/foundkeys

Encrypted wallets: tested and works fine with encrypted wallets it will prompt for password or you can use the "--passphrase=YourPassword" in the command

Requirements: Python 2.x, with bsddb and twisted packages

Usage: pywallet.py [options]

  --version             show program's version number and exit
  -h, --help            show this help message and exit
  --dumpwallet          dump wallet in json format
  --importprivkey=KEY   import private key from vanitygen
  --importhex           KEY is in hexadecimal format
  --datadir=DATADIR     wallet directory (defaults to bitcoin default)
  --wallet=WALLETFILE   wallet filename (defaults to wallet.dat)
  --label=LABEL         label shown in the adress book (defaults to '')
  --testnet             use testnet subdirectory and address type
  --namecoin            use namecoin address type
                        use other network address type, whose version is
  --info                display pubkey, privkey (both depending on the
                        network) and hexkey
  --reserve             import as a reserve key, i.e. it won't show in the
                        adress book
                        prints balance of KEY_BALANCE
  --web                 run pywallet web interface
  --port=PORT           port of web interface (defaults to 8989)


Debian-based Linux:
 aptitude install build-essential python-dev python-twisted python-bsddb3

Mac OS X:
 1. Install MacPorts from http://www.macports.org/
 2. sudo port install python27 py27-twisted py27-pip py-bsddb python_select
 3. sudo port select --set python python27
 4. sudo easy_install ecdsa

 1. Install Python 2.7
 2. Install Twisted 11.0.0 for Py2.7, then Zope.Interface (a .egg file) for Py2.7: http://twistedmatrix.com/trac/wiki/Downloads

 3. Untested, proposed by TeaRex: install Zope.Interface from http://www.lfd.uci.edu/~gohlke/pythonlibs

 If this doesn't work, you will have to install the egg file:

 3(32bit). http://pypi.python.org/pypi/setuptools#downloads to install setuptools
 3(64bit). http://pypi.python.org/pypi/setuptools#windows to download, then run ez_setup.py

 4. Go to C:\Python27\Scripts
 5. Run easy_install.exe zope.interface-3.6.4-py2.7-win-amd64.egg