# Functions
ConvertBits converts a byte slice where each byte is encoding fromBits bits, to a byte slice where each byte is encoding toBits bits.
Decode decodes a bech32 encoded string, returning the human-readable part and the data part excluding the checksum.
DecodeNoLimit decodes a bech32 encoded string, returning the human-readable part and the data part excluding the checksum.
DecodeToBase256 decodes a bech32-encoded string into its associated human-readable part (HRP) and base32-encoded data, converts that data to a base256-encoded byte slice and returns it along with the lowercase HRP.
Encode encodes a byte slice into a bech32 string with the given human-readable part (HRP).
EncodeFromBase256 converts a base256-encoded byte slice into a base32-encoded byte slice and then encodes it into a bech32 string with the given human-readable part (HRP).
# Structs
ErrInvalidBitGroups is returned when conversion is attempted between byte slices using bit-per-element of unsupported value.
ErrInvalidChecksum is returned when the extracted checksum of the string is different than what was expected.
ErrInvalidIncompleteGroup is returned when then byte slice used as input has data of wrong length.
ErrMixedCase is returned when the bech32 string has both lower and uppercase characters.
# Type aliases
ErrInvalidCharacter is returned when the bech32 string has a character outside the range of the supported charset.
ErrInvalidDataByte is returned when a byte outside the range required for conversion into a string was found.
ErrInvalidLength is returned when the bech32 string has an invalid length given the BIP-173 defined restrictions.
ErrInvalidSeparatorIndex is returned when the separator character '1' is in an invalid position in the bech32 string.
ErrNonCharsetChar is returned when a character outside of the specific bech32 charset is used in the string.