ed25519

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load()

Types

type Key

type Key crypto.Key

func PrivateKeyFromSeed

func PrivateKeyFromSeed(seed []byte) (*Key, error)

func (Key) AddPrivate

func (k Key) AddPrivate(p crypto.PrivateKey) crypto.PrivateKey

func (Key) AddPublic

func (k Key) AddPublic(pub crypto.PublicKey) crypto.PublicKey

func (Key) Challenge

func (k Key) Challenge(R crypto.PublicKey, message []byte) [32]byte

func (Key) CheckKey

func (k Key) CheckKey() bool

func (Key) CheckScalar

func (k Key) CheckScalar() bool

func (Key) DeterministicHashDerive

func (k Key) DeterministicHashDerive() crypto.PrivateKey

func (Key) Key

func (k Key) Key() crypto.Key

func (Key) Public

func (k Key) Public() crypto.PublicKey

func (Key) ScalarHash

func (k Key) ScalarHash(outputIndex uint64) crypto.PrivateKey

func (Key) ScalarMult

func (k Key) ScalarMult(p crypto.PublicKey) crypto.PublicKey

func (Key) Sign

func (k Key) Sign(message []byte) (*crypto.Signature, error)

func (Key) SignWithChallenge

func (k Key) SignWithChallenge(random crypto.PrivateKey, message []byte, hReduced [32]byte) (*crypto.Signature, error)

func (Key) String

func (k Key) String() string

func (Key) SubPublic

func (k Key) SubPublic(pub crypto.PublicKey) crypto.PublicKey

func (Key) Verify

func (k Key) Verify(message []byte, sig *crypto.Signature) bool

func (Key) VerifyWithChallenge

func (k Key) VerifyWithChallenge(message []byte, sig *crypto.Signature, hReduced [32]byte) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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