Author

Topic: wallet.dat corrupt salvage failed (Read 128 times)

legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
May 16, 2022, 06:10:15 AM
#5
Alternatively, try pywallet:
Code:
python pywallet.py --dumpwallet --wallet=wallet.dat > wallet.txt

Did you include wrong link? That link leads to pywallet library which meant to create HD/BIP 32 wallet. Pywallet for wallet recovery is available at https://github.com/jackjack-jj/pywallet.
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
May 16, 2022, 12:00:10 AM
#4
If the wallet is password-protected, and this will not be the case if its from a *very* old Core version before this was implemented, you will need to pass a particular password argument to pywallet so it can decrypt the encrypted private keys.

I swear I saw that option somewhere, but now I can't find it anymore in the README. Else the private keys will all be encrypted with an AES256 intermediate secret contained inside the wallet (also) that can only be decrypted with the wallet.dat password.
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
May 15, 2022, 11:13:18 PM
#3
Take note that bitcoin-wallet's salvage command above will default to the 'wallets' folder of the data directory if the wallet's absolute path isn't provided.
So if it's in any other folder, provide the full path to the wallet.dat.

e.g.: -wallet="E:\AppData\bitcoin\test_wallet.dat"
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
May 15, 2022, 12:54:41 PM
#2
Try running daemon/bitcoin-wallet with the salvage command.
Code:
bitcoin-wallet -wallet= salvage

It tries to recover the keys from the broken wallet's database. Alternatively, try pywallet:
Code:
python pywallet.py --dumpwallet --wallet=wallet.dat > wallet.txt
full member
Activity: 199
Merit: 100
May 15, 2022, 11:42:10 AM
#1
Hi to all, i have a wallet.dat file that when i insert it in bitcoin core it sayw wallet.dat corrupt salvage failed. I tried guides from this forum with python, but no private keys.I also tried with blockchain.com with no luck.
Please comment on this as its important to extract the private keys
Thanks in advance
Jump to: