首页> 外国专利> EXECUTION METHOD AND APPARATUS FOR SMART CONTRACT IN BLOCKCHAIN, AND ELECTRONIC DEVICE

EXECUTION METHOD AND APPARATUS FOR SMART CONTRACT IN BLOCKCHAIN, AND ELECTRONIC DEVICE

机译:区块链中智能合约的执行方法和装置,以及电子设备

摘要

An execution method and apparatus for a smart contract in a blockchain, and an electronic device. The method comprises: receiving a first transaction submitted by a user, wherein the first transaction carries a first contract address of a logic contract needing to be called for service execution (310); in response to the first transaction, calling the logic contract corresponding to the first contract address, and acquiring a service logic maintained in a contract account corresponding to the logic contract (320); determining a field name of status data which is lacking in execution of the service logic (330); calling a routing contract of a blockchain, and querying a second contract address mapped from the first contract address in a mapping table maintained in a contract account corresponding to the routing contract (340); calling a data contract corresponding to the second contract address, and acquiring status data of the field name maintained in a contract account corresponding to the data contract (350); and supplementing the status data, which is lacking in the service logic, with the status data, so as to execute the service logic (360).
机译:一种区块链中智能合约的执行方法和装置,以及一种电子设备。该方法包括:接收由用户提交的第一事务,其中第一事务携带需要被调用以执行服务的逻辑契约的第一契约地址(310);响应于第一事务,调用与第一合约地址对应的逻辑合约,并获取在与逻辑合约对应的合约账户中维护的服务逻辑(320);确定缺少服务逻辑执行的状态数据的字段名(330);调用区块链的路由合约,并在对应于路由合约的合约账户中维护的映射表中查询从第一合约地址映射的第二合约地址(340);调用与第二合同地址对应的数据合同,获取在与数据合同对应的合同账户中维护的字段名的状态数据(350);以及用状态数据补充服务逻辑中缺少的状态数据,以执行服务逻辑(360)。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号