A library for Bech32 encoding.
Bech32 and Bech32m are used to encode a sequence of bytes in a checksummed base32 format.
The following executable formal specifications follow the specifications in BIP 173andBIP 350.
Bech32 and Bech32m differ only in the value xored into the checksum at the end of the computation. When we describe Bech32, we are usually referring to both Bech32 and Bech32m.