package
1.0.2-rc0
Repository: https://github.com/cosmostation/cvms.git
Documentation: pkg.go.dev

# Functions

ConvertAndEncode converts from a base64 encoded byte string to base32 encoded byte string and then to bech32.
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.
DecodeAndConvert decodes a bech32 encoded string and converts to base64 encoded bytes.
ref; https://github.com/skip-mev/connect/blob/main/abci/strategies/codec/codec.go.
DecodeNoLimit decodes a bech32 encoded string, returning the human-readable part and the data part excluding the checksum.
for this feature, we should add dependency about connect; vetypes "github.com/skip-mev/slinky/abci/ve/types" NOTE: UNUSED FUNCTION.
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.
DecodeUnsafe decodes a bech32 encoded string, returning the human-readable part, the data part (excluding the checksum) and the checksum.
No description provided by the author
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).
NOTE: this is not cosmos-sdk native.
No description provided by the author
No description provided by the author
No description provided by the author
NOTE: only support ed25519 key type for ICS.
No description provided by the author
Normalize converts the uppercase letters to lowercase in string, because Bech32 standard uses only the lowercase for of string for checksum calculation.
No description provided by the author
VerifyChecksum verifies whether the bech32 string specified by the provided hrp and payload data (encoded as 5 bits per element byte slice) are validated by the given checksum.

# Constants

No description provided by the author
No description provided by the author
MaxLengthBIP173 is the maximum length of bech32-encoded address defined by BIP-173.
No description provided by the author
No description provided by the author
No description provided by the author

# 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.