token

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: BSD-2-Clause Imports: 5 Imported by: 1

Documentation

Overview

package token validates a sigsum submit-token.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DnsVerifier

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

DnsResolver implements the Verifier interface by querying DNS.

func (*DnsVerifier) Verify

func (dv *DnsVerifier) Verify(ctx context.Context, name, signatureHex string) error

type Verifier

type Verifier interface {
	Verify(ctx context.Context, name, signature string) error
}

Verifier can verify that a domain name is aware of a public key. Name and signature corresponds to the value of the submit-token: header, so signature is still hex-encoded.

func NewDnsVerifier

func NewDnsVerifier(logKey *crypto.PublicKey) Verifier

Jump to

Keyboard shortcuts

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