fhenix-encrypted-arithmetic

Installation
SKILL.md

Fhenix Encrypted Arithmetic

Overview

Arithmetic works on euint8 | euint16 | euint32 | euint64 | euint128 (not ebool/eaddress). Both operands must be the same type. Available via direct calls (FHE.add(a,b)) or bindings (a.add(b)).

Op Function Operator Notes
Addition add + wraps on overflow
Subtraction sub - wraps on underflow
Multiplication mul * wraps on overflow
Division div / divisor 0 → encrypted max value
Remainder rem % divisor 0 → encrypted max value
Square square — a²
euint32 sum     = FHE.add(a, b);
euint32 product = a.mul(b);        // library binding
euint32 sq      = FHE.square(a);
Installs
1
First Seen
Jun 22, 2026
fhenix-encrypted-arithmetic — nickthelegend/fhenix-skills