verifyAuditIntegrity

suspend fun verifyAuditIntegrity(fromTs: Long? = null, toTs: Long? = null): ChainVerificationResult

Verify the integrity of the persistent audit trail.

Checks that the hash chain is unbroken and all event hashes are valid. For high-security deployments with signed entries, also verifies signatures.

Return

Verification result indicating chain validity or location of break.

Threading: Main-safe. Database IO dispatched internally.

Parameters

fromTs

Optional start timestamp (inclusive).

toTs

Optional end timestamp (inclusive).