tiles

package
v0.0.0-...-c929e90 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0, BSD-3-Clause, MIT Imports: 10 Imported by: 0

Documentation

Overview

Package tiles contains methods to work with tlog based verifiable logs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImageInfosIndex

func ImageInfosIndex(logBaseURL string) (map[string]int64, error)

ImageInfosIndex returns a map from payload to its index in the transparency log according to the image_info.txt.

func PayloadHash

func PayloadHash(p []byte) (tlog.Hash, error)

PayloadHash returns the hash of the payload.

Types

type HashReader

type HashReader struct {
	URL string
}

HashReader implements tlog.HashReader, reading from tlog-based log located at URL.

func (HashReader) ReadHashes

func (h HashReader) ReadHashes(indices []int64) ([]tlog.Hash, error)

ReadHashes implements tlog.HashReader's ReadHashes. See: https://pkg.go.dev/golang.org/x/mod/sumdb/tlog#HashReader.

Jump to

Keyboard shortcuts

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