signer

package
v0.0.0-...-0601c6c Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidSignature = errors.New("signature is invalid")
)

Functions

This section is empty.

Types

type Interface

type Interface interface {
	GenerateKeys() error
}

type RequestSigner

type RequestSigner struct {
	// contains filtered or unexported fields
}

func NewSigner

func NewSigner(publicKeyPath, privateKeyPath string) (RequestSigner, error)

func (RequestSigner) GenerateKeys

func (r RequestSigner) GenerateKeys() error

func (RequestSigner) Sign

func (r RequestSigner) Sign(data []byte) string

func (RequestSigner) Verify

func (r RequestSigner) Verify(timestamp uint64, payload []byte, signature string) error

Jump to

Keyboard shortcuts

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