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

Deterministic Bitcoin Address Derivation and Wallet Boundaries

permalink THAMER
#bitcoin-engineering#hd-proxy-addresses#wab#wallet-ai-bitcoin

Research status: Engineering analysis based on the stated product architecture and Bitcoin standards. Proposed examples and tests are illustrative; no new live execution is claimed.

Determinism requires complete inputs

A deterministic address is reproducible only when all relevant inputs are preserved: key hierarchy, derivation path, script construction and network encoding. “Your Bitcoin Wallet. Your Keys. Your Engine.” therefore includes responsibility for recovery metadata, not just possession of a credential.

For BIP84, a compressed child public key is hashed into a version-zero witness program. For BIP86, the internal x-only public key is tweaked according to Taproot rules to produce the output key. Encoding the witness program uses Bech32 for version zero and Bech32m for version one. A BIP86 output is not simply the untweaked child public key.

Address families are distinct

| Property | BIP84 | BIP86 |
|---|---|---|
| Purpose | 84 | 86 |
| Output | P2WPKH | P2TR |
| Mainnet prefix | bc1q | bc1p |
| Testnet prefix | tb1q | tb1p |

Prefixes alone are not sufficient validation: decode the checksum, witness version and program length, and check the configured network. Testnet3 and Testnet4 share address encodings, so network compatibility also requires chain identification.

Public derivation and signing

A suitable extended public key can support non-hardened child public-key derivation without providing spending authority. Hardened child derivation cannot be performed from the parent extended public key alone. Extended public keys remain privacy-sensitive, and combining a parent extended public key with a corresponding non-hardened child private key can compromise the parent private key. Do not expose derivation material merely to simplify an application.

Conformance experiment

Use public BIP test vectors to verify an independent implementation before comparing it with authorized engine outputs. Compare scriptPubKey bytes as well as encoded addresses. Test incorrect network, wrong purpose and invalid checksum cases. The public vectors establish standards behavior; matching them does not by itself prove WAB's recovery or signing implementation. No private derivation material is needed in a published test report.

Primary references and related research

  • [Flying Wallet architecture](/docs/wab-philosophy-flying-wallet-architecture)

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