fhEVM
WebsiteLibrariesProduct & ServicesDevelopersSupport
0.6
0.6
  • Welcome to fhEVM
  • White paper
  • Getting Started
    • Overview
    • Quick Start
      • Remix
        • 1. Setting up Remix
        • 2. Connect your wallet to Remix
        • 3. Deploying ConfidentialERC20
        • 4. Interacting with the contract
      • Hardhat
        • Prerequisites
        • 1. Setting up Hardhat
        • 2. Writing contracts
        • 3. Testing in mocked mode
        • 4. Deploying the contract
        • 5. Interacting with the contract
  • Tutorials
    • See all tutorials
  • Smart contract
    • Key features
    • Configuration
    • FhEVM contracts
    • Supported types
    • Operations on encrypted types
    • Access Control List
      • ACL examples
    • Encrypted Inputs
    • Decryption
      • Decryption
      • Decryption in depth
      • Re-encryption
    • If sentences
    • Branching in FHE
    • AsEbool, asEuintXX, asEaddress and asEbytesXX operations
    • Generate random numbers
    • Error handling
    • Gas estimation
    • Debug decrypt
    • Using Foundry
  • Frontend
    • Setup
    • Build a web application
    • Using React.js
    • Using Next.js
    • Using Vue.js
    • Using Node or Typescript
    • Using the CLI
    • Common webpack errors
  • Explanations
    • Architectural overview
    • FHE on blockchain
    • fhEVM components
    • Encryption, decryption, re-encryption, and computation
  • References
    • Table of all addresses
    • Smart contracts - fhEVM API
    • Frontend - fhevmjs lib
    • Repositories
  • Developer
    • Contributing
    • Development roadmap
    • Release note
    • Feature request
    • Bug report
    • Status
Powered by GitBook

Libraries

  • TFHE-rs
  • Concrete
  • Concrete ML
  • fhEVM

Developers

  • Blog
  • Documentation
  • Github
  • FHE resources

Company

  • About
  • Introduction to FHE
  • Media
  • Careers
On this page
  • Solidity smart contracts templates - fhevm-contracts
  • Code examples on GitHub
  • Frontend examples
  • Blog tutorials
  • Video tutorials
  • Legacy - Not compatible with latest fhEVM

Was this helpful?

Export as PDF
  1. Tutorials

See all tutorials

Previous5. Interacting with the contractNextKey features

Last updated 3 months ago

Was this helpful?

Solidity smart contracts templates - fhevm-contracts

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

Token

  • : Standard ERC20 with encryption.

  • : ERC20 with minting capabilities.

  • : ERC20 with integrated error handling.

  • : ERC20 with both minting and error handling.

Governance

  • : Confidential ERC20 governance token implementation. .

  • : A governance contract for managing proposals and votes. .

Utils

  • : Provides error management utilities for encrypted contracts.

Code examples on GitHub

Frontend examples

Blog tutorials

Video tutorials

Zama 5-Question Developer Survey

Legacy - Not compatible with latest fhEVM

: A smart contract for conducting blind auctions where bids are encrypted and the winning bid remains private.

: A blockchain-based identity management system using smart contracts to store and manage encrypted personal data.

: A privacy-preserving implementation of the popular word game Wordle where players guess a secret encrypted word through encrypted letter comparisons.

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

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

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

- Nov 2024

- Nov 2024

- Jul 2024

We want to hear from you! Take 1 minute to share your thoughts and helping us enhance our documentation and libraries. 👉 to participate.

- February 2024

- November 2023

- October 2023

- July 2023

- June 2023

- April 2024

- January 2024

- October 2023

- October 2023

- July 2023

fhevm-contracts repository
contracts standard library guide
ConfidentialERC20
ConfidentialERC20Mintable
ConfidentialERC20WithErrors
ConfidentialERC20WithErrorsMintable
ConfidentialERC20Votes
It is based on Comp.sol
ConfidentialGovernorAlpha
It is based on GovernorAlpha.sol
EncryptedErrors
Blind Auction
Decentralized ID
FheWordle
Cipherbomb
Voting example
Cipherbomb UI
Suffragium: An Encrypted Onchain Voting System Leveraging ZK and FHE Using Zama's fhEVM
How to do Confidential Transactions Directly on Ethereum?
Zama - FHE on Ethereum (Presentation at The Zama CoFHE Shop during EthCC 7)
Click here
Build an Encrypted Wordle Game Onchain using FHE and Zama's fhEVM
Programmable Privacy and Onchain Compliance using Homomorphic Encryption
Confidential DAO Voting Using Homomorphic Encryption
On-chain Blind Auctions Using Homomorphic Encryption and the fhEVM
Confidential ERC-20 Tokens Using Homomorphic Encryption and the fhEVM
Using asynchronous decryption in Solidity contracts with fhEVM
Accelerate your code testing and get code coverage using fhEVM mocks
Use the CMUX operator on Zama’s fhEVM
[Video tutorial] How to Write Confidential Smart Contracts Using Zama's fhEVM
Workshop during ETHcc: Homomorphic Encryption in the EVM