signing

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: Apache-2.0 Imports: 2 Imported by: ? modules, 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attestation

type Attestation interface {
	// Cert returns the certificate used to sign the attestation.
	Cert() []byte

	// Bytes returns the signed attestation as an encoded DSSE JSON envelope.
	Bytes() []byte
}

Attestation is a signed attestation.

type LogEntry

type LogEntry interface {
	// ID returns the ID of the transparency log.
	ID() string

	// LogIndex return the index of the transparency log entry.
	LogIndex() int64

	// UUID return the uuid of the transparency log entry.
	UUID() string
}

LogEntry represents a transparency log entry.

type Signer

type Signer interface {
	// Sign signs the given provenance statement and returns the signed
	// attestation.
	Sign(context.Context, *intoto.Statement) (Attestation, error)
}

Signer is used to sign provenance statements.

type TransparencyLog

type TransparencyLog interface {
	// Upload uploads the signed attestation to the transparency log.
	Upload(context.Context, Attestation) (LogEntry, error)
}

TransparencyLog allows interaction with a transparency log.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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