[−][src]Module mohan::bech32
bech32 Bech32 (BIP-173) checksummed Base32 data encoding
Structs
Bech32Writer | Allocationless Bech32 writer that accumulates the checksum data internally and writes them out in the end. |
u5 | Integer in the range |
Enums
Error | Error types for Bech32 encoding / decoding |
Traits
Base32Len | Interface to calculate the length of the base32 representation before actually serializing |
CheckBase32 | A trait to convert between u8 arrays and u5 arrays without changing the content of the elements, but checking that they are in range. |
FromBase32 | Parse/convert base32 slice to |
ToBase32 | A trait for converting a value to a type |
WriteBase32 | Interface to write |
Functions
convert_bits | Convert between bit sizes |
decode | Decode a bech32 string into the raw HRP and the data bytes. |
encode | Encode a bech32 payload to string. |
encode_to_fmt | Encode a bech32 payload to an fmt::Write. This method is intended for implementing traits from std::fmt. |