hashedrekord

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const Kind = "hashedrekord"

https://github.com/sigstore/rekor/blob/f01f9cd2c55eaddba9be28624fea793a26ad28c4/pkg/types/README.md

Variables

This section is empty.

Functions

This section is empty.

Types

type Body

type Body struct {
	APIVersion string `json:"apiVersion"`
	Kind       string `json:"kind"`
	Spec       Spec   `json:"spec"`
}

https://github.com/sigstore/rekor/blob/f01f9cd2c55eaddba9be28624fea793a26ad28c4/pkg/types/hashedrekord/v0.0.1/hashedrekord_v0_0_1_schema.json

func (Body) Certs

func (b Body) Certs() ([]*x509.Certificate, error)

extracts all x509 certs from the hashedrekord tlog entry public key.

func (Body) Matches

func (b Body) Matches(blob []byte) bool

check if the rekord object matches a given blob (currently compares sha256 hash).

type Data

type Data struct {
	Hash Hash `json:"hash"`
}

type Hash

type Hash struct {
	Algorithm string `json:"algorithm"`
	Value     string `json:"value"`
}

type PublicKey

type PublicKey struct {
	Content string `json:"content"`
}

type Signature

type Signature struct {
	Content   string    `json:"content"`
	PublicKey PublicKey `json:"publicKey"`
}

type Spec

type Spec struct {
	Data      Data      `json:"data"`
	Signature Signature `json:"signature"`
}

Jump to

Keyboard shortcuts

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