Table of Contents

Class AuditEventCanonicalizer

Namespace
Excalibur.AuditLogging
Assembly
Excalibur.AuditLogging.dll

Produces the deterministic canonical byte representation of an AuditEvent's integrity-covered fields, for input to IAuditIntegrityStrategy.

public static class AuditEventCanonicalizer
Inheritance
AuditEventCanonicalizer
Inherited Members

Remarks

This is the AuditLogging-sink record canonicalizer (it knows AuditEvent); it delegates the unambiguous, length-prefixed, version-stamped encoding to the shared AuditRecordCanonicalizer primitive. TenantId is included, so a link's keyed MAC binds the tenant — cross-tenant chain-splicing fails verification without a separate tenant-seeded genesis (a genesis link carries a null prior tag).

Public so every IAuditStore backend (across the AuditLogging provider packages) canonicalizes AuditEvent identically — a shared contract, replacing the former public AuditHasher.

Methods

Canonicalize(AuditEvent)

Canonicalizes an audit event's integrity-covered fields to deterministic bytes.

public static byte[] Canonicalize(AuditEvent auditEvent)

Parameters

auditEvent AuditEvent

The audit event to canonicalize.

Returns

byte[]

The canonical byte representation (version-stamped, length-prefixed).

Exceptions

ArgumentNullException

Thrown when auditEvent is null.