@freedomofpress/webcat
    Preparing search index...

    Interface EnrollmentUpdaterConfig

    Options for an EnrollmentUpdater.

    interface EnrollmentUpdaterConfig {
        chainId: string;
        checkInterval?: number;
        database: Database;
        endpoint: string;
        fetchTimeout?: number;
        localDataPath: string;
        updateInterval?: number;
        validatorSet: ValidatorJson;
    }
    Index
    chainId: string

    Expected CometBFT chain ID; blocks from any other chain are rejected.

    checkInterval?: number

    The time in milliseconds between enrollment update checks. Determines how often the extension is activated to check whether an update is due. An update is only downloaded if, at check time, updateInterval has elapsed since the last update.

    database: Database

    The database to persist enrollments in.

    endpoint: string

    The update endpoint that serves verifiable enrollments as list.json and block.json.

    fetchTimeout?: number

    The timeout, in milliseconds, of update download attempts.

    localDataPath: string

    The path to bundled list.json and block.json files.

    updateInterval?: number

    The minimum time in milliseconds between updates. Update checks are run periodically at an interval determined by this value. An update is only downloaded when a check runs and updateInterval has elapsed since the last update.

    validatorSet: ValidatorJson

    The set of CometBFT validators to verify enrollments against.