hmacsig

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Calculator

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

func NewCalculator

func NewCalculator(key []byte) Calculator

func (Calculator) ArbitrarySignature

func (c Calculator) ArbitrarySignature(msg []byte) string

func (Calculator) PassportVerificationSignature

func (c Calculator) PassportVerificationSignature(nullifier, anonymousID string) (string, error)

func (Calculator) QREventSignature

func (c Calculator) QREventSignature(nullifier, eventID, qrCode string) (string, error)

type SigCalculatorProvider

type SigCalculatorProvider interface {
	SigCalculator() Calculator
}

func NewCalculatorProvider

func NewCalculatorProvider(getter kv.Getter) SigCalculatorProvider

Jump to

Keyboard shortcuts

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