ed25519

package
v0.0.0-...-fab57c2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package ed25519 provides a mockable wrapper for crypto/ed25519.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct{}

func (*Impl) GenerateKey

func (*Impl) GenerateKey(rand io.Reader) (ed25519.PublicKey, ed25519.PrivateKey, error)

func (*Impl) NewKeyFromSeed

func (*Impl) NewKeyFromSeed(seed []byte) ed25519.PrivateKey

func (*Impl) Sign

func (*Impl) Sign(privateKey ed25519.PrivateKey, message []byte) []byte

func (*Impl) Verify

func (*Impl) Verify(publicKey ed25519.PublicKey, message []byte, sig []byte) bool

type Interface

type Interface interface {
	GenerateKey(rand io.Reader) (ed25519.PublicKey, ed25519.PrivateKey, error)
	NewKeyFromSeed(seed []byte) ed25519.PrivateKey
	Sign(privateKey ed25519.PrivateKey, message []byte) []byte
	Verify(publicKey ed25519.PublicKey, message []byte, sig []byte) bool
}

Jump to

Keyboard shortcuts

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