See all tutorials

Solidity smart contracts teamplates - 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.

Token

Governance

Utils

  • EncryptedErrors: Provides error management utilities for encrypted contracts.

Code examples on GitHub

  • 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.

Frontend examples

  • Cipherbomb UI: A multiplayer game where players must defuse an encrypted bomb by guessing the correct sequence of numbers.

Blog tutorials

Video tutorials

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.

Legacy - Not compatible with latest fhEVM

Last updated