Skip to content

Latest commit

 

History

History
94 lines (65 loc) · 4.13 KB

File metadata and controls

94 lines (65 loc) · 4.13 KB
description FHEVM is a technology that enables confidential smart contracts on the EVM using Fully Homomorphic Encryption (FHE).
layout
title description tableOfContents outline pagination
visible
true
visible
true
visible
true
visible
true
visible

Welcome to FHEVM

Why FHEVM?

Guard PrivacyKeep data encrypted during onchain computation.
Build FastUse Solidity, SDKs, templates, etc.
Deploy AnywhereCompatible with all EVM chains.

Start Building

Explore the doc

Solidity GuidesWrite encrypted logic with Solidity tools.Gitbook-cover.pngSolidity
SDK GuidesBuild frontends with encrypted user data.Gitbook-cover.pngSDK
ExamplesExplore real dApps and code templates.Gitbook-cover.pngExamples

Path to Build

{% stepper %} {% step %}

Set up your development environment

Use the official Hardhat template from Zama that includes all necessary configurations and dependencies to start developing confidential smart contracts.

Clone the template {% endstep %}

{% step %}

Write your first confidential smart contract

Use the provided contract examples, like ConfidentialERC20, to begin. A basic confidential token contract might look like this:

// SPDX-License-Identifier: BSD-3-Clause-Clear
pragma solidity ^0.8.24;

import { FHE } from "@fhevm/solidity/lib/FHE.sol";
import { SepoliaConfig } from "@fhevm/solidity/config/ZamaConfig.sol";

contract MyCounter is SepoliaZamaFHEVMConfig {
  euint64 counter;
  constructor() {
    counter = FHE.asEuint64(0);
  }

  function add() public {
    counter = FHE.add(counter, 1);
  }
}

See the full Solidity guide {% endstep %}

{% step %}

Build your frontend with @zama-ai/relayer-sdk

Start from Zama's ready-to-use React template.

See the full SDK guide Clone the template ; {% endstep %}

{% step %}

To continue

ArchitectureUnderstand how the system fits together.Broken link
Dapps DemosTry real projects built with fhevm.
White paperDive deep into the cryptographic design.
{% endstep %} {% endstepper %}

Help Center

Ask technical questions and discuss with the community.