Table of Contents

Class AuditIntegrityVerifier

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

Verifies provider-neutral append-only audit integrity chains.

public static class AuditIntegrityVerifier
Inheritance
AuditIntegrityVerifier
Inherited Members

Methods

Verifies that the supplied links form one continuous append-only chain in the supplied order.

public static AuditIntegrityVerificationResult Verify(IEnumerable<AuditIntegrityLink> links, string? expectedChainId = null, bool requireGenesis = true, string? expectedPreviousLinkHash = null, string? expectedTipLinkHash = null, long? expectedTipSequence = null)

Parameters

links IEnumerable<AuditIntegrityLink>

The links to verify, in chain order.

expectedChainId string

The chain identifier every link must carry. Defaults to the first link's chain identifier.

requireGenesis bool

When true, the first link must be the genesis link at sequence 1.

expectedPreviousLinkHash string

The link hash the first supplied link must point back to. Required when requireGenesis is false and the first supplied link is not the genesis link, because a partial chain is anchored only by the hash of the link preceding it.

expectedTipLinkHash string

When supplied, the final link's hash must equal this value, which detects a truncated chain.

expectedTipSequence long?

When supplied, the final link's sequence must equal this value, which detects a truncated chain.

Returns

AuditIntegrityVerificationResult

Link metadata is not part of the link hash, so metadata is not authenticated by chain verification and must not be relied on as tamper-evident.