Documentation ¶
Index ¶
- func GenerateKeyPair() (ed25519.PublicKey, ed25519.PrivateKey, error)
- func KeyToString(key []byte) string
- func SignMessage(privateKey ed25519.PrivateKey, message []byte) []byte
- func StringToKey(keyStr string) ([]byte, error)
- func VerifyMessage(publicKey ed25519.PublicKey, message, signature []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKeyPair ¶
func GenerateKeyPair() (ed25519.PublicKey, ed25519.PrivateKey, error)
func KeyToString ¶
func SignMessage ¶
func SignMessage(privateKey ed25519.PrivateKey, message []byte) []byte
func StringToKey ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.