Fully Homomorphic Encryption (FHE)
Fully homomorphic encryption allows computation on encrypted data without decrypting it, enabling private smart contracts and confidential DeFi.
Key Takeaways
- Fully homomorphic encryption (FHE) allows arbitrary computation on encrypted data without ever decrypting it: the server performing the computation never sees the plaintext, yet produces a correct encrypted result that only the data owner can decrypt.
- FHE supports both addition and multiplication on ciphertexts, which is what distinguishes it from partial homomorphic encryption schemes that support only one operation. Because any computation can be built from additions and multiplications, FHE enables general-purpose encrypted computation.
- Blockchain applications include confidential smart contracts, private voting, encrypted DeFi order books, and sealed-bid auctions: use cases where on-chain transparency conflicts with the need for privacy.
What Is Fully Homomorphic Encryption?
Fully homomorphic encryption (FHE) is a form of encryption that lets a third party perform computations on ciphertexts and produce an encrypted result that, when decrypted, matches the result of performing the same operations on the original plaintext. The party doing the computation never sees the unencrypted data at any point.
The concept was first theorized in 1978 by Rivest, Adleman, and Dertouzos, but a practical construction did not exist until Craig Gentry published his PhD thesis in 2009. Gentry introduced the technique of bootstrapping: a method that periodically refreshes accumulated noise in ciphertexts so that computation can continue indefinitely without corrupting the data. This breakthrough transformed FHE from a theoretical curiosity into a viable (if still expensive) cryptographic tool.
The word "fully" is key. Earlier homomorphic encryption schemes supported only a single operation type. RSA, for example, is multiplicatively homomorphic: multiplying two RSA ciphertexts produces the encryption of the product of the plaintexts. Paillier encryption is additively homomorphic. These partial schemes are useful but limited. FHE supports both addition and multiplication on ciphertexts an unlimited number of times, which means it can evaluate any computable function.
How It Works
FHE schemes are built on hard mathematical problems from lattice-based cryptography, primarily the Learning With Errors (LWE) and Ring Learning With Errors (RLWE) problems. These are believed to be resistant to both classical and quantum computers, making FHE a form of post-quantum cryptography.
An FHE scheme consists of four algorithms:
- Key generation: produce a public key (for encryption), a secret key (for decryption), and an evaluation key (for computing on ciphertexts)
- Encryption: convert a plaintext message into a ciphertext using the public key
- Evaluation: perform additions and multiplications on ciphertexts using the evaluation key, without the secret key
- Decryption: recover the plaintext result from the evaluated ciphertext using the secret key
The Noise Problem and Bootstrapping
Every FHE ciphertext contains a small amount of random noise that masks the plaintext. Each homomorphic operation (especially multiplication) increases this noise. If noise grows too large, decryption fails and the result is lost.
Gentry's key insight was bootstrapping: homomorphically evaluating the decryption circuit itself. The scheme encrypts the ciphertext under a fresh key, then runs the decryption function as a homomorphic operation. This "refreshes" the ciphertext by resetting the noise level, allowing further computation. The cost is high: bootstrapping is the most computationally expensive operation in FHE, often consuming the majority of total runtime.
Major FHE Schemes
Several practical FHE schemes exist today, each optimized for different workloads:
- BGV and BFV: designed for exact integer arithmetic with modular operations and SIMD batching, commonly used in financial and cryptographic protocols
- CKKS: supports approximate arithmetic on real and complex numbers, making it suitable for machine learning inference and data analytics where small rounding errors are acceptable
- TFHE: operates on individual bits and Boolean gates with fast bootstrapping, best suited for low-latency evaluations of arbitrary circuits
There is no universal FHE scheme that is efficient for all use cases. The choice depends on the data type (integers vs. floating-point), the depth of the circuit being evaluated, and latency requirements.
Pseudocode Example
The following pseudocode illustrates a basic FHE workflow for adding two encrypted values:
// Key generation
(public_key, secret_key, eval_key) = FHE.keygen(security_level=128)
// Client encrypts private inputs
ct_a = FHE.encrypt(public_key, plaintext_a) // e.g., 42
ct_b = FHE.encrypt(public_key, plaintext_b) // e.g., 58
// Server computes on ciphertexts (never sees plaintext)
ct_sum = FHE.add(eval_key, ct_a, ct_b)
ct_product = FHE.multiply(eval_key, ct_a, ct_b)
// If noise budget is exhausted, refresh via bootstrapping
ct_refreshed = FHE.bootstrap(eval_key, ct_product)
// Client decrypts the result
result_sum = FHE.decrypt(secret_key, ct_sum) // 100
result_product = FHE.decrypt(secret_key, ct_product) // 2436The server never accesses the secret key and cannot learn the values of plaintext_a or plaintext_b. It only manipulates ciphertexts and returns encrypted results.
Blockchain Use Cases
Public blockchains are transparent by design: every transaction and smart contract state is visible to all participants. This transparency creates problems for use cases that require privacy. FHE offers a path to confidential computation on-chain without sacrificing the verifiability that blockchains provide.
Confidential Smart Contracts
Zama's fhEVM is the most prominent FHE-based smart contract platform. It extends the Ethereum Virtual Machine with encrypted data types, allowing developers to write Solidity contracts that operate on encrypted state. Contract variables remain encrypted throughout execution, and only authorized parties can decrypt results. Zama raised $73 million through its Series A and B rounds to bring this technology to production.
Fhenix builds an FHE-powered Layer 2 rollup on Ethereum using Zama's TFHE library. It lets users move assets into a private execution environment where balances and transaction amounts are hidden from validators and other users, while still settling proofs back to Ethereum.
Private Voting and Governance
On-chain governance typically exposes every vote before the tally is complete, enabling strategic voting and voter coercion. With FHE, votes are encrypted and tallied homomorphically. The final result is decrypted and published, but individual votes remain private. This mirrors the privacy guarantees of physical ballot boxes while maintaining on-chain verifiability.
Encrypted DeFi
FHE enables several DeFi primitives that are impossible with transparent state:
- Hidden order books: traders submit encrypted orders that are matched homomorphically, preventing front-running and sandwich attacks
- Sealed-bid auctions: bids remain encrypted until the auction closes, then the winner is computed on the ciphertexts and only the winning bid is revealed
- Private lending: borrowers can prove creditworthiness through encrypted computations without revealing their full financial position
- Confidential token transfers: balances and amounts can be hidden from public view while maintaining protocol-level accounting integrity, similar to confidential transactions
Encrypted Mempools
An encrypted mempool uses FHE or threshold encryption to hide transaction contents until block inclusion is finalized. This prevents validators and searchers from extracting MEV by front-running or reordering transactions based on their content. FHE-based approaches are one of several designs being explored alongside commit-reveal schemes and trusted execution environments.
Modular Confidential Computing
Inco Network takes a modular approach: rather than building a standalone chain, it provides an EVM-compatible confidential computing layer secured by Ethereum through EigenLayer. Other chains can outsource privacy-sensitive computations to Inco while keeping their own state transparent. Use cases include confidential storage, encrypted access control, and private game state.
FHE vs. Other Privacy Technologies
FHE is one of several cryptographic approaches to on-chain privacy, each with different tradeoffs:
| Technology | What It Hides | Computation | Performance |
|---|---|---|---|
| FHE | Inputs, outputs, intermediate state | General-purpose on encrypted data | 1,000x to 10,000x slower than plaintext |
| ZKPs | Inputs (prover knows them) | Proves statements without revealing data | Proof generation is costly; verification is fast |
| MPC | Each party's input from other parties | Joint computation across multiple parties | Communication overhead scales with party count |
| TEE | Data inside the enclave | Near-native speed in a secure enclave | Fast, but relies on hardware trust assumptions |
In practice, protocols often combine these techniques. A system might use FHE for encrypted state storage, ZKPs to prove properties of that state, and MPC for distributed key management. Hybrid designs are common because no single technology optimizes for speed, generality, and trust minimization simultaneously.
Why It Matters
FHE addresses a fundamental tension in blockchain design: the conflict between transparency (needed for verification) and privacy (needed for real-world adoption). Institutions handling sensitive financial data, healthcare records, or personal identity information cannot put that data on a public ledger. FHE allows computation on that data without exposing it, potentially unlocking enterprise and institutional blockchain adoption.
For payment infrastructure like Spark, privacy is essential at the application layer. While Spark uses cryptographic techniques at the protocol level to secure transfers, FHE represents a broader category of privacy technology that could enhance confidential computation across Bitcoin Layer 2 networks and stablecoin settlement systems. As FHE performance improves, it could enable private balance queries, confidential compliance checks, and encrypted payment routing without revealing transaction details to intermediaries.
Risks and Considerations
Performance Overhead
FHE remains orders of magnitude slower than plaintext computation. Academic benchmarks estimate overhead at roughly 10,000x for general circuits, though this varies significantly by scheme and workload. TFHE bootstrapping, while faster than BGV or BFV bootstrapping, still takes milliseconds per gate operation compared to nanoseconds for unencrypted logic. Ciphertext sizes are also much larger than plaintexts: a single encrypted integer can be kilobytes or megabytes depending on the security parameters.
Hardware Acceleration Is Still Maturing
Several efforts are underway to close the performance gap. FPGA-based accelerators target bootstrapping and Number Theoretic Transform (NTT) operations, the main bottlenecks. A 2026 Microsoft Research design reported the first sub-millisecond CKKS bootstrapping on dedicated hardware. Intel, DARPA (through its DPRIVE program), and multiple academic labs are building application-specific FHE accelerators. These are promising but remain at the prototype stage: no commercially available FHE hardware accelerator is widely deployed as of late 2026.
Developer Complexity
Writing efficient FHE programs requires understanding noise budgets, circuit depth, parameter selection, and scheme-specific tradeoffs. Tools like Zama's TFHE-rs library and Sunscreen's BFV compiler (a Rust-based FHE compiler that translates high-level code into optimized FHE circuits) are lowering this barrier, but FHE development remains significantly harder than writing conventional smart contracts.
Trust Assumptions
FHE itself is trustless in the sense that computation correctness is mathematically guaranteed. However, most blockchain FHE implementations require a trusted party or distributed protocol to manage the decryption key. If a single entity holds the decryption key, they can read all encrypted state. Protocols typically use threshold decryption (requiring a quorum of key holders) to mitigate this, but the security of the system then depends on the honesty of that quorum.
Verification Challenges
FHE guarantees that computation on encrypted data produces the correct encrypted result, but it does not inherently prove that the computation was performed correctly. A malicious server could return a fabricated ciphertext. To address this, FHE is often paired with zero-knowledge proofs that attest to the correctness of the homomorphic evaluation, adding another layer of complexity and cost.
Key Projects
- Zama: open-source FHE infrastructure company behind TFHE-rs and fhEVM, the leading framework for confidential smart contracts on EVM-compatible chains
- Fhenix: Ethereum Layer 2 rollup powered by TFHE, offering private execution with settlement on Ethereum mainnet
- Inco Network: modular confidential computing layer secured by Ethereum via EigenLayer, providing FHE as a service to other chains
- Sunscreen: Rust-based FHE compiler supporting the BFV scheme, aimed at making FHE accessible to application developers
For a deeper look at how privacy technologies intersect with blockchain scaling, see the research on zero-knowledge proofs in Bitcoin and post-quantum cryptography threats.
This glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.