How can I verify my wallet.dat file against an older version?

4

1

I recently ran into an issue with an unsafe shutdown corruption on an NTFS partition in such a way that the files all existed, but chkdsk had to be run to verify some non-essential files.

My peers.dat file was the only file chkdsk complained about, but I verified my blockchain to be sure. How can I ensure my private keys in my current wallet.dat match the ones in my backup? I don't believe it is corrupt (At least Bitcoin-QT hasn't complained yet), but I'd rather be safe.

Candunc

Posted 2016-09-22T13:57:56.187

Reputation: 41

Answers

1

You can use the dumpwallet command and export the private keys to a text file. Do this for both wallets and then compare the text files. You should see the same addresses and private keys. If you do not, then something has gotten corrupted.

Andrew Chow

Posted 2016-09-22T13:57:56.187

Reputation: 40 910

0

If you can sign and verify a message with every address, you're 100% sure as signing requires knowledge of the correct private key. http://imgur.com/a/nUmZ0

You can do the verification with another client not holding your keys if that makes you feel more certain.

hrobeers

Posted 2016-09-22T13:57:56.187

Reputation: 73

This raises the question of how to tell which addresses you should check.Nate Eldredge 2017-02-20T19:19:21.913

@NateEldredge listunspent in the debug console will tell you which addresses have utxos sent to them.Abdussamad 2018-08-02T07:54:17.200

0

I wouldn't take any chances and just move my funds to a new wallet. Starting bitcoin core without a wallet.dat file in the data directory should force it to generate a new wallet. Then you just send from the old wallet to an address in the new one.

Abdussamad

Posted 2016-09-22T13:57:56.187

Reputation: 1 850