Write FHEVM tests in Hardhat
Enabling the FHEVM Hardhat Plugin in your Hardhat project
import "@fhevm/hardhat-plugin";Accessing the Hardhat FHEVM API
import { fhevm } from "hardhat";import * as hre from "hardhat";
// Then access: hre.fhevmEncrypting Values Using the Hardhat FHEVM API
function foo(externalEunit32 value, bytes calldata memory inputProof);1
2
3
4
Encryption examples
Decrypting values using the Hardhat FHEVM API
1
2
Supported Decryption Types
Type
Function
Decryption examples
Last updated