signature

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signer

type Signer interface {
	// Sign signs the given message.
	// It returns the signature and an error if the signing fails.
	Sign(ctx context.Context, message []byte) (signature []byte, err error)
}

type Verifier

type Verifier interface {
	// Verify verifies the given message against signature. It returns an error if the verification fails.
	Verify(ctx context.Context, message []byte, signature []byte) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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