---
title: "BIP-350 — definition | Nuri Glossary"
description: "The Bech32m encoding used for SegWit version 1 and later addresses, including Taproot."
lang: "en"
type: "glossary-term"
canonical: "https://nuri.com/glossary/bip-350"
---

# BIP-350

The Bech32m encoding used for SegWit version 1 and later addresses, including Taproot.

## Basically

BIP-350 is the rule for writing Taproot and newer Bitcoin addresses. It uses the Bech32m format for SegWit version 1 and later.

## Key Takeaways

- BIP-350 introduces Bech32m, a modified version of the original Bech32 encoding. It fixes a subtle checksum weakness affecting witness versions 1 and higher, including Taproot addresses.
- The only technical change is the checksum constant: Bech32 uses 1, while Bech32m uses 0x2bc830a3. This change removes an undetectable insertion/deletion mutation in the original encoding.
- Bech32 (bc1q) remains in use for SegWit version 0 addresses like P2WPKH and P2WSH. Bech32m (bc1p) is required for P2TR and all future witness versions.

## What Is BIP-350?

BIP-350 is a Bitcoin Improvement Proposal authored by Pieter Wuille in December 2020. It defines the Bech32m address encoding format and amends the original Bech32 specification (BIP-173) to use a modified checksum algorithm for native SegWit outputs of version 1 and later, while preserving Bech32 for version 0 outputs.
The proposal followed the discovery of a specific weakness in Bech32's error detection: when the last character of an encoded string is "p", inserting or deleting any number of "q" characters immediately before it does not invalidate the checksum. Version 0 addresses are protected by fixed length constraints, but future witness versions with variable-length programs would be vulnerable. Bech32m closes this gap with one carefully chosen constant change.

## How It Works

BIP-173 defined the original Bech32 format for all native SegWit addresses. BIP-350 modifies that encoding, and a Bech32-encoded address consists of three parts.
The checksum uses a polynomial over GF(2^5) to detect common transcription errors. The original Bech32 finishes checksum verification by XORing the result with the constant 1. Bech32m replaces that constant with 0x2bc830a3.

## The Checksum Constant

Pieter Wuille and Greg Maxwell tested all 2^30 possible constant values through exhaustive analysis, using multiple filtering stages for error detection properties. They narrowed roughly one billion candidates to 12,054, then to 79, before selecting 0x2bc830a3 as the single optimal choice. The constant was not chosen arbitrarily: it minimises undetectable error classes while preserving Bech32's strong substitution error detection guarantees.
The polymod function, character set, HRP expansion, and every other aspect of the encoding remain identical between Bech32 and Bech32m. Only the final comparison constant differs.

## The Bech32 Weakness

The original Bech32 checksum has a specific insertion/deletion vulnerability. If the final character of the data part is "p" (value 1 in the Bech32 character set), inserting or deleting any number of "q" characters (value 0) immediately before it produces another valid checksum.
Version 0 addresses are not exploitable because P2WPKH requires exactly 20 bytes and P2WSH requires exactly 32 bytes. Any insertion or deletion changes the length and is rejected before the checksum is even evaluated. Future witness versions could allow variable-length programs, making this weakness a real risk.

## Version-Based Encoding Rules

BIP-350 sets a strict encoding rule based on the witness version. Version 0 uses Bech32, while versions 1 through 16 use Bech32m.
Implementations must enforce this mapping strictly. Software must reject a version 0 address encoded with Bech32m and a version 1 address encoded with Bech32. Strict enforcement ensures that all software agrees on which checksum algorithm to use for validation.

## Why It Matters

BIP-350 provides required infrastructure for Taproot, Bitcoin's most significant upgrade since SegWit. Every P2TR address that uses Schnorr signatures and Taproot script trees relies on Bech32m encoding. Without BIP-350, Taproot addresses would inherit the original Bech32 weakness, potentially allowing undetected address mutations when you copy and paste or manually transcribe addresses.
The proposal also future-proofs Bitcoin's address format. Any new witness version (2 through 16) will automatically use Bech32m, ensuring reliable error detection regardless of the witness program length. Future upgrades that require new witness versions can rely on a proven, safe encoding scheme from day one.
The guide to Bitcoin address types explains how Bitcoin address formats have evolved from legacy to Taproot. You can read it for a deeper look at those formats.

## Wallet Compatibility

Bech32m addresses are not backwards compatible with wallets that only support the original Bech32 encoding. Bitcoin Core added full BIP-350 support in version 22.0 (September 2021), and most major wallets and exchanges followed through 2022 and 2023. Some older or unmaintained wallet software may still reject bc1p addresses entirely and display an "invalid address" error when you try to send to a Taproot address.
You should verify that the sending wallet or exchange supports Bech32m before sending funds to a bc1p address. The transaction will fail at the address validation stage if support is missing: funds will not be lost, but the payment will not go through.

## Address Format Confusion

Two visually similar encoding schemes can confuse you: bc1q for Bech32 and bc1p for Bech32m. Both formats share the same character set, the same "bc1" prefix, and the same general structure. The character after "bc1" indicates the witness version: "q" maps to version 0 (Bech32), while "p" maps to version 1 (Bech32m).
The glossary entry on address types covers all Bitcoin address types and when to use each. You can read it for a complete breakdown.

## Implementation Correctness

Software that validates or generates Bitcoin addresses must correctly implement both checksum algorithms and apply them based on witness version. A common mistake is applying Bech32m validation to all addresses, which breaks version 0 compatibility, or applying Bech32 validation to all addresses, which breaks Taproot support. Reference implementations in multiple languages are available in the BIP-350 reference repository.
The Taproot and Schnorr signatures explainer provides more technical context on how Taproot uses Bech32m addresses and Schnorr signatures. You can read it for the underlying details.
The glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.
Part of the [Nuri glossary](https://nuri.com/glossary), which defines 1876 Bitcoin, Lightning, wallet, stablecoin and payment terms.
