Versions in this module Expand all Collapse all v0 v0.0.1 Nov 25, 2022 Changes in this version + const DefaultSignerWeight + var ErrCannotSign = errors.New("cannot sign") + var ErrInvalidKey = errors.New("invalid key") + var ErrInvalidSignature = errors.New("signature verification failed") + type FromAddress struct + func MustParseAddress(address string) *FromAddress + func ParseAddress(address string) (*FromAddress, error) + func (kp *FromAddress) Address() string + func (kp *FromAddress) Equal(a *FromAddress) bool + func (kp *FromAddress) FromAddress() *FromAddress + func (kp *FromAddress) Hint() (r [4]byte) + func (kp *FromAddress) MarshalBinary() ([]byte, error) + func (kp *FromAddress) MarshalText() ([]byte, error) + func (kp *FromAddress) Sign(input []byte) ([]byte, error) + func (kp *FromAddress) SignBase64(input []byte) (string, error) + func (kp *FromAddress) SignDecorated(input []byte) (xdr.DecoratedSignature, error) + func (kp *FromAddress) SignPayloadDecorated(input []byte) (xdr.DecoratedSignature, error) + func (kp *FromAddress) UnmarshalBinary(b []byte) error + func (kp *FromAddress) UnmarshalText(text []byte) error + func (kp *FromAddress) Verify(input []byte, sig []byte) error + type Full struct + func FromRawSeed(rawSeed [32]byte) (*Full, error) + func MustParseFull(seed string) *Full + func MustRandom() *Full + func ParseFull(seed string) (*Full, error) + func Random() (*Full, error) + func Root(networkPassphrase string) *Full + func (kp *Full) Address() string + func (kp *Full) Equal(f *Full) bool + func (kp *Full) FromAddress() *FromAddress + func (kp *Full) Hint() (r [4]byte) + func (kp *Full) Seed() string + func (kp *Full) Sign(input []byte) ([]byte, error) + func (kp *Full) SignBase64(input []byte) (string, error) + func (kp *Full) SignDecorated(input []byte) (xdr.DecoratedSignature, error) + func (kp *Full) SignPayloadDecorated(input []byte) (xdr.DecoratedSignature, error) + func (kp *Full) Verify(input []byte, sig []byte) error + type KP interface + Address func() string + FromAddress func() *FromAddress + Hint func() [4]byte + Sign func(input []byte) ([]byte, error) + SignBase64 func(input []byte) (string, error) + SignDecorated func(input []byte) (xdr.DecoratedSignature, error) + SignPayloadDecorated func(input []byte) (xdr.DecoratedSignature, error) + Verify func(input []byte, signature []byte) error + func Master(networkPassphrase string) KP + func MustParse(addressOrSeed string) KP + func Parse(addressOrSeed string) (KP, error)