As far as I can tell, my old bitcoin wallet got corrupted. It was created in Bitcoin Core in the 2014/2015s, and I'm trying to recover it. Bitcoin Core doesn't accept it anymore (and doesn't give an error message), so I'm trying another way.
I managed to read the contents using walletools (https://github.com/akx/walletool), and here is what I have :
- a long list of "tx" items, containing mostly binary data
- quite a few (probably 50 ish) "ckey" items, with the public key and encrypted private keys
- a single "mkey" item, with the 'nID', 'encrypted_key', 'salt', 'derivationMethod', 'nDerivationIterations' and 'otherParams' fields containing data
- two "name" items containing 'hash' and 'name' fields
- a number of "pool" items with 'n', 'nVersion', 'nTime', and the 'public_key'
- lots of empty "keymeta" items
- a "version" item : 150001
- a "bestblock" item, with a "key" field
- a "minversion" item : 130000
- a "orderposnext" item (empty)
- a "bestblock_nomerkle" item (empty)
From there, I imagine the important data is the mkey. What is its encryption algorithm and what Python lib could I use to decrypt it (assuming I remember the password ! ) ?