MECURY: Practical Cross-Chain Exchange via Trusted Hardware

Xiaoqing Wen,Quanbi Feng,Jianyu Niu,Yinqian Zhang,Chen Feng
2024-09-23
Abstract:The proliferation of blockchain-backed cryptocurrencies has sparked the need for cross-chain exchanges of diverse digital assets. Unfortunately, current exchanges suffer from high on-chain verification costs, weak threat models of central trusted parties, or synchronous requirements, making them impractical for currency trading applications. In this paper, we present MERCURY, a practical cryptocurrency exchange that is trust-minimized and efficient without online-client requirements. MERCURY leverages Trusted Execution Environments (TEEs) to shield participants from malicious behaviors, eliminating the reliance on trusted participants and making on-chain verification efficient. Despite the simple idea, building a practical TEE-assisted cross-chain exchange is challenging due to the security and unavailability issues of TEEs. MERCURY tackles the unavailability problem of TEEs by implementing an efficient challenge-response mechanism executed on smart contracts. Furthermore, MERCURY utilizes a lightweight transaction verification mechanism and adopts multiple optimizations to reduce on-chain costs. Comparative evaluations with XClaim, ZK-bridge, and Tesseract demonstrate that MERCURY significantly reduces on-chain costs by approximately 67.87%, 45.01%, and 47.70%, respectively.
Cryptography and Security,Distributed, Parallel, and Cluster Computing
What problem does this paper attempt to address?
The paper attempts to address the issues faced by current cross-chain exchanges, such as high on-chain verification costs, weaknesses in centralized trust models, and synchronization requirements, which make existing cross-chain exchanges unsuitable for practical currency trading applications. Specifically: 1. **High on-chain verification costs**: Existing solutions require a large amount of on-chain verification for cross-chain transactions, leading to high Gas fees and long confirmation times. 2. **Weaknesses in centralized trust models**: Many existing cross-chain exchanges rely on centralized trusted parties (e.g., notaries), which introduces single points of failure and makes them vulnerable to attacks. 3. **Synchronization requirements**: Some solutions require clients to continuously synchronize blockchain states, increasing system complexity and user inconvenience. To address these issues, the paper proposes MERCURY, an efficient and trustless cross-chain exchange based on Trusted Execution Environment (TEE). MERCURY addresses the above problems in the following ways: - **Utilizing TEE to ensure security**: TEE can protect participants' assets from malicious behavior, eliminating the need for trusted participants and making on-chain verification more efficient. - **Challenge-response mechanism**: By implementing a challenge-response mechanism in smart contracts, MERCURY addresses the issue of TEE unavailability, ensuring the atomicity of transactions. - **Lightweight transaction verification mechanism**: By offloading part of the workload to on-chain smart contracts, MERCURY reduces on-chain storage and computation costs. - **Periodic checkpoints**: By periodically submitting checkpoints, MERCURY further reduces on-chain storage costs. In summary, MERCURY aims to design an efficient, trustless, and client-free online cross-chain exchange to overcome the limitations of existing solutions.