AuditLog class

Tamper-evident telemetry log at <dataDir>/telemetry-audit.log: one <ts>|<prev_hash>|<payload_b64>|<this_hash> line per payload, each hash covering the line before it, like git log.

Constructors

AuditLog()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

append(String dataDir, String payloadJson) → AuditEntry
Records payloadJson, the exact bytes sent or about to be sent; an exclusive file lock keeps concurrent servers from forking the chain or losing lines. Throws on filesystem failure.
readAll(String dataDir) → List<AuditEntry?>
Every entry, with null where a line is malformed so verify can point at it.
verify(String dataDir) → AuditVerifyResult
Walks the chain and reports the first line whose hash no longer matches or whose link points nowhere; a link to an earlier line other than the last is a fork from concurrent writers before appends were locked, counted in AuditVerifyResult.forks.

Constants

fileName → const String