localcrypto

package
v1.3.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2024 License: LGPL-2.1 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateKeyPair

func GenerateKeyPair() (ed25519.PublicKey, ed25519.PrivateKey, error)

func KeyToString

func KeyToString(key []byte) string

func SignMessage

func SignMessage(privateKey ed25519.PrivateKey, message []byte) []byte

func StringToKey

func StringToKey(keyStr string) ([]byte, error)

func VerifyMessage

func VerifyMessage(publicKey ed25519.PublicKey, message, signature []byte) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL