ProxyZKPVerifier<T>

Models & Types · AiDotNet.FederatedLearning.Verification

Implements Proxy-based Zero-Knowledge Proof verification for federated learning.

Inheritance: FederatedLearningComponentBase<T> → ProxyZKPVerifier<T>

For Beginners

Standard ZK proofs can be expensive for clients to generate. ProxyZKP uses a semi-trusted proxy (e.g., a TEE enclave or an auditor) that verifies client computations without seeing the raw data. The client sends commitments to the proxy, the proxy verifies them using lightweight checks, and issues a cryptographically-signed certificate to the server. This reduces the ZK proof overhead while maintaining verifiability.

How It Works

Protocol:

Reference: Proxy-based ZKP for Efficient Federated Verification (2024).

Constructors

Constructor Summary
ProxyZKPVerifier(double maxNorm, double maxElementMagnitude, byte[] proxyKey, int certificateValidityMinutes) Creates a new Proxy ZKP verifier.

Properties

Property Summary
double MaxElementMagnitude { get; } Gets the maximum allowed element magnitude.
double MaxNorm { get; } Gets the maximum allowed norm.

Methods

Method Summary
ProxyCertificate IssueCertificate(string commitment, double updateNorm) Issues a signed proxy certificate attesting that the update passed verification.
ProxyVerificationResult Verify(Dictionary<string, T[]> update, string commitment, byte[] nonce) Verifies a client update and issues a signed certificate if all checks pass.
bool VerifyCertificate(ProxyCertificate certificate) Verifies a proxy certificate’s signature and expiry.
byte[] GenerateNonce(int length) Generates a cryptographically secure random nonce.
string ComputeCommitment(Dictionary<string, T[]> update, byte[] nonce) Computes an HMAC-SHA256 commitment for a client update.