issuer

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IssueSpecification

type IssueSpecification struct {
	KeyUsage string

	Issuer         string
	IssuedAt       int64
	ExpirationTime int64

	DCC *common.DCC
}

type Issuer

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

func New

func New(signer Signer) *Issuer

func (*Issuer) Issue

func (iss *Issuer) Issue(spec *IssueSpecification) (signed *common.CWT, err error)

Issue intentionally doesn't support all the different COSE bells and whistles, and only does one thing well: serialize electronic health certificates for ECDSA / SHA-256 signing

func (*Issuer) IssueQREncoded

func (iss *Issuer) IssueQREncoded(spec *IssueSpecification) (qr, proofIdentifier []byte, err error)

type Signer

type Signer interface {
	GetKID(keyUsage string) (kid []byte, err error)
	Sign(keyUsage string, hash []byte) (signature []byte, err error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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