âOne of the largest remaining challenges in the Ethereum ecosystem is privacy (âĶ) using the entire suite of Ethereum applications involves making a significant portion of your life public for anyone to see and analyze.â â Vitalik
Zero-knowledge proofs (ZKPs) have been the darling of cryptography in the crypto space for at least the past year but it has its limitations. They are valuable for privacy, proving knowledge of information without revealing it, and scalability, notably within zk-rollups, however, they currently face at least a few major limitations:
(1) Hidden info is typically stored and computed off-chain by trusted third parties, limiting permissionless composability where other apps need access to those off-chain data. This server-side proving resembles a system like web2 cloud computing.
(2) State transition has to be done over plaintext, meaning users have to trust those third-party provers with their unencrypted data.
(3) ZKPs are not suitable for applications where knowing the shared private state is necessary for generating proofs about the local private state.
However, any multiplayer use case (e.g. dark pool AMM, private lending pool) requires an on-chain shared private state, meaning, using ZK would require some kind of centralized/off-chain coordinator to achieve a shared private state, making it cumbersome and introducing trust assumptions.
Fully homomorphic encryption (FHE) is a cryptography scheme that allows computations to be performed over data without the need for prior decryption. It allows plaintext to be encrypted by the user into ciphertext and sent to third parties who process it without decrypting it.
What does this mean? End-to-end encryption. FHE allows for a shared private state.
For instance, in an AMM, a decentralized market maker account interacts with each trade but is not owned by any single user. When someone swaps Token A for Token B, they must be aware of the existing amounts of both tokens within the shared market maker account to generate a valid proof of the swap details. However, if the global state is hidden with a ZKP scheme, generating that proof would no longer be feasible. Conversely, if the global state information is publicly accessible, it allows other users to infer specifics about an individualâs swap.
With FHE, it is theoretically possible to conceal both shared and personal state, since proofs could be computed over encrypted data.
In addition to FHE, another key technology in achieving the privacy holy grail is multiparty computation (MPC), which solves the problem of computing over private inputs, and disclosing only the results of these computations while preserving the confidentiality of the inputs. But, we save that for another discussion. Our focus here is on FHE â its benefits and drawbacks, current market, and use cases.
It is important to note that FHE is still early in development and this is not a tribalist question of FHE vs. ZKPs, or FHE vs. MPC, but rather the additional features unlocked when combined with technology currently available. For example, a privacy-focused blockchain can use FHE to enable confidential smart contracts, MPC to distribute shards of the decryption key across validators, and ZKPs to verify the integrity of FHE computations.
At this point in time:
The benefits of FHE include:
The drawbacks include:
Current FHE x Crypto landscape
Highlights
Zama provides a range of open-source FHE tooling for both crypto and non-crypto use cases. Its fhEVM library enables private smart contracts, guaranteeing both on-chain confidentiality and composability.
Fhenix leverages Zamaâs fhEVM library to enable an end-to-end encrypted rollup. They aim to streamline the process of integrating FHE into any EVM smart contract, requiring minimal modifications to existing contracts. The founding team consists of the founder of Secret Network and Intelâs previous FHE bizdev lead. Fhenix recently raised $7M in seed funding.
Inco Network is an FHE-powered, EVM-compatible L1, bringing computation over encrypted data to smart contracts by integrating Zamaâs fhEVM cryptography. Remi Gai, the founder, was a founding member of Parallel Finance and is joined by several Cosmos engineers to realize this vision.
Hardware. A few entities are building hardware acceleration to solve latency issues. Notably, Intel, Cornami, Fabric, Optalysis, KU Leuven, Niobium, Chain Reaction, and some ZK ASIC/FPGA teams. This surge in development was propelled by a DARPA grant awarded for ASIC-based FHE acceleration about three years ago. That said, such specialized hardware acceleration may not be necessary for some blockchain applications where GPUs can likely reach 20+ TPS. FHE ASICs could potentially enhance performance to 100+ TPS while substantially reducing operational costs for validators.
Notable mentions. Google, Intel, OpenFHE are all contributing significantly to the general advancement of FHE, just less specifically within the context of crypto.
The key advantage is enabling shared private state and personal private state. What does this mean?
Private smart contracts: Traditional blockchain architectures leave user data exposed in web3 apps. Each userâs assets and transactions are visible to every other user. This is useful for trust and auditability, but itâs also a major barrier to enterprise adoption. Many businesses are reluctant or simply refuse to publicize this information. FHE changes this.
Beyond end-to-end encrypted transactions, FHE enables encrypted mempools, encrypted blocks, and confidential state transitions.
This unlocks a variety of novel use cases:
There are three core components we should elaborate on:
Layer 1: This layer serves as the foundation for developers to (a) launch applications natively on the network or (b) interface with the existing Ethereum ecosystem (an input-output model), including both the Ethereum mainnet and its L2s/sidechains.
The flexibility of the L1 is key here, as it caters to new projects seeking a native platform with FHE capabilities while also accommodating existing applications that prefer to remain on their current chains.
Rollups / Appchains: Applications can launch their own rollup or appchain on top of these FHE-enabled L1s. To this end, Zamaâs working on both optimistic and ZK FHE rollup stacks for fhEVM L1s for scaling privacy-focused solutions.
FHE Rollup on Ethereum: Launching an FHE rollup on Ethereum itself could significantly enhance native privacy on Ethereum but faces several technical challenges:
We expect that FHE will initially find its niche in lower liquidity environments and specific areas where privacy is paramount. Eventually, deeper liquidity may be found on an FHE L1 as throughput increases. In the longer term, once the issues above are solved, we may see an FHE rollup on Ethereum that can more frictionlessly tap liquidity and users from mainnet. The challenge now lies in finding a killer use case for FHE, maintaining compliance, and bringing a production-ready technology to market.
In the meantime, any developer looking to get their hands dirty or make some money bounty hunting can take a stab at Fhermaâs FHE challenges with several 4-figure bounties attached to them.
Acknowledgements: A big thank you to Gurgen Arakelov (founder of Yasha Labs/Fherma), @randhindi">Rand Hindi (founder of Zama), @remi.gai">Remi Gai (founder of Inco Network), and Hiroki Kotabe (research principal at Inception Capital) for their contributions to this article.
Relevant Reading:
Paillier, Pascal. â5 ways in which FHE can solve blockchainâs privacy problems.â Help Net Security, 4 September 2023, https://www.helpnetsecurity.com/2023/09/04/fully-homomorphic-encryption-fhe/
Inco Network Documentation, https://docs.inco.network/
Samani, Kyle. âThe Dawn of On-Chain FHE.â Multicoin Capital, 26 September 2023, https://multicoin.capital/2023/09/26/the-dawn-of-on-chain-fhe/
Hindi, Rand. âPrivate Smart Contracts Using Homomorphic Encryption.â Zama, 23 May 2023, https://www.zama.ai/post/private-smart-contracts-using-homomorphic-encryption
Ramaswamy, Anita. âThis niche cryptographic technique could transform privacy in web3.â Techcrunch, 18 July 2022. https://techcrunch.com/2022/07/18/crypto-blockchain-web3-privacy-cryptography-fully-homomorphic-encryption-startup-sunscreen/
Michael De Vegaâs talk at DeCompute Conference, 2023. https://twitter.com/nillionnetwork/status/1710372206423756887?s=20
Wei Daiâs thread on FHE. https://twitter.com/_weidai/status/1707474764783354340?s=20
Fisher, Evan et al. âFully Homomorphic Encryption (FHE).â Portal Ventures. 10 July 2023. https://portal.vc/fhe
Solomon, Ravital. âHow SNARKs fall short for FHE.â Sunscreen. 24 August 2023. https://blog.sunscreen.tech/snarks-shortcomings/
Fouda, Mohamed. âZKPs, FHE, MPC: Managing Private State in Blockchains.â Alliance. 22 December 2023. https://medium.com/alliancedao/zkps-fhe-mpc-managing-private-state-in-blockchains-17cc3661007d
âOne of the largest remaining challenges in the Ethereum ecosystem is privacy (âĶ) using the entire suite of Ethereum applications involves making a significant portion of your life public for anyone to see and analyze.â â Vitalik
Zero-knowledge proofs (ZKPs) have been the darling of cryptography in the crypto space for at least the past year but it has its limitations. They are valuable for privacy, proving knowledge of information without revealing it, and scalability, notably within zk-rollups, however, they currently face at least a few major limitations:
(1) Hidden info is typically stored and computed off-chain by trusted third parties, limiting permissionless composability where other apps need access to those off-chain data. This server-side proving resembles a system like web2 cloud computing.
(2) State transition has to be done over plaintext, meaning users have to trust those third-party provers with their unencrypted data.
(3) ZKPs are not suitable for applications where knowing the shared private state is necessary for generating proofs about the local private state.
However, any multiplayer use case (e.g. dark pool AMM, private lending pool) requires an on-chain shared private state, meaning, using ZK would require some kind of centralized/off-chain coordinator to achieve a shared private state, making it cumbersome and introducing trust assumptions.
Fully homomorphic encryption (FHE) is a cryptography scheme that allows computations to be performed over data without the need for prior decryption. It allows plaintext to be encrypted by the user into ciphertext and sent to third parties who process it without decrypting it.
What does this mean? End-to-end encryption. FHE allows for a shared private state.
For instance, in an AMM, a decentralized market maker account interacts with each trade but is not owned by any single user. When someone swaps Token A for Token B, they must be aware of the existing amounts of both tokens within the shared market maker account to generate a valid proof of the swap details. However, if the global state is hidden with a ZKP scheme, generating that proof would no longer be feasible. Conversely, if the global state information is publicly accessible, it allows other users to infer specifics about an individualâs swap.
With FHE, it is theoretically possible to conceal both shared and personal state, since proofs could be computed over encrypted data.
In addition to FHE, another key technology in achieving the privacy holy grail is multiparty computation (MPC), which solves the problem of computing over private inputs, and disclosing only the results of these computations while preserving the confidentiality of the inputs. But, we save that for another discussion. Our focus here is on FHE â its benefits and drawbacks, current market, and use cases.
It is important to note that FHE is still early in development and this is not a tribalist question of FHE vs. ZKPs, or FHE vs. MPC, but rather the additional features unlocked when combined with technology currently available. For example, a privacy-focused blockchain can use FHE to enable confidential smart contracts, MPC to distribute shards of the decryption key across validators, and ZKPs to verify the integrity of FHE computations.
At this point in time:
The benefits of FHE include:
The drawbacks include:
Current FHE x Crypto landscape
Highlights
Zama provides a range of open-source FHE tooling for both crypto and non-crypto use cases. Its fhEVM library enables private smart contracts, guaranteeing both on-chain confidentiality and composability.
Fhenix leverages Zamaâs fhEVM library to enable an end-to-end encrypted rollup. They aim to streamline the process of integrating FHE into any EVM smart contract, requiring minimal modifications to existing contracts. The founding team consists of the founder of Secret Network and Intelâs previous FHE bizdev lead. Fhenix recently raised $7M in seed funding.
Inco Network is an FHE-powered, EVM-compatible L1, bringing computation over encrypted data to smart contracts by integrating Zamaâs fhEVM cryptography. Remi Gai, the founder, was a founding member of Parallel Finance and is joined by several Cosmos engineers to realize this vision.
Hardware. A few entities are building hardware acceleration to solve latency issues. Notably, Intel, Cornami, Fabric, Optalysis, KU Leuven, Niobium, Chain Reaction, and some ZK ASIC/FPGA teams. This surge in development was propelled by a DARPA grant awarded for ASIC-based FHE acceleration about three years ago. That said, such specialized hardware acceleration may not be necessary for some blockchain applications where GPUs can likely reach 20+ TPS. FHE ASICs could potentially enhance performance to 100+ TPS while substantially reducing operational costs for validators.
Notable mentions. Google, Intel, OpenFHE are all contributing significantly to the general advancement of FHE, just less specifically within the context of crypto.
The key advantage is enabling shared private state and personal private state. What does this mean?
Private smart contracts: Traditional blockchain architectures leave user data exposed in web3 apps. Each userâs assets and transactions are visible to every other user. This is useful for trust and auditability, but itâs also a major barrier to enterprise adoption. Many businesses are reluctant or simply refuse to publicize this information. FHE changes this.
Beyond end-to-end encrypted transactions, FHE enables encrypted mempools, encrypted blocks, and confidential state transitions.
This unlocks a variety of novel use cases:
There are three core components we should elaborate on:
Layer 1: This layer serves as the foundation for developers to (a) launch applications natively on the network or (b) interface with the existing Ethereum ecosystem (an input-output model), including both the Ethereum mainnet and its L2s/sidechains.
The flexibility of the L1 is key here, as it caters to new projects seeking a native platform with FHE capabilities while also accommodating existing applications that prefer to remain on their current chains.
Rollups / Appchains: Applications can launch their own rollup or appchain on top of these FHE-enabled L1s. To this end, Zamaâs working on both optimistic and ZK FHE rollup stacks for fhEVM L1s for scaling privacy-focused solutions.
FHE Rollup on Ethereum: Launching an FHE rollup on Ethereum itself could significantly enhance native privacy on Ethereum but faces several technical challenges:
We expect that FHE will initially find its niche in lower liquidity environments and specific areas where privacy is paramount. Eventually, deeper liquidity may be found on an FHE L1 as throughput increases. In the longer term, once the issues above are solved, we may see an FHE rollup on Ethereum that can more frictionlessly tap liquidity and users from mainnet. The challenge now lies in finding a killer use case for FHE, maintaining compliance, and bringing a production-ready technology to market.
In the meantime, any developer looking to get their hands dirty or make some money bounty hunting can take a stab at Fhermaâs FHE challenges with several 4-figure bounties attached to them.
Acknowledgements: A big thank you to Gurgen Arakelov (founder of Yasha Labs/Fherma), @randhindi">Rand Hindi (founder of Zama), @remi.gai">Remi Gai (founder of Inco Network), and Hiroki Kotabe (research principal at Inception Capital) for their contributions to this article.
Relevant Reading:
Paillier, Pascal. â5 ways in which FHE can solve blockchainâs privacy problems.â Help Net Security, 4 September 2023, https://www.helpnetsecurity.com/2023/09/04/fully-homomorphic-encryption-fhe/
Inco Network Documentation, https://docs.inco.network/
Samani, Kyle. âThe Dawn of On-Chain FHE.â Multicoin Capital, 26 September 2023, https://multicoin.capital/2023/09/26/the-dawn-of-on-chain-fhe/
Hindi, Rand. âPrivate Smart Contracts Using Homomorphic Encryption.â Zama, 23 May 2023, https://www.zama.ai/post/private-smart-contracts-using-homomorphic-encryption
Ramaswamy, Anita. âThis niche cryptographic technique could transform privacy in web3.â Techcrunch, 18 July 2022. https://techcrunch.com/2022/07/18/crypto-blockchain-web3-privacy-cryptography-fully-homomorphic-encryption-startup-sunscreen/
Michael De Vegaâs talk at DeCompute Conference, 2023. https://twitter.com/nillionnetwork/status/1710372206423756887?s=20
Wei Daiâs thread on FHE. https://twitter.com/_weidai/status/1707474764783354340?s=20
Fisher, Evan et al. âFully Homomorphic Encryption (FHE).â Portal Ventures. 10 July 2023. https://portal.vc/fhe
Solomon, Ravital. âHow SNARKs fall short for FHE.â Sunscreen. 24 August 2023. https://blog.sunscreen.tech/snarks-shortcomings/
Fouda, Mohamed. âZKPs, FHE, MPC: Managing Private State in Blockchains.â Alliance. 22 December 2023. https://medium.com/alliancedao/zkps-fhe-mpc-managing-private-state-in-blockchains-17cc3661007d