verify

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package verify defines how an offer's signature is checked. Implementations live in subpackages so a program links only the one it uses: ed25519 here in core, Sigstore in its own module.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Identity

type Identity struct {
	Kind    string // "ed25519", "sigstore"
	Subject string // key fingerprint, or certificate SAN
	Issuer  string // OIDC issuer for keyless signatures
}

Identity names who signed a payload, for logs and reports. It is never an input to a trust decision; the Verifier has already made that.

type Rotatable

type Rotatable interface {
	Verifier
	// Rotate returns a Verifier trusting root instead. root is the Kind's own
	// format (see each implementation).
	Rotate(root []byte) (Verifier, error)
}

Rotatable is a Verifier whose trust can be replaced by new trust material carried in an offer. The client only rotates with material from an offer that already verified under the current root, so a key compromise cannot be bootstrapped by an unsigned rotation.

type Verifier

type Verifier interface {
	Verify(ctx context.Context, payload, sig []byte) (Identity, error)
	// Kind names the signature format, so the server can say which it serves
	// and a client can reject a mismatch before trying to parse it.
	Kind() string
}

Verifier checks sig over exactly these payload bytes. It must fail closed: any error means the payload is not trusted, and there is no "warn" result.

Directories

Path Synopsis
Package ed25519 verifies offers signed with a pinned ed25519 key.
Package ed25519 verifies offers signed with a pinned ed25519 key.
sigstore module

Jump to

Keyboard shortcuts

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