Post
Topic
Board Development & Technical Discussion
Re: Pywallet 2.2: manage your wallet [Update required]
by
eduncan911
on 16/03/2017, 19:30:25 UTC
Hello JackJack.

I have some old wallet.dat files from early 2014 I am trying to get the PrivateKeys from - and only the private keys.  They are from Bitcoin-QT (Windows version).

All wallets have a passphrase.

I am now on OSX.

When I run pywallet.py, with the correct passphrase, I get a Segment Dump error - with no stacktrace.

Code:
$ ./pywallet.py --dumpwallet --datadir=data/ --wallet=wallet-9.dat
# moving wallet-9.dat to its own data9/wallet.dat
$ ./pywallet.py --dumpwallet --datadir=data9/

Both of these give the segment fault and crashes.

Also tried the web interface, same error.

NOTE: I am disconnected from the Internet when running the pywallet.py script.


Here's the version I am on:

Code:
$ git remote -v
origin  git@github.com:jackjack-jj/pywallet.git (fetch)
origin  git@github.com:jackjack-jj/pywallet.git (push)
$ git log
commit b52c955f8c93a75745166ebf281448016e1f22e2
Merge: 069ef00 7c847c1
Author: jackjack-jj
Date:   Mon Sep 8 20:59:58 2014 +0200

    Merge pull request #11 from gurnec/crypto-fixes

    Fix wallet creation bugs related to crypto

Using virtualenv for python2.7, I installed:

Code:
$ brew info berkeley-db
$ YES_I_HAVE_THE_RIGHT_TO_USE_THIS_BERKELEY_DB_VERSION=1 BERKELEYDB_DIR=/usr/local/Cellar/berkeley-db/6.2.23 pip2 install bsddb3
$ pip2 install Twisted

Code:
$ python2 -V
Python 2.7.13

$ pip2 freeze
appdirs==1.4.0
attrs==16.3.0
Automat==0.5.0
bsddb3==6.2.4
constantly==15.1.0
ecdsa==0.13
futures==3.0.5
greenlet==0.4.12
incremental==16.10.1
mccabe==0.6.1
mercurial==4.1.1
msgpack-python==0.4.8
neovim==0.1.13
packaging==16.8
pbr==2.0.0
pycodestyle==2.3.1
pydocstyle==1.1.1
pyflakes==1.5.0
pylama==7.3.3
pyparsing==2.1.10
six==1.10.0
stevedore==1.21.0
trollius==2.1
Twisted==17.1.0
virtualenv==15.1.0
virtualenv-clone==0.2.6
virtualenvwrapper==4.7.2
zope.interface==4.3.3

Not sure how to move forward from here.

I can open the wallet.dat files, all of them, with an old Bitcoin-QT wallet I have on a disconnected-from-the-net Windows Virtual Machine.  So, I know the wallet.dat files are valid.

Thanks!