nickthelegend/fhenix-skills/fhenix-encrypted-comparisons
Claude Code and agent skill by nickthelegend/fhenix-skills
- community
Checking that the SKILL.md file is still in the repository.
Encrypted comparisons returning ebool — eq/ne (all types incl. eaddress), lt/lte/gt/gte and min/max (euint8..128). Comparisons can't branch directly; pair the ebool with FHE.select. Covers operand-type rules and the bid/threshold pattern.
Install
npx vskill@latest install nickthelegend/fhenix-skills/fhenix-encrypted-comparisonsSKILL.md
The same SKILL.md was published earlier as nickthelegend/fhenix-skills/fhenix-encrypted-comparisons.
Fhenix Encrypted Comparisons
Overview
Comparisons evaluate homomorphically and return an `ebool` (encrypted boolean) — you can't read the result directly. To act on it, feed the ebool into FHE.select (see fhenix-encrypted-conditionals).
| Function | Result | Operand types | |
|---|---|---|---|
eq / ne | ebool | all encrypted types including `eaddress` | |
lt / lte / gt / gte | ebool | euint8…128 | |
min / max | euintXX | euint8…128 |
Comparisons + select (the core pattern)
Eligibility / threshold example
Common pitfalls
- Trying to `if`/`require` on an `ebool` — impossible; it's encrypted. Use
FHE.selectand resolve true/false off-chain via decryption when you must branch. - Ordering ops (
lt/gt/min/max) onebool/eaddress— unsupported; onlyeq/neapply there. - Mismatched widths — convert first.
Source docs
- `fhe-library/core-concepts/encrypted-operations.mdx`
- `fhe-library/reference/fhe-sol/comparison.mdx`
- `fhe-library/core-concepts/conditions.mdx`
AI Agent Prompt
"Implement a private auctionplaceBid(InEuint32)that compares the new bid to the stored highest withFHE.gt, updates viaFHE.select, and re-grants ACL — never branching on the encrypted comparison."
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/fhenix-encrypted-comparisons/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/nickthelegend/fhenix-skills/fhenix-encrypted-comparisons)