Module bech32::primitives
source · Expand description
All the primitive types and functionality used in encoding and decoding. Provides the internal nuts and bolts that enable bech32 encoding/decoding.
Modules
- Degree-2 BCH code checksum.
- Bech32 address encoding.
- GF32 - Galois Field over 32 elements.
- Provides an
Hrp
type that represents the human-readable part of a bech32 encoded string. - Iterator Adaptors.
- Segregated Witness functionality - useful for enforcing parts of [
BIP-173
] and [BIP-350
].
Enums
- The bech32 checksum algorithm, defined in [BIP-173]. [BIP-173]: https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki
- The bech32m checksum algorithm, defined in [BIP-350]. [BIP-350]: https://github.com/bitcoin/bips/blob/master/bip-0359.mediawiki
- The “null checksum” used on bech32 strings for which we want to do no checksum checking.