verifier

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package verifier is designed to verify the signatures produced by a witness.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WitnessVerifier

type WitnessVerifier struct {
	SigVerifier *ct.SignatureVerifier
}

WitnessVerifier consists of a CT signature verifier.

func NewWitnessVerifier

func NewWitnessVerifier(pk crypto.PublicKey) (*WitnessVerifier, error)

NewWitnessVerifier creates a witness signature verifier from a public key.

func (WitnessVerifier) VerifySignature

func (wv WitnessVerifier) VerifySignature(sth api.CosignedSTH) error

VerifySignature finds and verifies this witness' signature on a cosigned STH. This may mean that there are other witness signatures that remain unverified, so future implementations may want to take in multiple signature verifiers like in the Note package (https://pkg.go.dev/golang.org/x/mod/sumdb/note).

Jump to

Keyboard shortcuts

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