TeachMeBitcoin

Bech32 (The SegWit Standard)

From TeachMeBitcoin, the free encyclopedia Reading time: 2 min

Bech32 (The SegWit Standard)

With the introduction of Segregated Witness (SegWit), Bitcoin introduced a completely new address format called Bech32 (BIP173). It moved away from the legacy Base58 format to solve several technical and usability issues.

1. The Anatomy of Bech32

A Bech32 address (like bc1q...) is divided into three parts:

  1. HRP (Human Readable Part): Usually bc for Mainnet or tb for Testnet.

  2. Separator: Always the character 1.

  3. Data Part: The encoded hash + a 6-character checksum.

2. Why Base32?

Bech32 uses a character set of only 32 characters (all lowercase).

3. Advanced Error Correction

Legacy Base58Check only tells you if an address is "Wrong." Bech32 uses BCH Codes, which can actually identify where the error is.

4. Witness Versions

The first byte of the data part in Bech32 represents the Witness Version.

5. Comparison: Legacy vs. SegWit

Feature Base58Check (1...) Bech32 (bc1q...)
Case Sensitive Yes No
Character Set 58 characters 32 characters
Error Detection SHA256 Checksum BCH Polynomial
QR Efficiency Medium High

In the next section, we will look at the Bech32m upgrade for Taproot.

☕ Help support TeachMeBitcoin

TeachMeBitcoin is an ad-free, open-source educational repository curated by a passionate team of Bitcoin researchers and educators for public benefit. If you found our articles helpful, please consider supporting our hosting and ongoing content updates with a clean donation:

Ethereum: 0x578417C51783663D8A6A811B3544E1f779D39A85
Bitcoin: bc1q77k9e95rn669kpzyjr8ke9w95zhk7pa5s63qzz
Solana: 4ycT2ayqeMucixj3wS8Ay8Tq9NRDYRPKYbj3UGESyQ4J
Address copied to clipboard!