package
0.0.0-20210414020239-6daa909df9a7
Repository: https://github.com/kingaj12/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.
DecodeAny decodes the provided StrKey into a raw value, checking the checksum and if the version byte is one of allowed values.
Encode encodes the provided data to a StrKey, using the provided version byte.
IsValidEd25519PublicKey validates a stellar public key.
IsValidEd25519SecretSeed validates a stellar secret key.
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.