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, ...,euint256directly in Solidity contracts. - Encrypted operations: Perform operations on encrypted data using FHE-compatible functions like
add,sub,eq,lt,ternary, etc. - 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.
run
npm install
To run forge tests:
npm run forge:soldeer
npm run test:forge
🌟 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.