fhevm-testing

Installation
SKILL.md

Testing FHE Contracts with Hardhat

Use this skill when setting up a test suite for FHEVM contracts, deciding between mocked and real protocol testing, or diagnosing why tests pass locally but fail on testnet. The encryption layer introduces bugs that only surface under specific runtime conditions.

When To Use

  • Setting up a Hardhat test suite for an FHEVM contract
  • Choosing between mocked mode and real protocol testing
  • Debugging a test that passes locally but fails on testnet
  • Writing tests for ACL flows, encrypted inputs, or decryption paths

Core Mental Model

The Hardhat plugin gives you two local mock modes plus one real-encryption mode:

  • Hardhat in-memory network: mock encryption, fast, ephemeral
  • Hardhat node / localhost: mock encryption, persistent, useful for local app integration
Related skills
Installs
11
First Seen
Apr 14, 2026