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

Intelligent contract triggering method and device, apparatus and storage medium

A smart contract and setting operation technology, applied in the blockchain field, can solve problems such as high resource consumption and heavy workload

Active Publication Date: 2018-12-18
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF4 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Obviously, finding smart contracts that require follow-up operations by traversing historical blocks through block generation nodes requires a lot of work and consumes too many resources, and it is very likely that after traversal, there is no smart contract that requires the current execution of specified operations

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
  • Intelligent contract triggering method and device, apparatus and storage medium
  • Intelligent contract triggering method and device, apparatus and storage medium
  • Intelligent contract triggering method and device, apparatus and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0034] figure 1 This is a flow chart of a method for triggering a smart contract provided in the first embodiment of the present invention. This embodiment is applicable to the case where the execution of the setting operation specified by the smart contract in the blockchain is triggered in the blockchain network. The blockchain network can It is a public chain, a consortium chain, or a private chain. The blockchain network usually includes multiple nodes. The nodes will obtain the right to generate blocks based on the consensus mechanism and become the block generating nodes. The method can be executed by a smart contract triggering device, which can be composed of hardware and / or software, and can generally be integrated in a device that carries a block generation node. The device that carries the block generation node can be an electronic device such as a server, a mobile terminal, or a server cluster. Such as figure 1 As shown, the method is applied to the block generation...

Embodiment 2

[0061] figure 2 This is a flowchart of a method for triggering a smart contract provided in the second embodiment of the present invention. This embodiment is applicable to the case where the execution of the setting operation specified by the smart contract in the blockchain is triggered in the blockchain network. The blockchain network can It is a public chain, a consortium chain, or a private chain. The blockchain network usually includes multiple nodes. The nodes will obtain the right to generate blocks based on the consensus mechanism and become the block generating nodes. The method can be executed by a smart contract triggering device, which can be composed of hardware and / or software, and can generally be integrated in a device that carries a block generation node. The device that carries the block generation node can be an electronic device such as a server, a mobile terminal, or a server cluster. Such as figure 2 As shown, the method is applied to the block generati...

Embodiment 3

[0094] Figure 4 This is a schematic structural diagram of a smart contract triggering device provided in the third embodiment of the present invention. Such as Figure 4 As shown, the device includes: a demand information determination module 510, a monitoring task creation module 520, and a monitoring information generation module 530.

[0095] The demand information determining module 510 is configured to run the smart contract in the received transaction request, and determine whether the smart contract contains demand information for performing a set operation when the first set condition is met;

[0096] The monitoring task creation module 520 is used to create a monitoring task according to the demand information when the demand information is determined to be included;

[0097] The monitoring information generation module 530 is used to generate monitoring information through monitoring tasks, where the monitoring information is used to trigger subsequent block generation nod...

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

The embodiment of the invention discloses an intelligent contract triggering method and device, an apparatus and a storage medium. The method is applied to a block generation node. The method comprises the following steps: running an intelligent contract in the received transaction request, determining whether the intelligent contract contains demand information for executing a setting operation when a first setting condition is satisfied, and determining whether the intelligent contract contains requirement information for executing a setting operation when the first setting condition is satisfied; when it is determined that the requirement information is included, creating a monitoring task according to the requirement information; generating monitoring information via the monitoring task, wherein the monitoring information is used for triggering a subsequent block generation node to execute the setting operation, or judging whether the first setting condition is satisfied at presentand determining whether to execute the setting operation according to the judging result. The intelligent contract triggering method provided by the embodiment of the invention can reduce the consumption of the network resources of the block chain and reduce the workload of the node without the block generating node traversing the historical block to find out the intelligent contract with the subsequent operation execution requirement.

Description

Technical field [0001] The embodiments of the present invention relate to the field of blockchain technology, and in particular, to a smart contract triggering method, device, equipment, and storage medium. Background technique [0002] In a blockchain network, a transaction request initiated by a certain node can include a smart contract, and the smart contract can specify that a certain operation is performed when certain conditions are subsequently met. This condition can be: the block chain reaches a certain block height, the system time reaches a certain point in time, a certain transaction is performed, a node performs a certain operation, and so on. [0003] The smart contract is included in the transaction data obtained by the block generation node after processing the above transaction request. After the block generation node generates a block containing the transaction data, the block is broadcasted, and the area where the block is received The block chain network node d...

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 Applications(China)
IPC IPC(8): G06F21/50G06Q40/04
CPCG06F21/50G06Q40/04
Inventor 肖伟
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD