I. Introduction
With the growing development of blockchain [1], consensus protocols and proof-of-work mechanisms [2] provide trusted and immutable properties [3] to blockchains. Blockchain offers a reliable operating platform for smart contracts [4]. The combination of the two has ushered in the era of blockchain 2.0, marked by smart contract technology. Smart contracts have been successfully applied in various fields, including the Internet of Things and healthcare [5]. They have become one of the core technologies of blockchain. Many blockchain plat- forms support the operation of smart contracts, with Ethereum [6] being the most influential.