drupflare/worker - v1.0.4
    Preparing search index...

    Function judgeProof

    • Judges a stored record against the host the request arrived on and the worker's own clock.

      exp comes from the writer's clock, so it is bounded on both sides: past is spent, and more than RECOVER_MAX_LIFE_MS ahead is malformed, since a record that claims a long life would outlast the KV TTL that is meant to be the real limit.

      Parameters

      • record: unknown
      • host: string
      • nowMs: number

      Returns { exp: number; verdict: ProofVerdict }