Versions in this module Expand all Collapse all v1 v1.2.17 Jul 9, 2024 Changes in this version + const Charset + 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 (err ErrInvalidBitGroups) Error() string + type ErrInvalidCharacter rune + func (err ErrInvalidCharacter) Error() string + type ErrInvalidChecksum struct + Actual string + Expected string + ExpectedM string + func (err ErrInvalidChecksum) Error() string + type ErrInvalidDataByte byte + func (err ErrInvalidDataByte) Error() string + type ErrInvalidIncompleteGroup struct + func (err ErrInvalidIncompleteGroup) Error() string + type ErrInvalidLength int + func (err ErrInvalidLength) Error() string + type ErrInvalidSeparatorIndex int + func (err ErrInvalidSeparatorIndex) Error() string + type ErrMixedCase struct + func (err ErrMixedCase) Error() string + type ErrNonCharsetChar rune + func (err ErrNonCharsetChar) Error() string + type Version uint8 + const Version0 + const VersionM + const VersionUnknown + func DecodeGeneric(bech string) (string, []byte, Version, error)