Table of Contents

Class AuditIntegrityVerificationResult

Namespace
AsiBackbone.Core.Integrity
Assembly
AsiBackbone.Core.dll

Represents the outcome of provider-neutral audit integrity verification.

public sealed class AuditIntegrityVerificationResult
Inheritance
AuditIntegrityVerificationResult
Inherited Members

Properties

Category

Gets the provider-neutral verification category.

public AuditIntegrityVerificationCategory Category { get; }

Property Value

AuditIntegrityVerificationCategory

ChainId

Gets the chain identifier associated with the result, when known.

public string? ChainId { get; }

Property Value

string

FailureCode

Gets the failure code when verification did not succeed.

public string? FailureCode { get; }

Property Value

string

FailureMessage

Gets the failure message when verification did not succeed.

public string? FailureMessage { get; }

Property Value

string

IsValid

Gets a value indicating whether the integrity chain verified successfully.

public bool IsValid { get; }

Property Value

bool

RecordId

Gets the record identifier associated with the result, when known.

public string? RecordId { get; }

Property Value

string

SafeMetadata

Gets safe-to-log verification metadata.

public IReadOnlyDictionary<string, string> SafeMetadata { get; }

Property Value

IReadOnlyDictionary<string, string>

Sequence

Gets the sequence associated with the result, when known.

public long? Sequence { get; }

Property Value

long?

Status

Gets a provider-neutral status string.

public string Status { get; }

Property Value

string

Methods

Creates a failed verification result.

public static AuditIntegrityVerificationResult Failed(AuditIntegrityVerificationCategory category, string failureCode, string? failureMessage = null, AuditIntegrityLink? link = null, IReadOnlyDictionary<string, string>? metadata = null)

Parameters

category AuditIntegrityVerificationCategory
failureCode string
failureMessage string
link AuditIntegrityLink
metadata IReadOnlyDictionary<string, string>

Returns

AuditIntegrityVerificationResult

Valid(string, long, string)

Creates a valid verification result.

public static AuditIntegrityVerificationResult Valid(string chainId, long linkCount, string tipHash)

Parameters

chainId string
linkCount long
tipHash string

Returns

AuditIntegrityVerificationResult