Table of Contents

Struct AuditChainLink

Namespace
Excalibur.AuditLogging
Assembly
Excalibur.AuditLogging.Abstractions.dll

One link in an audit hash-chain: a record's canonical content, its stored integrity tag, and its stored claim about which record preceded it.

public readonly record struct AuditChainLink : IEquatable<AuditChainLink>
Implements
Inherited Members

Constructors

One link in an audit hash-chain: a record's canonical content, its stored integrity tag, and its stored claim about which record preceded it.

public AuditChainLink(ReadOnlyMemory<byte> CanonicalContent, string Tag, string? StoredPriorTag)

Parameters

CanonicalContent ReadOnlyMemory<byte>

The deterministic canonical bytes of the record's integrity-covered fields.

Tag string

The record's stored integrity tag (v1:{keyId}:{mac}).

StoredPriorTag string

The prior tag as stored on the record itself, or null when the record claims to be its partition's genesis. This is the record's own claim, not the predecessor actually present; the two are compared, and a disagreement is a violation.

Properties

The deterministic canonical bytes of the record's integrity-covered fields.

public ReadOnlyMemory<byte> CanonicalContent { get; init; }

Property Value

ReadOnlyMemory<byte>

The prior tag as stored on the record itself, or null when the record claims to be its partition's genesis. This is the record's own claim, not the predecessor actually present; the two are compared, and a disagreement is a violation.

public string? StoredPriorTag { get; init; }

Property Value

string

The record's stored integrity tag (v1:{keyId}:{mac}).

public string Tag { get; init; }

Property Value

string