Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/security / / verifyAuditChain

Function: verifyAuditChain()

ts
function verifyAuditChain(db, bounds?): Promise<AuditChainVerifyResult>;

Defined in: packages/security/src/audit/verify-chain.ts:20

Walk the audit chain inside the supplied bounds and return the first divergent link (if any) plus the entry count traversed. The function never throws; callers branch on the discriminated ok field.

Parameters

ParameterType
dbAuditDb
bounds{ fromSeq?: number; toSeq?: number; }
bounds.fromSeq?number
bounds.toSeq?number

Returns

Promise&lt;AuditChainVerifyResult&gt;

Stable