fhenix-encrypted-bitwise
Installation
SKILL.md
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 |
euint32 masked = FHE.and(value, FHE.asEuint32(255)); // low byte
euint32 shifted = FHE.shl(masked, 4); // << 4
ebool toggled = FHE.not(flag); // ebool also supported