Restore wallet can't select file darkcoin_wallet_backup_2014-xx-xx Not working

Joe Baker

New Member
May 10, 2018
8
0
1
55
remedycoin.com
So I'm trying to restore a very old wallet from the darkcoin days. It's in the format darkcoin_wallet_backup_2014-xx-xx.

Instructions for restoring this type of file point to using the android Dash wallet. But it doesn't work sadly.
The restore wallet screen comes up and asks for a pin. It also says to put the file into /Downloads and there is a dropdown requester for specifying the file to restore, however it does not work to select a file. No dropdown activates. I've tried this on an Android 7 and Android 6.0.1 devices with the same behavior.

Is the pin requested for the current wallet or for the wallet being restored?

I'm very, very interested in getting this to work obviously!
 

Joe Baker

New Member
May 10, 2018
8
0
1
55
remedycoin.com
Copying this in here from our discussion on Discord - I'm not even sure an Android wallet existed back then. The process to restore old wallet files from Dash Core (or Darkcoin-QT, as it was known back then) is described here: https://docs.dash.org/en/latest/wallets/recovery.html#dashcore-restore
I'm looking at building the old darkcoin-qt wallet from back then to see exactly how I ended up having this odd backup file and whether there was some restoration mechanism that would name files this way.
 

strophy

Administrator
Dash Core Team
Moderator
Dash Support Group
Feb 13, 2016
749
434
133

Joe Baker

New Member
May 10, 2018
8
0
1
55
remedycoin.com
So is the problem with the Dash Android client going to be fixed so one can select a file to import from the /Download directory?

I'm wondering what client I used back on 11/11/2014 to make the backup. Is there a way I can test the file's format somehow to determine whether it's a wallet.dat file or a Bitcoin4Java sort of backup?

Don't know if the file is password protected.

I do have an old binary of darkcoin but it does not like this file being used as a wallet.dat file. It complains about the file.

Are there any other clients from that time period?

Can I send you the file over keybase.io to look at? This would mean so much to me right now and would enable me to move further ahead on my RemedyCoin.com project.
 

strophy

Administrator
Dash Core Team
Moderator
Dash Support Group
Feb 13, 2016
749
434
133
I'm not aware of a procedure to determine which app created a wallet.dat file - it could well also be from Bitcoin, Litecoin or any other coin that uses the BerkelyDB file format to store key/value pairs. I'm happy to take a look with a hex editor and see what I can do: https://keybase.io/strophy
 

HashEngineering

Active Member
May 3, 2014
319
374
133
hashengineeringsolutions.com
The android app (Darkcoin Wallet) was created on May 31, 2014 and `darkcoin_wallet_backup_2014-xx-xx` is definitely a file that this app would have created.

There might be a strange bug that prevents loading of this file using Safety / Restore Wallet in Dash Wallet, though on my devices the dropdown contains many backup files from various other apps including Bitcoin Wallet, Bitcoin Cash Wallet, Darkcoin, Dash, and a bunch of other ones that I developed.

An alternative would be to go to the file explorer (like ES File Explorer) on your android phone, go to the Download folder and then Open the file and choose the Dash Wallet app. This will start the app and load the backup file to restore it. You will be asked for the password that was used to make the backup. Then the app will ask you to set the PIN if the restored wallet doesn't have one yet.
 

HashEngineering

Active Member
May 3, 2014
319
374
133
hashengineeringsolutions.com
What is strange though is that before March 2015, the Darkcoin Wallet app was not HD and the backup was called "darkcoin-key-backup-2014-xx-xxxx"

After March 2015, the app became HD (meaning all keys were derived from a seed) and then the backup files were called "darkcoin-wallet-backup-2015-xx-xxxx"

In any case the backup file is encrypted and therefore a Hex Editor probably won't tell us anything.
 

strophy

Administrator
Dash Core Team
Moderator
Dash Support Group
Feb 13, 2016
749
434
133
Hi @HashEngineering

I took a look at the file provided to me on Keybase by @Joe Baker and was able to open it in the Android app using the ES File Explorer process you described above, but we could not correctly guess the password. I noticed the app will attempt to open and decrypt any file sent to it in this manner, even a JPG image. I had a look at the wallet file in a hex editor and compared it to the file backups generated by both the current version (5.18.1) and old version that I suspect was used at the time (1.0.0). I made the following observations, regardless of what password was used to encrypt the file (note capitalisation and underscore vs. hyphen):
  • 5.18.1 saves files following the name convention "Dash-wallet-backup-yyyy-mm-dd" and beginning with magic number "55 32 46 73" or "U2Fs"
  • 1.0.0 saves files following the name convention "Darkcoin-wallet-keys-yyyy-mm-dd" and beginning with magic number "55 32 46 73" or "U2Fs"
  • User's wallet file is named "darkcoin_wallet_backup_2014-11-11" and begins with magic number "4a 4d 5a 2c" or "JMZ,"
Any ideas what has happened here? Is it still likely that this was a backup from the Android wallet?
 

strophy

Administrator
Dash Core Team
Moderator
Dash Support Group
Feb 13, 2016
749
434
133
Another difference is that entering the incorrect password for a wallet file known to have been generated by the app usually generates the error "Could not decrypt bytes", but in this case opening the old wallet shows "invalid base64 encoding"
 

HashEngineering

Active Member
May 3, 2014
319
374
133
hashengineeringsolutions.com
The backup file is in base64 text format, which means that only certain characters are valid (64 of them). If the beginning of the file begins with this: "JMZ," then the file is invalid, because a comma ',' is not part of the base64 format.

Given that and the file having the date 2014-11-11 it must not have been generated by Dash Wallet unless the file was somehow corrupted.
 

