LPsLux Proposals
AI & Attestation
LP-5320

TEE Mesh

Draft

A mesh of trusted execution enclaves across validators — each attests to an on-chain registry, peers verify each other's attestation before an RA-TLS handshake completes, and the mesh performs key generation, threshold FHE bootstrap, and confidential state transitions without exposing plaintext to the host

Category
Core
Created
2024-09-01

Abstract

The TEE mesh is a network of trusted execution environments across Lux validators. Each participating validator runs an enclave — Intel SGX, AMD SEV-SNP, or ARM TrustZone — that performs confidential computation. Enclaves attest to each other by remote attestation, forming a trust mesh. The mesh executes privacy-sensitive operations — key generation, FHE computations, private state transitions — without exposing plaintext to the host operating system.

Specification

Supported platforms

PlatformHardwareAttestation
Intel SGXXeon (Ice Lake and later)DCAP (Data Center Attestation Primitives)
AMD SEV-SNPEPYC (Milan and later)SNP attestation report
ARM TrustZoneARMv8.4-A and laterPSA attestation token

Attestation protocol

  1. Each enclave generates an attestation report binding its identity to its TEE measurement.
  2. Reports are submitted to the on-chain TEERegistry contract.
  3. The registry verifies the report against known platform root keys — Intel, AMD, and ARM CA certificates held on-chain — through the precompiles in LP-5310.
  4. Verified enclaves join the active mesh.

Mesh communication

Enclaves establish pairwise encrypted channels using RA-TLS (remote attestation TLS). Each channel verifies the peer's attestation before the handshake completes, so an unattested peer never reaches an established channel. Communication uses the Noise_XX pattern over QUIC.

Confidential operations

OperationDescription
MPC key generationDKG ceremonies inside the mesh
FHE bootstrapKey generation for threshold FHE (LP-8200)
Private stateExecute confidential contract state transitions
Sealed storageEncrypt data at rest with enclave sealing keys

Registration

A validator opts into the mesh by running the enclave binary alongside its node, submitting an attestation transaction to TEERegistry, and waiting for the registry to verify and add the enclave to the roster.

Security Considerations

  1. TEE side-channel attacks — Spectre, Foreshadow — are mitigated by microcode updates and enclave hardening.
  2. Attestation reports expire after 24 hours and must be refreshed.
  3. A compromised host cannot read enclave memory but can deny service. Mesh redundancy at t-of-n tolerates f failures.
  4. Platform root keys are updated through governance when Intel, AMD, or ARM rotate their CA certificates.

Reference

ResourceLocation
TEE enclave runtimegithub.com/luxfi/tee/
TEERegistry contractgithub.com/luxfi/standard/contracts/tee/TEERegistry.sol
RA-TLS librarygithub.com/luxfi/tee/ratls/
TEE integration interfacesLP-5075

Copyright and related rights waived via CC0.