signing

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 Imports: 2 Imported by: 1

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