Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to extract pre-BIP39 private key from wallet backup? #82

Open
jorgeg675 opened this issue Mar 15, 2021 · 24 comments
Open

How to extract pre-BIP39 private key from wallet backup? #82

jorgeg675 opened this issue Mar 15, 2021 · 24 comments

Comments

@jorgeg675
Copy link

I am trying to obtain the private key to a single pre Jan-2015 address from a wallet backup. I cannot send the coins from the app because I get a "org.bitcoinj.crypto.KeyCrypterException:Could not decrypt bytes" error message.

I was able to decrypt the backup, obtain the 12-word seed, plugged it into https://iancoleman.io/bip39/ using the correct derivation path (got the right xpub) as well as using Coinomi but the address does not appear since it's a legacy address from when I first installed the wallet.

I converted the public key from Base58 into hex and checked it against the hex dump of the backup and once I removed the first byte (the D?) and the last four bytes (checksum?) I was able to find it a total of six times, which correspond exactly to the six transactions on the wallet. The hex is 70 24 E4 CF D7 52 C6 34 F4 DC 0F 0C 2D 91 28 43 B9 05 E7 CF
For what it's worth, it's always preceded by 12 19 76 A9 14 and followed by 88 AC 3A 21 08 (or 88 AC 3A 22 08 in two cases). I know the private key is in there, I just need to parse it out and convert it back to Base58. The entire public key is 1e7024e4cfd752c634f4dc0f0c2d912843b905e7cfe1b1b5f3.

I already tried the bitcoinj route and got multiple errors, I just need to identify where the private key starts and ends so I can copy it and convert to Base58. I have a fully synched Dogecoin Core wallet waiting for it.

@wadie914
Copy link

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
Copy link

wadie914 commented Apr 20, 2021 via email

@wadie914
Copy link

wadie914 commented Apr 20, 2021 via email

@wadie914
Copy link

wadie914 commented Apr 20, 2021 via email

@wadie914
Copy link

wadie914 commented Apr 20, 2021 via email

@wadie914
Copy link

wadie914 commented Apr 20, 2021 via email

@wadie914
Copy link

wadie914 commented Apr 20, 2021 via email

@wadie914
Copy link

wadie914 commented Apr 20, 2021 via email

@wadie914
Copy link

wadie914 commented Apr 20, 2021 via email

@wadie914
Copy link

wadie914 commented Apr 20, 2021 via email

@wadie914
Copy link

wadie914 commented Apr 20, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@jorgeg675 @wadie914 and others