Function: verifyAuditChain()
Function: verifyAuditChain()
Section titled “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_hashvalues and check it. - Trusted tile: leaves have been GC’d. We accept the stored
root_hashas 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.
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”Promise<VerifyResult>