I. Introduction
With the rapid development of blockchain technology, we have transitioned from the era of programmable currency to the era of smart contracts. In 1995, cryp tographer Nick Szabo[2] first proposed the concept of a ‘smart contract’, defining it as ‘a set of promises, specified in digital form, including protocols within which the parties perform on these promises’. When Szabo introduced smart contracts, they did not gain widespread application due to the lack of a trusted execution environment. However, the emergence of blockchain technology has brought a new opportunity. Smart contracts have become one of the key applications of blockchain technology, characterized by automatic execution, decentralization, and immutability. They provide a new solution for businesses in various fields. Nevertheless, the complexity and security challenges in the writing and execution processes of smart contracts may result in potential vulnerabilities and risks.