webtessera/fsck
Whole-log verification.
It ports the Go package tessera/fsck.
Its source is src/fsck/index.ts.
Functions
defaultMerkleLeafHasher- defaultMerkleLeafHasher parses a C2SP tlog-tile bundle and returns the Merkle leaf hashes of each entry it contains.
newFsck- newFsck creates a new Fsck instance configured for a particular log.
stateString- stateString returns a string representation of the state.
Classes
Fsck- Fsck knows how to check the integrity of tlog-tile logs.
Range- Range describes the common state of a range of bundles/tiles.
Status- Status represents the current status of an ongoing fsck check.
Interfaces
Fetcher- Fetcher describes a struct which knows how to retrieve tlog-tiles artifacts from a log.
Opts- Opts is what
newFscktakes to configure aFsckinstance.
Types
State- No doc comment.
Constants and variables
Calculating- Calculating represents a resource being used to calculate hashes.
Fetched- Fetched represents a resource which has been fetched, but not yet processed.
FetchError- FetchError is the state of a failed fetch.
Fetching- Fetching is the state of a resource being retrieved from the target log.
Invalid- Invalid represents a resource which was determined to be incorrect or invalid somehow.
OK- OK represents a resource which was successfully verified.
Unchecked- Unchecked represents the state of resources which hasn't yet been checked.