fhenix-confidential-erc20-wrapper
Installation
SKILL.md
Fhenix Confidential ERC20 Wrapper
Overview
Wrappers add a privacy layer over existing tokens: deposit a transparent ERC20/native token, receive a confidential FHERC20 (shield); reverse it later (unshield). 1:1 backed, decimals normalized to fit euint64.
| Wrapper | Shields | Shield fn | Underlying |
|---|---|---|---|
FHERC20ERC20Wrapper |
any standard ERC20 | shield(to, amount) |
ERC20 |
FHERC20NativeWrapper |
ETH / WETH | shieldNative(to) payable / shieldWrappedNative(to, value) |
native / WETH |
Rate & decimals
Confidential decimals default to 6. rate() = 10^(underlyingDecimals − 6) (e.g. 18→10^12). Shielding truncates to the nearest multiple of rate(); native dust below the threshold is refunded. ⚠️ Not supported: rebasing or fee-on-transfer/deflationary tokens.