Versions in this module Expand all Collapse all v0 v0.1.0 Aug 31, 2026 Changes in this version + const OriginPrefix + var ErrLogAdvancing = errors.New("the log advanced repeatedly during verification; rerun") + var ErrVerification = errors.New("verification failed") + func BuiltinFingerprint() (string, bool) + func BuiltinVerifierKey(orgUUID string) (string, bool) + func Fingerprint(der []byte) string + func FingerprintOfVerifierKey(vkey string) (string, bool) + func KeyHash(vkey string) (string, bool) + func Origin(orgUUID string) string + func ReadBaselineNote(raw []byte, v *checkpoint.Verifier, trusted bool) (checkpoint.Checkpoint, error) + func VerifierKeyFor(origin string, der []byte) string + type Baseline struct + Checkpoint checkpoint.Checkpoint + Label string + func BaselineFromPair(size uint64, hash string) (Baseline, error) + type CheckpointReport struct + Note string + RootHash []byte + Size uint64 + type DoneEvent struct + CreatedAt time.Time + Index *uint64 + LeafHash []byte + RecordedAt time.Time + type EventFailure struct + ID string + Index *uint64 + Reason string + type EventReport struct + Failed []EventFailure + NotLogged []string + Pending []string + SkippedOtherTypes int + Verified int + type FeedState struct + Done map[string]DoneEvent + HighWater time.Time + Pending map[string]PendingEvent + type Inconsistency struct + Newer string + Older string + Proof []string + type InconsistencyError struct + Err error + Evidence Inconsistency + func AsInconsistency(err error) (*InconsistencyError, bool) + func (e *InconsistencyError) Details() string + func (e *InconsistencyError) Error() string + func (e *InconsistencyError) Unwrap() []error + type PendingEvent struct + CreatedAt time.Time + FirstSeen time.Time + Index uint64 + LeafHash []byte + type Report struct + Checkpoint CheckpointReport + Events EventReport + Inconsistency *Inconsistency + Origin string + PreviousSize *uint64 + Truncated bool + func (r Report) OK() bool + type State struct + Checkpoint string + Feed FeedState + Origin string + VerifiedAt time.Time + Version int + func LoadState(path, origin string) (*State, error) + func (s *State) Save(path string) error + type Verifier struct + Baselines []Baseline + Checkpoints *checkpoint.Verifier + Client *compliance.Client + CoveragePoll time.Duration + CoverageWait time.Duration + Logf func(format string, args ...any) + MaxPages int + Now func() time.Time + Overlap time.Duration + PageSize int + PendingGrace time.Duration + func (v *Verifier) Run(ctx context.Context, st *State) (Report, error) + func (v *Verifier) VerifyCheckpoint(ctx context.Context, st *State) (Report, error) + func (v *Verifier) VerifyEvents(ctx context.Context, st *State, events []json.RawMessage) (Report, error)