Data processing method and device based on smart contract, equipment and storage medium

A smart contract and data processing technology, applied in the computer field, can solve problems such as inability to realize time dependence, and achieve the effect of improving processing accuracy and transaction processing efficiency

Active Publication Date: 2020-06-26
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF10 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the pre-execution mechanism, because the clocks of different nodes are inconsistent, and there are reasons such as network delays, it provides developers of smart contracts with the ability to obtain time, that is, it is impossible to implement smart contracts that depend on time

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
  • Data processing method and device based on smart contract, equipment and storage medium
  • Data processing method and device based on smart contract, equipment and storage medium
  • Data processing method and device based on smart contract, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0047] figure 1 It is a flow chart of the smart contract-based data processing method according to the first embodiment of the application. This embodiment can be applied to the situation of invoking time-dependent smart contracts and processing transaction requests based on the pre-execution mechanism. This method can be configured in the area The data processing device based on the smart contract of the endorsement node in the block chain network is executed, and the device is implemented in the form of software and / or hardware. Such as figure 1 As shown, the method specifically includes the following:

[0048] S110. In the process of invoking the smart contract, determine the current time of the endorsement according to the time of the previous block in the endorsed blockchain.

[0049] Based on the pre-execution mechanism, the blockchain network determines at least one endorsement node. For example, in Baidu Super Chain, only one endorsement node is determined in a sing...

no. 2 example

[0057] figure 2 It is a flow chart of the smart contract-based data processing method according to the second embodiment of the present application. On the basis of the above-mentioned first embodiment, this embodiment is further explained based on the smart contract of the pre-execution mechanism. refer to figure 2 , the method specifically includes the following:

[0058] S210. In the process of invoking the smart contract, determine the current time of the endorsement according to the time of the previous block in the endorsement blockchain.

[0059] In the embodiment of this application, optionally, the current time of endorsement is determined according to the time of the previous block in the endorsement blockchain, including:

[0060] Determine the current block time of the endorsed blockchain according to the time of the previous block in the endorsed blockchain and the block generation interval;

[0061] The current block time of the endorsement blockchain is use...

no. 3 example

[0071] image 3 It is a flow chart of the smart contract-based data processing method according to the third embodiment of the application. This embodiment can be applied to the situation of invoking time-dependent smart contracts and processing transaction requests based on the pre-execution mechanism. This method can be configured in the area The smart contract-based data processing device of other nodes in the block chain network is implemented, and the device is implemented in the form of software and / or hardware. Such as image 3 As shown, the method specifically includes the following:

[0072] S310. Receive the current transaction processing request and the endorsement processing result.

[0073] In the embodiment of the present application, the endorsement processing result is obtained by preprocessing the current transaction processing request by the endorsement node invoking the smart contract.

[0074] Specifically, the user node sends the current transaction pro...

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 a data processing method and device based on a smart contract, equipment and a storage medium, and relates to the technical field of block chains. According to the specific implementation scheme, in the process of calling the intelligent contract, the current endorsement time is determined according to the time of a previous block in an endorsement block chain; and the current transaction processing request is processed according to the endorsement current time to obtain an endorsement processing result, so that other nodes in the blockchain network process the current transaction processing request according to the endorsement processing result. According to the embodiment of the invention, in the process of calling the smart contract, the currenttime is determined according to the time of the previous block in the block chain, and the current transaction processing request is processed according to the current time, so that the time-dependent smart contract can be supported in the pre-execution mechanism.

Description

technical field [0001] The embodiment of the present application relates to the field of computer technology, especially to the field of blockchain technology, and specifically to a data processing method, device, electronic device, and storage medium based on smart contracts. Background technique [0002] Blockchain is a new application model of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. In the field of blockchain technology, smart contracts refer to computer programs that cannot be tampered with and are automatically executed. [0003] In some blockchain networks, such as Fabric and Baidu Super Chain, the smart contract is executed based on the pre-execution mechanism, that is, before the transaction processing request is packaged into the block, the transaction processing request is pre-executed through the endorsement node. The node processes the transaction processing request accor...

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): G06F16/27
CPCG06F16/27G06F21/64Y02D10/00G06F16/2471G06F16/2477G06F16/24565G06F16/2379G06F16/2365
Inventor 孙君意王玉操肖伟
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products