Fully Homomorphic Encryption: FHE

Fully homomorphic encryption (FHE) lets smart contracts compute on encrypted data without decrypting it

TECH & NETWORKS5 min readBy AlgoSys Editorial TeamPublished Apr 25, 2026Updated Jun 26, 2026
Contents

Fully homomorphic encryption (FHE) is a cryptographic technique that allows computations to be performed directly on encrypted data without decrypting it first. That almost sounds paradoxical, but this very capability resolves a longstanding blockchain dilemma: how to combine network transparency with user confidentiality. The concept was first described by Craig Gentry in 2009, and since then it has evolved from a theoretical idea into a tool that lets smart contracts process sensitive information while keeping it secret.

To understand why this matters, recall how ordinary blockchains work. They depend on transparency: the data of every transaction is publicly verifiable. This provides immutability and trust, but at the same time it limits the range of applications, because everything that enters the network is visible to everyone. Any application working with private user data runs into this wall. FHE offers a way out by letting you compute on encrypted states, and in doing so it opens the door to confidential DeFi and private identity solutions.

In the blockchain stack, FHE occupies the privacy layer of smart contract execution. It takes encrypted inputs and produces encrypted outputs that only authorized parties can decrypt. This makes complex on-chain operations possible, such as private voting or confidential data analysis, without exposing the underlying data.

Since the technology appeared it has advanced considerably, and today research is focused on its main weak point: efficiency and reducing computational overhead. Projects are working on integrating FHE with existing blockchain infrastructure and with Layer 2 scaling solutions to make mass adoption practically feasible.

MECHANICS

At the core of any FHE scheme is a key pair: a public key and a secret key. The public key is used to encrypt data into a ciphertext that can then be worked with directly. Special homomorphic operations are defined for this ciphertext, primarily addition and multiplication.

The key idea is that performing a computation on encrypted data yields an encrypted result. Add two encrypted numbers and you get the encryption of their sum. This principle scales to complex functions, allowing arbitrary computations to be performed on encrypted inputs. It all rests on sophisticated mathematics, most often lattice-based cryptography, which is specifically designed to preserve the necessary algebraic properties under operations.

The main difficulty with FHE is, strangely enough, the flip side of its power. Every operation on a ciphertext introduces noise (an accumulating error), and this noise grows as the computation becomes more complex, while the size of the ciphertext grows along with it. If too much noise accumulates, decrypting the result becomes impossible. To prevent this, bootstrapping is applied: a ciphertext refresh that resets the accumulated noise and allows operations to continue with practically no limit. The trade-off is that bootstrapping is computationally very expensive, which hits transaction throughput and gas costs on the blockchain.

In practice, therefore, FHE computations will most likely run off-chain on specialized nodes or Layer 2 sequencers. Only the encrypted result will be sent to the main network, where it is then verified. This approach trades away some of FHE's privacy but softens the blow to base-layer performance. In spirit, this is close to how ZK-rollups move computation outside the network and publish only the outcome to L1.

KEY COMPONENTS

For FHE to work on a blockchain, a whole set of elements and participants comes into play. Here are the main ones:

  • FHE Libraries: open-source projects such as Microsoft SEAL, HElib, and TFHE that give developers ready-made cryptographic primitives for homomorphic operations.
  • FHE Schemes: specific algorithms (BFV, BGV, CKKS, TFHE), each with its own trade-off between the set of supported operations and efficiency.
  • Encrypted Data: the ciphertext that stores sensitive information while still permitting computation without decryption.
  • Homomorphic Operations: mathematical functions (addition, multiplication) applied directly to encrypted data while preserving the relationship between encrypted inputs and outputs.
  • Bootstrapping: the mechanism that resets the noise accumulated during operations by refreshing the ciphertext, making complex computations possible.
  • FHE Oracles: services that perform heavy FHE computations off-chain and return a verifiable encrypted result to the blockchain.
  • Layer 2 Solutions: scaling frameworks such as Arbitrum or Optimism that can take FHE computations off the base layer and process them off-chain.
  • Privacy-Preserving Applications: smart contracts and dApps built around FHE for scenarios such as confidential transactions or private analytics.

APPLICATIONS

FHE unlocks an entire class of decentralized applications with privacy built in by default. In decentralized finance (DeFi), this means, for example, confidential lending and borrowing protocols. A user could deposit collateral and borrow assets without publishing their exact balances and loan amounts to the ledger.

