fhenix-confidential-erc20

Installation
SKILL.md

Fhenix Confidential ERC20 (FHERC20 / ERC-7984)

Overview

FHERC20 implements ERC-7984: token balances and transfer amounts are encrypted (euint64) while staying ERC20-compatible via an indicator system. Recommended decimals = 6 (keeps amounts within euint64 and matches the wrappers). Base + extension contracts live in @fhenixprotocol/confidential-contracts.

import { FHERC20 } from "@fhenixprotocol/confidential-contracts/contracts/FHERC20/FHERC20.sol";

contract PrivacyToken is FHERC20 {
    constructor() FHERC20("Privacy Token", "PRIV", 6) {}
    function mint(address to, uint64 amount) external { _mint(to, amount); }
    function burn(uint64 amount) external { _burn(msg.sender, amount); }
}
Installs
1
First Seen
Jun 22, 2026
fhenix-confidential-erc20 — nickthelegend/fhenix-skills