THAMER
Sovereign Bitcoin Wallet

WALLET AI BITCOIN

Your Bitcoin Wallet. Your Keys. Your Engine.

Self-hosted Bitcoin software built for developers, applications, and AI agents.

CREATE WALLET

Bitcoin Wallet Recovery: Seeds, Descriptors, and Derivation Paths

permalink THAMER
#bip32#bip39#bitcoin-wallet-recovery#derivation-paths#descriptors

Bitcoin wallet recovery means reconstructing the keys and output-recognition rules needed to locate and, when authorized, spend funds. Importing a mnemonic into a new application is not proof that the new application is searching the same wallet outputs.

Start with the recovery material

Some wallets use BIP39 mnemonic words and an optional BIP39 passphrase; others use different backup formats. A BIP39 mnemonic and its passphrase are used to derive a seed, which can then feed hierarchical key derivation. A different passphrase produces a different seed and different wallet keys, without an obvious error message.

Match the derivation path and script type

BIP44, BIP84, and BIP86 describe different wallet conventions. For example, common first-account Bitcoin paths include m/84'/0'/0' for native SegWit and m/86'/0'/0' for single-key Taproot. These paths are examples, not universal discovery rules. Testnet uses different coin-type conventions, and wallets may use custom accounts or scripts.

Recover both receive and change branches

HD wallets typically derive external receive addresses and internal change addresses from separate branches. Ignoring the change branch can lead to a misleading balance. Address discovery also needs a range or gap policy large enough for the wallet's actual history.

Why output descriptors help

Descriptors can preserve script templates, key origins, derivation information, and ranges. They improve interoperability when used with the corresponding key material. A public descriptor is not a replacement for private signing authority; a descriptor with private material must be protected as a secret.

A safe verification sequence

Restore in a trusted environment; choose the intended network; import the correct wallet metadata; derive a known historical receive address; scan relevant ranges; reconcile confirmed and unconfirmed transactions; and verify that spending authority works only where expected. Do not send funds as a first test before validating the derived destination and available balance.

What if the recovered wallet shows zero?

Check the passphrase, script type, account number, network, receive/change branches, and scan range before assuming the funds are gone. A node that is still syncing or a scanner that has not finished can also report an incomplete view. Never share recovery words, private keys, or full private descriptors with a public troubleshooting service.

Primary references

  • BIP39 — Mnemonic Code: https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki
  • BIP32 — Hierarchical Deterministic Wallets: https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki
  • BIP84 — P2WPKH Derivation: https://github.com/bitcoin/bips/blob/master/bip-0084.mediawiki
  • BIP86 — P2TR Derivation: https://github.com/bitcoin/bips/blob/master/bip-0086.mediawiki
  • BIP380 — Output Descriptors: https://github.com/bitcoin/bips/blob/master/bip-0380.mediawiki

Questions & Answers

Explore all questions →

Latest from the Lab

THAMER illustrated developer portrait and signature

ABOUT THE DEVELOPER

Independent Software Developer specializing in Bitcoin Script, Golang, and AI Agents.

Software engineering · Independent research · Open-source projects