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

Network-Aware Bitcoin Address Validation for Independent Developers

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.

Validation before execution

A CURL-first engine makes integration accessible, but the client still needs to understand the destination it is requesting. Bitcoin address validation has several independent layers: encoding, checksum, network human-readable part, witness version and witness program length. Ownership and availability of funds are separate questions.

Bech32 is used for witness version zero; Bech32m is used for witness versions one through sixteen. A decoder should reject mixed-case strings, invalid checksums and incompatible encoding/version combinations. For the supported wallet families, P2WPKH uses a 20-byte version-zero program and P2TR uses a 32-byte version-one program. Other valid Bitcoin output types must not be confused with the two wallet derivation families.

Illustrative client decision procedure

require explicit network context
parse destination with a maintained Bitcoin library
validate checksum and witness program
compare address network with selected node chain
apply application destination policy
require spending authorization before SEND

This is a proposed client procedure, not a claim about the internal implementation of WAB. The engine must remain the authoritative executor. Client validation cannot replace consensus validation or protect against every valid but unintended destination.

The testnet ambiguity

A tb1 prefix cannot distinguish testnet3 from testnet4. A client that only checks this prefix may accept an address from a faucet operating on the wrong chain. Record the actual chain identity in deployment configuration and evidence logs. Do not try to solve a chain mismatch by rewriting address prefixes.

Test matrix

Include valid BIP173 and BIP350 vectors, altered checksums, mixed case, wrong network, and unsupported destination types. A valid destination outside the wallet's own address family is not automatically invalid; consult the SEND contract. Use negative tests without real funds. The reported faucet rejection of a Taproot address also illustrates that service policy and Bitcoin address validity are different concepts.

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