19 lines
511 B
C#
19 lines
511 B
C#
namespace StellaOps.AuditPack.Services;
|
|
|
|
/// <summary>
|
|
/// Result of verifying an audit bundle envelope.
|
|
/// </summary>
|
|
public sealed record AuditBundleVerificationResult
|
|
{
|
|
public bool Success { get; init; }
|
|
public string? PayloadDigest { get; init; }
|
|
public VerifiedSignatureInfo[]? VerifiedSignatures { get; init; }
|
|
public string? Error { get; init; }
|
|
|
|
public static AuditBundleVerificationResult Failed(string error) => new()
|
|
{
|
|
Success = false,
|
|
Error = error
|
|
};
|
|
}
|