ed25519

package
v0.0.0-...-d958ee8 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrivateKeySize = ed25519.PrivateKeySize
	PublicKeySize  = ed25519.PublicKeySize
	SignatureSize  = ed25519.SignatureSize
)

Variables

This section is empty.

Functions

func Generate

func Generate() (PublicKey, PrivateKey, error)

func Sign

func Sign(privateKey PrivateKey, message []byte) []byte

func Verify

func Verify(publicKey PublicKey, message []byte, signature []byte) bool

Types

type PrivateKey

type PrivateKey = ed25519.PrivateKey

func PrivateKeyFromBytes

func PrivateKeyFromBytes(bytes []byte) (PrivateKey, error)

type PublicKey

type PublicKey = ed25519.PublicKey

func PublicKeyFromBytes

func PublicKeyFromBytes(bytes []byte) (PublicKey, error)

Jump to

Keyboard shortcuts

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