| description | FHEVM is a technology that enables confidential smart contracts on the EVM using Fully Homomorphic Encryption (FHE). | |||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| layout |
|
| Guard Privacy | Keep data encrypted during onchain computation. | |
| Build Fast | Use Solidity, SDKs, templates, etc. | |
| Deploy Anywhere | Compatible with all EVM chains. |
| Solidity Guides | Write encrypted logic with Solidity tools. | Gitbook-cover.png | Solidity |
| SDK Guides | Build frontends with encrypted user data. | Gitbook-cover.png | SDK |
| Examples | Explore real dApps and code templates. | Gitbook-cover.png | Examples |
{% stepper %} {% step %}
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 %}
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 %}
Start from Zama's ready-to-use React template.
See the full SDK guide Clone the template ; {% endstep %}
{% step %}
| Architecture | Understand how the system fits together. | Broken link | |
| Dapps Demos | Try real projects built with fhevm. | ||
| White paper | Dive deep into the cryptographic design. |
Ask technical questions and discuss with the community.