Versions in this module Expand all Collapse all v0 v0.0.1 Jul 23, 2023 Changes in this version + var ConstsToVersion = map[ChecksumConst]Version + var VersionToConsts = map[Version]ChecksumConst + func ConvertBits(data []byte, fromBits, toBits uint8, pad bool) ([]byte, error) + func Decode(bech string) (string, []byte, error) + func DecodeNoLimit(bech string) (string, []byte, error) + func DecodeToBase256(bech string) (string, []byte, error) + func Encode(hrp string, data []byte) (string, error) + func EncodeFromBase256(hrp string, data []byte) (string, error) + func EncodeM(hrp string, data []byte) (string, error) + type ChecksumConst int + const Version0Const + const VersionMConst + type ErrInvalidBitGroups struct + func (e ErrInvalidBitGroups) Error() string + type ErrInvalidCharacter rune + func (e ErrInvalidCharacter) Error() string + type ErrInvalidChecksum struct + Actual string + Expected string + ExpectedM string + func (e ErrInvalidChecksum) Error() string + type ErrInvalidDataByte byte + func (e ErrInvalidDataByte) Error() string + type ErrInvalidIncompleteGroup struct + func (e ErrInvalidIncompleteGroup) Error() string + type ErrInvalidLength int + func (e ErrInvalidLength) Error() string + type ErrInvalidSeparatorIndex int + func (e ErrInvalidSeparatorIndex) Error() string + type ErrMixedCase struct + func (e ErrMixedCase) Error() string + type ErrNonCharsetChar rune + func (e ErrNonCharsetChar) Error() string + type Version uint8 + const Version0 + const VersionM + const VersionUnknown + func DecodeGeneric(bech string) (string, []byte, Version, error)