Joe Baker

New Member
May 10, 2018
8
0
1
55
remedycoin.com
OK, I'll run a diff against the best original copy vs the one I sent in. Maybe having tried to open a copy into desktop wallet programs munged them?
 

HashEngineering

Active Member
May 3, 2014
319
374
133
hashengineeringsolutions.com
If you open a valid backup file in a text editor you will see something like this:

Each line is 78 characters wide.


U2FsdGVkX19S4anbqu44VgksbX/wKoj3aJkODgRMl9pp/+o8c066vIuR3MWB8eBLZ222fHHHJpGr
NEsiYpJ9b1bXeKgdgyBfQvsROdM0dM7gdm46J71Q0bnsG6GI7i00TqtoFfDzPQTk3ebDHMU6isDg
knAw2FUYu1yEWpC+qKXA33564zCSxzU9g3JtqfGjM/KZH6Yt+ScK2CUypiZyEDjEVlcb2g4sDj1+
 

strophy

Administrator
Dash Core Team
Moderator
Dash Support Group
Feb 13, 2016
749
434
133
Thanks, that helps a lot. It's very obvious looking at the hex editor now that this is not valid base64, there are a lot of non-ANSI characters visible. We'll look into possible corruption or encryption that might have occurred after the wallet export.
 

strophy

Administrator
Dash Core Team
Moderator
Dash Support Group
Feb 13, 2016
749
434
133
Finally success on this file! We were able to find another non-corrupted file, which the hex editor identified as a darkcoin core wallet. I was able to load, upgrade, rescan, decrypt and ultimately send the Dash on the address in that file back to @Joe Baker

Thanks again @HashEngineering for your support - you put us on the right track here :)
 

moving

New Member
Nov 18, 2019
2
0
1
46
Hey evrybody!
Help me please.
I have bakup file from mobile android wallet of $PAC coin. PAC is a fork of Dash. I can decrypt this file alredy. Tere is line "org.darkcoin.production" In start of one.
How can I get a privkeys from this file? Is it posible?
 

strophy

Administrator
Dash Core Team
Moderator
Dash Support Group
Feb 13, 2016
749
434
133
Assuming PAC also forked the Dash Android wallet, you should be able to import the file into the PAC Android wallet and simply move your balance in that way. You can also use the recovery phrase visible in the Android wallet in a wallet like Electrum to import your xpriv key and thereby the entire HD derivation path. You can then use Electrum to view the private keys directly.

Unfortunately I have no knowledge of whether these products exist in the PAC ecosystem, I suggest you contact their team for support.
 

moving

New Member
Nov 18, 2019
2
0
1
46
Thanx for your answer.
I was try to recover my mobile wallet across electrum desktop wallet already. I have seed phrase, but not all my addresses was restored in electrum wallet. They are might in the backup file. Network of PAC is not awaylable anymore in android wallet. I am verry sad...
 

kuw13

New Member
Sep 2, 2020
1
0
1
45
Finally success on this file! We were able to find another non-corrupted file, which the hex editor identified as a darkcoin core wallet. I was able to load, upgrade, rescan, decrypt and ultimately send the Dash on the address in that file back to @Joe Baker

Thanks again @HashEngineering for your support - you put us on the right track here :)
hi

how did you fix that file ?

all the file start with U2FsdGV

some are two line file 1599060479389.png

and one have along lins 1599060552418.png


but all start with the same U2FsdGV
 

Attachments

Desiac

New Member
Feb 14, 2021
6
0
1
40
Hey all,

Usually prefer not opening up an old thread, but due to it being identical in nature, I thought this would be ok...

I am having the same problem here, same file structure “U2Fs....” same file name structure.
Tried opening via “ESExplorer” failed. Been working at this for months now.

tried same process @strophy and @HashEngineering discussed... any insight as to which android version of dash-qt or darkcoin-qt to try would be greatly appreciated!!

Desiac
 

Desiac

New Member
Feb 14, 2021
6
0
1
40
Managed to decrypt the file, now left with an enormous data blob, I now see what previous posts mentioned other formats of the wallet to diff

If I could get my hands on a wallet type they can be imported I can move the relevant data around and hopefully import. Will reference this thread, but time for a new one.


Thanks all, I will reference this new thread in here for everyone’s benefit
 

Desiac

New Member
Feb 14, 2021
6
0
1
40
One last tie in, finally decrypted the file. Now have the wallets headers, variables and wallet specific values.

but still doesn’t load. It was mentioned previously that a little carving maybe required. Just need an example as I do no have access as others did to multiple examples to determine what format it should be in.

Currently looks like a huge JSON blob. Hoping @strophy and @HashEngineering can help!! @HashEngineering
 

strophy

Administrator
Dash Core Team
Moderator
Dash Support Group
Feb 13, 2016
749
434
133

Desiac

New Member
Feb 14, 2021
6
0
1
40
HI @Desiac please try this: https://github.com/dashevo/dash-wal...ver.md#recovering-from-protobuf-wallet-format

You can also try to open the file on an Android device using a File Manager, and then when it asks, tell it to open it with a clean install of Dash Wallet. The current version may have a bug detecting properly located backup files in the ~/Downloads dir of the device.

If the above doesn't work, please start a new thread.
thanks bud, i will give that a go. and no go on the manual load via ES on Android. Managed to strip the file back to pure ascii. So i can visually see all addresses and keys... wondering if i will need to repack it.... new thread specific to this issue:


many thanks @strophy
 

scratchy

Member
Jun 24, 2014
211
88
88
interesting topic.. i feel theres people now getting awake because of the latest exchange rate :D