RaceTEE: Enabling Interoperability of Confidential Smart Contracts
Keyu Zhang, Andrew Martin
TL;DR
RaceTEE addresses privacy and scalability gaps in smart contracts by introducing an interoperable off-chain framework built on Trusted Execution Environments. It establishes a unified execution environment with dual-layer encryption, contract-consistent availability via competitive execution, and a global transaction order by treating each blockchain block as an atomic unit, while preserving compatibility with existing blockchains through on-chain management contracts. The authors implement a prototype using Intel SGX integrated with Ethereum, and demonstrate practical viability across token, DEX, auction, and computation workloads, including Go-based K-Means inside enclaves. They also detail security analyses and a distributed off-chain storage scheme with threshold-based confirmations to resist adversarial behavior. The work offers a path toward practical confidential, long-lived, inter-contract execution with broad applicability in DeFi, finance, and data-intensive applications, while outlining future work on formal security guarantees and large-scale deployment.
Abstract
Decentralized smart contracts enable trustless collaboration but suffer from limited privacy and scalability, which hinders broader adoption. Trusted Execution Environment (TEE) based off-chain execution frameworks offer a promising solution to both issues. Although TEE-based frameworks have made significant progress, prior work has yet to fully explore contract interoperability, a critical foundation for building complex real-world decentralized applications. This paper identifies the key challenges impeding such interoperability and presents practical solutions. Based on these insights, we introduce RaceTEE, a novel framework that leverages off-chain TEE-enabled nodes to efficiently execute confidential, long-lived smart contracts with interactions of arbitrary complexity among contracts. We implement a RaceTEE prototype using Intel SGX, integrate it with Ethereum, and release it as open source. Evaluation across diverse use cases demonstrates its practicality and effectiveness.
