FHEVM Solidity is a Solidity library that allows developers to write confidential smart contracts with the standard Solidity development workflow.
The FHEVM Solidity library offers the following core features:
-
Encrypted types: Use encrypted integers like
euint8
,euint16
, ...,euint256
directly in Solidity contracts. -
Encrypted operations: Perform operations on encrypted data using FHE-compatible functions like
add
,sub
,eq
,lt
,ternary
, etc. -
Decryption functions: Use
requestDecryption
to trigger decryption asynchronously via an oracle. The plaintext result is returned to the smart contract through a callback, eliminating the need for client-side processing. - Access control: Restrict which accounts can decrypt or update values with programmable access logic.
- Symbolic execution: All encrypted operations are executed symbolically on the chain, with actual computation performed off-chain by the coprocessor.
See full details in the Key concepts section of the documentation.
To start writing confidential smart contracts using FHEVM Solidity, follow the Hardhat setup guide here: Getting Started with Hardhat.
🌟 If you find this project helpful or interesting, please consider giving it a star on GitHub! Your support helps to grow the community and motivates further development.