Skip to content

Bitcoin wallet derivation address recovery from wallet

Notifications You must be signed in to change notification settings

astaphobia/bitcoin-wallet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bitcoin-wallet

Another way to back up your addresses with helpful data such as derivation path, and the address generation type from your bitcoin wallet. This approach require bitcoind running and bitcoin-cli to catch the list of descriptors and have legal access to it as the prerequisite.

Steps

  1. Download descriptors with public key and store it to file descriptor_pubs.json and copy it to directory _data under this repository:
./bitcoin-cli listdescriptors > descriptor_pubs.json
  1. Download descriptors with root key and store it to file descriptors.json and copy it to directory _data under this repository:
# 1. unlock wallet
./bitcoin-cli walletpassphrase "your-wallet-passphrase" 60

# 2. download descriptors
./bitcoin-cli listdescriptors true > descriptors.json
  1. Configure _data/env.json with the correct value. You can provide it from bitcoin.conf file where your bitcoin base directory is.

  2. Build project via command make build-{your-os-version}. You can find binary result on _build directory.

Finally

After steps followed correctly and the structure should be:

.
├── _build
│   ├── btcd-darwin
│   └── btcd-linux
├── _data
│   ├── descriptor_pubs.json
│   ├── descriptors.json
│   └── env.json

Run binary from the root _build/btcd-{os-version} and then you can check result in _data/derivation.csv file.

About

Bitcoin wallet derivation address recovery from wallet

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published