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

Dual Network Bitcoin Architecture: Separating Mainnet and Testnet

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.

Two networks, one programming philosophy

WALLET AI BITCOIN states “Dual Network — Bitcoin Mainnet & Testnet.” The purpose is to let a developer learn the same execution interface with experimental funds before choosing a production environment. Testnet coins are not mainnet assets. A successful test does not transfer funds, state or security guarantees to mainnet.

The network must be an explicit part of the execution context. A Bitcoin address, transaction identifier or numeric balance is not sufficient to establish that context. In particular, testnet3 and testnet4 use compatible address encodings but maintain different chains. The node's chain identity matters more than the prefix alone.

Isolation model

| Boundary | Required distinction |
|---|---|
| Node | Chain identity and synchronization |
| Wallet view | Network and address family |
| Transaction | Inputs from the intended chain |
| Application ledger | Network-qualified payment references |
| Authorization | Explicit permission to spend real funds |

A client can represent a payment reference as (network, txid, vout). An application should additionally retain the actual test chain identity when more than one test network is possible. Never combine balances from different networks into a spendable total.

Illustrative request

{"net":"test","type":"segwit"}

This is a wallet selection example, not a complete authenticated request. Consult the API reference for the operation and credentials. A production client should reject missing network selection rather than silently default to mainnet.

Evidence and proposed verification

The Codex faucet experiment reported a testnet4 compatibility problem before obtaining testnet3 funds. That is a concrete example of why a generic testnet label is insufficient. A proposed conformance test should check node identity, submit a testnet receive request, validate the address, and compare an observed output with the correct chain. Repeat the checks for both supported address families without broadcasting mainnet transactions. Network isolation is not established merely by passing an address-format test.

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