Audit Event Entity
data class AuditEventEntity(val id: String, val ts: Long, val name: String, val fieldsJson: String, val prevHash: String, val hash: String, val signature: String? = null, val deviceAttestationBlob: ByteArray? = null, val chainGeneration: Int = 1, val userId: String? = null, val seq: Long = 0, val formatVersion: Int = 1)
Room entity for persistent audit events.
Each event is part of a hash chain, where hash includes the prevHash to create a tamper-evident log structure.
Constructors
Properties
Link copied to clipboard
Chain generation number (increments on restart if file-based).
Link copied to clipboard
Optional attestation certificate chain.
Link copied to clipboard
JSON-serialized map of event fields.
Link copied to clipboard
Hash format version used to compute hash.