Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and apparatus for executing smart contracts

A smart contract and pre-execution technology, applied in the computer field, can solve the problems of difficult clock synchronization, difficult to control the synchronization of smart contracts, etc., to achieve the effect of ensuring synchronization

Active Publication Date: 2021-11-12
JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Since each node in the blockchain system has its own independent clock, it is difficult for each node to maintain clock synchronization
Therefore, it is difficult for the blockchain system itself to control the synchronization of smart contracts executed by each node

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and apparatus for executing smart contracts
  • Method and apparatus for executing smart contracts
  • Method and apparatus for executing smart contracts

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] The present disclosure will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain related inventions, rather than to limit the invention. It should also be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.

[0031] It should be noted that, in the case of no conflict, the embodiments in the present disclosure and the features in the embodiments can be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and embodiments.

[0032] figure 1 An exemplary architecture 100 is shown to which embodiments of the method for executing a smart contract or the apparatus for executing a smart contract of the present disclosure can be applied.

[0033] Such as figure 1 As shown, the system architectu...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

Embodiments of the present disclosure disclose methods and apparatuses for executing smart contracts. A specific implementation of the method includes: in response to determining that the preset execution time for executing the smart contract is reached, determining whether a pre-execution transaction for executing the smart contract sent by other nodes in the blockchain system where it is located has been received; In response to determining that no pre-execution transaction submitted by other nodes has been received, generate a pre-execution transaction corresponding to this node, and send the generated pre-execution transaction to the blockchain system; reach a consensus with other nodes on the pre-execution transaction corresponding to the smart contract ;According to the pre-execution transaction after the consensus, obtain and execute the smart contract. This embodiment realizes the timing execution of the smart contract by each node in the blockchain system based on the pre-executed transaction.

Description

technical field [0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to methods and devices for executing smart contracts. Background technique [0002] A smart contract is a computer protocol designed to communicate, verify or enforce contracts in an informational manner. Smart contracts allow for trusted transactions without third parties, which are traceable and irreversible. [0003] At present, many smart contracts usually need to be executed regularly. Since each node in the blockchain system has its own independent clock, it is difficult for each node to maintain clock synchronization. Therefore, it is difficult for the blockchain system itself to control the synchronization of each node's execution of smart contracts. [0004] Generally, the business system calls the blockchain system to execute the smart contract at the moment of execution of the smart contract, so as to ensure the synchronization of each node...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06Q20/38G06Q40/04G06F16/27
CPCG06Q20/3825G06Q40/04G06F16/27G06F16/178G06Q2220/00G06Q30/06H04L9/50H04L9/3236G06Q20/065G06Q20/401H04L2209/463H04L2209/56
Inventor 邵珠光
Owner JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD