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 Bech32m BIP350: Taproot Addresses and Witness-Version Compatibility

permalink THAMER
#bech32m#bip350#bitcoin#taproot#witness-versions

Taproot outputs use witness version 1 and a 32-byte witness program. Their human-readable addresses use Bech32m, the revised checksum specified in BIP350. Although a typical mainnet Taproot address starts with bc1p, its visible prefix is only a clue; the entire string and decoded witness program must be validated.

Why Bech32m was introduced

The original Bech32 checksum, specified by BIP173, has an undesirable error-detection property for certain character insertions and deletions. BIP350 changes the final checksum constant while retaining the same human-readable structure and character alphabet. This makes Bech32m a closely related but distinct checksum scheme.

The rules intentionally split by witness version. Version 0 addresses must use Bech32, while versions 1 through 16 must use Bech32m. A validator that accepts either checksum variant for every version is not implementing the SegWit address specification correctly. Such permissiveness can cause users to accept strings that other wallets reject.

What a Taproot address represents

A version 1 witness program of 32 bytes encodes the x-coordinate of a Taproot output public key. That output key may support a key-path spend, a committed script tree, or both, depending on how it was constructed. The address does not disclose the full script tree or the wallet's spending policy.

Bech32m is a text representation of the witness version and program; it is not a signature scheme and does not itself create privacy. Taproot's on-chain validation rules come from BIP341 and BIP342. The address format lets a sender build the corresponding scriptPubKey, typically OP_1 followed by a push of the 32-byte output key.

Validation and forward compatibility

Decode the address using its claimed network HRP, reject mixed case, check the Bech32m checksum, and ensure the witness version is in range 1 through 16. A version 1 Taproot address must contain a 32-byte witness program. Future witness versions may have different semantics; a wallet should not claim it understands their spending conditions merely because it can parse their encoding.

Software must separate syntactic acceptance from its ability to construct, sign, or safely recognize a payment. A sender may support a valid destination type that the receiving wallet does not itself know how to spend. Conversely, a receiver needs matching key material and discovery logic, not just a correct address string.

Primary references

BIP350 — Bech32m format for v1+ witness addresses: https://github.com/bitcoin/bips/blob/master/bip-0350.mediawiki

BIP341 — Taproot: SegWit version 1 spending rules: https://github.com/bitcoin/bips/blob/master/bip-0341.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