An Efficient Cross-Shard Smart Contract Execution Framework Leveraging Off-Chain Computation and Genetic Algorithm-Optimized Migration
Blockchain sharding is a promising approach to improving system scalability. However, traditional designs rely on lock-based cross-shard commit protocols, which introduce significant performance bottlenecks due to repeated on-chain communication and consensus. The emergence of complex cross-shard contracts further exacerbates these issues. Although recent off-chain execution models reduce on-chain overhead by decoupling contract execution from consensus, they still incur high communication costs and struggle to maintain state consistency. To address these challenges, this paper presents a sharding framework that seamlessly integrates on-chain and off-chain processing. By leveraging Trusted Execution Environments (TEEs), the framework enables secure and efficient off-chain execution of cross-shard smart contracts. It incorporates an off-chain execution hub for verifiable contract execution and a state-aware cross-shard commit protocol to guarantee correctness. Furthermore, a genetic algorithm-based contract-migration strategy dynamically reduces cross-shard interactions. Prototype evaluations show that the proposed framework significantly outperforms mainstream sharding solutions, achieving at least 2.1× higher throughput and reducing cross-shard transaction latency by over 52.6%.
Authors
- Xueming Si (ORCID: https://orcid.org/0000-0002-8894-2857)
- Chang Liu (ORCID: https://orcid.org/0000-0002-9827-9286)
- Weihua Zhu (ORCID: https://orcid.org/0000-0001-5959-1608)
- Z. P. Yao (ORCID: https://orcid.org/0009-0001-5852-6019)
Institutions
- Zhongyuan University of Technology (CN)
Publication Details
- Journal
- Electronics
- Published
- 2025-09-17
- DOI
- https://doi.org/10.3390/electronics14183684
- Citations
- 1
- Primary Topic
- Blockchain Technology Applications and Security
- Type
- article
- Field-Weighted Citation Impact
- 3.25