Bitcoin Forum

Other => Beginners & Help => Topic started by: chorchonga on October 06, 2012, 02:30:01 AM



Title: How to get private keys from wallet.dat - old wallet
Post by: chorchonga on October 06, 2012, 02:30:01 AM
So, I first started mining over a year ago but I cannot get the QT Bitcoin wallet to launch when I swap out the new wallet for the old (pretty sure I know what I'm doing there).  It gives me a database error.  Do I need to delete and re-download the blockchain?  If not, how do I extract the private keys from wallet.dat for import?  There is only a small amount of plaintext when I view in a notepad application.


Title: Re: How to get private keys from wallet.dat - old wallet
Post by: Stephen Gornick on October 06, 2012, 05:30:36 AM
So, I first started mining over a year ago but I cannot get the QT Bitcoin wallet to launch when I swap out the new wallet for the old (pretty sure I know what I'm doing there).  It gives me a database error.

The debug.log will show the specific error, but if your blockchain was caught up and all you are doing is replacing the wallet.dat with an older one from a backup and the client won't restart after that then the problem is likely difficulty in accessing that wallet.

The newer clients perform more strict checking and a wallet.dat that was useable in a previous release can become unreadable with the most current release. [Clarificatoin: If it already had problems just that the old version was oblivious to them.]

Make sure that you keep another copy of the old wallet.dat intact and are only working with a copy of it.

What some people have tried is going back to an old version of the software (e.g., v0.5.x, or earlier even) and try accessing the wallet.dat with that.

You can also try using PyWallet or Gavin's BitcoinTools to access and export the keys:

 For linux,  ./dbdump.py --wallet

 - https://github.com/gavinandresen/bitcointools


Title: Re: How to get private keys from wallet.dat - old wallet
Post by: Zeek_W on October 06, 2012, 07:15:32 AM
Crap! time to check my old wallet and see if I can access it!


Title: Re: How to get private keys from wallet.dat - old wallet
Post by: RaTTuS on October 22, 2012, 03:49:03 PM
/me slams head on desk ,
old cold wallet is Meh now...
looks like I'm in for a good ride ....