Versions in this module Expand all Collapse all v0 v0.0.1 Nov 25, 2022 Changes in this version + const VersionByteAccountID + const VersionByteHashTx + const VersionByteHashX + const VersionByteMuxedAccount + const VersionByteSeed + const VersionByteSignedPayload + var ErrInvalidVersionByte = errors.New("invalid version byte") + func Decode(expected VersionByte, src string) ([]byte, error) + func Encode(version VersionByte, src []byte) (string, error) + func IsValidEd25519PublicKey(i interface{}) bool + func IsValidEd25519SecretSeed(i interface{}) bool + func IsValidMuxedAccountEd25519PublicKey(s string) bool + func MustDecode(expected VersionByte, src string) []byte + func MustEncode(version VersionByte, src []byte) string + type MuxedAccount struct + func DecodeMuxedAccount(address string) (*MuxedAccount, error) + func (m *MuxedAccount) AccountID() (string, error) + func (m *MuxedAccount) Address() (string, error) + func (m *MuxedAccount) ID() uint64 + func (m *MuxedAccount) SetAccountID(address string) error + func (m *MuxedAccount) SetID(id uint64) + type SignedPayload struct + func DecodeSignedPayload(address string) (*SignedPayload, error) + func NewSignedPayload(signerPublicKey string, payload []byte) (*SignedPayload, error) + func (sp *SignedPayload) Encode() (string, error) + func (sp *SignedPayload) Payload() []byte + func (sp *SignedPayload) Signer() string + type VersionByte byte + func DecodeAny(src string) (VersionByte, []byte, error) + func Version(src string) (VersionByte, error)