ed25519

package
v0.0.0-...-888bb8d Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package ed25519 is intended to force the use of ZIP215's precise validation criteria for Ed25519. Use this library instead of crypto/ed25519.

This package is intentionally named the same as crypto/ed25519.

Index

Constants

View Source
const (
	PublicKeySize  = stdEd25519.PublicKeySize
	PrivateKeySize = stdEd25519.PrivateKeySize
	SignatureSize  = stdEd25519.SignatureSize
	SeedSize       = stdEd25519.SeedSize
)

Variables

This section is empty.

Functions

func GenerateKey

func GenerateKey(r io.Reader) (PublicKey, PrivateKey, error)

func Sign

func Sign(p PrivateKey, m []byte) []byte

func Verify

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

Types

type PrivateKey

type PrivateKey = stdEd25519.PrivateKey

func NewKeyFromSeed

func NewKeyFromSeed(s []byte) PrivateKey

type PublicKey

type PublicKey = stdEd25519.PublicKey

Jump to

Keyboard shortcuts

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