langerhans / dogecoin-wallet-new

Dogecoin Wallet app for your Android device. Standalone Dogecoin node, no centralized backend required. Forked from the popular Bitcoin Wallet.
188 stars 105 forks source link

How get private keys! please #65

Closed trapiche-n closed 3 years ago

trapiche-n commented 3 years ago

Hello... I have a technique to obtain the seed phrase and with this I can regenerate XPUB, but not the addresses that the wallet currently uses ... the steps are like this: 1) Make a backup of the wallet (transfer it to the computer) and obtain the XPUB of the app (it is a QR that with a reader I convert it to characters) 2) with openssl decrypt the backup (use password with which the wallet was saved):openssl enc -d -aes-256-cbc -md md5 -a -in dogecoin-wallet-backup-2021-01-10 -out doge-coin-wallet-decrypt 3) With a HEX editor open the file (I use GHex) The 12 keywords will be easily visible at the beginning of the file (near the string "org.dogecoin.production"). 4) With the tool https://iancoleman.io/bip39/ I enter the 12 keywords, in "coin" I choose dogecoin, in derivation path I use BIP32, client "custon derivation path", BIP32 Derivation path ---> m / 0 ' 5) the BIP32 Extended Public Key should match the XPUB of the QR 6) below is the Derived Addresses Unfortunately I can't find mine! in several thousand, if anyone has an idea, I would really appreciate ... I need the money! thank

zzudwa commented 3 years ago

Any updates on that? It's seems that app refusing to synchronize now and nobody gonna fix it. So getting private key from backup file is the only option.

WindowsGott50 commented 3 years ago

Any updates on that? It's seems that app refusing to synchronize now and nobody gonna fix it. So getting private key from backup file is the only option.

Well it is actually not refusing out right, it just doesn't work most of the time. I, like many others, am currently trying to recover my doge from the mobile wallet and I found that it sometimes can sync when it finds a peer that is actually up-to-date. I even could get 2 transactions to go through tonight, but both of these were just for testing whether I had the right receiver-address.

Reconnecting is a tedious process and it sometimes works, but when it doesn't you can turn off your wifi and turn it on again, then hope for the best. Most of the time it finds a peer with a very low block count, and sometimes some just don't seem to answer at all. The ping just keeps counting towards infinity.

The thing with the private keys is, I was able to extract the seed with the steps above, and I found this tool by langerhans, though, when I try derive the private key it says my seed phrase is incorrect. I am going to try the tool mentioned above next...

trapiche-n commented 3 years ago

In case someone needs:

How to export from Langers Hans' android dogecoin wallet to coinomi wallet

1) Make a backup of the wallet (transfer it to the computer)

2) with openssl decrypt the backup (use the key with which the wallet was saved): openssl enc -d -aes-256-cbc -md md5 -a -in YOUR-dogecoin-wallet-backup-FILENAME -out dogecoin-wallet-decrypted

3) With a HEX editor open decrypted file (I use GHex) The 12 keywords (seed phrase) will be easily visible at the beginning of the file (near the string "...org.dogecoin.production...").

4) In coinomi wallet choose "recover a wallet"

5) Insert the seed phrase (it will also ask for a password for the new wallet)

6) In coins list find dogecoin and click on check and also on the gear icon There Enter the derivation path --> M/0H

7) That's it ... the balance should appear

langerhans commented 3 years ago

Closing for #68

nineclicks commented 3 years ago

After doing this I am missing transactions in Coinomi that I have in the Android wallet. I see one transaction from yesterday but all of my deposits from 2014 are missing.

gregkamprath commented 3 years ago

I'm having the same issue as @nineclicks - I followed @trapiche-n instructions, but the resulting wallet in coinomi has less than half the total dogecoin that are trapped in the @langerhans wallet. Any ideas?

gregkamprath commented 3 years ago

First just wanted to say thanks to @langerhans for your work on this - I saw where you mentioned this isn't your day job and I'm sure it can get old with people asking for help.

@nineclicks I was able to get everything out. Would have been more of a hassle if the total balance was in the hundreds of thousands, but that wasn't the case for me.

Back in 2014 I was using the wallet for deposits from a mining pool, and the app actually has a message about how you shouldn't do that and it would slow things down because the deposits were going to multiple addresses. So I was thinking that maybe those complex transactions were screwing things up when trying to transfer the entire balance at once. Also as best I could tell I couldn't choose to send a larger fee along with the transaction, so maybe other clients were de-prioritizing me. That's what prompted me to the do the smaller transactions and it worked pretty well.

wadie914 commented 3 years ago

Hello can somebody please help me I have a wallet that I created on my Android and I also have the backup besides the fact that I sent a lot of coins that are wrong address and it says it was not accepted by the address somewhere on the chain I really need to figure out how to import this wallet into my core wallet or any other water at that if somebody's willing to help me figure out these two problems I'm willing to pay

