signer

package
v3.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 12 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(msg []byte) ([]byte, error)
	PublicKey() (string, error)
	GetAlgorithm() string
}

func NewSignerFromPrivateKeyFile

func NewSignerFromPrivateKeyFile(name string) (Signer, error)

type Verifier

type Verifier interface {
	Verify(msg, sig []byte) (bool, error)
}

func NewVerifierFromPubKey

func NewVerifierFromPubKey(pkPem string) (Verifier, error)

Jump to

Keyboard shortcuts

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