Anyway, I managed after a lot of debugging to sort it out, and fixed it, partially.
Here is my repo on github https://github.com/magnux/pywallet, it is exactly the same as the original, except for the line 1231, where I changed "prefix = chr(128)" for "prefix = chr(176)". This small fix will let you dump your keys correctly.
You're not screwed, if you still have those recovered .dat of course.
So, the recipe:
1) Download MY pywallet https://github.com/magnux/pywallet.
2) Recover it:
If you have already recovered your wallet:, you can use your recovered .dat. It might issue a warning later, in the dumping phase, because of the chr mismatch, ignore it.
If you haven't:
3) Dump it(the info):
4) Extract it:
This will extract all your keys in lines.
5) Import it:
Using litecoind, you can import it, this process is painstakingly slow, it has to rescan each time imports a key into the wallet.
Run the server and let it sync the block, after that you can use this line:
6) Enjoy:
This process will allow you recover your keys, guaranteed, I just done so with mine.
All your keys will be associated with the "" account, and you'll be able to get your coins out via litecoind sendtoaddress
I hope this helps the mankind.
tips: LeNXP1KhagNUFfy9XKq1wn5quK6du2LX1R
Dear Sir,
I would like to draw your kind attention that i have some error to use to your script. Please suggestion how to solve it:
C:\Users\PC\Downloads\pywallet-master>python pywallet.py --otherversion 48 --datadir=recovered/ --wallet=wallet.dat --dumpwallet --passphrase=./ 1>wallet.dump
Traceback (most recent call last):
File "pywallet.py", line 5008, in
db_env = create_env(db_dir)
File "pywallet.py", line 1267, in create_env
r = db_env.open(db_dir, (DB_CREATE|DB_INIT_LOCK|DB_INIT_LOG|DB_INIT_MPOOL|DB_INIT_TXN|DB_THREAD|DB_RECOVER))
bsddb.db.DBNoSuchFileError: (2, 'No such file or directory -- recovered/__db.001: No such file or directory')