wadie914 commented 3 years ago

https://dogechain.info/address/DMpphFBaw1hBCHiGF6466vuYbu7dCryV3D

brendio commented 3 years ago
  1. With the tool https://iancoleman.io/bip39/ I enter the 12 keywords, in "coin" I choose dogecoin, in derivation path I use BIP32, client "custon derivation path", BIP32 Derivation path ---> m / 0 '

I wanted to get the keys, not the coins, so the coinomi solution didn't suit me. I did, however, find my keys by doing as above and then selecting MultiBit HD, or custom derivation path m/0'/0. The change addresses are found with custom derivation path m/0'/1.

wadie914 commented 3 years ago

DBAFbwC5Uu6oWDeaS2WiQ2DVw4ymi6YAjJ

On Tue, May 4, 2021, 2:04 AM Btc2Doge.com @.***> wrote:

Hello can somebody please help me I have a wallet that I created on my Android and I also have the backup besides the fact that I sent a lot of coins that are wrong address and it says it was not accepted by the address somewhere on the chain I really need to figure out how to import this wallet into my core wallet or any other water at that if somebody's willing to help me figure out these two problems I'm willing to pay

we can help recover the doge if your coins still in your wallet. it may just hidden now. contact us: www.btc2doge.com

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/langerhans/dogecoin-wallet-new/issues/65#issuecomment-831702537, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS7OIOBABSZ76ITEGHF7D23TL6E5XANCNFSM4WEGA2HQ .

vanelsberg commented 3 years ago

In case someone needs: @trapiche-n I did... and your solution just worked flawlessly :-) Thanks!

ebouaziz commented 3 years ago

Hi there :)

I have the same problem with this wallet, but the address that holds all the dogecoins is the one listed in the "old addresses" list in the address book. The trick the passphrases only generates addresses that are in the upper part of the list which I suppose are generated in a "new" way.

Does anyone know how to recover the key for the old addresses?

I used the trusted peer setting with a sync'ed core client on my network which worked (but it's the only peer visible from the mobile app)

I then tried to send the coins but it "has not been processed yet" and it does not look like I can cancel the payment to make smaller ones like suggested above.

wadie914 commented 3 years ago

I'm giving up 40k just lost if anybody can help me find out how to get it back I will give them 20K

On Mon, May 17, 2021, 3:51 PM ebouaziz @.***> wrote:

Hi there :)

I have the same problem with this wallet, but the address that holds all the dogecoins is the one listed in the "old addresses" list in the address book. The trick the passphrases only generates addresses that are in the upper part of the list which I suppose are generated in a "new" way.

Does anyone know how to recover the key for the old addresses?

I used the trusted peer setting with a sync'ed core client on my network which worked (but it's the only peer visible from the mobile app)

I then tried to send the coins but it "has not been processed yet" and it does not look like I can cancel the payment to make smaller ones like suggested above.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/langerhans/dogecoin-wallet-new/issues/65#issuecomment-842587332, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS7OIODYQKM3B47CM3BEUA3TOFXSJANCNFSM4WEGA2HQ .

vanelsberg commented 3 years ago

I have the same problem with this wallet, but the address that holds all the dogecoins is the one listed in the "old addresses" Relatively newbe on Doge, so not sure about the "old addresses" you mention. I think you need your private key and going for what you describe I would say somehow along the line your wallet started using a new/different private key? Without the corresponding private key you can not retrieve your coins.

Any chance you have an backup of your wallet file that is using the "old addresses" (e.g. has the old private key)? (Most phones have options to backup apps and data....)

ebouaziz commented 3 years ago

Any chance you have an backup of your wallet file that is using the "old addresses" (e.g. has the old private key)? (Most phones have options to backup apps and data....)

Nope, but after reading other threads, I finally managed to send the coins using @gregkamprath 's solution.

Apparently the wallet has issues calculating the fee or something when trying to empty it completely or when sending large amounts of coins I don't know, I had 1600.

So first I had to cancel the transaction in "has not been processed yet" state, which can be done by resetting the blockchain in Settings/Diagnostics

Then resync it with a trusted peer on the local network (ie the Dogecoin core wallet running on a computer, see settings/settings/Trusted peer and put the IP of said computer). This took almost 24 hours and required to wake the phone / reload the app multiple times.

Then I sent the coins in different transactions. For the last one, I had 598 left so I sent 597 so that one remained for the fee.

I don't know if my first try with 1600 failed because of fee miscalculations (it said like 1.283 or something) or because the 1600 came from 8 different transactions.

I'm still frustrated that I didn't manage to get the private key but at least I have the coins :)