Hardhat plugin

This section will guide you through writing and testing FHEVM smart contracts in Solidity using Hardhatarrow-up-right.

The FHEVM Hardhat Plugin

To write FHEVM smart contracts using Hardhat, you need to install the FHEVM Hardhat Pluginarrow-up-right in your Hardhat project.

This plugin enables you to develop, test, and interact with FHEVM contracts right out of the box.

It extends Hardhat’s functionality with a complete FHEVM API that allows you:

  • Encrypt data

  • Decrypt data

  • Run tests using various FHEVM execution modes

  • Write FHEVM-enabled Hardhat Tasks

Where to go next

🟨 Go to Setup Hardhatarrow-up-right to initialize your FHEVM Hardhat project.

🟨 Go to Write FHEVM Tests in Hardhat for details on writing tests of FHEVM smart contracts using Hardhat.

🟨 Go to Run FHEVM Tests in Hardhat to learn how to execute those tests in different FHEVM environments.

🟨 Go to Write FHEVM Hardhat Task to learn how to write your own custom FHEVM Hardhat task.

Last updated