CN112036878A - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN112036878A
CN112036878A CN202010883757.5A CN202010883757A CN112036878A CN 112036878 A CN112036878 A CN 112036878A CN 202010883757 A CN202010883757 A CN 202010883757A CN 112036878 A CN112036878 A CN 112036878A
Authority
CN
China
Prior art keywords
transaction
data
node
transaction data
confirmation information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010883757.5A
Other languages
Chinese (zh)
Other versions
CN112036878B (en
Inventor
冯世伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202010883757.5A priority Critical patent/CN112036878B/en
Publication of CN112036878A publication Critical patent/CN112036878A/en
Priority to PCT/CN2021/097308 priority patent/WO2022041902A1/en
Application granted granted Critical
Publication of CN112036878B publication Critical patent/CN112036878B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Databases & Information Systems (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The embodiment of the application discloses a data processing method and a data processing device, and the method is suitable for a block chain. The method comprises the following steps: when the first transaction node determines that the transaction confirmation information of the first transaction data is illegal transaction confirmation information, a transaction verification request for the first transaction data may be sent to the arbitration node. When the arbitration node determines that the first transaction data is legal transaction data, first transaction confirmation information of the first transaction data can be sent to the first transaction node. The first transaction node may broadcast the first transaction data and the first transaction confirmation information in the blockchain system by receiving the first transaction confirmation information. When it is determined that each consensus node in the blockchain system agrees on the first transaction data, a transaction block including the first transaction is added to the blockchain. By adopting the embodiment of the application, the transaction data processing efficiency can be improved, and the block chain resources are saved.

Description

Data processing method and device
Technical Field
The present application relates to the field of block chaining technologies, and in particular, to a data processing method and apparatus.
Background
In the existing blockchain verification mechanism, before each transaction data is written into the blockchain, the transaction data can be written into the blockchain after verification of all or most of nodes in the blockchain is passed. However, in the case of multiple nodes participating in the block chain, each transaction data needs to take a certain amount of time. For two nodes with a large number of transactions between the nodes, each transaction needs to be verified by a plurality of nodes, so that the processing efficiency of transaction data is greatly reduced, and block chain resources are wasted.
Disclosure of Invention
The embodiment of the application provides a data processing method and device, which can improve transaction data processing efficiency and save block chain resources.
In a first aspect, an embodiment of the present application provides a data processing method, where the method includes:
the method comprises the steps that a first trading node obtains a plurality of trading data with a second trading node within a first preset time period, and the second trading node confirms trading information of each trading data in the plurality of trading data;
the first transaction node verifies the legality of the transaction confirmation information of each transaction data according to each transaction data, and when the transaction confirmation information of the first transaction data is determined to be illegal transaction confirmation information, a transaction verification request for the first transaction data is sent to the arbitration node;
the arbitration node receives the transaction verification request, acquires transaction contract data corresponding to the transaction contract identification from a block chain according to the transaction contract identification included in the transaction verification request, determines the legality of the first transaction data according to the transaction contract data, and sends first transaction confirmation information of the first transaction data to the first transaction node when the first transaction data is determined to be legal transaction data;
the first transaction node receives the first transaction confirmation information, and broadcasts the first transaction data and the first transaction confirmation information in a blockchain system so that all the consensus nodes in the blockchain system check the first transaction data to generate a check result;
when the first transaction node determines that the consensus nodes agree on the first transaction data according to the received check result sent by the consensus nodes, adding a transaction block including the first transaction to a block chain.
With reference to the first aspect, in one possible implementation, the method further includes:
when the first transaction node determines that the transaction confirmation information of each transaction data in the multiple transaction data is legal transaction confirmation information, the first transaction node determines second transaction data with the latest transaction generation time from the multiple transaction data, and broadcasts the second transaction data and the transaction confirmation information of the second transaction data by the second transaction node in the blockchain system, so that each common identification node in the blockchain system verifies the second transaction;
and when the first transaction node determines that the second transaction data is agreed by the consensus nodes according to the received check result of the second transaction data sent by the consensus nodes, adding a transaction block comprising the second transaction data to a block chain.
With reference to the first aspect, in a possible implementation manner, before the first transaction node acquires multiple pieces of transaction data between the first transaction node and the second transaction node within a first preset time period, the method further includes:
and the first trading node determines the trading node with the largest trading quantity with the first trading node from all the trading nodes as a second trading node according to the trading quantity between the first trading node and each trading node within a second preset time period.
With reference to the first aspect, in a possible implementation manner, each transaction data includes a transaction generation time, and the transaction confirmation information of each transaction data includes a transaction digital signature of each transaction data by the second transaction node; the first transaction node verifies the validity of the transaction confirmation information of each transaction data according to each transaction data, and the verification comprises the following steps:
the first transaction node acquires a node public key of the second transaction node from the block chain, and decrypts the transaction digital signature of each transaction datum in sequence based on the node public key according to the sequence of the transaction generation time from morning to evening to obtain first summary information;
the first transaction node respectively performs hash operation on each transaction data to obtain second summary information corresponding to each transaction data;
when first transaction summary information corresponding to first transaction data is different from second summary information corresponding to the first transaction data, the first transaction node determines that the transaction confirmation information of the first transaction data is illegal transaction confirmation information.
With reference to the first aspect, in a possible implementation manner, before the sending, to the arbitration node, the transaction verification request for the first transaction data, the method further includes:
the first transaction node suspends the validity verification of the transaction confirmation information of each transaction data after the first transaction data, and broadcasts third transaction data and the transaction confirmation information of the second transaction node on the third transaction data in the blockchain system so that each consensus node in the blockchain system verifies the third transaction, wherein the third transaction data is the transaction data of which the transaction generation time is earlier than that of the first transaction data and the transaction generation time difference with the transaction generation time of the first transaction data is the minimum;
and when the first transaction node determines that the common identification nodes agree with the third transaction data according to the received checking result of the third transaction data sent by the common identification nodes, adding a transaction block comprising the third transaction data to a block chain.
With reference to the first aspect, in one possible implementation, after the adding the transaction block including the first transaction to the blockchain, the method further includes:
the first transaction node continues to verify the legality of the transaction confirmation information of each transaction data after the first transaction data, when the transaction confirmation information of each transaction data after the first transaction data is determined to be legal transaction confirmation information, fourth transaction data with the latest transaction generation time are determined from each transaction data after the first transaction data, the fourth transaction data and the second transaction node broadcast the transaction confirmation information of the fourth transaction data in a block chain system, and a transaction block comprising the fourth transaction data is added to the block chain.
With reference to the first aspect, in one possible implementation, the determining the validity of the first transaction data according to the transaction contract data includes:
when the arbitration node determines that the first transaction data meets contract conditions in the transaction contract data, the arbitration node forwards the transaction verification request to each arbitration auxiliary node associated with the arbitration node, so that each arbitration auxiliary node obtains the transaction contract data corresponding to the transaction contract identifier from a block chain according to the transaction contract identifier included in the transaction verification request, verifies the validity of the first transaction data according to the transaction contract data, and sends a verification result of the first transaction data to the arbitration node;
and the arbitration node receives each verification result sent by each arbitration auxiliary node, and when all the verification results sent by each arbitration auxiliary node are confirmed to be passed, the arbitration node confirms that the first transaction data are legal transaction data.
In a second aspect, an embodiment of the present application provides a data processing method, where the method includes:
the method comprises the steps that a first trading node obtains a plurality of trading data with a second trading node within a first preset time period, and the second trading node confirms trading information of each trading data in the plurality of trading data;
the first transaction node verifies the legality of the transaction confirmation information of each transaction data according to each transaction data, when the transaction confirmation information of the first transaction data is determined to be illegal transaction confirmation information, a transaction verification request for the first transaction data is sent to an arbitration node, so that the arbitration node obtains the transaction contract data corresponding to the transaction contract identification from a block chain by receiving the transaction verification request according to the transaction contract identification included in the transaction verification request, the legality of the first transaction data is determined according to the transaction contract data, and when the first transaction data is determined to be legal transaction data, the first transaction confirmation information for the first transaction data is sent to the first transaction node;
the first transaction node receives the first transaction confirmation information, and broadcasts the first transaction data and the first transaction confirmation information in a blockchain system so that all the consensus nodes in the blockchain system check the first transaction data to generate a check result;
when the first transaction node determines that the consensus nodes agree on the first transaction data according to the received check result sent by the consensus nodes, adding a transaction block including the first transaction to a block chain.
In a third aspect, an embodiment of the present application provides a data processing method, including:
the arbitration node receives the transaction verification request;
the arbitration node acquires trade contract data corresponding to the trade contract identification from a block chain according to the trade contract identification included in the trade verification request;
and the arbitration node determines the legality of the first transaction data according to the transaction contract data, and sends first transaction confirmation information of the first transaction data to the first transaction node when the first transaction data is determined to be legal transaction data.
In a fourth aspect, an embodiment of the present application provides a data processing apparatus, including:
the transaction data acquisition module is used for acquiring a plurality of transaction data between the transaction data acquisition module and a second transaction node within a first preset time period and transaction confirmation information of each transaction data in the plurality of transaction data by the second transaction node;
the processing module is used for verifying the validity of the transaction confirmation information of each transaction data according to each transaction data;
the receiving and sending module is used for sending a transaction verification request for the first transaction data to an arbitration node when the transaction confirmation information of the first transaction data is determined to be illegal transaction confirmation information, so that the arbitration node obtains the transaction contract data corresponding to the transaction contract identification from a block chain by receiving the transaction verification request according to the transaction contract identification included in the transaction verification request, determines the legality of the first transaction data according to the transaction contract data, and sends the first transaction confirmation information for the first transaction data to the receiving and sending module when the first transaction data is determined to be legal transaction data;
the transceiver module is further configured to receive the first transaction confirmation information, and broadcast the first transaction data and the first transaction confirmation information in a blockchain system, so that each consensus node in the blockchain system checks the first transaction data to generate a check result;
and the block uplink module is used for adding a transaction block comprising the first transaction to a block chain when the fact that the common identification nodes achieve common identification on the first transaction data is determined according to the received check result sent by the common identification nodes.
In a fifth aspect, an embodiment of the present application provides a data processing apparatus, including:
the receiving and sending module is used for receiving the transaction verification request;
the processing module is used for acquiring trade contract data corresponding to the trade contract identification from the block chain according to the trade contract identification included in the trade verification request;
the processing module is further used for determining the legality of the first transaction data according to the transaction contract data;
the transceiver module is further configured to send first transaction confirmation information for the first transaction data to the first transaction node when it is determined that the first transaction data is legal transaction data.
In a sixth aspect, an embodiment of the present application provides a terminal device, where the terminal device includes a processor and a memory, and the processor and the memory are connected to each other. The memory is used for storing a computer program supporting the terminal device to execute the method provided by the second aspect or the third aspect, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the method provided by the second aspect or the third aspect.
In a seventh aspect, the present application provides a computer-readable storage medium, which stores a computer program, where the computer program includes program instructions, and the program instructions, when executed by a processor, cause the processor to execute the method provided in the second aspect or the third aspect.
In an eighth aspect, an embodiment of the present application provides a data processing system, which includes a first transaction node and an arbitration node, wherein:
the first transaction node is used for acquiring multiple transaction data with a second transaction node within a first preset time period and transaction confirmation information of each transaction data in the multiple transaction data by the second transaction node;
the first transaction node is further used for verifying the validity of the transaction confirmation information of each transaction data according to each transaction data, and when the transaction confirmation information of the first transaction data is determined to be illegal transaction confirmation information, sending a transaction verification request for the first transaction data to the arbitration node;
the arbitration node is configured to receive the transaction verification request, obtain, according to a transaction contract identifier included in the transaction verification request, transaction contract data corresponding to the transaction contract identifier from a block chain, determine validity of the first transaction data according to the transaction contract data, and send, when it is determined that the first transaction data is valid transaction data, first transaction confirmation information for the first transaction data to the first transaction node;
the first transaction node is further configured to receive the first transaction confirmation information, and broadcast the first transaction data and the first transaction confirmation information in a blockchain system, so that each consensus node in the blockchain system checks the first transaction data to generate a check result;
when the first transaction node is further configured to determine that the consensus nodes agree on the first transaction data according to the received check result sent by the consensus nodes, adding a transaction block including the first transaction to a block chain.
In an embodiment of the present application, when the transaction confirmation information received by the first transaction node from the second transaction node for a certain transaction data is illegal transaction confirmation information, the first transaction node may send a transaction verification request including the transaction data to the arbitration node, so that the arbitration node verifies the transaction data. When the arbitration node determines that the transaction data is legal, transaction confirmation information (namely first transaction confirmation information) of the transaction data can be sent to the first transaction node, and then the first transaction node can send the transaction data and the first transaction confirmation information to the consensus nodes so that the consensus nodes verify the transaction data, and when the consensus nodes are determined to achieve consensus on the transaction data, the transaction data is linked up. The method and the device can accelerate the confirmation speed of the transaction data by introducing the arbitration node, so as to improve the transaction data processing efficiency, and meanwhile, the individual transaction data (for example, the transaction data corresponding to the illegal transaction confirmation information received from the second transaction node) is linked instead of each transaction data, so that the block chain resource is saved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a blockchain network topology according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow chart diagram of a data processing method provided in an embodiment of the present application;
fig. 3 is a schematic diagram of an application scenario of data processing provided in an embodiment of the present application;
FIG. 4 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application;
FIG. 5 is a schematic diagram of another structure of a data processing apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a block chain network topology according to an embodiment of the present disclosure. As shown in fig. 1, the blockchain network topology may include a transaction node, an arbitration assist node, a consensus node, and the like. For convenience of description, the transaction node, the arbitration auxiliary node, the consensus node, and the like may be collectively referred to as nodes in a blockchain network, where each node has a connection relationship with other nodes. As shown in fig. 1, the number of each type of node may include a plurality of nodes, for example, the transaction nodes may include transaction node 1 and transaction node 2, etc., without limitation. It is to be appreciated that any node in the blockchain network topology can be any form of computing device, such as a server, a terminal, etc., without limitation. It should be understood that the terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm top computer, a Mobile Internet Device (MID), etc., and is not limited thereto. Each node may receive input information during normal operation and maintain shared data within the blockchain network topology based on the received input information. In order to ensure information intercommunication in the blockchain network topology, information connection can exist between each node in the blockchain network topology, and information transmission can be carried out between the nodes through the information connection. For example, when any node in the blockchain network topology receives input information, other nodes in the blockchain network topology acquire the input information according to a consensus algorithm, and store the input information as data in shared data, so that the data stored on all nodes in the blockchain network topology are consistent.
According to the method in the embodiment of the application, the first transaction node acquires the multiple transaction data between the first transaction node and the second transaction node within the first preset time period, and the second transaction node verifies the validity of the transaction confirmation information of each transaction data in the multiple transaction data according to each transaction data. When the transaction confirmation information of the first transaction data is determined to be illegal transaction confirmation information, the first transaction node can send a transaction verification request for the first transaction data to the arbitration node. The arbitration node receives the transaction verification request, can acquire transaction contract data corresponding to the transaction contract identification from the block chain according to the transaction contract identification included in the transaction verification request, determines the legality of the first transaction data according to the transaction contract data, and sends first transaction confirmation information of the first transaction data to the first transaction node when the first transaction data is determined to be legal transaction data. The first transaction node receives the first transaction confirmation message, and broadcasts the first transaction data and the first transaction confirmation message in the blockchain system, so that each consensus node in the blockchain system checks the first transaction data to generate a check result. And when the first transaction node determines that the consensus nodes agree on the first transaction data according to the received check result sent by the consensus nodes, adding a transaction block comprising the first transaction to the block chain. By adopting the embodiment of the application, the transaction data processing efficiency can be improved, and the block chain resources are saved.
The method and the related apparatus provided by the embodiments of the present application will be described in detail with reference to fig. 2 to 6, respectively.
Referring to fig. 2, fig. 2 is a schematic flow chart of a data processing method according to an embodiment of the present disclosure. The method provided by the embodiment of the application can comprise the following steps S101 to S106:
s101, the first trading node obtains a plurality of trading data between the first trading node and the second trading node within a first preset time period, and the second trading node confirms trading information of each trading data in the plurality of trading data.
In some possible embodiments, the first transaction node may obtain a plurality of transaction data with the second transaction node within a first preset time period, and the second transaction node may obtain transaction confirmation information for each transaction data in the plurality of transaction data. The transactions between the first transaction node and the second transaction node are transactions in which the first transaction node and the second transaction node are both used as participants, such as transfer transactions, red packages and the like, and may be determined based on actual application scenarios, which is not limited herein. The specific value of the first preset time period may also be determined according to an actual application scenario, which is not limited herein.
Generally, the first trading node may determine, from each trading node, a trading node generating the largest trading amount with the first trading node as the second trading node according to the trading amount between the first trading node and each trading node within a second preset time period. That is to say, the first trading node may determine the trading node that trades frequently with itself from other trading nodes as the second trading node by monitoring the trading situation of other trading nodes in the blockchain system with itself within a period of time.
Optionally, in some possible embodiments, when the first trading node monitors that there are trades generated between the first trading node and a certain trading node within N consecutive unit times, the trading node may be determined as the second trading node. The unit time includes, but is not limited to, an hour, a day, a week, and the like, and may be determined based on an actual application scenario, which is not limited herein. N is an integer greater than 2, and a specific value of N may be determined based on an actual application scenario, which is not limited herein.
Optionally, in some possible embodiments, the first transaction node may further determine, as the second transaction node, a transaction node whose historical transaction amount is greater than a preset number threshold by acquiring historical transaction amounts between each other transaction node and the first transaction node in the blockchain system.
S102, the first transaction node verifies the legality of the transaction confirmation information of each transaction data according to each transaction data, and when the transaction confirmation information of the first transaction data is determined to be illegal transaction confirmation information, a transaction verification request for the first transaction data is sent to the arbitration node.
In some possible embodiments, the first transaction node may verify the validity of the transaction confirmation information of the second transaction node for each transaction data according to each transaction data. The transaction data may include data contents such as transaction generation time, transaction amount, transaction participants (i.e., the first transaction node and the second transaction node), transaction routing, and the like. The transaction confirmation information may include a transaction digital signature of the second transaction node on the transaction data, and the like. Therefore, when the first transaction node verifies the validity of the transaction confirmation information of each transaction datum according to each transaction datum, the first transaction node can obtain the node public key of the second transaction node from the block chain, and sequentially decrypt the transaction digital signature of each transaction datum based on the node public key according to the sequence of the transaction generation time from morning to evening to obtain the first summary information. Further, the first transaction node may further perform a hash operation on each transaction data to obtain second summary information corresponding to each transaction data. It should be understood that when the first transaction summary information corresponding to any transaction data (for convenience of description, the first transaction data is taken as an example for explanation) is the same as the second transaction summary information corresponding to the first transaction data, the transaction confirmation information of the first transaction data can be determined to be the legal transaction confirmation information. When the first transaction summary information corresponding to the first transaction data is different from the second transaction summary information corresponding to the first transaction data, the transaction confirmation information of the first transaction data can be determined to be illegal transaction confirmation information.
For example, taking a certain transfer transaction between a first transaction node and a second transaction node as an example, when the first transaction node initiates a transfer transaction to the second transaction node, the first transaction node may generate transaction data corresponding to the transfer transaction, and for convenience of description, the transfer transaction data may be referred to as transfer transaction data for short. The transfer transaction data can include transaction generation time, transfer amount, transfer party, transaction reason and other data contents. It will be understood that the fulfillment of any transaction necessarily requires both parties to approve the transfer transaction data without disagreement. Therefore, in order to ensure the normal operation of the transfer transaction, the first transaction node needs to send a transaction confirmation request including the transfer transaction data to the second transaction node, so that the second transaction node generates transaction confirmation information for the transfer transaction according to the transaction confirmation request to return to the first transaction node.
Generally speaking, after the second node transaction node receives the transaction confirmation request, if the transfer transaction data included in the transaction confirmation request is determined to be correct, the transaction confirmation information of the transfer transaction data can be sent to the first transaction node. The transaction confirmation information may include a transaction digital signature of the second transaction node on the transaction data, and the like. Specifically, the second transaction node may perform a hash operation on the confirmed error-free transfer transaction data based on a hash algorithm to obtain corresponding summary information. And then encrypting the generated summary information by using a node private key of a second transaction node to obtain a transaction digital signature. The second transaction node may then send the transaction confirmation information including the transaction digital signature to the first transaction node. After the first transaction node receives the transaction confirmation information sent by the second transaction node, the first transaction node may obtain a node public key of the second transaction node from the blockchain, and decrypt the transaction digital signature included in the transaction confirmation information based on the node public key of the second transaction node to obtain decrypted summary information (for convenience of description, the first summary information is taken as an example for explanation), and meanwhile, the first transaction node may perform hash operation on the transfer transaction data to obtain the summary information corresponding to the transfer transaction data (for convenience of description, the second summary information is taken as an example for explanation). And comparing and analyzing the first summary information and the second summary information to determine the validity of the transaction confirmation information. Generally speaking, when the first summary information is the same as the second summary information, the transaction confirmation information can be determined to be valid transaction confirmation information, that is, when the first transaction node determines that the transaction confirmation information is the valid transaction confirmation information, it indicates that the second transaction node does not disagree with the account transfer transaction data confirmation, and therefore, the transaction can be normally performed. When the first summary and the second summary information are different, the transaction confirmation information may be determined to be illegal transaction confirmation information. Generally, when the transaction confirmation information is determined to be illegal transaction confirmation information, it may be determined that a default condition exists at the second transaction node. Or, when the first transaction node sends the transaction confirmation request to the second transaction node for multiple times, and the transaction confirmation information returned by the second transaction node based on the transaction confirmation request sent each time is illegal transaction confirmation information, it may be determined that the second transaction node has a default condition. Or, when the transaction digital signature cannot be decrypted based on the node public key of the second transaction node, the transaction confirmation information may also be determined to be illegal transaction confirmation information. Or, when the first transaction node does not receive the transaction confirmation information sent by the second transaction node after time out, it may also be determined that the second transaction node has a default condition.
In some possible embodiments, the first transaction node may apply for intervention by the arbitration node when the transaction confirmation information of the first transaction data is determined to be illegal transaction confirmation information. That is, when the transaction confirmation information of the first transaction data is determined to be illegal transaction confirmation information, the first transaction node may send a transaction verification request for the first transaction data to the arbitration node.
Optionally, in some possible embodiments, when the first transaction node determines that the transaction confirmation information of the first transaction data is illegal transaction confirmation information, the first transaction node may suspend validity verification of the transaction confirmation information of each transaction data after the first transaction data, and broadcast the third transaction data and the transaction confirmation information of the second transaction node to the third transaction data in the blockchain system so that each consensus node in the blockchain system verifies the third transaction, where the third transaction data is the transaction data whose transaction generation time is earlier than the first transaction data and whose transaction generation time difference with the transaction generation time of the first transaction data is the smallest. It is understood that when the first transaction node determines that the respective consensus nodes agree on the third transaction data according to the received check result of the third transaction data sent by the respective consensus nodes, the transaction block including the third transaction data is added to the blockchain. That is, when the first transaction node determines that the transaction confirmation information of the first transaction data is illegal transaction confirmation information, the first transaction node may suspend validity verification of the transaction confirmation information of each other transaction data whose subsequent transaction generation time is later than that of the first transaction data, so as to save computing resources. Meanwhile, the first transaction node may send a transaction data (for convenience of description, referred to as a third transaction data for short) that is closest to the transaction generation time of the first transaction data and is located before the first transaction data to each consensus node in the blockchain system for verification, and link the third transaction data when it is determined that each consensus node agrees with the third transaction data.
For example, please refer to fig. 3, fig. 3 is a schematic diagram of an application scenario of data processing according to an embodiment of the present application. As shown in fig. 3, a total of 1000 transaction data are included in the first preset time period, wherein the transaction data can be respectively recorded as transaction 1, transaction 2, transaction 3, … …, transaction 399, transaction 400, transaction 401, … …, transaction 999 and transaction 1000 according to the sequence of the transaction generation time. In order to ensure normal transaction, the second transaction node needs to perform transaction confirmation on each transaction datum. When the first transaction node verifies the validity of the transaction confirmation information of each transaction datum in sequence according to the transaction generation time, when the 400 th transaction is verified, namely the transaction 400, the transaction confirmation information of the transaction 400 is found to be illegal transaction confirmation information, therefore, the first transaction node terminates the validity verification of the transaction confirmation information of the subsequent transactions 401, 402, … …, 999 and 1000, and simultaneously, the first transaction node can broadcast the transaction confirmation information of the transaction 399 and the transaction 399 in the block chain system, so that the consensus nodes in the block chain system can verify the transaction validity of the transaction 399, and when the consensus nodes achieve consensus, the transaction 399 is added to the block chain.
S103, the arbitration node receives the transaction verification request, acquires transaction contract data corresponding to the transaction contract identification from the block chain according to the transaction contract identification included in the transaction verification request, determines the legality of the first transaction data according to the transaction contract data, and sends first transaction confirmation information of the first transaction data to the first transaction node when the first transaction data is determined to be legal transaction data.
In some possible embodiments, the arbitration node may obtain, by receiving the transaction verification request, transaction contract data corresponding to the transaction contract identifier from the blockchain according to the transaction contract identifier included in the transaction verification request, and determine validity of the first transaction data according to the transaction contract data. It should be understood that the transaction contract data is contract data which is signed by the first transaction node and the second transaction node in advance and uploaded to the block chain, and the transaction contract data comprises transaction detail information of each transaction which is agreed in advance.
Specifically, the arbitration node may confirm whether the first transaction data is normal by: and acquiring trading contract data corresponding to the trading contract identification from the block chain according to the trading contract identification included in the trading verification request, and judging whether the first trading data is normal or not by verifying whether the data content included in the first trading data is matched with the corresponding data content in the trading contract data or not, namely whether contract conditions are met or not. For example, the arbitration node may verify whether the accounts of both transaction parties are legal, whether the balance of the transferred account supports the transfer amount, and the like, and the specific verification manner may be determined based on an actual application scenario, which is not limited herein.
Optionally, in some possible embodiments, when the arbitration node determines that the first transaction data meets the contract condition in the transaction contract data, in order to make the judgment of the arbitration node more confident, the arbitration node may further forward the transaction verification request to each arbitration auxiliary node associated with the arbitration node, so that each arbitration auxiliary node obtains the transaction contract data corresponding to the transaction contract identifier from the block chain according to the transaction contract identifier included in the transaction verification request, so as to check the validity of the first transaction data according to the transaction contract data, and finally return the generated check result to the arbitration node. The arbitration node receives each verification result sent by each arbitration auxiliary node, and when all the verification results sent by each arbitration auxiliary node are determined to be passed, the arbitration node can finally determine that the first transaction data are legal transaction data.
In some possible embodiments, when the arbitration node determines that the first transaction data is valid transaction data, the arbitration node may send first transaction confirmation information for the first transaction data to the first transaction node. That is, the arbitration node is a node corresponding to a mechanism having public trust, and a transaction confirmed by the arbitration node can be determined as valid transaction data. When the arbitration node determines that the first transaction data is abnormal transaction or illegal transaction data, the transaction verification request of the first transaction node can be rejected or refused.
S104, the first transaction node receives the first transaction confirmation information, and broadcasts the first transaction data and the first transaction confirmation information in the blockchain system so that all the consensus nodes in the blockchain system check the first transaction data to generate a check result.
In some possible embodiments, the first transaction node may broadcast the first transaction data and the first transaction confirmation information in the blockchain system by receiving the first transaction confirmation information, so that each consensus node in the blockchain system checks the first transaction data to generate a check result. That is, when a breach condition exists at the second transaction node, the transaction data validated by the arbitration node may continue to advance.
And S105, when the first transaction node determines that the consensus nodes agree with the first transaction data according to the received check result sent by the consensus nodes, adding a transaction block comprising the first transaction to the block chain.
In some possible embodiments, when the first transaction node determines that the consensus nodes agree on the first transaction data according to the received check result sent by the consensus nodes, the transaction block including the first transaction may be added to the block chain. Specifically, when the check passing proportion in the received check result returned by each consensus node is not less than the preset passing proportion, it can be determined that each consensus node agrees with the first transaction data. For example, when more than 51% of the common nodes in the blockchain system pass the check result, it can be determined that each common node agrees with the first transaction data. Further, a transaction block including the first transaction data may be added to the blockchain.
In some possible embodiments, after adding the transaction block including the first transaction to the blockchain, the first transaction node may continue to validate the transaction confirmation information of each transaction data following the first transaction data, when it is determined that the transaction confirmation information of each transaction data following the first transaction data is all valid transaction confirmation information, determine fourth transaction data with the latest transaction generation time from each transaction data following the first transaction data, and broadcast the fourth transaction data and the transaction confirmation information of the second transaction node to the blockchain system to add the transaction block including the fourth transaction data to the blockchain.
Optionally, in some possible embodiments, the transaction confirmation information of all transaction data in the first preset time period may be obtained at intervals of a first preset time period for validity verification, when the first transaction node determines that the transaction confirmation information of each transaction data in the multiple transaction data in the first preset time period is valid transaction confirmation information, the first transaction node determines the second transaction data with the latest transaction generation time from the multiple transaction data, and broadcasts the second transaction data and the transaction confirmation information of the second transaction data in the blockchain system, so that each consensus node in the blockchain system verifies the second transaction. When the first transaction node determines that the consensus nodes agree with the second transaction data according to the received check result of the second transaction data sent by the consensus nodes, the transaction blocks containing the second transaction data are added to the block chain. That is, when the transaction confirmation information of each transaction data in the first preset time period is the legal transaction confirmation information, the last transaction (i.e., the transaction data with the latest transaction generation time) in the transaction data can be sent to the consensus node in the blockchain network to perform consensus on the transaction. And linking the last transaction within the first predetermined time period when the consensus is achieved. Or when receiving a transaction termination message sent by the first transaction node or the second transaction node, sending the last transaction before the transaction termination message is received to a consensus node in the blockchain network for verification, and after the verification is passed, linking the last transaction. For example, in the process of daily contract-based transactions of A, B, the last transaction is the settlement transaction of A, B, and all the previous transactions are in the form of billing, so that the last transaction of both parties can be linked when A, B terminates the transaction.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present disclosure. The data processing device provided by the embodiment of the application comprises:
the transaction data acquisition module 21 is configured to acquire multiple transaction data between the second transaction node and the first transaction node within a first preset time period, and transaction confirmation information of each transaction data in the multiple transaction data by the second transaction node;
the processing module 22 is used for verifying the validity of the transaction confirmation information of each transaction data according to each transaction data;
the transceiving module 23 is configured to send a transaction verification request for the first transaction data to an arbitration node when it is determined that the transaction confirmation information of the first transaction data is illegal transaction confirmation information, so that the arbitration node obtains transaction contract data corresponding to a transaction contract identifier from a block chain by receiving the transaction verification request according to the transaction contract identifier included in the transaction verification request, and determines validity of the first transaction data according to the transaction contract data, and when it is determined that the first transaction data is legal transaction data, sends the first transaction confirmation information for the first transaction data to the transceiving module;
the transceiver module 23 is further configured to receive the first transaction confirmation information, and broadcast the first transaction data and the first transaction confirmation information in a blockchain system, so that each consensus node in the blockchain system checks the first transaction data to generate a check result;
the block uplink module 24 is configured to add a transaction block including the first transaction to a block chain when it is determined that the respective common node agrees with the first transaction data according to the received check result sent by the respective common node.
In some possible embodiments, the processing module 22 is further configured to determine, by the first transaction node, second transaction data with the latest transaction generation time from the multiple transaction data when it is determined that the transaction confirmation information of each transaction data in the multiple transaction data is legal transaction confirmation information, and the transceiver module 23 is further configured to broadcast the second transaction data and the transaction confirmation information of the second transaction node to the second transaction data in the blockchain system, so that each consensus node in the blockchain system verifies the second transaction;
the processing module 22 is further configured to add a transaction block including the second transaction data to a block chain when it is determined that the second transaction data is agreed by the consensus nodes according to the check result of the second transaction data sent by the consensus nodes and received by the transceiver module.
In some possible embodiments, the processing module 22 is further configured to:
and determining a transaction node with the largest transaction quantity with the first transaction node from the transaction nodes as a second transaction node according to the transaction quantity between the first transaction node and each transaction node within a second preset time period.
In some possible embodiments, the transaction generation time is included in each transaction data, and the transaction confirmation information of each transaction data includes the transaction digital signature of each transaction data by the second transaction node; the processing module 22 is further configured to:
acquiring a node public key of the second transaction node from the block chain, and sequentially decrypting the transaction digital signature of each transaction datum based on the node public key according to the sequence of the transaction generation time from morning to evening to obtain first summary information;
performing hash operation on each transaction data to obtain second summary information corresponding to each transaction data;
when first transaction summary information corresponding to first transaction data is different from second transaction summary information corresponding to the first transaction data, determining that the transaction confirmation information of the first transaction data is illegal transaction confirmation information.
In some possible embodiments, the processing module 22 is further configured to:
suspending validity verification of transaction confirmation information of each transaction data after the first transaction data, and broadcasting third transaction data and the transaction confirmation information of the second transaction node to the third transaction data in the blockchain system so that each consensus node in the blockchain system verifies the third transaction, wherein the third transaction data is the transaction data of which the transaction generation time is earlier than that of the first transaction data and the transaction generation time difference with the transaction generation time of the first transaction data is minimum;
when the consensus nodes agree on the third transaction data according to the received checking result of the third transaction data sent by the consensus nodes, adding transaction blocks including the third transaction data to a block chain.
In some possible embodiments, the processing module 22 is further configured to:
and continuing to verify the legality of the transaction confirmation information of each transaction datum after the first transaction datum, when the transaction confirmation information of each transaction datum after the first transaction datum is determined to be legal transaction confirmation information, determining fourth transaction datum with the latest transaction generation time from each transaction datum after the first transaction datum, and broadcasting the fourth transaction datum and the transaction confirmation information of the fourth transaction datum by the second transaction node in a block chain system so as to add a transaction block comprising the fourth transaction datum to a block chain.
Referring to fig. 5, fig. 5 is another schematic structural diagram of a data processing apparatus according to an embodiment of the present disclosure. The data processing device provided by the embodiment of the application comprises:
a transceiver module 31, configured to receive the transaction verification request;
the processing module 32 is configured to obtain, from the block chain, trade contract data corresponding to the trade contract identifier according to the trade contract identifier included in the trade verification request;
the processing module 32 is further configured to determine validity of the first transaction data according to the transaction contract data;
the transceiver module 31 is further configured to send first transaction confirmation information of the first transaction data to the first transaction node when it is determined that the first transaction data is legal transaction data.
In some possible embodiments, the transceiver module 31 is further configured to, when it is determined that the first transaction data meets a contract condition in the transaction contract data, forward the transaction verification request to each arbitration auxiliary node, so that each arbitration auxiliary node obtains, according to the transaction contract identifier included in the transaction verification request, transaction contract data corresponding to the transaction contract identifier from a block chain, checks validity of the first transaction data according to the transaction contract data, and sends a check result of the first transaction data to the transceiver module;
the transceiver module 31 is further configured to receive each check result sent by each arbitration auxiliary node;
the processing module 32 is further configured to determine that the first transaction data is valid transaction data when it is determined that all the verification results sent by the arbitration auxiliary nodes are passed through verification.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 6, the terminal device in this embodiment may include: one or more processors 401 and memory 402. The processor 401 and the memory 402 are connected by a bus 403. The memory 402 is used for storing a computer program comprising program instructions, and the processor 401 is used for executing the program instructions stored by the memory 402 for performing the method provided in the above-mentioned steps S101 to S106.
It should be appreciated that in some possible implementations, the processor 401 may be a Central Processing Unit (CPU), and the processor may be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The memory 402 may include both read-only memory and random access memory, and provides instructions and data to the processor 401. A portion of the memory 402 may also include non-volatile random access memory. For example, the memory 402 may also store device type information.
In a specific implementation, the terminal device may execute the implementation manners provided in the steps in fig. 2 through the built-in functional modules, which may specifically refer to the implementation manners provided in the steps, and are not described herein again.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, where the computer program includes program instructions, and when the program instructions are executed by a processor, the data processing method provided in each step in fig. 2 is implemented.
The computer readable storage medium may be the data processing apparatus provided in any of the foregoing embodiments or an internal storage unit of the terminal device, such as a hard disk or a memory of an electronic device. The computer readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, a Smart Memory Card (SMC), a Secure Digital (SD) card, a flash card (flash card), and the like, which are provided on the electronic device. Further, the computer readable storage medium may also include both an internal storage unit and an external storage device of the electronic device. The computer-readable storage medium is used for storing the computer program and other programs and data required by the electronic device. The computer readable storage medium may also be used to temporarily store data that has been output or is to be output.
The terms "first", "second", "third", "fourth", and the like in the claims and in the description and drawings of the present application are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments. The term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items. Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The method and the related apparatus provided by the embodiments of the present application are described with reference to the flowchart and/or the structural diagram of the method provided by the embodiments of the present application, and each flow and/or block of the flowchart and/or the structural diagram of the method, and the combination of the flow and/or block in the flowchart and/or the block diagram can be specifically implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block or blocks of the block diagram. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block or blocks of the block diagram. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block or blocks.

Claims (10)

1. A method of data processing, the method comprising:
the method comprises the steps that a first trading node obtains a plurality of trading data with a second trading node within a first preset time period, and the second trading node confirms trading information of each trading data in the plurality of trading data;
the first transaction node verifies the legality of the transaction confirmation information of each transaction data according to each transaction data, and when the transaction confirmation information of the first transaction data is determined to be illegal transaction confirmation information, a transaction verification request for the first transaction data is sent to the arbitration node;
the arbitration node receives the transaction verification request, acquires transaction contract data corresponding to the transaction contract identification from a block chain according to the transaction contract identification included in the transaction verification request, determines the legality of the first transaction data according to the transaction contract data, and sends first transaction confirmation information of the first transaction data to the first transaction node when the first transaction data is determined to be legal transaction data;
the first transaction node receives the first transaction confirmation information, and broadcasts the first transaction data and the first transaction confirmation information in a blockchain system so that all the consensus nodes in the blockchain system check the first transaction data to generate a check result;
when the first transaction node determines that the consensus nodes agree on the first transaction data according to the received check result sent by the consensus nodes, adding a transaction block including the first transaction to a block chain.
2. The method of claim 1, further comprising:
when the first transaction node determines that the transaction confirmation information of each transaction data in the multiple transaction data is legal transaction confirmation information, the first transaction node determines second transaction data with the latest transaction generation time from the multiple transaction data, and broadcasts the second transaction data and the transaction confirmation information of the second transaction data by the second transaction node in the blockchain system, so that each common identification node in the blockchain system verifies the second transaction;
and when the first transaction node determines that the second transaction data is agreed by the consensus nodes according to the received check result of the second transaction data sent by the consensus nodes, adding a transaction block comprising the second transaction data to a block chain.
3. The method according to claim 1 or 2, wherein before the first transaction node obtains the plurality of transaction data with the second transaction node within the first preset time period, the method further comprises:
and the first trading node determines the trading node with the largest trading quantity with the first trading node from all the trading nodes as a second trading node according to the trading quantity between the first trading node and each trading node within a second preset time period.
4. The method of claim 1, wherein each transaction data includes a transaction generation time, and the transaction confirmation information of each transaction data includes a transaction digital signature of the second transaction node for each transaction data; the first transaction node verifies the validity of the transaction confirmation information of each transaction data according to each transaction data, and the verification comprises the following steps:
the first transaction node acquires a node public key of the second transaction node from the block chain, and decrypts the transaction digital signature of each transaction datum in sequence based on the node public key according to the sequence of the transaction generation time from morning to evening to obtain first summary information;
the first transaction node respectively performs hash operation on each transaction data to obtain second summary information corresponding to each transaction data;
when first transaction summary information corresponding to first transaction data is different from second summary information corresponding to the first transaction data, the first transaction node determines that the transaction confirmation information of the first transaction data is illegal transaction confirmation information.
5. The method according to any of claims 1-4, wherein prior to sending a transaction verification request for the first transaction data to an arbitration node, the method further comprises:
the first transaction node suspends the validity verification of the transaction confirmation information of each transaction data after the first transaction data, and broadcasts third transaction data and the transaction confirmation information of the second transaction node on the third transaction data in the blockchain system so that each consensus node in the blockchain system verifies the third transaction, wherein the third transaction data is the transaction data of which the transaction generation time is earlier than that of the first transaction data and the transaction generation time difference with the transaction generation time of the first transaction data is the minimum;
and when the first transaction node determines that the common identification nodes agree with the third transaction data according to the received checking result of the third transaction data sent by the common identification nodes, adding a transaction block comprising the third transaction data to a block chain.
6. The method of claim 5, wherein after adding the transaction block including the first transaction to a blockchain, the method further comprises:
the first transaction node continues to verify the legality of the transaction confirmation information of each transaction data after the first transaction data, when the transaction confirmation information of each transaction data after the first transaction data is determined to be legal transaction confirmation information, fourth transaction data with the latest transaction generation time are determined from each transaction data after the first transaction data, the fourth transaction data and the second transaction node broadcast the transaction confirmation information of the fourth transaction data in a block chain system, and a transaction block comprising the fourth transaction data is added to the block chain.
7. The method of any of claims 1-4, wherein determining the validity of the first transaction data based on the transaction contract data comprises:
when the arbitration node determines that the first transaction data meets contract conditions in the transaction contract data, the arbitration node forwards the transaction verification request to each arbitration auxiliary node associated with the arbitration node, so that each arbitration auxiliary node obtains the transaction contract data corresponding to the transaction contract identifier from a block chain according to the transaction contract identifier included in the transaction verification request, verifies the validity of the first transaction data according to the transaction contract data, and sends a verification result of the first transaction data to the arbitration node;
and the arbitration node receives each verification result sent by each arbitration auxiliary node, and when all the verification results sent by each arbitration auxiliary node are confirmed to be passed, the arbitration node confirms that the first transaction data are legal transaction data.
8. A method of data processing, the method comprising:
the method comprises the steps that a first trading node obtains a plurality of trading data with a second trading node within a first preset time period, and the second trading node confirms trading information of each trading data in the plurality of trading data;
the first transaction node verifies the legality of the transaction confirmation information of each transaction data according to each transaction data, when the transaction confirmation information of the first transaction data is determined to be illegal transaction confirmation information, a transaction verification request for the first transaction data is sent to an arbitration node, so that the arbitration node obtains the transaction contract data corresponding to the transaction contract identification from a block chain by receiving the transaction verification request according to the transaction contract identification included in the transaction verification request, the legality of the first transaction data is determined according to the transaction contract data, and when the first transaction data is determined to be legal transaction data, the first transaction confirmation information for the first transaction data is sent to the first transaction node;
the first transaction node receives the first transaction confirmation information, and broadcasts the first transaction data and the first transaction confirmation information in a blockchain system so that all the consensus nodes in the blockchain system check the first transaction data to generate a check result;
when the first transaction node determines that the consensus nodes agree on the first transaction data according to the received check result sent by the consensus nodes, adding a transaction block including the first transaction to a block chain.
9. A method of data processing, the method comprising:
the arbitration node receives the transaction verification request;
the arbitration node acquires trade contract data corresponding to the trade contract identification from a block chain according to the trade contract identification included in the trade verification request;
and the arbitration node determines the legality of the first transaction data according to the transaction contract data, and sends first transaction confirmation information of the first transaction data to the first transaction node when the first transaction data is determined to be legal transaction data.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions which, when executed by a processor, cause the processor to carry out the method according to claim 8 or 9.
CN202010883757.5A 2020-08-28 2020-08-28 Data processing method and device Active CN112036878B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010883757.5A CN112036878B (en) 2020-08-28 2020-08-28 Data processing method and device
PCT/CN2021/097308 WO2022041902A1 (en) 2020-08-28 2021-05-31 Data processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010883757.5A CN112036878B (en) 2020-08-28 2020-08-28 Data processing method and device

Publications (2)

Publication Number Publication Date
CN112036878A true CN112036878A (en) 2020-12-04
CN112036878B CN112036878B (en) 2023-08-22

Family

ID=73587336

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010883757.5A Active CN112036878B (en) 2020-08-28 2020-08-28 Data processing method and device

Country Status (2)

Country Link
CN (1) CN112036878B (en)
WO (1) WO2022041902A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112801785A (en) * 2021-01-13 2021-05-14 中央财经大学 Fair data transaction method and device based on block chain intelligent contract
WO2022041902A1 (en) * 2020-08-28 2022-03-03 平安科技(深圳)有限公司 Data processing method and apparatus

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115840787B (en) * 2023-02-20 2023-05-02 塔比星信息技术(深圳)有限公司 Block chain-based supply chain data sharing method, device, equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109598616A (en) * 2018-12-09 2019-04-09 大连飞创信息技术有限公司 A method of introducing the block chain data-privacy protection of arbitration mechanism
CN110555774A (en) * 2019-09-10 2019-12-10 苏州阿尔山数字科技有限公司 Distributed consensus mechanism with arbitration
CN110570196A (en) * 2019-09-05 2019-12-13 腾讯科技(深圳)有限公司 Transaction data processing method and device, terminal equipment and storage medium
US20200118096A1 (en) * 2019-05-31 2020-04-16 Alibaba Group Holding Limited System and method for providing privacy and security protection in blockchain-based private transactions
CN111179087A (en) * 2019-12-31 2020-05-19 重庆邮电大学 Alliance chain consensus method based on grid arbitration

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111724150B (en) * 2017-03-28 2023-11-24 创新先进技术有限公司 Service request processing method and device
CN109872159B (en) * 2019-01-07 2021-04-06 必可嘉(武汉)科技有限公司 Block chain consensus method and architecture
CN110648204A (en) * 2019-09-20 2020-01-03 北京海益同展信息科技有限公司 Method and apparatus for arbitration
CN112036878B (en) * 2020-08-28 2023-08-22 平安科技(深圳)有限公司 Data processing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109598616A (en) * 2018-12-09 2019-04-09 大连飞创信息技术有限公司 A method of introducing the block chain data-privacy protection of arbitration mechanism
US20200118096A1 (en) * 2019-05-31 2020-04-16 Alibaba Group Holding Limited System and method for providing privacy and security protection in blockchain-based private transactions
CN110570196A (en) * 2019-09-05 2019-12-13 腾讯科技(深圳)有限公司 Transaction data processing method and device, terminal equipment and storage medium
CN110555774A (en) * 2019-09-10 2019-12-10 苏州阿尔山数字科技有限公司 Distributed consensus mechanism with arbitration
CN111179087A (en) * 2019-12-31 2020-05-19 重庆邮电大学 Alliance chain consensus method based on grid arbitration

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022041902A1 (en) * 2020-08-28 2022-03-03 平安科技(深圳)有限公司 Data processing method and apparatus
CN112801785A (en) * 2021-01-13 2021-05-14 中央财经大学 Fair data transaction method and device based on block chain intelligent contract
CN112801785B (en) * 2021-01-13 2023-10-20 中央财经大学 Fair data transaction method and device based on blockchain intelligent contract

Also Published As

Publication number Publication date
CN112036878B (en) 2023-08-22
WO2022041902A1 (en) 2022-03-03

Similar Documents

Publication Publication Date Title
CN112446785B (en) Cross-chain transaction method, system, device, equipment and storage medium
CN110570196B (en) Transaction data processing method, device, terminal equipment and storage medium
CN106101258B (en) Interface calling method, device and system of hybrid cloud
CN112036878B (en) Data processing method and device
CN114510743B (en) Data exchange method and device based on privacy computing platform and electronic equipment
CN111064583B (en) Threshold SM2 digital signature method and device, electronic equipment and storage medium
CN110517145B (en) Data transaction method based on multi-block chain and related equipment
CN110659905B (en) Transaction verification method, device, terminal equipment and storage medium
CN111369338A (en) Data processing method and device based on block chain
CN111241586B (en) Anonymous processing method and system for block link address, terminal and storage medium
CN111314309B (en) Data transmission method and device, electronic equipment and computer readable storage medium
CN112788555B (en) Cross-operator telephone charge transfer settlement method, device and computing equipment
CN111222989B (en) Transaction method of multi-channel blockchain, electronic equipment and storage medium
CN111369332A (en) Data processing method and device based on block chain
CN109325858B (en) Resource flow transaction method and device, computer equipment and computer readable medium
CN111259428A (en) Data processing method and device based on block chain, node equipment and storage medium
CN114092093B (en) Block chain transaction processing method and device, electronic equipment and readable medium
CN114022150B (en) Resource transfer method, device, electronic equipment and storage medium
CN113032478B (en) Block chain system and data uplink method, device, equipment and medium
CN110766407A (en) Transaction verification method, accounting node and medium based on block chain
CN111369355A (en) Transaction data processing method and device based on alliance chain
CN110585717A (en) Information processing method and device
CN114374554B (en) Block chain privacy protection method, electronic device and computer readable storage medium
CN110830449B (en) File processing method and device, electronic equipment and readable storage medium
CN117768104A (en) Secure transaction transmission method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant