bech32
Bech32 is an encoding scheme designed for human readability and error detection, and it is used to encode Segregated Witness (SegWit) addresses in Bitcoin. It was defined in Bitcoin Improvement Proposal 173 (BIP-173) and published in 2017. A Bech32 string consists of a human-readable part, a separator, a data portion, and a six-character checksum. The human-readable part identifies the network (for example, "bc" for Bitcoin mainnet and "tb" for testnet); the separator is the numeral "1"; the data part is encoded using a 32-character alphabet.
The data portion is formed by converting the underlying binary data into 5-bit words and appending a
Bech32 addresses commonly begin with "bc1" on Bitcoin mainnet or "tb1" on testnet, followed by the data
Bech32’s adoption in wallets and software has contributed to more reliable address handling, with Bech32m used