package
0.0.0-20250213232608-c453f8b35c75
Repository: https://github.com/stellar/go.git
Documentation: pkg.go.dev
# Functions
FromRawSeed creates a new keypair from the provided raw ED25519 seed.
Master returns the master keypair for a given network passphrase Deprecated: Use keypair.Root instead.
MustParse is the panic-on-fail version of Parse.
MustParseAddress is the panic-on-fail version of ParseAddress.
MustParseFull is the panic-on-fail version of ParseFull.
MustRandom is the panic-on-fail version of Random.
Parse constructs a new KP from the provided string, which should be either an address, or a seed.
ParseAddress constructs a new FromAddress keypair from the provided string, which should be an address.
ParseFull constructs a new Full keypair from the provided string, which should be a seed.
Random creates a random full keypair.
Root returns the root account keypair for a given network passphrase.
# Constants
DefaultSignerWeight represents the starting weight of the default signer for an account.
# Variables
ErrCannotSign is returned when attempting to sign a message when the keypair does not have the secret key available.
ErrInvalidKey will be returned by operations when the keypair being used could not be decoded.
ErrInvalidSignature is returned when the signature is invalid, either through malformation or if it does not verify the message against the provided public key.
# Interfaces
KP is the main interface for this package.