Defines a threshold FHE scheme for Lux Network. The global FHE public key is generated via a distributed key generation ceremony among TEE mesh participants (LP-065). Encrypted data can be computed on without decryption. Decryption requires a threshold of key holders to produce partial decryptions. The scheme is based on TFHE (Torus FHE) with a CKKS-style bootstrapping for arithmetic operations.
A t-of-n threshold DKG produces:
Supported operations on encrypted values (via EVM precompile at 0x0066):
1. Contract calls FHE.decrypt(ciphertext, callbackAddress).
2. Validators in the TEE mesh each produce a partial decryption using their key share.
3. When t partial decryptions are collected, the result is aggregated and delivered to the callback.
4. Decryption latency: ~2 seconds (limited by TEE mesh round-trip).
1. The global secret key never exists in a single location. Compromise of t-1 shares reveals nothing.
2. Ciphertexts are IND-CPA secure under the RLWE assumption.
3. Noise budget limits the depth of homomorphic computation. Bootstrapping refreshes the budget at high cost.
4. Evaluation keys are public and do not compromise security.
github.com/luxfi/crypto/tfhe/ |github.com/luxfi/evm/precompile/contracts/fhe.go |github.com/luxfi/crypto/tfhe/dkg/ |Copyright (C) 2025-2026, Lux Partners Limited. All rights reserved.
Licensed under the MIT License.