Hardhat plugin

This section will guide you through writing and testing FHEVM smart contracts in Solidity using Hardhat.

The FHEVM Hardhat Plugin

To write FHEVM smart contracts using Hardhat, you need to install the FHEVM Hardhat Plugin 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

Where to go next

🟨 Go to Setup Hardhat 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.

Last updated