首页>
外国专利>
BLOCKCHAIN SMART CONTRACT VERIFICATION METHOD AND APPARATUS, AND STORAGE MEDIUM
BLOCKCHAIN SMART CONTRACT VERIFICATION METHOD AND APPARATUS, AND STORAGE MEDIUM
展开▼
机译:区块链智能合同验证方法和装置,以及存储介质
展开▼
页面导航
摘要
著录项
相似文献
摘要
A method and apparatus for verifying smart contracts in a blockchain, and a storage medium are provided according to embodiments of the application. The method includes: acquiring block head information and a transaction list of a designated block from a first node in a blockchain network, wherein the transaction list includes transaction identifications and execution results of the smart contracts; and the block head information includes: a root node of a first Merkle tree, a root node of a second Merkle tree, and an identification of a previous block of the designated block; verifying the root node of the first Merkle tree and the transaction identifications; verifying the root node of the second Merkle tree and the execution results of the smart contracts; verifying whether the identification of the previous block of the designated block is in a pre-stored block head chain structure; and determining that the execution results of the smart contracts are valid, if the above verifications are passed. According to the embodiments of the application, it is not required to download or store the complete block information, nor is it required to repeatedly execute smart contracts locally on a lightweight client, which can help the lightweight node determine the validity of the execution results of the smart contracts, thereby saving system resources and improving the efficiency.
展开▼