package
0.0.0-20190507022301-b1bd2f5c3845
Repository: https://github.com/gincoinc/go.git
Documentation: pkg.go.dev
# Functions
Decode decodes the provided StrKey into a raw value, checking the checksum and ensuring the expected VersionByte (the version parameter) is the value actually encoded into the provided src string.
Encode encodes the provided data to a StrKey, using the provided version byte.
MustDecode is like Decode, but panics on error.
MustEncode is like Encode, but panics on error.
Version extracts and returns the version byte from the provided source string.
# Constants
Base32-encodes to 'G...'.
Base32-encodes to 'T...'.
Base32-encodes to 'X...'.
Base32-encodes to 'S...'.
# Variables
ErrInvalidVersionByte is returned when the version byte from a provided strkey-encoded string is not one of the valid values.
# Type aliases
VersionByte represents one of the possible prefix values for a StrKey base string--the string the when encoded using base32 yields a final StrKey.