fhenix-encrypted-comparisons
Installation
SKILL.md
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 |
ebool isHigher = FHE.gt(newBid, highestBid);
ebool sameAddr = FHE.eq(owner, candidate); // eaddress equality
euint32 higher = FHE.max(newBid, highestBid);