ed25519

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: Unlicense Imports: 3 Imported by: 0

Documentation

Overview

Package ed25519 is a wrapper around golang. org/x/crypto/ed25519 that uses arrays instead of indeterminate sized slices to simplify block structure

Index

Constants

View Source
const PublicKeySize = ed.PublicKeySize

Variables

This section is empty.

Functions

func GenerateKey

func GenerateKey(rr io.Reader) (pk PublicKey, sk PrivateKey, err error)

Types

type PrivateKey

type PrivateKey [ed.PrivateKeySize]byte

func NewKeyFromSeed

func NewKeyFromSeed(s Seed) (pk PrivateKey)

func (PrivateKey) Equal

func (sk PrivateKey) Equal(x PrivateKey) bool

func (PrivateKey) Public

func (sk PrivateKey) Public() (pk PublicKey)

func (PrivateKey) Seed

func (sk PrivateKey) Seed() (seed Seed)

func (PrivateKey) Sign

func (sk PrivateKey) Sign(message []byte) (sig Signature)

type PublicKey

type PublicKey [PublicKeySize]byte

func (PublicKey) Equal

func (pk PublicKey) Equal(x PublicKey) bool

func (PublicKey) Verify

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

type Seed

type Seed [ed.SeedSize]byte

type Signature

type Signature [ed.SignatureSize]byte

func ToSignature

func ToSignature(s []byte) (sig Signature, err error)

Jump to

Keyboard shortcuts

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