ed25519

package
v1.0.35 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateKey

func GenerateKey(str string) (public [32]byte, private [64]byte, err error)

GenerateKey return a public and private key pair from the provided str.

func Signature

func Signature(key, data []byte) ([]byte, error)

Signature returns the signature of data using the provided key.

func ValidateSignature

func ValidateSignature(key, data, signature []byte) bool

ValidateSignature return true when the signature is a valid signature of data based on the provided key. Otherwise false is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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