Table of Contents

Class Audit

Namespace
Pamoja.Audit
Assembly
Pamoja.Audit.dll

Checking a chain of audit records that has already arrived.

public static class Audit
Inheritance
Audit
Inherited Members

Methods

VerifyChain(ReadOnlySpan<byte>, IReadOnlyList<AuditEntry>)

Checks a whole chain that has already arrived.

public static void VerifyChain(ReadOnlySpan<byte> publicKey, IReadOnlyList<AuditEntry> entries)

Parameters

publicKey ReadOnlySpan<byte>

The 32-byte key the records were signed with.

entries IReadOnlyList<AuditEntry>

The records, in the order they were written.

Exceptions

PamojaException

The chain does not hold: a record whose signature fails, or one that does not follow the record before it. The message says which.