ed25519

package
v0.0.0-...-648c852 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyType = "ed25519"
)

Variables

This section is empty.

Functions

func GenKeys

func GenKeys() (PublicKey, PrivateKey, error)

Types

type PrivateKey

type PrivateKey []byte

func (PrivateKey) Equals

func (privKey PrivateKey) Equals(other []byte) bool

func (PrivateKey) PubKey

func (privKey PrivateKey) PubKey() crypto.PubKey

func (PrivateKey) Sign

func (privKey PrivateKey) Sign(msg []byte) ([]byte, error)

func (PrivateKey) Type

func (privKey PrivateKey) Type() string

type PublicKey

type PublicKey []byte

func BytesToPubKey

func BytesToPubKey(b []byte) (PublicKey, error)

func (PublicKey) Bytes

func (pubKey PublicKey) Bytes() []byte

func (PublicKey) Equals

func (pubKey PublicKey) Equals(other []byte) bool

func (PublicKey) Type

func (pubKey PublicKey) Type() string

func (PublicKey) VerifySignature

func (pubKey PublicKey) VerifySignature(msg, sig []byte) bool

Jump to

Keyboard shortcuts

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