fhenix-client-sdk-setup
Installation
SKILL.md
Fhenix Client SDK — Setup
Overview
@cofhe/sdk is the TypeScript client for CoFHE: encrypt inputs, manage permits, decrypt outputs. The SDK speaks viem internally; Ethers/wagmi are supported via adapters. Setup lifecycle: create config → create client → connect → manage connection.
Install
npm install @cofhe/sdk@^0.5.2 @fhenixprotocol/cofhe-contracts@^0.1.3
| Package | Version | Purpose |
|---|---|---|
@cofhe/sdk |
^0.5.2 |
Client encryption/decryption/permits |
@fhenixprotocol/cofhe-contracts |
^0.1.3 |
FHE.sol Solidity library imported by contracts |
Prerequisites: Node 18+, TypeScript 5+, Viem 2+. cofhe-contracts@0.1.3 requires @cofhe/sdk >= 0.5.1.
Add @cofhe/hardhat-plugin@^0.5.2 (Hardhat) or @cofhe/foundry-plugin@^0.5.2 + @cofhe/mock-contracts@^0.5.2 (Foundry) for testing — see the plugin skills.