Class AuditEntry
One signed record, chained onto the one before it.
public sealed class AuditEntry : IDisposable
- Inheritance
-
AuditEntry
- Implements
- Inherited Members
Properties
Digest
Gets the hash of this record, which the next one chains onto.
public byte[] Digest { get; }
Property Value
- byte[]
Exceptions
- PamojaException
The native call failed.
Index
Gets the position of this record in its chain.
public ulong Index { get; }
Property Value
Payload
Gets the record this entry carries.
public byte[] Payload { get; }
Property Value
- byte[]
Exceptions
- PamojaException
The native call failed.
Previous
Gets the hash of the record before this one, zeroes for the first.
public byte[] Previous { get; }
Property Value
- byte[]
Exceptions
- PamojaException
The native call failed.
Signature
Gets the signature over this record.
public byte[] Signature { get; }
Property Value
- byte[]
Exceptions
- PamojaException
The native call failed.
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
FromBytes(ReadOnlySpan<byte>)
Reads a record back from the bytes it was written as.
public static AuditEntry FromBytes(ReadOnlySpan<byte> bytes)
Parameters
bytesReadOnlySpan<byte>The encoded entry.
Returns
- AuditEntry
The entry.
Exceptions
- PamojaException
The bytes are not a well-formed entry.
ToBytes()
Encodes this record for storage or transmission.
public byte[] ToBytes()
Returns
- byte[]
The encoded entry.
Exceptions
- PamojaException
The native call failed.