Lux Docs
Fhe

TFHE Protocol

Boolean and integer operations on encrypted data

TFHE (Torus Fully Homomorphic Encryption) enables arbitrary computation on encrypted data through Boolean gate bootstrapping.

Encrypted Types

TypeDescriptionSize
eboolEncrypted boolean1 bit
euint8Encrypted uint88 bits
euint16Encrypted uint1616 bits
euint32Encrypted uint3232 bits
euint64Encrypted uint6464 bits
eaddressEncrypted address160 bits

Operations

// Solidity with FHE
TFHE.add(a, b)      // Homomorphic addition
TFHE.mul(a, b)      // Homomorphic multiplication
TFHE.cmux(cond, a, b) // Conditional select
TFHE.decrypt(ct)     // Decrypt (requires authorization)

Security

  • 128-bit security parameter
  • Bootstrapping refreshes noise
  • Key switching for efficient operations

On this page