Versions in this module Expand all Collapse all v0 v0.1.1 Dec 9, 2025 Changes in this version type FileFetcher + DecompressBundles bool v0.1.0 Aug 14, 2025 Changes in this version + func CheckConsistency(ctx context.Context, f TileFetcherFunc, cp []log.Checkpoint) error + func FetchCheckpoint(ctx context.Context, f CheckpointFetcherFunc, v note.Verifier, origin string) (*log.Checkpoint, []byte, *note.Note, error) + func FetchLeafHashes(ctx context.Context, f TileFetcherFunc, first, N, logSize uint64) ([][]byte, error) + func FetchRangeNodes(ctx context.Context, s uint64, f TileFetcherFunc) ([][]byte, error) + func GetEntryBundle(ctx context.Context, f EntryBundleFetcherFunc, i, logSize uint64) (staticct.EntryBundle, error) + func PartialOrFullResource(ctx context.Context, p uint8, f func(context.Context, uint8) ([]byte, error)) ([]byte, error) + type CheckpointFetcherFunc func(ctx context.Context) ([]byte, error) + type ConsensusCheckpointFunc func(ctx context.Context, logSigV note.Verifier, origin string) (*log.Checkpoint, []byte, *note.Note, error) + func UnilateralConsensus(f CheckpointFetcherFunc) ConsensusCheckpointFunc + type EntryBundleFetcherFunc func(ctx context.Context, bundleIndex uint64, p uint8) ([]byte, error) + type ErrInconsistency struct + LargerRaw []byte + Proof [][]byte + SmallerRaw []byte + Wrapped error + func (e ErrInconsistency) Error() string + func (e ErrInconsistency) Unwrap() error + type FileFetcher struct + Root string + func (f FileFetcher) ReadCheckpoint(_ context.Context) ([]byte, error) + func (f FileFetcher) ReadEntryBundle(ctx context.Context, i uint64, p uint8) ([]byte, error) + func (f FileFetcher) ReadIssuer(ctx context.Context, hash []byte) ([]byte, error) + func (f FileFetcher) ReadTile(ctx context.Context, l, i uint64, p uint8) ([]byte, error) + type HTTPFetcher struct + func NewHTTPFetcher(rootURL *url.URL, c *http.Client) (*HTTPFetcher, error) + func (h *HTTPFetcher) EnableRetries(maxRetries uint) + func (h *HTTPFetcher) SetAuthorizationHeader(v string) + func (h *HTTPFetcher) SetUserAgent(ua string) + func (h HTTPFetcher) ReadCheckpoint(ctx context.Context) ([]byte, error) + func (h HTTPFetcher) ReadEntryBundle(ctx context.Context, i uint64, p uint8) ([]byte, error) + func (h HTTPFetcher) ReadIssuer(ctx context.Context, hash []byte) ([]byte, error) + func (h HTTPFetcher) ReadTile(ctx context.Context, l, i uint64, p uint8) ([]byte, error) + type LogStateTracker struct + CPFetcher CheckpointFetcherFunc + CheckpointNote *note.Note + ConsensusCheckpoint ConsensusCheckpointFunc + CpSigVerifier note.Verifier + LatestConsistent log.Checkpoint + LatestConsistentRaw []byte + Origin string + ProofBuilder *ProofBuilder + TileFetcher TileFetcherFunc + func NewLogStateTracker(ctx context.Context, cpF CheckpointFetcherFunc, tF TileFetcherFunc, ...) (LogStateTracker, error) + func (lst *LogStateTracker) Update(ctx context.Context) ([]byte, [][]byte, []byte, error) + type ProofBuilder struct + func NewProofBuilder(ctx context.Context, cp log.Checkpoint, f TileFetcherFunc) (*ProofBuilder, error) + func (pb *ProofBuilder) ConsistencyProof(ctx context.Context, smaller, larger uint64) ([][]byte, error) + func (pb *ProofBuilder) InclusionProof(ctx context.Context, index uint64) ([][]byte, error) + type TileFetcherFunc func(ctx context.Context, level, index uint64, p uint8) ([]byte, error)