Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/security / / AuditChainVerifyResult

Type Alias: AuditChainVerifyResult

ts
type AuditChainVerifyResult = 
  | {
  count: number;
  ok: true;
}
  | {
  actual: string;
  brokenAt: number;
  expected: string;
  ok: false;
};

Defined in: packages/security/src/audit/types.ts:142

Result of verifyAuditChain(...). Walks the chain from from to to and returns either { ok: true, count } or { ok: false, brokenAt, expected, actual }.

Stable