A tool to export seeds and private keys from Android Bitcoin Wallet back-ups.
This is useful if you want to import or sweep those keys into other Bitcoin wallets, as the Android Bitcoin Wallet app does not offer a facility to export the private keys.
Likewise, if you had Bitcoin before blockchain forks like Bitcoin Cash (BCH) and/or Bitcoing Gold (BTG), then those same private keys can be used to claim your BCH or BTG balances in suitable wallet apps.
☠️ This tool exposes your wallet's private key(s) and mnemonic seed(s) as plain text. Use this tool at your own risk!! ☠️
You are responsible for the keeping your keys safe.
This tool is provided as is under the ISC open-source license with no warranty.
You need to have Docker installed on your system.
(FWIW, this tool was developed and tested using Docker Community Edition version 17.11.0-ce
on Ubuntu Linux.)
You need to perform this setup step only once. After that, you can run the tool as often as you like.
- Git clone this repo
- Navigate into the cloned repo
- Pull or build the Docker image
- EITHER pull the pre-built Docker image:
docker pull c1rrus/bitcoin-wallet-decode
- OR Build the Docker image yourself by running
./build.sh
- Note: On Linux systems you may need to do
sudo ./build.sh
as Docker commands typically need to be run as sudo.
- Note: On Linux systems you may need to do
- EITHER pull the pre-built Docker image:
First you need to copy the Android Bitcoin Wallet's backup file to your computer. If you're unsure how to do this, refer to their instructions on locating the back-up files.
Then...
- Navigate into the cloned repo (if you're not already there)
- Run
./bitcoin-wallet-decode.sh path/to/your/wallet-backup
- Note: This tool runs entirely on your computer, so you can use it offline if you wish
- You will be prompted for a password. This is the "backup password" you set in the Android Bitcoin Wallet app.
That's it! Once the process has completed, you should find 2 new files in the same directory as your wallet-backup
file:
wallet-backup-seed.txt
: Contains the mnemonic seed of your walletwallet-backup-private-keys.txt
: Contains your wallet's WIF private keys
A big thank you to:
- Andreas Schildbach and the other bitcoin-wallet developers for making an excellent Android app and also documenting how to extract the keys from a backup
mnemonicmind
on the Bitcoin Talk Forum, for providing additional, very useful instructions on extracting the keys from a backup
This tool more or less performs the same steps the people above documented. The main differences are:
- Use of a Docker container with all the necessary tools (OpenSSL, git, BitcoinJ, etc.) so that you don't need to install them on your computer or muck about with heavy virtual machines
- Some shell scripts to automate the steps
Comments and contributions are welcome!