Skip to content

verifyChain

function verifyChain(events, options?): Promise<VerifyReport>;

Defined in: src/integrity.ts:308

Verify a tenant’s events (and optionally checkpoints). Pure: it trusts nothing but the data passed in and the keys.

Parameter Type
events AuditEvent[]
options? VerifyChainOptions

Promise<VerifyReport>

import { verifyChain, keysFromJwks } from "@xtandard/audit/verify";
const report = await verifyChain(events, {
checkpoints,
keys: await keysFromJwks(jwks),
});
if (!report.ok) console.error(report.issues);