Another significant direction is private identity management and decentralized identity (DID) solutions. FHE allows a user to prove the presence of a required attribute, say, age or citizenship, without revealing the underlying personal data. For regulatory compliance and access control in Web3 applications, this is fundamentally important.

FHE also fits naturally into secure multi-party computation (SMPC). To make this concrete, here is a specific example. Take a DAO conducting a vote on a proposal:

  • Inputs: each participant submits their vote in encrypted form, so network nodes cannot read it.
  • Computation: the votes are summed homomorphically, directly in encrypted form, without decrypting individual ballots.
  • Output: only the final tally is published, and anyone can verify its correctness.

As a result, individual votes remain hidden while the total is publicly verifiable, preserving both the integrity of the decision and the anonymity of the voters. Essentially the same logic applies to a confidential DeFi loan or an attribute check in DID: the input is encrypted, the calculation runs blindly, and only the needed result comes out.

Research is ongoing into how to connect FHE with existing blockchain standards and Layer 2 technologies. Separately, work is being done on how FHE can complement ZK-proofs: these technologies offer different privacy guarantees and different computational capabilities, and together they form a more solid Web3 privacy infrastructure.

TRADE-OFFS

The main trade-off with FHE is its computational cost and its impact on performance. Operations on encrypted data are noticeably slower and more resource-intensive than on plaintext, which means higher fees and lower throughput compared to standard smart contract execution.

It is useful to compare FHE directly with zero-knowledge proofs (ZKP) such as those used in ZK-rollups. These are two different privacy paradigms:

Zero-Knowledge Proofs (ZKP) Fully Homomorphic Encryption (FHE)
Prove the correctness of a computation without revealing inputs Allow computing directly on encrypted data
Focus on verifiability of the result Focus on secrecy throughout the entire computation
Data in the computation stays with one party Encrypted data is processed "blindly"

Finally, for all its power, FHE's real-world deployment on blockchains runs into latency and scalability constraints. Solutions generally rely on off-chain computation, similar to rollups, and this introduces a degree of centralization at the calculation stage. Balancing FHE's strong privacy against blockchain's core principles of decentralization and efficiency still requires manual trade-offs, and this remains an active area of development.

FAQ

How does FHE differ from ZK-proofs?

These are two different privacy paradigms. A ZK-proof confirms that a computation was performed correctly without revealing the inputs, focusing on the verifiability of the result. FHE, by contrast, lets you compute directly on encrypted data, so secrecy is maintained throughout the computation itself, not just at the output. They are often viewed as complementary rather than competing technologies.

Why is FHE so slow?

Every operation on a ciphertext introduces mathematical noise, and the ciphertext itself is noticeably larger than the plaintext. To prevent that noise from accumulating to the point where decryption becomes impossible, bootstrapping is applied (a ciphertext refresh that resets the noise). Bootstrapping itself is computationally expensive, so operations on encrypted data are far heavier than ordinary ones. That is what produces high fees and low throughput.

Can FHE be run directly inside a smart contract today?

Not fully on mainnet: the overhead is too large for the base layer. The practical path that projects are exploring is to move FHE computations off-chain to specialized nodes or Layer 2 sequencers, then post only the encrypted result to the main network for verification. The logic is similar to how ZK-rollups compute off-chain and publish only the proof to L1.

Who can decrypt the result of an FHE computation?

Only the party holding the secret key. FHE takes encrypted inputs and produces an encrypted output that remains unreadable to everyone except authorized key holders. The nodes performing the computation work blindly: they produce the correct result but see neither the input data nor the final result in plaintext.

What applications does FHE unlock on blockchains?

Primarily those that need public verifiability without revealing data. These include confidential DeFi lending protocols (collateral and borrowing without publishing balances), private identity and DID (proving age or citizenship without disclosing the underlying data), and private DAO voting, where individual votes are hidden but the final tally is verifiable by anyone.

Does using FHE introduce centralization?

Yes, partially and at the computation stage. Because the heavy operations are moved off-chain to specialized nodes or sequencers, that part of the process is less decentralized than executing a regular contract. Striking a balance between FHE's strong privacy and blockchain's core principles of decentralization and efficiency remains an active area of development.

Put this to work in the terminal

Live charts, derivatives, on-chain and macro data, free.

Open terminal →