@me2em/pact
    Preparing search index...

    Function verifyAct

    • Act verification — ASYNC, Tier 1+2+3 (Р9): full journal replay, then the normative Tier 3 flow (Р3):

      1. chains — out-of-band artifacts keyed by membership id (evHash of the membership event); the journal holds only the hash-commit (D34).
      2. Signer with vc: missing artifact ⇒ warning VOUCHER_UNRESOLVED; SHA-256(JCS(chain)) != vc.rh ⇒ MALFORMED; chain not verifiable against vc.rp ⇒ IDP_UNRESOLVABLE (fail-closed — a vc is a checkable promise of accountability).
      3. Every jti of a valid chain: revocations.isRevokedAt(jti, act.iat) — raw jti, inclusive on at; true ⇒ ok: false, REVOKED (SUB_ATTESTATION).
      4. Signer without vc ⇒ warning NO_VOUCHER (D6 — dial is off).
      5. No revocations (or without isRevokedAt) ⇒ tier3: 'unsupported', warning TIER3_UNSUPPORTED, ok: true.

      Compromise windows (D20): acts signed by a key later rotated with ca reject with REVOKED (ROTATE_KEY) when iat > ca; older acts pass with warning PRE_COMPROMISE_ACT.

      Parameters

      • events: Event[]

        The full journal (must replay clean and contain the act).

      • evHash: string

        evHash of the act to verify (ACT, REVERSE_ACT or AMEND).

      • Optionalrevocations: RevocationChecker

        Optional dated revocation checker — the Tier 3 gate (Р3.5): absence ⇒ tier3: 'unsupported' + TIER3_UNSUPPORTED, still ok: true.

      • Optionalchains: Map<string, VoucherChain>

        Out-of-band voucher-chain artifacts keyed by membership id (the journal holds only the D34 hash-commits).

      • Optionalclock: Clock

        Optional verification reference (additive; the same skew rule as verifyJournal — pin it to the journal's era for retrospective acts).

      Returns Promise<VerifyResult>

      The VerifyResult with tier3 availability, the act's state fields and any non-fatal warnings (Р10).

      const result = await verifyAct(events, actHash, revocations, chains);
      if (!result.ok) throw result.error;
      for (const w of result.warnings) console.warn(w.code);