ProxyVerificationResult

Models & Types · AiDotNet.FederatedLearning.Verification

Result of a proxy ZKP verification.

Constructors

Constructor Summary
ProxyVerificationResult(bool isValid, string reason, string commitmentHash, double? updateNorm, ProxyCertificate certificate) Creates a new verification result.

Properties

Property Summary
ProxyCertificate Certificate { get; } Signed proxy certificate, available only if verification passed.
bool IsValid { get; } Whether the verification passed.
double? UpdateNorm { get; } The L2 norm of the update, if computed.
string CommitmentHash { get; } The verified commitment hash, if available.
string Reason { get; } Human-readable reason for the result.

Methods

Method Summary
ProxyVerificationResult Fail(string reason) Creates a failed verification result.
ProxyVerificationResult Pass(string commitmentHash, double updateNorm, ProxyCertificate certificate) Creates a successful verification result with certificate.