• Forum has been upgraded, all links, images, etc are as they were. Please see Official Announcements for more information

how to recover corrupted (empty) wallet unencrypted?

ac0

New member
Hi, few month ago I was stucked with a corrupted wallet that was corrupted.
It appears that it was corrupted during encryption process, and it was recovered using bittwalletrecovery.py

https://www.dash.org/forum/threads/...n-wallet-all-transaction-at-0-000.8439/page-2



I did not care about the wallet at that time, so I did not asked for it, now I tryed to access about my old transactions hystory, so I'll try once again to recover that wallet.
I'm a window user, I don't think there is such a scrypt on windows?
Even if I try to mount a linux computer, I did not understand where to upload my Wallet.dat on that computer.
If I understand correctly, the cryp should give me a private key that I can use to recreate my wallet, is that correct?

Best regards.
 
Install dependencies (see comments in the script), put bitwalletrecover.py and wallet.dat in the same folder and run bitwalletrecover.py just like any other python script (“python bitwalletrecover.py"). This should give you the list of recovered addresses and private keys. You can then search for addresses in blockchain explorer and/or import private keys into new wallet via importprivkey rpc command.
 
Thanks for your answer.

I set up a vultr server just to do it.
I used Ubuntu 14.04x64
I put wallet.dat and bitwalletrecovery.py on the root folder.
I then install dependancy and libs:


## sudo apt-get install python3-setuptools
## sudo easy_install3 pip
##
## Install libs:
##
## sudo pip install pycoin
## sudo pip install base58
##
but I still have some error about base58:

Unpacking python3-setuptools (3.3-1ubuntu2) ...
Setting up python3-pkg-resources (3.3-1ubuntu2) ...
Setting up python3-setuptools (3.3-1ubuntu2) ...
root@vultr:~# sudo easy_install3 pip
Searching for pip
Reading https://pypi.python.org/simple/pip/
Best match: pip 9.0.1
Downloading https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d 6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz#md5=35f01da33009719497f01a4ba69 d63c9
Processing pip-9.0.1.tar.gz
Writing /tmp/easy_install-fr5bxshj/pip-9.0.1/setup.cfg
Running pip-9.0.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-fr5bxshj/pi p-9.0.1/egg-dist-tmp-mus2p63h
/usr/lib/python3.4/distutils/dist.py:260: UserWarning: Unknown distribution opti on: 'python_requires'
warnings.warn(msg)
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.mailmap'
warning: no previously-included files found matching '.travis.yml'
warning: no previously-included files found matching '.landscape.yml'
warning: no previously-included files found matching 'pip/_vendor/Makefile'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files found matching 'dev-requirements.txt'
warning: no previously-included files found matching 'appveyor.yml'
no previously-included directories found matching '.github'
no previously-included directories found matching '.travis'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'contrib'
no previously-included directories found matching 'tasks'
no previously-included directories found matching 'tests'
Adding pip 9.0.1 to easy-install.pth file
Installing pip3 script to /usr/local/bin
Installing pip3.4 script to /usr/local/bin
Installing pip script to /usr/local/bin

Installed /usr/local/lib/python3.4/dist-packages/pip-9.0.1-py3.4.egg
Processing dependencies for pip
Finished processing dependencies for pip
root@vultr:~# sudo pip install pycoin
Collecting pycoin
Downloading pycoin-0.80.tar.gz (113kB)
100% |################################| 122kB 3.7MB/s
Installing collected packages: pycoin
Running setup.py install for pycoin ... done
Successfully installed pycoin-0.80
root@vultr:~# sudo pip install base58
Collecting base58
Downloading base58-0.2.5-py3-none-any.whl
Installing collected packages: base58
Successfully installed base58-0.2.5

root@vultr:~# python bitwalletrecover.py
Traceback (most recent call last):
File "bitwalletrecover.py", line 22, in <module>
import base58
ImportError: No module named base58


 
Thanks for your answer.

I set up a vultr server just to do it.
I used Ubuntu 14.04x64
I put wallet.dat and bitwalletrecovery.py on the root folder.
I then install dependancy and libs:


## sudo apt-get install python3-setuptools
## sudo easy_install3 pip
##
## Install libs:
##
## sudo pip install pycoin
## sudo pip install base58
##
but I still have some error about base58:

Unpacking python3-setuptools (3.3-1ubuntu2) ...
Setting up python3-pkg-resources (3.3-1ubuntu2) ...
Setting up python3-setuptools (3.3-1ubuntu2) ...
root@vultr:~# sudo easy_install3 pip
Searching for pip
Reading https://pypi.python.org/simple/pip/
Best match: pip 9.0.1
Downloading https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d 6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz#md5=35f01da33009719497f01a4ba69 d63c9
Processing pip-9.0.1.tar.gz
Writing /tmp/easy_install-fr5bxshj/pip-9.0.1/setup.cfg
Running pip-9.0.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-fr5bxshj/pi p-9.0.1/egg-dist-tmp-mus2p63h
/usr/lib/python3.4/distutils/dist.py:260: UserWarning: Unknown distribution opti on: 'python_requires'
warnings.warn(msg)
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.mailmap'
warning: no previously-included files found matching '.travis.yml'
warning: no previously-included files found matching '.landscape.yml'
warning: no previously-included files found matching 'pip/_vendor/Makefile'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files found matching 'dev-requirements.txt'
warning: no previously-included files found matching 'appveyor.yml'
no previously-included directories found matching '.github'
no previously-included directories found matching '.travis'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'contrib'
no previously-included directories found matching 'tasks'
no previously-included directories found matching 'tests'
Adding pip 9.0.1 to easy-install.pth file
Installing pip3 script to /usr/local/bin
Installing pip3.4 script to /usr/local/bin
Installing pip script to /usr/local/bin

Installed /usr/local/lib/python3.4/dist-packages/pip-9.0.1-py3.4.egg
Processing dependencies for pip
Finished processing dependencies for pip
root@vultr:~# sudo pip install pycoin
Collecting pycoin
Downloading pycoin-0.80.tar.gz (113kB)
100% |################################| 122kB 3.7MB/s
Installing collected packages: pycoin
Running setup.py install for pycoin ... done
Successfully installed pycoin-0.80
root@vultr:~# sudo pip install base58
Collecting base58
Downloading base58-0.2.5-py3-none-any.whl
Installing collected packages: base58
Successfully installed base58-0.2.5

root@vultr:~# python bitwalletrecover.py
Traceback (most recent call last):
File "bitwalletrecover.py", line 22, in <module>
import base58
ImportError: No module named base58

Ah, right! pyhton is probably symlinked to python v2
Try
Code:
python3 bitwalletrecover.py
 
Ok, thanks.

I got 29 privkey, I try to search all the related public address in dash blockchain explorer and try to find one matching mine?
I tryed some random importprivkey with the 29, one by one, and if I understand, only one will show something because it's not password protected? Am I correct?
Another question: I should do the importprivkey in the console of my QT wallet? Because it's freezes my wallet and is stuck at 1% rescanning...Just want to know if there is some other more appropriate tools or if it's normal.

Best regards.
 
Last edited:
Ok, thanks.

I got 29 privkey, I try to search all the related public address in dash blockchain explorer and try to find one matching mine?
I tryed some random importprivkey with the 29, one by one, and if I understand, only one will show something because it's not password protected? Am I correct?
Another question: I should do the importprivkey in the console of my QT wallet? Because it's freezes my wallet and is stuck at 1% rescanning...Just want to know if there is some other more appropriate tools or if it's normal.

Best regards.
Yes, you can search for addresses first. Or you can simply import every private key and rescan. The reason why wallet freezes is exactly because it tries to rescan the blockchain to find any related txes. To speed things up you can instead import 28 keys without rescan and the last one as usual to trigger rescan for all of them.

This should import private key "Xprivatekeyhere" and insert corresponding address into you receiving address list with the name "some label" without rescan.
Code:
importprivkey Xprivatekeyhere "some label" false
 
Thanks a lot

EDIT:
So, I did it, but my wallet is still blanck, except that I see my 29 address in my "receive address", transaction history is still empty, no transaction traces...I assume I missed a check box or a command somewhere?
 
Last edited:
Did the rescan happen? Try clicking Tools > Wallet Repair > Rescan blockchain files. Dash will restart and scan the blockchain for transactions with your addresses.
 
I tryed a manual rescan in the option, tryed to relaucnh the wallet, still blanck history, like if I did nothing, except I see my 29 address in the request payment tab.

I assumed I missed a point since it worked in the past, and since Bittwalletrecovery gave my the 29 privatekeys...
 
As far as I can see you have done everything right... Maybe join Discord for some interactive help, or find someone you trust to see what they can do with the privkeys or corrupt wallet you found... Do you have the corresponding public addresses? Can you see any balance for these addresses in a block explorer?
 
I did not found anything in the Dash explorer.

I import all the privkey in a new wallet (I launch dash without any wallet.dat, and import the privkey in the new generate wallet.dat).
I used the same corupted wallet that was recovered a year back. I assume that the fact I recovered some privkey indicates that the procedure should work?
Is it possible I missed some privkey in the biotwalletrecovery.py? Is there some kind of Option I could add to the botterecovery.py scrtypt?
 
If you can't see any balances by manually searching for the addresses in a block explorer, then you won't see any balance in your wallet either. The addresses don't hold any dash in that case.
 
Thanks for your answer.

I know the balance is 0 dash, but I need to acces the hystory transactions (or at least the requested payment I had received) of the wallet.
Does the fact that the balance is 0 prevent the recovery?
 
A wallet contains 1000 addresses when it is created. Perhaps the addresses you recovered were not involved in the transactions you remember? Searching the dash address in the block explorer should so all past transactions on that address, not just the current balance. So if it's not visible, then it didn't happen.

If you can load the wallet now, try to go to the console and run dumpwallet "filename". This will write a file containing all private keys and public addresses. Check if any of these are the addresses you need. Otherwise you need to go back to your recovery process and try to get the keys to the addresses actually holding the balance. PM me if you would like me to have a try, or there are some commercial wallet recovery services available as well.
 
Back
Top