fhenix-trivial-encryption
Installation
SKILL.md
Fhenix Trivial Encryption
Overview
Trivial encryption converts a plaintext Solidity value into an encrypted type so it can interact with real ciphertexts, using the FHE.asE… family:
uint16 number = 2;
euint16 enc = FHE.asEuint16(number);
ebool flag = FHE.asEbool(true);
eaddress a = FHE.asEaddress(0x1234...7890);
euint32 z = FHE.asEuint32(50000, 1); // optional securityZone
⚠️ Trivially-encrypted values are NOT confidential
The plaintext was public, so the result stays public — anyone watching the chain knows the value (it just has an encrypted type). Combining two trivially-encrypted values yields another non-confidential value (the observer can replay the math). Confidentiality only comes from InEuintXX inputs encrypted client-side. Treat any FHE.asE…(literal) result as public.