Get started quickly with pre-configured project templates.Documentation Index
Fetch the complete documentation index at: https://cofhe-docs.fhenix.zone/llms.txt
Use this file to discover all available pages before exploring further.
Hardhat Starter
A minimal Hardhat project with@cofhe/hardhat-plugin pre-configured, including a sample contract and test.
cofhe-hardhat-starter
Clone this template to start building FHE contracts with Hardhat immediately.
What’s included
@cofhe/hardhat-pluginand@cofhe/sdkpre-installedhardhat.config.tswithevmVersion: 'cancun'and the plugin imported- A sample FHE contract
- A test demonstrating the encrypt → store → decrypt flow
- Pre-configured network settings for local development and testnets
Foundry Starter
A minimal Foundry project with@cofhe/foundry-plugin pre-configured, including a sample Counter contract and a comprehensive test suite covering plaintext assertions, public-decrypt flows, ACL deny paths, and fuzzing.
cofhe-foundry-starter
Clone this template to start building FHE contracts with Foundry immediately.
What’s included
@cofhe/foundry-plugin,@cofhe/mock-contracts, and@fhenixprotocol/cofhe-contractspre-installedfoundry.tomlwithevm_version = "cancun",solc_version = "0.8.25", andcode_size_limit = 100000remappings.txtconfigured for the plugin and mocks- A sample
Countercontract using FHE - Tests demonstrating
expectPlaintext,decryptForTx_withoutPermit, permit-based unseal, ACL deny assertions, and fuzz tests - Deploy scripts for
eth-sepolia,arb-sepolia, andbase-sepolia