Saturday, July 6, 2024

bitcoin core – The way to decrypt encrypted_privkey

Background how I obtained right here:

I’ve a very previous pockets file in .dat format (from 2017)
The backup is so far as I bear 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 identify to record in ~/.bitcoin/settings.json

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

Error: Did not load database path '/house/{redacted}/.bitcoin/wallets/OldWallet_1'. Knowledge shouldn't be in acknowledged format.

So, having no significant leads to google aside from pywallet, I made a decision to strive importing it to electron… and found that electron does 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 admittedly lengthy and has many bizarre characters in it so passing it as an argument for script execution is extremely tough.

I managed to get record of all addresses outlined on this file and “encrypted_privkey” for every handle.

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” record, 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 extremely probably that one thing concerning the pockets file format has modified through the time I wasn’t utilizing cryptocurrencies.

If anybody is aware of how you can “improve” the file format, please let me know, it will additionally clear up the issue.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles