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

SegWit and Taproot: Two Bitcoin Spending Architectures

permalink THAMER
#bitcoin-mainnet#segwit#taproot#testnet#wab#wallet-ai-bitcoin

Research status: Engineering philosophy based on the stated product design and reported laboratory results. New procedures are illustrative; no new live execution is claimed.

Address support is a design choice

“SegWit + Taproot — BIP84 and BIP86 address support” describes two supported wallet families. BIP84 defines a derivation convention for native SegWit P2WPKH accounts. BIP86 defines a convention for single-key Taproot outputs. Both are native Bitcoin, not separate currencies or settlement networks.

| Property | BIP84 | BIP86 |
|---|---|---|
| Output | P2WPKH | P2TR |
| Witness version | 0 | 1 |
| Encoding | Bech32 | Bech32m |
| Typical mainnet prefix | bc1q | bc1p |
| Key-path signature | ECDSA | Schnorr |

The prefix alone does not prove the derivation convention. A bc1q address can also represent a P2WSH output. A P2TR address does not prove that its owner uses BIP86. Validate the decoded witness program and distinguish address syntax from wallet provenance.

Engineering implications

BIP86 derives an internal key and applies a Taproot tweak to obtain the output key. It is not enough to encode an ordinary public key as a version-one witness program. A signing implementation must use the corresponding tweaked key for key-path spending. BIP84 instead commits to a public-key hash and supplies the public key and signature in the witness when spending.

The engine's common JSON interface allows applications to select a family without implementing those cryptographic details themselves. This abstraction does not imply identical transaction weight, recovery descriptors or signing rules. Nor does BIP86 support establish arbitrary Taproot script-path support.

Proposed verification

Request a receiving address for each family on testnet, decode the witness version and program length, and verify the expected output script against an actual funded transaction. Restore the wallet and repeat the ownership check. Use standard BIP test vectors in independent SDK tests. Never publish private derivation material in a test fixture.

Primary references and related research

  • [Testnet network compatibility](/docs/wab-agent-testnet-network-compatibility)
  • [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