fhenix-encrypted-randomness
Installation
SKILL.md
Fhenix Encrypted Randomness
Overview
FHE.randomEuintXX() produces a cryptographically secure random value in encrypted form — no one sees the plaintext until it's explicitly decrypted. Available widths:
| Function | Returns |
|---|---|
FHE.randomEuint8() |
euint8 |
FHE.randomEuint16() |
euint16 |
FHE.randomEuint32() |
euint32 |
FHE.randomEuint64() |
euint64 |
FHE.randomEuint128() |
euint128 |
An optional securityZone argument is supported: FHE.randomEuint32(1).
Patterns
import { FHE, euint8, euint32, ebool } from "@fhenixprotocol/cofhe-contracts/FHE.sol";