Introduction
Zero-Knowledge Succinct Non-interactive Arguments of Knowledge (zk-SNARKs) are essential for privacy-preserving technologies, enabling a prover to demonstrate the validity of a statement without revealing secret data (the "witness"). However, a significant "proving gap" exists: while verification is nearly instantaneous, proof generation is computationally intensive—often orders of magnitude slower than the original computation.
To address this, researchers have explored outsourcing proof generation. Existing solutions typically rely on multi-server delegation (requiring trust in non-collusion) or Fully Homomorphic Encryption (FHE), which remains too slow for practical use. This paper introduces a novel approach for outsourcing zk-SNARK proof generation to a single, untrusted server with high efficiency and zero trust requirements.
Comparison with Existing Solutions
The proposed framework achieves a unique combination of features compared to prior work. While multi-server models like ZKSaaS or co-SNARKs require at least two (and sometimes eight) servers, this work operates with a single server while maintaining malicious security and unlinkability—ensuring the server learns nothing about the witness, the statement, or the final proof.
Methodology: Encrypted Multi-Scalar Multiplication (EMSM)
The primary bottleneck in group-based zk-SNARKs (e.g., Groth16, Plonk, Nova) is Multi-Scalar Multiplication (MSM). The authors propose Encrypted Multi-Scalar Multiplication (EMSM) to delegate this task efficiently.
Core Innovation
The client masks their private input vector $z$ with a pseudorandom vector $r$, sending $v = z + r$ to the server. To ensure efficiency, $r$ is generated as $Ge$, where $G$ is a generator matrix from a Repeat-Accumulate-Accumulate (RAA) code and $e$ is a sparse "noise" vector based on the "Learning Parity with Noise" (LPN) assumption.
Because MSMs are linear, the server computes the MSM on the masked vector $v$, and the client "unmasks" the result. Due to the sparsity of $e$, the client only performs a small, constant number of group operations to finalize the proof, making their workload independent of the total circuit complexity.
Malicious Security
To protect against a malicious server providing incorrect results, the protocol employs a challenge-response mechanism. The client requires the server to compute the MSM twice: once on the original masked data and once on a randomly scaled version. Discrepancies between these results allow the client to detect cheating with high probability.
Evaluation and Results
The system was implemented in Rust using the arkworks ecosystem and evaluated on AWS instances (r6i.large for the client, c7i.24xlarge for the server) using synthetic R1CS constraints ranging from $2^{15}$ to $2^{23}$.
Key performance improvements include:
- Nova Protocol: 20× reduction in client active runtime and 9× reduction in end-to-end latency.
- Groth16: 10× reduction in client work and 6× reduction in latency.
- Cost-Effectiveness: The single-server approach proved more economical than multi-server MPC approaches like ZKSaaS for circuits with approximately 500,000 constraints.
Insights and Future Directions
The success of this approach stems from leveraging the linearity of MSMs and the power of sparsity in LPN-based noise. Unlike previous works, this protocol ensures unlinkability, meaning the server cannot link a proof request to a specific statement or identity.
Future work includes addressing communication overhead, as the ciphertext size remains proportional to the computation size ($O(n)$). Additionally, while group operations are outsourced, the client still handles field operations like FFTs. Extending these techniques to hash-based SNARKs (like STARKs) and exploring alternative error-correcting codes remain promising areas for further optimization.
Summary updated