|
ProtoCore v0.0.2
Deterministic, zero-heap network stack for embedded targets
|
Hash-chained audit log - implementation. More...
#include "services/security/audit_log/audit_log.h"#include "shared_primitives/hex.h"#include "shared_primitives/strbuf.h"Go to the source code of this file.
Hash-chained audit log - implementation.
Fixed RAM ring of records. Each record's hash chains the previous record's hash; the oldest retained record chains a moving "anchor" (the hash of the last evicted record, genesis-zero before any eviction), so the retained window verifies as a complete chain. SHA-256 comes from pc_sha256 (HW-accelerated on ESP32); the timestamp comes from the pluggable pc_clock.
Definition in file audit_log.cpp.