Struct AuditChainVerificationResult
- Namespace
- Excalibur.AuditLogging
- Assembly
- Excalibur.AuditLogging.Abstractions.dll
The outcome of verifying an audit hash-chain.
public readonly record struct AuditChainVerificationResult : IEquatable<AuditChainVerificationResult>
- Implements
- Inherited Members
Constructors
AuditChainVerificationResult(bool, int, AuditChainBreak)
The outcome of verifying an audit hash-chain.
public AuditChainVerificationResult(bool IsValid, int FirstBrokenIndex, AuditChainBreak Break)
Parameters
IsValidbooltrue when every link verifies and chains correctly.
FirstBrokenIndexintThe zero-based index of the first link that failed verification, or
-1when the chain is valid. When Break is SuccessorLinkBroken the break is at the successor, one past the last in-range link, so this is the number of links examined.BreakAuditChainBreakWhat kind of break was found, or None.
Properties
Break
What kind of break was found, or None.
public AuditChainBreak Break { get; init; }
Property Value
FirstBrokenIndex
The zero-based index of the first link that failed verification, or -1 when the chain is valid. When
Break is SuccessorLinkBroken the break is at the successor, one
past the last in-range link, so this is the number of links examined.
public int FirstBrokenIndex { get; init; }
Property Value
IsValid
true when every link verifies and chains correctly.
public bool IsValid { get; init; }