Fully Homomorphic Encryption with Efficient Public Verification

Mi-Ying (Miryam) Huang, Baiyu Li, Xinyu Mao, Jiapeng ZhangIACR ePrint 2024

Abstract

Fully Homomorphic Encryption (FHE) allows for computation on encrypted data, but it lacks inherent mechanisms to ensure that the computation was performed correctly. Traditional approaches to Verifiable FHE (vFHE) suffer from a significant "algebraic mismatch" between the polynomial rings used in FHE and the finite fields required by standard succinct non-interactive arguments of knowledge (SNARKs). This paper introduces a novel vFHE scheme that bridges this gap using Ring R1CS, a generalization of the Rank-1 Constraint System that operates directly over rings. By utilizing a lattice-based SNARG and native ring arithmetic, the proposed construction achieves succinct, publicly verifiable proofs of correctness for FHE computations with significantly reduced overhead compared to field-based methods.

Introduction

Fully Homomorphic Encryption (FHE) is often described as the "holy grail" of privacy-preserving computation, enabling a server to process sensitive data without ever decrypting it. However, a critical weakness of FHE is its malleability: a malicious or faulty server could return a ciphertext that decrypts to an incorrect result, and the client would have no way to detect the error.

To address this, researchers have sought to develop Verifiable FHE (vFHE), where the server provides a succinct proof of correctness alongside the encrypted result. Historically, the primary obstacle has been performance. Most efficient proof systems are built on finite fields, whereas FHE is built on polynomial rings. Proving FHE operations—such as the complex "bootstrapping" process—within a field-based SNARK is computationally expensive, often taking orders of magnitude longer than the computation itself. This paper presents a "native" approach to vFHE that aligns the proof system with the underlying algebraic structure of the encryption scheme.

The Challenge: The Algebraic Mismatch

The inefficiency in current vFHE systems stems from the need to emulate ring operations (used in FHE) within field-based constraints (used in SNARKs). This emulation acts as a bottleneck; for instance, previous attempts to prove a single bootstrapping operation could take upwards of 20 minutes. The authors identify that the key to practical vFHE is eliminating this mismatch by allowing the proof system to "speak the same language" as the FHE scheme.

Technical Approach: Ring R1CS

The core innovation of this work is the introduction of Ring R1CS. While standard R1CS is the de facto language for representing constraints in SNARKs over finite fields, the authors generalize this to work directly over the ring $R_Q = \mathbb{Z}_Q[X]/(X^N + 1)$. This allows FHE operations to be expressed as native ring arithmetic rather than being broken down into thousands of field operations.

Handling Non-Arithmetic Operations

FHE evaluation involves more than just simple addition and multiplication; it requires "non-linear" or "non-arithmetic" operations such as bit decomposition, rounding (modulus switching), and "blind rotations." The authors developed specific techniques to decompose these complex operations into sets of simple ring constraints that fit within the Ring R1CS framework. This ensures that even the most complex parts of the FHE pipeline, like the GINX accumulator used in the FHEW scheme, can be verified efficiently.

Lattice-Based SNARG

To convert these constraints into a succinct proof, the authors adapted the sum-check protocol for rings. They paired this with a state-of-the-art lattice-based polynomial commitment scheme (Cini et al., 2024). The resulting system is a Lattice-Based Succinct Non-interactive Argument (SNARG) that is inherently resistant to quantum attacks and supports public verification. Unlike some prior verifiable schemes that required the client’s secret key to check the proof, this system allows any third party with the public evaluation key to verify the server's work.

Key Insights and Security

  • Constraint Efficiency: The number of constraints required to prove a computation in this system is roughly proportional to the number of ring operations in the actual FHE evaluation. This represents a massive improvement over field-based emulations.
  • IND-SA Security: The scheme achieves Indistinguishability under Semi-Active Attack (IND-SA). This modern security standard ensures that client data remains private even when the computation is subject to verification by potentially malicious actors.
  • Succinctness and Speed: The proof size is polylogarithmic relative to the circuit size ($O(\log^2 |C| \cdot \text{poly}(\lambda))$), and verification time is logarithmic ($O(\log |C| \cdot \text{poly}(\lambda))$), making it significantly faster than re-running the computation.

Conclusion and Future Work

This paper provides a theoretical blueprint for making verifiable encrypted computation practical. By moving away from field-based emulations and embracing native ring constraints, the authors have significantly reduced the overhead of vFHE.

While the current construction demonstrates quadratic prover complexity ($O(|C|^2)$) due to the handling of polynomial commitments, the authors suggest that utilizing the sparsity of R1CS matrices (similar to the "Spartan" SNARK approach) could lead to linear-time proving in future iterations. Additionally, while the paper focuses on the mathematical framework, the next logical step is a full-scale software implementation to measure real-world performance gains against existing field-based libraries.

Summary updated

BibTeX
@article{huang2024fully,
  author = {Mi-Ying (Miryam) Huang and Baiyu Li and Xinyu Mao and Jiapeng Zhang},
  title = {{Fully Homomorphic Encryption with Efficient Public Verification}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2024},
}
Figure