Versions in this module Expand all Collapse all v0 v0.2.0 Aug 18, 2021 v0.1.0 Aug 14, 2021 Changes in this version + type KeyPair interface + GetPublicKey func() PublicKey + Sign func(message []byte) ([]byte, error) + Verify func(message, signature []byte) bool + func NewKeyPairFromRandom(curve string) (KeyPair, error) + func NewKeyPairFromString(secretKey string) (KeyPair, error) + type KeyPairEd25519 struct + func (k *KeyPairEd25519) GetPublicKey() PublicKey + func (k *KeyPairEd25519) Sign(message []byte) ([]byte, error) + func (k *KeyPairEd25519) String() string + func (k *KeyPairEd25519) Verify(message, signature []byte) bool + type KeyStore interface + SetKey func(networkID, accountID string, keyPair KeyPair) + type KeyType int + const ED25519 + type PublicKey struct + Data []byte + Type KeyType + func NewPublicKeyFromString(str string) (*PublicKey, error) + func (pk *PublicKey) ToString() (string, error)