首页> 外国专利> 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.
机译:根据应用的实施例提供用于验证区块链中的智能契约的方法和装置。该方法包括:从区块网络中的第一节点获取块头信息和指定块的交易列表,其中交易列表包括智能合约的事务标识和执行结果;块头信息包括:第一Merkle树的根节点,第二Merkle树的根节点,以及指定块的前一个块的标识;验证第一个Merkle树的根节点和事务标识;验证第二个Merkle树的根节点和智能合约的执行结果;验证指定块的先前块是否处于预先存储的块头链结构;如果通过上述验证,则确定智能合同的执行结果有效。根据应用程序的实施例,不需要下载或存储完整的块信息,也不需要在轻量级客户端上在本地重复执行智能合同,这可以帮助轻量级节点确定执行结果的有效性智能合同,从而节省了系统资源并提高了效率。

著录项

  • 公开/公告号EP3678346A4

    专利类型

  • 公开/公告日2021-09-29

    原文格式PDF

  • 申请/专利号EP20190863164

  • 发明设计人 JING BO;

    申请日2019-06-17

  • 分类号H04L29/06;G06Q40/04;

  • 国家 EP

  • 入库时间 2022-08-24 21:21:01

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号