pub fn canonical_bytes(record: &AuditRecord) -> Vec<u8> ⓘExpand description
The deterministic content encoding hashed into a record’s id. Encodes, in a fixed order and
with unambiguous framing, every content field except id:
branch_ref, actor_did, role, stated_purpose, action, unix, sealed.
The encoding is intentionally hand-rolled (not serde/CBOR) so the content-address is stable
and independent of any serialization crate’s version or config. Any change to any content field
changes these bytes and therefore the id.