verifier

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: EUPL-1.2 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnnotatedEuropeanPk added in v0.2.0

type AnnotatedEuropeanPk struct {
	SubjectPk      []byte   `json:"subjectPk"`
	KeyUsage       []string `json:"keyUsage"`
	SubjectAltName string   `json:"san"`
	IssuerAltName  string   `json:"ian"`

	// LoadedPK is either of type *ecdsa.PublicKey or *rsa.PublicKey
	LoadedPk interface{} `json:"-"`
}

type PksLookup added in v0.4.0

type PksLookup map[string][]*AnnotatedEuropeanPk

type VerifiedHCert added in v0.4.1

type VerifiedHCert struct {
	HealthCertificate *common.HealthCertificate
	PublicKey         *AnnotatedEuropeanPk
	ProofIdentifier   []byte
}

type Verifier

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

func New

func New(pksLookup PksLookup) *Verifier

func (*Verifier) Verify

func (v *Verifier) Verify(cwt *common.CWT) (*VerifiedHCert, error)

func (*Verifier) VerifyQREncoded

func (v *Verifier) VerifyQREncoded(proofPrefixed []byte) (*VerifiedHCert, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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