package
0.0.0-20241025223506-8f98e58bd830
Repository: https://github.com/transparency-dev/serverless-log.git
Documentation: pkg.go.dev

# Packages

Package witness provides client support for using witnesses.

# Functions

CheckConsistency is a wapper function which simplifies verifying consistency between two or more checkpoints.
FetchCheckpoint retrieves and opens a checkpoint from the log.
FetchLeafHashes fetches N consecutive leaf hashes starting with the leaf at index first.
FetchRangeNodes returns the set of nodes representing the compact range covering a log of size s.
GetLeaf fetches the raw contents committed to at a given leaf index.
LookupIndex fetches the leafhash->seq mapping file from the log, and returns its parsed contents.
NewLogStateTracker creates a newly initialised tracker.
NewProofBuilder creates a new ProofBuilder object for a given tree size.
UnilateralConsensus blindly trusts the source log, returning the checkpoint it provided.

# Structs

ErrInconsistency should be returned when there has been an error proving consistency between log states.
LogStateTracker represents a client-side view of a target log's state.
ProofBuilder knows how to build inclusion and consistency proofs from tiles.

# Type aliases

ConsensusCheckpointFunc is a function which returns the largest checkpoint known which is signed by logSigV and satisfies some consensus algorithm.
Fetcher is the signature of a function which can retrieve arbitrary files from a log's data storage, via whatever appropriate mechanism.
GetTileFunc is the signature of a function which knows how to fetch a specific tile.