bitcoin core – The way to decrypt encrypted_privkey

0
93


Background how I received right here:

I’ve a very previous pockets file in .dat format (from 2017)
The backup is so far as I keep in mind only a copy of the pockets file from bitcoin-core’s ~/.bitcoin listing.

I attempted opening it in “trendy” bitcoin-core by:

  1. copying the pockets file into ~/.bitcoin/wallets/walletName/walletName.dat
  2. including the pockets title to listing in ~/.bitcoin/settings.json

Now, upon beginning bitcoin-core I get this message:

Error: Didn't load database path '/house/{redacted}/.bitcoin/wallets/OldWallet_1'. Information is just not in acknowledged format.

So, having no significant leads to google apart from pywallet, I made a decision to attempt importing it to electron… and found that electron would not have an choice to import bitcoin-core wallets (wtf?).
I did discover some details about “pywallet”, I attempted utilizing it to get better info from my .dat file, I needed to modify it a bit since my encryption password is actually lengthy and has many bizarre characters in it so passing it as an argument for script execution is extremely troublesome.

I managed to get listing of all addresses outlined on this file and “encrypted_privkey” for every deal with.

I did not handle to get it to decrypt something, as a result of the script crashes with “Segmentation Fault (core dumped)” (everybody loves C/C++).

The query:

So, my query is, given I do know the password to this pockets (I believe I additionally recovered the encryption salt) and I’ve “encrypted_privkey” listing, how do I decrypt them so I can import them in electron?

[edit]

I simply tried importing my dashcoin pockets to dash-core, I get the identical error message, so it’s totally possible that one thing in regards to the pockets file format has modified through the time I wasn’t utilizing cryptocurrencies.

If anybody is aware of easy methods to “improve” the file format, please let me know, it will additionally clear up the issue.

LEAVE A REPLY

Please enter your comment!
Please enter your name here