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
AuditChainLink(ReadOnlyMemory<byte>, string, string?)
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
CanonicalContentReadOnlyMemory<byte>The deterministic canonical bytes of the record's integrity-covered fields.
TagstringThe record's stored integrity tag (
v1:{keyId}:{mac}).StoredPriorTagstringThe 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
CanonicalContent
The deterministic canonical bytes of the record's integrity-covered fields.
public ReadOnlyMemory<byte> CanonicalContent { get; init; }
Property Value
StoredPriorTag
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
Tag
The record's stored integrity tag (v1:{keyId}:{mac}).
public string Tag { get; init; }