package
0.0.0-20250213232608-c453f8b35c75
Repository: https://github.com/stellar/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.
DecodeMuxedAccount receives a muxed account M-address and parses it into a MuxedAccount object containing an ed25519 address and an id.
DecodeSignedPayload transforms a P..
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.
IsValidMuxedAccountEd25519PublicKey validates a Stellar SEP-23 muxed address.
MustDecode is like Decode, but panics on error.
MustEncode is like Encode, but panics on error.
NewSignedPayload creates a signed payload from an account ID (G..
Version extracts and returns the version byte from the provided source string.

# Constants

Base32-encodes to 'G...'.
Base-32 encodes to 'C'.
Base32-encodes to 'T...'.
Base32-encodes to 'X...'.
Base32-encodes to 'M...'.
Base32-encodes to 'S...'.
Base-32 encodes to 'P'.

# Variables

ErrInvalidVersionByte is returned when the version byte from a provided strkey-encoded string is not one of the valid values.

# Structs

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