webtessera/formats/log

Checkpoints.

It ports the Go package transparency-dev/formats/log. Its source is src/vendor/formats/log/index.ts.

Functions

id
id returns the identifier to use for a log given the Origin.
parseCheckpoint
parseCheckpoint takes a raw checkpoint as bytes and returns a parsed checkpoint and any otherData in the body, providing that: * a valid log signature is found; and * the checkpoint unmarshals correctly; and * the log origin is that expected.

Classes

Checkpoint
Checkpoint represents a minimal log checkpoint (STH).
ParseCheckpointError
A ParseCheckpointError is the error parseCheckpoint throws.

Interfaces

ParsedCheckpoint
A ParsedCheckpoint is what parseCheckpoint returns on success.