nickthelegend/fhenix-skills/fhenix-encrypted-bitwise
Claude Code and agent skill by nickthelegend/fhenix-skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Encrypted bitwise logic (and/or/xor/not — also valid on ebool) and shifts/rotations (shl/shr/rol/ror on euint8..128). Covers operand-type rules, masking/field-extraction patterns, and the coin-flip AND-with-1 trick.
Install
npx vskill@latest install nickthelegend/fhenix-skills/fhenix-encrypted-bitwiseSKILL.md
The same SKILL.md was published earlier as nickthelegend/fhenix-skills/fhenix-encrypted-bitwise.
Fhenix Encrypted Bitwise Operations
Overview
- Logic (
and,or,xor,not) works onebool | euint8 | euint16 | euint32 | euint64 | euint128. - Shift / rotate (
shl,shr,rol,ror) works oneuint8…128only.
| Function | Meaning | |
|---|---|---|
and / or / xor | bitwise AND / OR / XOR (also on ebool) | |
not | bitwise NOT (also on ebool) | |
shl / shr | shift left / right | |
rol / ror | rotate left / right |
Field extraction (mask + shift)
ebool logic
and/or/xor/not accept ebool, useful for combining comparison results:
Uniform coin flip (random bit)
ANDing a random euint8 with 1 forces it into {0,1} for a clean 50/50:
Common pitfalls
- Using shift/rotate on
ebool— unsupported; logic ops only. - Mismatched operand widths — convert first with
FHE.asEuintXX. - Forgetting
FHE.allowThis(result)before storing.
Source docs
AI Agent Prompt
"Write a Solidity library that packs foureuint8fields into aeuint32(viashl+or) and extracts each back out (viashr+andmask), with ACL grants on the results."
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-bitwise/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-bitwise)