ed25519

package
v1.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Verifier

type Verifier struct {
}

Verifier verifies a Ed25519 signature taking Ed25519 public key bytes as input.

func New

func New() *Verifier

New creates a new ed25519 Verifier.

func (*Verifier) SupportedKeyType

func (sv *Verifier) SupportedKeyType(keyType kms.KeyType) bool

SupportedKeyType checks if verifier supports given key.

func (*Verifier) Verify

func (sv *Verifier) Verify(signature, msg []byte, pubKey *pubkey.PublicKey) error

Verify verifies the signature.

Jump to

Keyboard shortcuts

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