fhevm-contracts
The fhevm-contracts repository provides a comprehensive collection of secure, pre-tested Solidity templates optimized for fhEVM development. These templates leverage the TFHE library to enable encrypted computations while maintaining security and extensibility.
The library includes templates for common use cases like tokens and governance, allowing developers to quickly build confidential smart contracts with battle-tested components. For detailed implementation guidance and best practices, refer to the contracts standard library guide.
ConfidentialERC20: Standard ERC20 with encryption.
ConfidentialERC20Mintable: ERC20 with minting capabilities.
ConfidentialERC20WithErrors: ERC20 with integrated error handling.
ConfidentialERC20WithErrorsMintable: ERC20 with both minting and error handling.
ConfidentialERC20Votes: Confidential ERC20 governance token implementation. It is based on Comp.sol.
ConfidentialGovernorAlpha: A governance contract for managing proposals and votes. It is based on GovernorAlpha.sol.
EncryptedErrors: Provides error management utilities for encrypted contracts.
Blind Auction: A smart contract for conducting blind auctions where bids are encrypted and the winning bid remains private.
Decentralized ID: A blockchain-based identity management system using smart contracts to store and manage encrypted personal data.
Cipherbomb: A multiplayer game where players must defuse an encrypted bomb by guessing the correct sequence of numbers.
Voting example: Suffragium is a secure, privacy-preserving voting system that combines zero-knowledge proofs (ZKP) and Fully Homomorphic Encryption (FHE) to create a trustless and tamper-resistant voting platform.
Cipherbomb UI: A multiplayer game where players must defuse an encrypted bomb by guessing the correct sequence of numbers.
Zama 5-Question Developer Survey
We want to hear from you! Take 1 minute to share your thoughts and helping us enhance our documentation and libraries. 👉 Click here to participate.
Confidential DAO Voting Using Homomorphic Encryption - October 2023
Use the CMUX operator on Zama’s fhEVM - October 2023