ChainVerificationResult

Result of audit chain integrity verification.

The hash chain links each audit event to its predecessor, making tampering detectable (though not impossible).

Inheritors

Types

Link copied to clipboard
data class Broken(val brokenAtId: String, val brokenAtTs: Long, val expectedPrevHash: String, val actualPrevHash: String) : ChainVerificationResult

The audit chain has a break.

Link copied to clipboard
data class EmptyRange(val fromTs: Long, val toTs: Long) : ChainVerificationResult

The specified range contains no events.

Link copied to clipboard
data class HashMismatch(val eventId: String, val eventTs: Long) : ChainVerificationResult

An event's computed hash doesn't match its stored hash.

Link copied to clipboard
data class SignatureInvalid(val eventId: String, val eventTs: Long, val reason: String) : ChainVerificationResult

Signature verification failed for a signed event.

Link copied to clipboard
data class Valid(val eventCount: Int, val fromTs: Long, val toTs: Long) : ChainVerificationResult

The audit chain is valid.