FlowGuard API - v1.2.0-tp.1
    Preparing search index...

    Function computeCanonicalEventDigest

    • Compute the canonical event digest for TSA anchoring.

      Strip timestampEvidence, chainHash, canonicalEventDigest, and prevHash from the event, then SHA-256 the canonical JSON (sorted keys, no whitespace).

      Parameters

      • event: Record<string, unknown>

        Full chained audit event (including timestampEvidence if attached).

      Returns string

      SHA-256 hex digest.