Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: racezefi on November 16, 2016, 07:53:51 PM



Title: Problems with pywallet
Post by: racezefi on November 16, 2016, 07:53:51 PM
Hello!

I'm trying to dump my wallet using pywallet.
Getting some strange errors, wallet was created with bitcoin 0.13.
Here's a partial log with sensitive information removed.
Can anyone recommend a version that is working with the latest Bitcoin binaries?

There's an error about bitcoin running at the time but it wasn't.

Code:
Wallet data not recognized: {'__type__': 'keymeta', '__value__': 'REMOVED', '__key__': '\x07keymeta!REMOVED'}


error: unpack_from requires a buffer of at least 4 bytes
ERROR parsing wallet.dat, type tx
key data: REMOVED
key data in hex: REMOVED
value data in hex: REMOVED
'ecdsa' package is not installed, pywallet won't be able to sign/verify messages
ERROR:root:Couldn't open wallet.dat/main. Try quitting Bitcoin and running this again.


...

  File "./pywallet.py", line 2111, in parse_wallet
    d.update(parse_BlockLocator(vds))
TypeError: 'NoneType' object is not iterable
ERROR parsing wallet.dat, type bestblock
key data: bestblock
key data in hex: REMOVED
value data in hex: REMOVED


Title: Re: Problems with pywallet
Post by: achow101 on November 16, 2016, 09:10:41 PM
Pywallet has not been updated in a long time and since it was last updated, much has changed in the wallet format. In 0.13.0, HD wallets were introduced in Core and that is probably what is screwing up pywallet.


Title: Re: Problems with pywallet
Post by: racezefi on November 16, 2016, 10:29:43 PM
Pywallet has not been updated in a long time and since it was last updated, much has changed in the wallet format. In 0.13.0, HD wallets were introduced in Core and that is probably what is screwing up pywallet.

Hi achow!

Is there any alternative that you or someone else knows about?
Thanks.


Title: Re: Problems with pywallet
Post by: achow101 on November 16, 2016, 10:32:52 PM
Pywallet has not been updated in a long time and since it was last updated, much has changed in the wallet format. In 0.13.0, HD wallets were introduced in Core and that is probably what is screwing up pywallet.

Hi achow!

Is there any alternative that you or someone else knows about?
Thanks.
Bitcoin Core itself provides some RPC methods to dump all of the private keys out of a wallet into a csv file. You can use those if you need the private keys all at once. The only difference is that you cannot actively change the wallet.dat file from Bitcoin Core. You can't add or delete addresses or transactions as pywallet allows you to do.