コンテンツにスキップ

Function: verifyAuditChain()

このコンテンツはまだ日本語訳がありません。

verifyAuditChain(options): Promise<VerifyResult>

Defined in: server/src/audit/verify.ts:100

Recompute every ALH in the requested range and cross-check checkpoints. Two verification modes coexist:

  • Reconstructing tile: all leaves survive, so we recompute the RFC 6962 Merkle root from entry_hash values and check it.
  • Trusted tile: leaves have been GC’d. We accept the stored root_hash as an anchor and only require the previous ALH link. This is what makes long-term retention practical.

A partial-range verify with a GC boundary at from - 1 needs trustedPrevAlh — otherwise the first row would have nothing to link back to, and returning ok: true there would silently accept a truncated chain.

VerifyOptions

Promise<VerifyResult>