ed25519

package
v0.0.0-...-59da782 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeEd25519 = byte(0x01)
	NameEd25519 = "ed25519"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Ed25519Driver

type Ed25519Driver struct{}

func (Ed25519Driver) GenKey

func (d Ed25519Driver) GenKey() (PrivKey, error)

Crypto

func (Ed25519Driver) PrivKeyFromBytes

func (d Ed25519Driver) PrivKeyFromBytes(b []byte) (privKey PrivKey, err error)

func (Ed25519Driver) PubKeyFromBytes

func (d Ed25519Driver) PubKeyFromBytes(b []byte) (pubKey PubKey, err error)

func (Ed25519Driver) SignatureFromBytes

func (d Ed25519Driver) SignatureFromBytes(b []byte) (sig Signature, err error)

type PrivKeyEd25519

type PrivKeyEd25519 [64]byte

PrivKey

func (PrivKeyEd25519) Bytes

func (privKey PrivKeyEd25519) Bytes() []byte

func (PrivKeyEd25519) Equals

func (privKey PrivKeyEd25519) Equals(other PrivKey) bool

func (PrivKeyEd25519) PubKey

func (privKey PrivKeyEd25519) PubKey() PubKey

func (PrivKeyEd25519) Sign

func (privKey PrivKeyEd25519) Sign(msg []byte) Signature

type PubKeyEd25519

type PubKeyEd25519 [32]byte

PubKey

func (PubKeyEd25519) Bytes

func (pubKey PubKeyEd25519) Bytes() []byte

func (PubKeyEd25519) Equals

func (pubKey PubKeyEd25519) Equals(other PubKey) bool

func (PubKeyEd25519) KeyString

func (pubKey PubKeyEd25519) KeyString() string

func (PubKeyEd25519) VerifyBytes

func (pubKey PubKeyEd25519) VerifyBytes(msg []byte, sig_ Signature) bool

type SignatureEd25519

type SignatureEd25519 [64]byte

Signature

func (SignatureEd25519) Bytes

func (sig SignatureEd25519) Bytes() []byte

func (SignatureEd25519) Equals

func (sig SignatureEd25519) Equals(other Signature) bool

func (SignatureEd25519) IsZero

func (sig SignatureEd25519) IsZero() bool

func (SignatureEd25519) String

func (sig SignatureEd25519) String() string

type SignatureS

type SignatureS struct {
	Signature
}

Jump to

Keyboard shortcuts

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