WO2022041902A1 - Data processing method and apparatus - Google Patents

Data processing method and apparatus Download PDF

Info

Publication number
WO2022041902A1
WO2022041902A1 PCT/CN2021/097308 CN2021097308W WO2022041902A1 WO 2022041902 A1 WO2022041902 A1 WO 2022041902A1 CN 2021097308 W CN2021097308 W CN 2021097308W WO 2022041902 A1 WO2022041902 A1 WO 2022041902A1
Authority
WO
WIPO (PCT)
Prior art keywords
transaction
data
node
transaction data
confirmation information
Prior art date
Application number
PCT/CN2021/097308
Other languages
French (fr)
Chinese (zh)
Inventor
冯世伟
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2022041902A1 publication Critical patent/WO2022041902A1/en

Links

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

Definitions

  • the present application relates to the field of blockchain technology, and in particular, to a data processing method and device.
  • each transaction data before each transaction data is written into the blockchain, it needs to be verified by all or most of the nodes in the blockchain before the transaction can be written into the blockchain.
  • each transaction data takes a certain amount of time. For two nodes with a large number of transactions between nodes, since each transaction needs to be verified by multiple nodes, the processing efficiency of transaction data will be greatly reduced, and blockchain resources will be wasted.
  • Embodiments of the present application provide a data processing method and device, which can improve transaction data processing efficiency and save blockchain resources.
  • an embodiment of the present application provides a data processing method, the method includes: a first transaction node acquires multiple transaction data between a first preset time period and a second transaction node, and the second transaction The transaction confirmation information of each transaction data in the multiple transaction data by the node; the first transaction node verifies the legitimacy of the transaction confirmation information of each transaction data according to each transaction data, and when determining the transaction of the first transaction data
  • the confirmation information is illegal transaction confirmation information
  • the arbitration node receives the transaction verification request, and according to the transaction contract identifier included in the transaction verification request,
  • the transaction contract data corresponding to the transaction contract identifier is obtained from the blockchain, so as to determine the legitimacy of the first transaction data according to the transaction contract data.
  • the The arbitration node sends the first transaction confirmation information for the first transaction data to the first transaction node; the first transaction node receives the first transaction confirmation information, and combines the first transaction data with the all transaction data.
  • the first transaction confirmation information is broadcast in the blockchain system so that each consensus node in the blockchain system verifies the first transaction data to generate a verification result; when the first transaction node When it is determined that the consensus nodes reach a consensus on the first transaction data according to the received verification results sent by the consensus nodes, a transaction block including the first transaction is added to the blockchain.
  • an embodiment of the present application provides a data processing method, the method includes: a first transaction node obtains multiple transaction data between a first preset time period and a second transaction node, and the second transaction The transaction confirmation information of each transaction data in the multiple transaction data by the node; the first transaction node verifies the legitimacy of the transaction confirmation information of each transaction data according to each transaction data, and when determining the transaction of the first transaction data
  • the confirmation information is illegal transaction confirmation information
  • the contract identifier obtain the transaction contract data corresponding to the transaction contract identifier from the blockchain, and determine the legitimacy of the first transaction data according to the transaction contract data, when it is determined that the first transaction data is legal transaction data
  • send the first transaction confirmation information for the first transaction data to the first transaction node the first transaction node receives the first transaction confirmation information, and combines the first transaction data with the
  • the first transaction confirmation information is broadcast in the blockchain system so that each consensus node in the blockchain system verifies the first transaction data to generate a verification result; when the first transaction node according to When the received verification results sent by the consensus nodes determine that the consensus nodes reach a consensus on the first transaction data, a transaction block including the first transaction is added to the blockchain.
  • an embodiment of the present application provides a data processing method, the method comprising: an arbitration node receiving a transaction verification request for first transaction data; the arbitration node, according to a transaction contract identifier included in the transaction verification request, Obtain the transaction contract data corresponding to the transaction contract identifier from the blockchain; the arbitration node determines the legitimacy of the first transaction data according to the transaction contract data, and when determining that the first transaction data is legal transaction data At the time, the first transaction confirmation information for the first transaction data is sent to the first transaction node.
  • an embodiment of the present application provides a data processing device, the device comprising: a transaction data acquisition module configured to acquire multiple transaction data between a second transaction node within a first preset time period, and the The transaction confirmation information of each transaction data in the multiple transaction data by the second transaction node; the processing module is used to verify the legitimacy of the transaction confirmation information of each transaction data according to each transaction data; the transceiver module is used for when When it is determined that the transaction confirmation information of the first transaction data is illegal transaction confirmation information, send a transaction verification request for the first transaction data to the arbitration node, so that the arbitration node receives the transaction verification request, according to the For the transaction contract identifier included in the transaction verification request, obtain the transaction contract data corresponding to the transaction contract identifier from the blockchain, and determine the legitimacy of the first transaction data according to the transaction contract data.
  • the transceiver module When the transaction data is legal transaction data, send first transaction confirmation information for the first transaction data to the transceiver module; the transceiver module is further configured to receive the first transaction confirmation information, and send the first transaction confirmation information to the transceiver module.
  • the first transaction data and the first transaction confirmation information are broadcast in the blockchain system, so that each consensus node in the blockchain system verifies the first transaction data to generate a verification result;
  • the block chain module is configured to include the transaction block of the first transaction when it is determined that the consensus nodes have reached a consensus on the first transaction data according to the received verification results sent by the consensus nodes. added to the blockchain.
  • an embodiment of the present application provides a data processing device, the device comprising: a transceiver module for receiving a transaction verification request for first transaction data; a processing module for A transaction contract identifier, which obtains transaction contract data corresponding to the transaction contract identifier from the blockchain; the processing module is further configured to determine the legality of the first transaction data according to the transaction contract data; the transceiver module , and 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.
  • 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 to store a computer program, the computer program includes program instructions, and the processor is configured to call the above program instructions, and execute the following method: acquiring multiple transaction data between the second transaction node and the first preset time period , and the transaction confirmation information of each transaction data in the multiple transaction data by the second transaction node; verify the legitimacy of the transaction confirmation information of each transaction data according to each transaction data, when determining the validity of the first transaction data
  • the transaction confirmation information is illegal transaction confirmation information
  • a transaction verification request for the first transaction data is sent to the arbitration node, so that the arbitration node receives the transaction verification request according to the transaction verification request.
  • a transaction contract identifier obtain the transaction contract data corresponding to the transaction contract identifier from the blockchain, and determine the legitimacy of the first transaction data according to the transaction contract data, when it is determined that the first transaction data is a legal transaction data, send the first transaction confirmation information for the first transaction data to the first transaction node; receive the first transaction confirmation information, and store the first transaction data and the first transaction confirmation information in the area Broadcast in the blockchain system to enable each consensus node in the blockchain system to verify the first transaction data to generate a verification result; when the verification results sent by the consensus nodes are received according to the When it is determined that the consensus nodes reach a consensus on the first transaction data, a transaction block including the first transaction is added to the blockchain.
  • 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, the computer program includes program instructions, and the processor is configured to call the above program instructions, and execute the following method: receiving a transaction verification request for the first transaction data; and obtain the transaction contract data corresponding to the transaction contract identifier from the blockchain; determine the legitimacy of the first transaction data according to the transaction contract data, when it is determined that the first transaction data is a legal transaction When the data is received, the first transaction confirmation information for the first transaction data is sent to the first transaction node.
  • an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, the computer program includes program instructions, and the program instructions, when executed by a processor, cause the processor to execute The following method: obtain multiple transaction data with the second transaction node within the first preset time period, and the transaction confirmation information of the second transaction node for each transaction data in the multiple transaction data; The transaction data verifies the legitimacy of the transaction confirmation information of each transaction data, and when it is determined that the transaction confirmation information of the first transaction data is illegal transaction confirmation information, a transaction verification request for the first transaction data is sent to the arbitration node, in order to After receiving the transaction verification request, the arbitration node obtains the 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 according to the transaction contract data Determine the legitimacy of the first transaction data, when determining that the first transaction data is legal transaction data, send first transaction confirmation information for the first transaction data to the first transaction node; receive the first transaction data transaction
  • an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, the computer program includes program instructions, and the program instructions, when executed by a processor, cause the processor to execute The following method: receiving a transaction verification request for the first transaction data; obtaining transaction contract data corresponding to the transaction contract identifier from the blockchain according to the transaction contract identifier included in the transaction verification request; according to the transaction contract data The validity of the first transaction data is determined, and when it is determined that the first transaction data is legal transaction data, first transaction confirmation information for the first transaction data is sent to the first transaction node.
  • an embodiment of the present application provides a data processing system, the data processing system includes a first transaction node and an arbitration node, wherein: the first transaction node is used to The multiple transaction data between the two transaction nodes, and the transaction confirmation information of the second transaction node for each transaction data in the multiple transaction data; the first transaction node is also used to verify the data according to each transaction.
  • the validity of the transaction confirmation information of each transaction data when determining that the transaction confirmation information of the first transaction data is illegal transaction confirmation information, send a transaction verification request for the first transaction data to the arbitration node; the arbitration node is used to receive the transaction verification request, and obtain the transaction contract data corresponding to the transaction contract identifier from the blockchain according to the transaction contract identifier included in the transaction verification request, so as to determine the transaction contract data according to the transaction contract data.
  • the arbitration node when determining that the first transaction data is legal transaction data, sends first transaction confirmation information for the first transaction data to the first transaction node; the 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 the blockchain system, so that the blockchain system
  • Each consensus node of the node verifies the first transaction data to generate a verification result; as the first transaction node, it is also used to determine the consensus according to the received verification results sent by the consensus nodes
  • a transaction block including the first transaction is added to the blockchain.
  • FIG. 1 is a schematic structural diagram of a blockchain network topology structure provided by an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of a data processing method provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of an application scenario of data processing provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a data processing apparatus provided by an embodiment of the present application.
  • FIG. 5 is another schematic structural diagram of a data processing apparatus provided by an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
  • FIG. 1 is a schematic structural diagram of a blockchain network topology provided by an embodiment of the present application.
  • the blockchain network topology structure may include multi-party nodes or multiple types of nodes.
  • the blockchain network topology structure may include transaction nodes, arbitration nodes, arbitration auxiliary nodes, and consensus nodes.
  • transaction nodes, arbitration nodes, arbitration auxiliary nodes and consensus nodes can be collectively referred to as nodes in the blockchain network, wherein each node has a connection relationship with other nodes.
  • FIG. 1 is a schematic structural diagram of a blockchain network topology provided by an embodiment of the present application.
  • the blockchain network topology structure may include multi-party nodes or multiple types of nodes.
  • the blockchain network topology structure may include transaction nodes, arbitration nodes, arbitration auxiliary nodes, and consensus nodes.
  • the above-mentioned transaction nodes, arbitration nodes, arbitration auxiliary nodes and consensus nodes can be collectively referred to as nodes in the blockchain network, wherein each node has a connection relationship
  • the number of each type of nodes may include multiple, for example, transaction nodes may include transaction node 1 and transaction node 2, etc., which are not limited herein.
  • any node in the blockchain network topology can be any form of computing device, such as a server, a terminal, etc., which is not limited here.
  • a terminal includes but is not limited to a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a mobile internet device (mobile internet device, MID), etc., which is not limited herein.
  • Each node can receive input information during normal work and maintain shared data within the blockchain network topology based on the received input information.
  • each node in the blockchain network topology there can be information connections between each node in the blockchain network topology, and information can be transmitted between nodes through the above information connections.
  • information can be transmitted between nodes through the above information connections.
  • any node in the blockchain network topology receives input information
  • other nodes in the blockchain network topology structure obtain the input information according to the consensus algorithm, and store the input information as data in the shared data. , so that the data stored on all nodes in the blockchain network topology are consistent.
  • the first transaction node obtains multiple transaction data between the first transaction node and the second transaction node within the first preset time period, and the transaction data of each transaction data in the multiple transaction data by the second transaction node.
  • Confirmation information which can verify the legitimacy of the transaction confirmation information of each transaction data according to each transaction data.
  • the first transaction node may send a transaction verification request for the first transaction data to the arbitration node.
  • the arbitration node can obtain the 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 the legality of the first transaction data according to the transaction contract data. property, when it is determined that the first transaction data is legal transaction data, the first transaction confirmation information for the first transaction data is sent to the first transaction node.
  • the first transaction node can 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 can verify the first transaction data. Verify to generate verification results.
  • the transaction block including the first transaction is added to the blockchain.
  • FIG. 2 is a schematic flowchart of a data processing method provided by an embodiment of the present application.
  • the method provided by this embodiment of the present application may include the following steps S101 to S106.
  • the first transaction node acquires multiple transaction data with the second transaction node within the first preset time period, and transaction confirmation information of the second transaction node for each transaction data in the multiple transaction data.
  • the first transaction node may obtain multiple transaction data between the first transaction node and the second transaction node within the first preset time period, and the transaction data of each transaction data in the multiple transaction data by the second transaction node Confirm the information.
  • the transaction between the first transaction node and the second transaction node is a transaction in which both the first transaction node and the second transaction node are participants, such as transfer transactions, red envelopes, etc., which can be determined based on actual application scenarios.
  • the specific value of the first preset time period may also be determined according to an actual application scenario, which is not limited herein.
  • the first transaction node can determine the transaction node with the largest number of transactions with the first transaction node from the transaction nodes according to the number of transactions between the first transaction node and each transaction node within the second preset time period , as the second transaction node. That is to say, the first transaction node can monitor the transactions between other transaction nodes in the blockchain system with itself within a period of time, and then determine the transaction node that frequently trades with itself as the second transaction from the other transaction nodes. node.
  • the transaction node when the first transaction node monitors that there are transactions occurring between the first transaction node and a certain transaction node for N consecutive units of time, the transaction node may be determined as the transaction node.
  • the second transaction node The above-mentioned unit time includes but is not limited to one hour, one day, one week, etc., which may be determined based on actual application scenarios, and is not limited here.
  • N is an integer greater than 2, and the specific value of N can be determined based on the actual application scenario, which is not limited here.
  • the first transaction node can also obtain the historical transaction volume between other transaction nodes in the blockchain system and the first transaction node, and set the historical transaction volume to be greater than the preset number threshold.
  • the transaction node is determined as 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 when it is determined that the transaction confirmation information of the first transaction data is illegal transaction confirmation information, it sends the first transaction confirmation information to the arbitration node. Transaction verification request for data.
  • the first transaction node can verify the legitimacy of the transaction confirmation information of each transaction data by the second transaction node according to each transaction data.
  • the transaction data may include transaction generation time, transaction amount, transaction participants (ie, the first transaction node and the second transaction node), transaction reasons, and other data content.
  • the transaction confirmation information may include a transaction digital signature of the transaction data by the second transaction node, and the like.
  • the first transaction node when the first transaction node verifies the legitimacy of the transaction confirmation information of each transaction data according to each transaction data, the first transaction node can obtain the node public key of the second transaction node from the blockchain, and according to the transaction In the order of generation time from early to late, the transaction digital signature of each transaction data is decrypted in turn based on the node public key to obtain the first digest 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 is not difficult to understand that, when the first transaction summary information corresponding to any transaction data (for the convenience of description, the first transaction data is taken as an example for description) is the same as the second summary information corresponding to the first transaction data, it can be determined.
  • the transaction confirmation information of the first transaction data is legal transaction confirmation information. When the first transaction summary information corresponding to the first transaction data is different from the second summary information corresponding to the first transaction data, it may be determined that the transaction confirmation information of the first transaction data is illegal transaction confirmation information.
  • the first transaction node can generate a corresponding transfer transaction for the transfer transaction.
  • the transaction data may be referred to as transfer transaction data.
  • the transfer transaction data may include data content such as transaction generation time, transfer amount, transfer-in party, transfer-out party, and transaction reasons. It is not difficult to understand that the conclusion of any transaction must require both parties to the transaction to recognize and have no objection to the transfer transaction data.
  • 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 the transfer according to the transaction confirmation request.
  • the transaction confirmation information of the transaction is returned to the first transaction node.
  • the transaction node of the second node can send the transaction confirmation information of the transfer transaction data to the first transaction node if it is determined that the transfer transaction data included in the transaction confirmation request is correct.
  • the above-mentioned transaction confirmation information may include a transaction digital signature of the transaction data of the second transaction node, and the like.
  • the second transaction node may perform a hash operation on the confirmed transfer transaction data based on a hash algorithm to obtain corresponding summary information.
  • the generated digest information is encrypted by the node private key of the second transaction node, and a transaction digital signature can be obtained.
  • the second transaction node may send transaction confirmation information including the transaction digital signature to the first transaction node.
  • the first transaction node can obtain the node public key of the second transaction node from the blockchain, and based on the node public key of the second transaction node Decrypt the transaction digital signature included in the transaction confirmation information to obtain the decrypted summary information (for the convenience of description, the first summary information is taken as an example), and at the same time, the first transaction node performs hashing on the transfer transaction data. Then, the summary information corresponding to the transfer transaction data can be obtained (for the convenience of description, the second summary information is taken as an example for description). Furthermore, by comparing and analyzing the first summary information and the second summary information, the legitimacy of the transaction confirmation information can be determined.
  • the transaction confirmation information is legal transaction confirmation information. That is, when the first transaction node determines that the transaction confirmation information is legal transaction confirmation information, the The second transaction node has no objection to the confirmation of the transfer transaction data, so the transaction can proceed normally.
  • the transaction confirmation information may be determined to be illegal transaction confirmation information.
  • the transaction confirmation information returned by the second transaction node based on each transaction confirmation request sent is illegal transaction confirmation information
  • the transaction confirmation information can also be determined to be illegal transaction confirmation information.
  • the first transaction node fails to receive the transaction confirmation information sent by the second transaction node within the timeout period, it may also be determined that the second transaction node is in breach of contract.
  • the first transaction node when it is determined that the transaction confirmation information of the first transaction data is illegal transaction confirmation information, the first transaction node may apply for the intervention of the arbitration node. That is, when it is determined that the transaction confirmation information of the first transaction data is illegal transaction confirmation information, the first transaction node may send a transaction verification request for the first transaction data to the arbitration node.
  • the first transaction node 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 each transaction after the first transaction data.
  • the legality of the transaction confirmation information of the data is verified, and the third transaction data and the transaction confirmation information of the second transaction node for the third transaction data are broadcast in the blockchain system, so that each consensus node in the blockchain system can verify the third transaction data.
  • Three transactions are verified, wherein the third transaction data is transaction data whose transaction generation time is earlier than that of the first transaction data, and the transaction generation time difference between the transaction generation time of the first transaction data and the transaction generation time of the first transaction data is the smallest.
  • the transaction including the third transaction data will be Blocks are added to the blockchain. That is to say, 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 can suspend the transactions of other transaction data whose subsequent transaction generation time is later than that of the first transaction data. Confirm the validity of information to save computing resources.
  • the first transaction node can send a transaction data (for the convenience of description, referred to as the third transaction data) that is closest to the transaction generation time of the first transaction data and located before the first transaction data to the zone
  • a transaction data for the convenience of description, referred to as the third transaction data
  • the third transaction data is uploaded to the chain.
  • the first preset time period includes a total of 1000 transaction data, among which, according to the order of transaction generation time, they can be recorded as transaction 1, transaction 2, transaction 3, ..., transaction 399, Transaction 400, Transaction 401, ..., Transaction 999, Transaction 1000.
  • the second transaction node needs to perform transaction confirmation on each transaction data.
  • the first transaction node sequentially verifies the validity of the transaction confirmation information of each transaction data according to the transaction generation time, when the 400th transaction is verified, that is, transaction 400, it is found that the transaction confirmation information of transaction 400 is invalid.
  • the confirmation information and the transaction 399 are broadcast in the blockchain system, so that the consensus nodes in the blockchain system can verify the transaction legality of the transaction 399, and when each consensus node reaches a consensus, the transaction 399 is added to the block chain.
  • the arbitration node receives the transaction verification request, obtains the 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 determines the legality of the first transaction data according to the transaction contract data. When determining that the first transaction data is legal transaction data, the arbitration node sends first transaction confirmation information for the first transaction data to the first transaction node.
  • the arbitration node can obtain the 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 the first order according to the transaction contract data.
  • the legality of transaction data is the contract data signed in advance by the first transaction node and the second transaction node and uploaded to the blockchain, and the transaction contract data includes the transaction details of each transaction agreed in advance.
  • the arbitration node can confirm whether the first transaction data is normal in the following manner: according to the transaction contract identifier included in the transaction verification request, obtain the transaction contract data corresponding to the transaction contract identifier from the blockchain, and verify the first transaction data by Whether the included data content matches the corresponding data content in the transaction contract data to determine whether the first transaction data is normal, that is, whether the contract conditions are met.
  • the arbitration node can verify whether the accounts of both parties of the transaction are legal, and whether the balance of the outgoing account supports the transfer amount, etc.
  • the specific verification method can be determined based on the actual application scenario, which is not limited here.
  • the arbitration node when the arbitration node determines that the first transaction data satisfies the contract conditions in the transaction contract data, in order to make the judgment of the arbitration node more credible, the arbitration node may also 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 blockchain according to the transaction contract identifier included in the transaction verification request, so as to verify according to the transaction contract data The validity of the first transaction data, and finally return the generated verification result to the arbitration node.
  • the arbitration node receives each verification result sent by each arbitration auxiliary node, and when it is determined that each verification result sent by each arbitration auxiliary node is all verified, the arbitration node can finally determine that the first transaction data is legal transaction data.
  • the arbitration node may send first transaction confirmation information for the first transaction data to the first transaction node. That is to say, the arbitration node, as a node corresponding to a credible institution, can determine the transaction confirmed by the arbitration node as legal transaction data. Wherein, when the arbitration node determines that the first transaction data is abnormal transaction or illegal transaction data, it can reject or reject the transaction verification request of 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 the blockchain system, so that each consensus node in the blockchain system performs the first transaction data on the first transaction data. Verify to generate verification results.
  • 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 in the blockchain system can be achieved.
  • the node verifies the first transaction data to generate a verification result. That is to say, when the second transaction node is in breach of contract, the transaction data confirmed by the arbitration node can continue to advance.
  • the transaction block including the first transaction can be added to the blockchain.
  • the proportion of the verification results returned by the received consensus nodes is not less than the preset pass ratio, it can be determined that each consensus node has reached a consensus on the first transaction data. For example, when the verification results of more than 51% of the consensus nodes in the blockchain system are verified, it can be determined that each consensus node has reached a consensus on the first transaction data. Further, the transaction block including the first transaction data can be added to the blockchain.
  • the first transaction node after adding the transaction block including the first transaction to the blockchain, can continue to verify the legitimacy of the transaction confirmation information of each transaction data after the first transaction data , when it is determined that the transaction confirmation information of each transaction data after the first transaction data is all legal transaction confirmation information, the fourth transaction data with the latest transaction generation time is determined from each transaction data after the first transaction data, The fourth transaction data and the transaction confirmation information of the second transaction node for the fourth transaction data are broadcast in the blockchain system, so as to add the transaction block including the fourth transaction data to the blockchain.
  • the transaction confirmation information of all transaction data within the first preset time period may be obtained for legality verification at every first preset time period.
  • the first transaction node determines the second transaction generation time from the multiple transaction data. transaction data, and 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 can verify the second transaction .
  • the transaction block including the second transaction data is added to the transaction block. to the blockchain. That is to say, when the transaction confirmation information of each transaction data within the first preset time period is legal transaction confirmation information, the last transaction in the multiple transaction data (that is, the transaction with the latest transaction generation time) can be data) to consensus nodes in the blockchain network to reach consensus on the transaction. And when a consensus is reached, the last transaction within the first preset time period is put on the chain.
  • the last transaction before receiving the termination transaction message is sent to the consensus node in the blockchain network for verification, and after the verification passes Then the last transaction is put on the chain.
  • the last transaction is the settlement transaction of companies A and B. All previous transactions are in the form of bookkeeping, so they can be terminated at companies A and B. , just upload the last transaction of both parties on the chain.
  • FIG. 4 is a schematic structural diagram of a data processing apparatus provided by an embodiment of the present application.
  • the data processing apparatus provided by the embodiment of the present application includes: a transaction data acquisition module 21, configured to acquire multiple transaction data with a second transaction node within a first preset time period, and the second transaction node to the multiple transaction data.
  • the transaction confirmation information of each transaction data in the transaction data is used to verify the legitimacy of the transaction confirmation information of each transaction data according to each transaction data
  • the transceiver module 23 is used to determine the validity of the first transaction data.
  • the transaction confirmation information is illegal transaction confirmation information
  • a transaction verification request for the first transaction data is sent to the arbitration node, so that the arbitration node receives the transaction verification request according to the transaction verification request.
  • a transaction contract identifier obtain the transaction contract data corresponding to the transaction contract identifier from the blockchain, and determine the legitimacy of the first transaction data according to the transaction contract data, when it is determined that the first transaction data is a legal transaction
  • the first transaction confirmation information is broadcast in the blockchain system, so that each consensus node in the blockchain system verifies the first transaction data to generate a verification result; the block chaining module 24 is used to add the transaction block including the first transaction to the block when it is determined that the consensus nodes have reached a consensus on the first transaction data according to the received verification results sent by the consensus nodes chain.
  • the processing module 22 is further configured to, when it is determined that the transaction confirmation information of each transaction data in the multiple transaction data is legal transaction confirmation information, the first transaction node from the The second transaction data with the latest transaction generation time is determined from the multiple transaction data, and the transceiver module 23 is further configured to compare the second transaction data and the second transaction data by the second transaction node to the second transaction data.
  • the transaction confirmation information is broadcast in the blockchain system, so that each consensus node in the blockchain system can verify the second transaction; the processing module 22 is also used for when according to the transceiver module
  • the received verification results of the second transaction data sent by the consensus nodes, when it is determined that the consensus nodes reach a consensus on the second transaction data, will include the transaction area of the second transaction data. Blocks are added to the blockchain.
  • the processing module 22 is further configured to: according to the number of transactions between the first transaction node and each transaction node within a second preset time period, determine from the transaction nodes the number of transactions with each transaction node. The transaction node with the largest number of transactions between the first transaction nodes is used as the second transaction node.
  • each transaction data includes the transaction generation time
  • the transaction confirmation information of each transaction data includes the transaction digital signature of the second transaction node for each transaction data
  • the processing module 22 further Used to: obtain the node public key of the second transaction node from the blockchain, and in the order of the transaction generation time from early to late, sequentially digitally sign the transaction data of each transaction based on the node public key Perform decryption to obtain the first summary information; perform hash operation on each transaction data to obtain the second summary information corresponding to each transaction data; when the first transaction summary information corresponding to the first transaction data and the first transaction When the second summary information corresponding to the data is different, it is determined that the transaction confirmation information of the first transaction data is illegal transaction confirmation information.
  • the processing module 22 is further configured to: suspend the legality verification of the transaction confirmation information of each transaction data subsequent to the first transaction data, and combine the third transaction data with the first transaction data.
  • the second transaction node broadcasts the transaction confirmation information of the third transaction data in the blockchain system, so that each consensus node in the blockchain system can verify the third transaction, wherein the third transaction data It is the transaction data whose transaction generation time is earlier than the first transaction data, and the transaction generation time difference between the transaction generation time of the first transaction data and the transaction generation time of the first transaction data is the smallest;
  • the verification result of the three transaction data determines that the consensus nodes reach a consensus on the third transaction data, the transaction block including the third transaction data is added to the blockchain.
  • the processing module 22 is further configured to: continue to verify the legitimacy of the transaction confirmation information of each transaction data after the first transaction data.
  • the transaction confirmation information of each transaction data is legal transaction confirmation information
  • the fourth transaction data with the latest transaction generation time is determined from each transaction data after the first transaction data, and the fourth transaction data is determined.
  • the data and the transaction confirmation information of the fourth transaction data by the second transaction node are broadcast in the blockchain system to add a transaction block including the fourth transaction data to the blockchain.
  • FIG. 5 is another schematic structural diagram of a data processing apparatus provided by an embodiment of the present application.
  • the data processing apparatus provided by the embodiment of the present application includes: a transceiver module 31, configured to receive a transaction verification request for the first transaction data; a processing module 32, configured to, according to the transaction contract identifier included in the transaction verification request, retrieve the data from the block The transaction contract data corresponding to the transaction contract identifier is obtained in the chain; the processing module 32 is further configured to determine the legality of the first transaction data according to the transaction contract data; the transceiver module 31 is further configured to When it is determined that the first transaction data is legal transaction data, first transaction confirmation information for the first transaction data is sent to the first transaction node.
  • the transceiver module 31 is further configured to forward the transaction verification request to each arbitration auxiliary node when it is determined that the first transaction data satisfies the contract conditions in the transaction contract data, so as to Make each arbitration auxiliary node obtain the 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 verify the transaction contract data according to the transaction contract data.
  • the transceiver module 31 is further configured to receive the verification results sent by the arbitration auxiliary nodes;
  • the processing module 32 is further configured to determine that the first transaction data is legal transaction data when it is determined that the verification results sent by the arbitration auxiliary nodes are all verified.
  • FIG. 6 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
  • the terminal device in this embodiment may include: one or more processors 401 and a memory 402 .
  • the above-mentioned processor 401 and memory 402 are connected through a bus 403 .
  • the memory 402 is used for storing a computer program, the computer program includes program instructions, and the processor 401 is used for executing the program instructions stored in the memory 402 for executing the methods provided in the above steps S101 to S106.
  • the above-mentioned processor 401 may be a central processing unit (central processing unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (digital signal processor, DSP), application-specific integrated circuit (application specific integrated circuit, ASIC), off-the-shelf programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the memory 402 which may include read-only memory and random access memory, provides instructions and data to the processor 401 . A portion of memory 402 may also include non-volatile random access memory. For example, memory 402 may also store device type information.
  • the above-mentioned terminal device may execute the implementation manner provided by each step in the above-mentioned FIG. 2 through various built-in function modules.
  • the terminal device can be the above-mentioned first transaction node, and can perform the steps performed by the first transaction node in the above-mentioned method; for another example, the terminal device can also be the above-mentioned arbitration node, and can perform the above-mentioned method in the arbitration node.
  • the terminal device can be the above-mentioned first transaction node, and can perform the steps performed by the first transaction node in the above-mentioned method
  • the terminal device can also be the above-mentioned arbitration node, and can perform the above-mentioned method in the arbitration node.
  • Embodiments of the present application further provide 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, data provided by each step in FIG. 2 is implemented
  • a computer program is stored in the computer-readable storage medium
  • the computer program includes program instructions, and when the program instructions are executed by a processor, data provided by each step in FIG. 2 is implemented
  • the storage medium involved in this application such as a computer-readable storage medium, may be non-volatile or volatile.
  • the above-mentioned computer-readable storage medium may be the data processing apparatus provided in any of the foregoing embodiments or an internal storage unit of the above-mentioned 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 pluggable hard disk, a smart media card (SMC), a secure digital (SD) card equipped on the electronic device, Flash card, etc.
  • the computer-readable storage medium may also include both an internal storage unit of the electronic device and an external storage device.
  • the computer-readable storage medium is used to store the computer program and other programs and data required by the electronic device.
  • the computer-readable storage medium can also be used to temporarily store data that has been or will be output.
  • each process and/or the schematic structural diagrams of the method flowcharts and/or structural schematic diagrams can be implemented by computer program instructions. or blocks, and combinations of processes and/or blocks in flowcharts and/or block diagrams.
  • 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 device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce a function
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions
  • the apparatus implements the functions specified in one or more of the flowcharts and/or one or more blocks of the structural diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the block or blocks of the flowchart and/or structural representation.

Abstract

A data processing method and apparatus applicable to a blockchain. The method comprises: when a first transaction node determines that transaction confirmation information of first transaction data is illegitimate transaction confirmation information, sending, to a quorum node, a transaction check request for the first transaction data (S102); when the quorum node determines that the first transaction data is legitimate transaction data, sending first transaction confirmation information of the first transaction data to the first transaction node (S103); the first transaction node receiving the first transaction confirmation information, and broadcasting the first transaction data and the first transaction confirmation information in a blockchain system (S104); and when it is determined that consensus nodes in the blockchain system reach a consensus on the first transaction data, adding a transaction block, which comprises a first transaction, to a blockchain (S105). By means of the method, the transaction data processing efficiency can be improved, and blockchain resources can be saved.

Description

数据处理方法及装置Data processing method and device
本申请要求于2020年8月28日提交中国专利局、申请号为202010883757.5,发明名称为“数据处理方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202010883757.5 and the invention titled "Data Processing Method and Apparatus" filed with the China Patent Office on August 28, 2020, the entire contents of which are incorporated into this application by reference.
技术领域technical field
本申请涉及区块链技术领域,尤其涉及一种数据处理方法及装置。The present application relates to the field of blockchain technology, and in particular, to a data processing method and device.
背景技术Background technique
在现有的区块链验证机制中,每一笔交易数据在写入区块链之前,需要通过区块链中全部节点或者大部分节点的验证之后才可该交易写入区块链。但是,发明人意识到,在区块链中多方节点参与的情况下,每一笔交易数据都需要耗费一定的时间。对于节点间存在大量交易的两个节点来说,由于每笔交易均需要通过多方节点的验证,因此会极大降低交易数据的处理效率,也会浪费区块链资源。In the existing blockchain verification mechanism, before each transaction data is written into the blockchain, it needs to be verified by all or most of the nodes in the blockchain before the transaction can be written into the blockchain. However, the inventor realized that in the case of multi-party nodes participating in the blockchain, each transaction data takes a certain amount of time. For two nodes with a large number of transactions between nodes, since each transaction needs to be verified by multiple nodes, the processing efficiency of transaction data will be greatly reduced, and blockchain resources will be wasted.
技术问题technical problem
本申请实施例提供一种数据处理方法及装置,可提高交易数据处理效率,节约区块链资源。Embodiments of the present application provide a data processing method and device, which can improve transaction data processing efficiency and save blockchain resources.
技术解决方案technical solutions
第一方面,本申请实施例提供了一种数据处理方法,该方法包括:第一交易节点获取第一预设时间段内与第二交易节点间的多笔交易数据,以及所述第二交易节点对所述多笔交易数据中每笔交易数据的交易确认信息;所述第一交易节点根据每笔交易数据验证每笔交易数据的交易确认信息的合法性,当确定第一交易数据的交易确认信息为不合法交易确认信息时,向仲裁节点发送对所述第一交易数据的交易核验请求;所述仲裁节点接收所述交易核验请求,根据所述交易核验请求中包括的交易合约标识,从区块链中获取所述交易合约标识对应的交易合约数据,以根据所述交易合约数据确定所述第一交易数据的合法性,当确定所述第一交易数据为合法交易数据时,所述仲裁节点向所述第一交易节点发送对所述第一交易数据的第一交易确认信息;所述第一交易节点接收所述第一交易确认信息,并将所述第一交易数据和所述第一交易确认信息在区块链系统中进行广播以使所述区块链系统中的各共识节点对所述第一交易数据进行校验以生成校验结果;当所述第一交易节点根据接收到的所述各共识节点发送的校验结果确定所述各共识节点对所述第一交易数据达成共识时,将包括所述第一交易的交易区块添加至区块链。In a first aspect, an embodiment of the present application provides a data processing method, the method includes: a first transaction node acquires multiple transaction data between a first preset time period and a second transaction node, and the second transaction The transaction confirmation information of each transaction data in the multiple transaction data by the node; the first transaction node verifies the legitimacy of the transaction confirmation information of each transaction data according to each transaction data, and when determining the transaction of the first transaction data When the confirmation information is illegal transaction confirmation information, send a transaction verification request for the first transaction data to the arbitration node; the arbitration node receives the transaction verification request, and according to the transaction contract identifier included in the transaction verification request, The transaction contract data corresponding to the transaction contract identifier is obtained from the blockchain, so as to determine the legitimacy of the first transaction data according to the transaction contract data. When it is determined that the first transaction data is legal transaction data, the The arbitration node sends the first transaction confirmation information for the first transaction data to the first transaction node; the first transaction node receives the first transaction confirmation information, and combines the first transaction data with the all transaction data. The first transaction confirmation information is broadcast in the blockchain system so that each consensus node in the blockchain system verifies the first transaction data to generate a verification result; when the first transaction node When it is determined that the consensus nodes reach a consensus on the first transaction data according to the received verification results sent by the consensus nodes, a transaction block including the first transaction is added to the blockchain.
第二方面,本申请实施例提供了一种数据处理方法,该方法包括:第一交易节点获取第一预设时间段内与第二交易节点间的多笔交易数据,以及所述第二交易节点对所述多笔交易数据中每笔交易数据的交易确认信息;所述第一交易节点根据每笔交易数据验证每笔交易数据的交易确认信息的合法性,当确定第一交易数据的交易确认信息为不合法交易确认信息时,向仲裁节点发送对所述第一交易数据的交易核验请求,以使所述仲裁节点通过接收所述交易核验请求,根据所述交易核验请求中包括的交易合约标识,从区块链中获取所述交易合约标识对应的交易合约数据,并根据所述交易合约数据确定所述第一交易数据的合法性,当确定所述第一交易数据为合法交易数据时,向所述第一交易节点发送对所述第一交易数据的第一交易确认信息;所述第一交易节点接收所述第一交易确认信息,并将所述第一交易数据和所述第一交易确认信息在区块链系统中进行广播以使所述区块链系统中的各共识节点对所述第一交易数据进行校验以生成校验结果;当所述第一交易节点根据接收到的所述各共识节点发送的校验结果确定所述各共识节点对所述第一交易数据达成共识时,将包括所述第一交易的交易区块添加至区块链。In a second aspect, an embodiment of the present application provides a data processing method, the method includes: a first transaction node obtains multiple transaction data between a first preset time period and a second transaction node, and the second transaction The transaction confirmation information of each transaction data in the multiple transaction data by the node; the first transaction node verifies the legitimacy of the transaction confirmation information of each transaction data according to each transaction data, and when determining the transaction of the first transaction data When the confirmation information is illegal transaction confirmation information, send a transaction verification request for the first transaction data to the arbitration node, so that the arbitration node receives the transaction verification request, according to the transaction verification request included in the transaction. contract identifier, obtain the transaction contract data corresponding to the transaction contract identifier from the blockchain, and determine the legitimacy of the first transaction data according to the transaction contract data, when it is determined that the first transaction data is legal transaction data When , send the first transaction confirmation information for the first transaction data to the first transaction node; the first transaction node receives the first transaction confirmation information, and combines the first transaction data with the The first transaction confirmation information is broadcast in the blockchain system so that each consensus node in the blockchain system verifies the first transaction data to generate a verification result; when the first transaction node according to When the received verification results sent by the consensus nodes determine that the consensus nodes reach a consensus on the first transaction data, a transaction block including the first transaction is added to the blockchain.
第三方面,本申请实施例提供了一种数据处理方法,该方法包括:仲裁节点接收对第一交易数据的交易核验请求;所述仲裁节点根据所述交易核验请求中包括的交易合约标识,从区块链中获取所述交易合约标识对应的交易合约数据;所述仲裁节点根据所述交易合约数据确定所述第一交易数据的合法性,当确定所述第一交易数据为合法交易数据时,向所述第一交易节点发送对所述第一交易数据的第一交易确认信息。In a third aspect, an embodiment of the present application provides a data processing method, the method comprising: an arbitration node receiving a transaction verification request for first transaction data; the arbitration node, according to a transaction contract identifier included in the transaction verification request, Obtain the transaction contract data corresponding to the transaction contract identifier from the blockchain; the arbitration node determines the legitimacy of the first transaction data according to the transaction contract data, and when determining that the first transaction data is legal transaction data At the time, the first transaction confirmation information for the first transaction data is sent to the first transaction node.
第四方面,本申请实施例提供了一种数据处理装置,该装置包括:交易数据获取模块,用于获取第一预设时间段内与第二交易节点间的多笔交易数据,以及所述第二交易节点对所述多笔交易数据中每笔交易数据的交易确认信息;处理模块,用于根据每笔交易数据验证每笔交易数据的交易确认信息的合法性;收发模块,用于当确定第一交易数据的交易确认信息为不合法交易确认信息时,向仲裁节点发送对所述第一交易数据的交易核验请求,以使所述仲裁节点通过接收所述交易核验请求,根据所述交易核验请求中包括的交易合约标识,从区块链中获取所述交易合约标识对应的交易合约数据,并根据所述交易合约数据确定所述第一交易数据的合法性,当确定所述第一交易数据为合法交易数据时,向所述收发模块发送对所述第一交易数据的第一交易确认信息;所述收发模块,还用于接收所述第一交易确认信息,并将所述第一交易数据和所述第一交易确认信息在区块链系统中进行广播以使所述区块链系统中的各共识节点对所述第一交易数据进行校验以生成校验结果;区块上链模块,用于当根据接收到的所述各共识节点发送的校验结果确定所述各共识节点对所述第一交易数据达成共识时,将包括所述第一交易的交易区块添加至区块链。In a fourth aspect, an embodiment of the present application provides a data processing device, the device comprising: a transaction data acquisition module configured to acquire multiple transaction data between a second transaction node within a first preset time period, and the The transaction confirmation information of each transaction data in the multiple transaction data by the second transaction node; the processing module is used to verify the legitimacy of the transaction confirmation information of each transaction data according to each transaction data; the transceiver module is used for when When it is determined that the transaction confirmation information of the first transaction data is illegal transaction confirmation information, send a transaction verification request for the first transaction data to the arbitration node, so that the arbitration node receives the transaction verification request, according to the For the transaction contract identifier included in the transaction verification request, obtain the transaction contract data corresponding to the transaction contract identifier from the blockchain, and determine the legitimacy of the first transaction data according to the transaction contract data. When the transaction data is legal transaction data, send first transaction confirmation information for the first transaction data to the transceiver module; the transceiver module is further configured to receive the first transaction confirmation information, and send the first transaction confirmation information to the transceiver module. The first transaction data and the first transaction confirmation information are broadcast in the blockchain system, so that each consensus node in the blockchain system verifies the first transaction data to generate a verification result; The block chain module is configured to include the transaction block of the first transaction when it is determined that the consensus nodes have reached a consensus on the first transaction data according to the received verification results sent by the consensus nodes. added to the blockchain.
第五方面,本申请实施例提供了一种数据处理装置,该装置包括:收发模块,用于接收对第一交易数据的交易核验请求;处理模块,用于根据所述交易核验请求中包括的交易合约标识,从区块链中获取所述交易合约标识对应的交易合约数据;所述处理模块,还用于根据所述交易合约数据确定所述第一交易数据的合法性;所述收发模块,还用于当确定所述第一交易数据为合法交易数据时,向第一交易节点发送对所述第一交易数据的第一交易确认信息。In a fifth aspect, an embodiment of the present application provides a data processing device, the device comprising: a transceiver module for receiving a transaction verification request for first transaction data; a processing module for A transaction contract identifier, which obtains transaction contract data corresponding to the transaction contract identifier from the blockchain; the processing module is further configured to determine the legality of the first transaction data according to the transaction contract data; the transceiver module , and 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 to store a computer program, the computer program includes program instructions, and the processor is configured to call the above program instructions, and execute the following method: acquiring multiple transaction data between the second transaction node and the first preset time period , and the transaction confirmation information of each transaction data in the multiple transaction data by the second transaction node; verify the legitimacy of the transaction confirmation information of each transaction data according to each transaction data, when determining the validity of the first transaction data When the transaction confirmation information is illegal transaction confirmation information, a transaction verification request for the first transaction data is sent to the arbitration node, so that the arbitration node receives the transaction verification request according to the transaction verification request. A transaction contract identifier, obtain the transaction contract data corresponding to the transaction contract identifier from the blockchain, and determine the legitimacy of the first transaction data according to the transaction contract data, when it is determined that the first transaction data is a legal transaction data, send the first transaction confirmation information for the first transaction data to the first transaction node; receive the first transaction confirmation information, and store the first transaction data and the first transaction confirmation information in the area Broadcast in the blockchain system to enable each consensus node in the blockchain system to verify the first transaction data to generate a verification result; when the verification results sent by the consensus nodes are received according to the When it is determined that the consensus nodes reach a consensus on the first transaction data, a transaction block including the first transaction is added to the blockchain.
第七方面,本申请实施例提供了一种终端设备,该终端设备包括处理器和存储器,该处理器和存储器相互连接。该存储器用于存储计算机程序,该计算机程序包括程序指令,该处理器被配置用于调用上述程序指令,执行以下方法:接收对第一交易数据的交易核验请求;根据所述交易核验请求中包括的交易合约标识,从区块链中获取所述交易合约标识对应的交易合约数据;根据所述交易合约数据确定所述第一交易数据的合法性,当确定所述第一交易数据为合法交易数据时,向第一交易节点发送对所述第一交易数据的第一交易确认信息。In a seventh 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, the computer program includes program instructions, and the processor is configured to call the above program instructions, and execute the following method: receiving a transaction verification request for the first transaction data; and obtain the transaction contract data corresponding to the transaction contract identifier from the blockchain; determine the legitimacy of the first transaction data according to the transaction contract data, when it is determined that the first transaction data is a legal transaction When the data is received, the first transaction confirmation information for the first transaction data is sent to the first transaction node.
第八方面,本申请实施例提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序包括程序指令,该程序指令当被处理器执行时使该处理器执行以下方法:获取第一预设时间段内与第二交易节点间的多笔交易数据,以及所述第二交易节点对所述多笔交易数据中每笔交易数据的交易确认信息;根据每笔交易数据验证每笔交易数据的交易确认信息的合法性,当确定第一交易数据的交易确认信息为不合法交易确认信息时,向仲裁节点发送对所述第一交易数据的交易核验请求,以使所述仲裁节点通过接收所述交易核验请求,根据所述交易核验请求中包括的交易合约标识,从区块链中获取所述交易合约标识对应的交易合约数据,并根据所述交易合约数据确定所述第一交易数据的合法性,当确定所述第一交易数据为合法交易数据时,向第一交易节点发送对所述第一交易数据的第一交易确认信息;接收所述第一交易确认信息,并将所述第一交易数据和所述第一交易确认信息在区块链系统中进行广播以使所述区块链系统中的各共识节点对所述第一交易数据进行校验以生成校验结果;当根据接收到的所述各共识节点发送的校验结果确定所述各共识节点对所述第一交易数据达成共识时,将包括所述第一交易的交易区块添加至区块链。In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, the computer program includes program instructions, and the program instructions, when executed by a processor, cause the processor to execute The following method: obtain multiple transaction data with the second transaction node within the first preset time period, and the transaction confirmation information of the second transaction node for each transaction data in the multiple transaction data; The transaction data verifies the legitimacy of the transaction confirmation information of each transaction data, and when it is determined that the transaction confirmation information of the first transaction data is illegal transaction confirmation information, a transaction verification request for the first transaction data is sent to the arbitration node, in order to After receiving the transaction verification request, the arbitration node obtains the 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 according to the transaction contract data Determine the legitimacy of the first transaction data, when determining that the first transaction data is legal transaction data, send first transaction confirmation information for the first transaction data to the first transaction node; receive the first transaction data transaction confirmation information, and broadcast the first transaction data and the first transaction confirmation information in the blockchain system so that each consensus node in the blockchain system can verify the first transaction data to generate a verification result; when it is determined that the consensus nodes have reached a consensus on the first transaction data according to the received verification results sent by the consensus nodes, the transaction block including the first transaction added to the blockchain.
第九方面,本申请实施例提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序包括程序指令,该程序指令当被处理器执行时使该处理器执行以下方法:接收对第一交易数据的交易核验请求;根据所述交易核验请求中包括的交易合约标识,从区块链中获取所述交易合约标识对应的交易合约数据;根据所述交易合约数据确定所述第一交易数据的合法性,当确定所述第一交易数据为合法交易数据时,向第一交易节点发送对所述第一交易数据的第一交易确认信息。In a ninth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, the computer program includes program instructions, and the program instructions, when executed by a processor, cause the processor to execute The following method: receiving a transaction verification request for the first transaction data; obtaining transaction contract data corresponding to the transaction contract identifier from the blockchain according to the transaction contract identifier included in the transaction verification request; according to the transaction contract data The validity of the first transaction data is determined, and when it is determined that the first transaction data is legal transaction data, first transaction confirmation information for the first transaction data is sent to the first transaction node.
第十方面,本申请实施例提供了一种数据处理系统,该数据处理系统包括第一交易节点和仲裁节点,其中:所述第一交易节点,用于获取第一预设时间段内与第二交易节点间的多笔交易数据,以及所述第二交易节点对所述多笔交易数据中每笔交易数据的交易确认信息;所述第一交易节点,还用于根据每笔交易数据验证每笔交易数据的交易确认信息的合法性,当确定第一交易数据的交易确认信息为不合法交易确认信息时,向仲裁节点发送对所述第一交易数据的交易核验请求;所述仲裁节点,用于接收所述交易核验请求,根据所述交易核验请求中包括的交易合约标识,从区块链中获取所述交易合约标识对应的交易合约数据,以根据所述交易合约数据确定所述第一交易数据的合法性,当确定所述第一交易数据为合法交易数据时,所述仲裁节点向所述第一交易节点发送对所述第一交易数据的第一交易确认信息;所述第一交易节点,还用于接收所述第一交易确认信息,并将所述第一交易数据和所述第一交易确认信息在区块链系统中进行广播以使所述区块链系统中的各共识节点对所述第一交易数据进行校验以生成校验结果;当所述第一交易节点,还用于根据接收到的所述各共识节点发送的校验结果确定所述各共识节点对所述第一交易数据达成共识时,将包括所述第一交易的交易区块添加至区块链。In a tenth aspect, an embodiment of the present application provides a data processing system, the data processing system includes a first transaction node and an arbitration node, wherein: the first transaction node is used to The multiple transaction data between the two transaction nodes, and the transaction confirmation information of the second transaction node for each transaction data in the multiple transaction data; the first transaction node is also used to verify the data according to each transaction. The validity of the transaction confirmation information of each transaction data, when determining that the transaction confirmation information of the first transaction data is illegal transaction confirmation information, send a transaction verification request for the first transaction data to the arbitration node; the arbitration node is used to receive the transaction verification request, and obtain the transaction contract data corresponding to the transaction contract identifier from the blockchain according to the transaction contract identifier included in the transaction verification request, so as to determine the transaction contract data according to the transaction contract data. The legitimacy of the first transaction data, when determining that the first transaction data is legal transaction data, the arbitration node sends first transaction confirmation information for the first transaction data to the first transaction node; the 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 the blockchain system, so that the blockchain system Each consensus node of the node verifies the first transaction data to generate a verification result; as the first transaction node, it is also used to determine the consensus according to the received verification results sent by the consensus nodes When the node reaches a consensus on the first transaction data, a transaction block including the first transaction is added to the blockchain.
有益效果beneficial effect
本申请通过引入仲裁节点,可加快对交易数据的确认速度,进而提高交易数据处理效率,与此同时,通过将个别交易数据(例如,从第二交易节点接收的不合法交易确认信息对应的交易数据)进行上链,而不是将产生的每笔交易数据皆上链,节约了区块链资源。In this application, by introducing an arbitration node, the confirmation speed of transaction data can be accelerated, thereby improving the efficiency of transaction data processing. data) on the chain, instead of uploading each transaction data generated, which saves blockchain resources.
附图说明Description of drawings
图1是本申请实施例提供的一种区块链网络拓扑结构的结构示意图。FIG. 1 is a schematic structural diagram of a blockchain network topology structure provided by an embodiment of the present application.
图2是本申请实施例提供的数据处理方法的流程示意图。FIG. 2 is a schematic flowchart of a data processing method provided by an embodiment of the present application.
图3是本申请实施例提供的数据处理的应用场景示意图。FIG. 3 is a schematic diagram of an application scenario of data processing provided by an embodiment of the present application.
图4是本申请实施例提供的数据处理装置的一结构示意图。FIG. 4 is a schematic structural diagram of a data processing apparatus provided by an embodiment of the present application.
图5是本申请实施例提供的数据处理装置的另一结构示意图。FIG. 5 is another schematic structural diagram of a data processing apparatus provided by an embodiment of the present application.
图6是本申请实施例提供的终端设备的结构示意图。FIG. 6 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
本发明的实施方式Embodiments of the present invention
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application.
请参见图1,图1是本申请实施例提供的一种区块链网络拓扑结构的结构示意图。其中,该区块链网络拓扑结构中可包含多方节点或多种类型的节点,如图1所示,区块链网络拓扑结构中可包括交易节点,仲裁节点、仲裁辅助节点和共识节点等。为方便描述,可将上述交易节点,仲裁节点、仲裁辅助节点和共识节点等统称为区块链网络中的节点,其中每个节点都与其他节点具有连接关系。如图1所示,每种类型的节点的数量可包括多个,例如,交易节点可包括交易节点1和交易节点2等,在此不做限制。可以理解的是,区块链网络拓扑结构中的任一节点可以是任意形式的计算设备,如服务器、终端等,在此不做限制。应当理解,终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(mobile internet device,MID)等,在此不做限制。每个节点在进行正常工作时可以接收输入信息,并基于接收到的输入信息维护该区块链网络拓扑结构内的共享数据。为了保证区块链网络拓扑结构内的信息互通,区块链网络拓扑结构中的每个节点之间可以存在信息连接,节点之间可以通过上述信息连接进行信息传输。例如,当区块链网络拓扑结构中的任意节点接收到输入信息时,区块链网络拓扑结构中的其他节点便根据共识算法获取该输入信息,将该输入信息作为共享数据中的数据进行存储,使得区块链网络拓扑结构中全部节点上存储的数据均一致。Please refer to FIG. 1. FIG. 1 is a schematic structural diagram of a blockchain network topology provided by an embodiment of the present application. Among them, the blockchain network topology structure may include multi-party nodes or multiple types of nodes. As shown in Figure 1, the blockchain network topology structure may include transaction nodes, arbitration nodes, arbitration auxiliary nodes, and consensus nodes. For the convenience of description, the above-mentioned transaction nodes, arbitration nodes, arbitration auxiliary nodes and consensus nodes can be collectively referred to as nodes in the blockchain network, wherein each node has a connection relationship with other nodes. As shown in FIG. 1 , the number of each type of nodes may include multiple, for example, transaction nodes may include transaction node 1 and transaction node 2, etc., which are not limited herein. It can be understood that any node in the blockchain network topology can be any form of computing device, such as a server, a terminal, etc., which is not limited here. It should be understood that a terminal includes but is not limited to a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a mobile internet device (mobile internet device, MID), etc., which is not limited herein. Each node can receive input information during normal work and maintain shared data within the blockchain network topology based on the received input information. In order to ensure the information exchange within the blockchain network topology, there can be information connections between each node in the blockchain network topology, and information can be transmitted between nodes through the above information connections. For example, when any node in the blockchain network topology receives input information, other nodes in the blockchain network topology structure obtain the input information according to the consensus algorithm, and store the input information as data in the shared data. , so that the data stored on all nodes in the blockchain network topology are consistent.
本申请实施例中的方法,第一交易节点通过获取第一预设时间段内与第二交易节点间的多笔交易数据,以及第二交易节点对多笔交易数据中每笔交易数据的交易确认信息,可根据每笔交易数据验证每笔交易数据的交易确认信息的合法性。其中,当确定第一交易数据的交易确认信息为不合法交易确认信息时,第一交易节点可向仲裁节点发送对第一交易数据的交易核验请求。其中,仲裁节点通过接收该交易核验请求,可根据交易核验请求中包括的交易合约标识,从区块链中获取交易合约标识对应的交易合约数据,并根据交易合约数据确定第一交易数据的合法性,当确定第一交易数据为合法交易数据时,向第一交易节点发送对第一交易数据的第一交易确认信息。其中,第一交易节点通过接收第一交易确认信息,可将第一交易数据和第一交易确认信息在区块链系统中进行广播以使区块链系统中的各共识节点对第一交易数据进行校验以生成校验结果。当第一交易节点根据接收到的各共识节点发送的校验结果确定各共识节点对第一交易数据达成共识时,将包括第一交易的交易区块添加至区块链。采用本申请实施例,可提高交易数据处理效率,节约区块链资源。In the method in this embodiment of the present application, the first transaction node obtains multiple transaction data between the first transaction node and the second transaction node within the first preset time period, and the transaction data of each transaction data in the multiple transaction data by the second transaction node. Confirmation information, which can verify the legitimacy of the transaction confirmation information of each transaction data according to each transaction data. Wherein, when it is determined that the transaction confirmation information of the first transaction data is illegal transaction confirmation information, the first transaction node may send a transaction verification request for the first transaction data to the arbitration node. Wherein, by receiving the transaction verification request, the arbitration node can obtain the 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 the legality of the first transaction data according to the transaction contract data. property, when it is determined that the first transaction data is legal transaction data, the first transaction confirmation information for the first transaction data is sent to the first transaction node. The first transaction node can 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 can verify the first transaction data. Verify to generate verification results. When the first transaction node determines that each consensus node has reached a consensus on the first transaction data according to the received verification results sent by each consensus node, the transaction block including the first transaction is added to the blockchain. By adopting the embodiments of the present application, transaction data processing efficiency can be improved, and blockchain resources can be saved.
下面将结合图2至图6分别对本申请实施例提供的方法及相关装置分别进行详细说明。The methods and related apparatuses provided by the embodiments of the present application will be described in detail below with reference to FIG. 2 to FIG. 6 respectively.
请参见图2,图2是本申请实施例提供的数据处理方法的流程示意图。本申请实施例提供的方法可以包括如下步骤S101至S106。Please refer to FIG. 2, which is a schematic flowchart of a data processing method provided by an embodiment of the present application. The method provided by this embodiment of the present application may include the following steps S101 to S106.
S101、第一交易节点获取第一预设时间段内与第二交易节点间的多笔交易数据,以及第二交易节点对多笔交易数据中每笔交易数据的交易确认信息。S101. The first transaction node acquires multiple transaction data with the second transaction node within the first preset time period, and transaction confirmation information of the second transaction node for each transaction data in the multiple transaction data.
在一些可行的实施方式中,第一交易节点可获取第一预设时间段内与第二交易节点间的多笔交易数据,以及第二交易节点对多笔交易数据中每笔交易数据的交易确认信息。其中,第一交易节点和第二交易节点之间的交易为第一交易节点和第二交易节点均作为参与方的交易,如转账交易、发红包等,具体可基于实际应用场景确定,在此不做限制。第一预设时间段的具体取值也可根据实际应用场景确定,在此不做限制。In some feasible implementations, the first transaction node may obtain multiple transaction data between the first transaction node and the second transaction node within the first preset time period, and the transaction data of each transaction data in the multiple transaction data by the second transaction node Confirm the information. Among them, the transaction between the first transaction node and the second transaction node is a transaction in which both the first transaction node and the second transaction node are participants, such as transfer transactions, red envelopes, etc., which can be determined based on actual application scenarios. Here No restrictions. 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 speaking, the first transaction node can determine the transaction node with the largest number of transactions with the first transaction node from the transaction nodes according to the number of transactions between the first transaction node and each transaction node within the second preset time period , as the second transaction node. That is to say, the first transaction node can monitor the transactions between other transaction nodes in the blockchain system with itself within a period of time, and then determine the transaction node that frequently trades with itself as the second transaction from the other transaction nodes. node.
可选的,在一些可行的实施方式中,当第一交易节点监测到第一交易节点和某个交易节点之间在连续N个单位时间内均有交易产生时,可将该交易节点确定为第二交易节点。其中,上述单位时间包括但不限于一小时、一天、一周等,具体可基于实际应用场景确定,在此不做限制。其中,N为大于2的整数,N的具体取值可基于实际应用场景确定,在此不做限制。Optionally, in some feasible implementation manners, when the first transaction node monitors that there are transactions occurring between the first transaction node and a certain transaction node for N consecutive units of time, the transaction node may be determined as the transaction node. The second transaction node. The above-mentioned unit time includes but is not limited to one hour, one day, one week, etc., which may be determined based on actual application scenarios, and is not limited here. Wherein, N is an integer greater than 2, and the specific value of N can be determined based on the actual application scenario, which is not limited here.
可选的,在一些可行的实施方式中,第一交易节点还可以通过获取区块链系统中其他各个交易节点与第一交易节点间的历史交易量,并将历史交易量大于预设数量阈值的交易节点确定为第二交易节点。Optionally, in some feasible implementations, the first transaction node can also obtain the historical transaction volume between other transaction nodes in the blockchain system and the first transaction node, and set the historical transaction volume to be greater than the preset number threshold. The transaction node is determined as the second transaction node.
S102、第一交易节点根据每笔交易数据验证每笔交易数据的交易确认信息的合法性,当确定第一交易数据的交易确认信息为不合法交易确认信息时,向仲裁节点发送对第一交易数据的交易核验请求。S102. The first transaction node verifies the validity of the transaction confirmation information of each transaction data according to each transaction data, and when it is determined that the transaction confirmation information of the first transaction data is illegal transaction confirmation information, it sends the first transaction confirmation information to the arbitration node. Transaction verification request for data.
在一些可行的实施方式中,第一交易节点可根据每笔交易数据验证第二交易节点对每笔交易数据的交易确认信息的合法性。其中,交易数据中可包括交易产生时间、交易金额、交易参与双方(即第一交易节点和第二交易节点)、交易事由等数据内容。交易确认信息中可包括第二交易节点对该笔交易数据的交易数字签名等。因此,当第一交易节点根据每笔交易数据验证每笔交易数据的交易确认信息的合法性时,第一交易节点可通过从区块链中获取第二交易节点的节点公钥,并按照交易产生时间从早到晚的顺序,基于节点公钥依次对每笔交易数据的交易数字签名进行解密以得到第一摘要信息。进一步地,第一交易节点还可以分别对每笔交易数据进行哈希运算以得到每笔交易数据对应的第二摘要信息。不难理解的是,当任一笔交易数据(为方便描述,以第一交易数据为例进行说明)对应的第一交易摘要信息与第一交易数据对应的第二摘要信息相同时,可确定第一交易数据的交易确认信息为合法交易确认信息。当第一交易数据对应的第一交易摘要信息与第一交易数据对应的第二摘要信息不同时,可确定第一交易数据的交易确认信息为不合法交易确认信息。In some feasible implementations, the first transaction node can verify the legitimacy of the transaction confirmation information of each transaction data by the second transaction node according to each transaction data. The transaction data may include transaction generation time, transaction amount, transaction participants (ie, the first transaction node and the second transaction node), transaction reasons, and other data content. The transaction confirmation information may include a transaction digital signature of the transaction data by the second transaction node, and the like. Therefore, when the first transaction node verifies the legitimacy of the transaction confirmation information of each transaction data according to each transaction data, the first transaction node can obtain the node public key of the second transaction node from the blockchain, and according to the transaction In the order of generation time from early to late, the transaction digital signature of each transaction data is decrypted in turn based on the node public key to obtain the first digest 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 is not difficult to understand that, when the first transaction summary information corresponding to any transaction data (for the convenience of description, the first transaction data is taken as an example for description) is the same as the second summary information corresponding to the first transaction data, it can be determined. The transaction confirmation information of the first transaction data is legal transaction confirmation information. When the first transaction summary information corresponding to the first transaction data is different from the second summary information corresponding to the first transaction data, it may be determined that the transaction confirmation information of the first transaction data is illegal transaction confirmation information.
例如,以第一交易节点和第二交易节点间的某一笔转账交易为例,当第一交易节点向第二交易节点发起一笔转账交易时,第一交易节点可生成该笔转账交易对应的交易数据,为方便描述,可简称转账交易数据。其中,转账交易数据中可包括交易产生时间、转账金额、转入方、转出方、交易事由等数据内容。不难理解的是,任何一笔交易的达成,必定需要交易双方皆对该笔转账交易数据认可且无异议。因此,为保证该笔转账交易的正常进行,第一交易节点需要向第二交易节点发送包括该笔转账交易数据的交易确认请求,以使第二交易节点根据该交易确认请求生成对该笔转账交易的交易确认信息,以返回至第一交易节点。For example, taking a transfer transaction between the first transaction node and the second transaction node as an example, when the first transaction node initiates a transfer transaction to the second transaction node, the first transaction node can generate a corresponding transfer transaction for the transfer transaction. For the convenience of description, the transaction data may be referred to as transfer transaction data. The transfer transaction data may include data content such as transaction generation time, transfer amount, transfer-in party, transfer-out party, and transaction reasons. It is not difficult to understand that the conclusion of any transaction must require both parties to the transaction to recognize and have no objection to the transfer transaction data. Therefore, in order to ensure the normal progress 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 the transfer according to the transaction confirmation request. The transaction confirmation information of the transaction is returned to the first transaction node.
通常而言,当第二节点交易节点接收到该交易确认请求后,若确定交易确认请求中包括的转账交易数据无误,则可向第一交易节点发送对该笔转账交易数据的交易确认信息。其中,上述交易确认信息可包括第二交易节点对该笔交易数据的交易数字签名等。具体地,第二交易节点可基于哈希算法对确认无误后的转账交易数据进行哈希运算,以得到对应的摘要信息。再通过第二交易节点的节点私钥对生成的该摘要信息进行加密,可得到交易数字签名。然后,第二交易节点可将包括该交易数字签名的交易确认信息发送至第一交易节点。其中,当第一交易节点接收到第二交易节点发送的交易确认信息后,第一交易节点可从区块链中获取第二交易节点的节点公钥,并基于第二交易节点的节点公钥对交易确认信息中包括的交易数字签名进行解密以得到解密后的摘要信息(为方便描述,以第一摘要信息为例进行说明),同时,第一交易节点通过对该笔转账交易数据进行哈希运算,进而可得到该笔转账交易数据对应的摘要信息(为方便描述,以第二摘要信息为例进行说明)。进而通过对第一摘要信息和第二摘要信息进行对比分析,可确定该交易确认信息的合法性。通常而言,当第一摘要信息与第二摘要信息相同时,可确定交易确认信息为合法交易确认信息,也就是说,当第一交易节点确定该交易确认信息为合法交易确认信息时,说明第二交易节点对该笔转账交易数据确认无异议,因此,交易可正常进行。当第一摘要和第二摘要信息不同时,可确定交易确认信息为不合法交易确认信息。通常而言,当确定交易确认信息为不合法交易确认信息,可判定第二交易节点存在违约情况。或者,当第一交易节点多次向第二交易节点发送交易确认请求,且第二交易节点基于每次发送的交易确认请求所返回的交易确认信息皆为不合法交易确认信息时,可确定第二交易节点存在违约情况。或者,当基于第二交易节点的节点公钥无法解密交易数字签名,也可确定交易确认信息为不合法交易确认信息。或者,当第一交易节点超时未接收到第二交易节点发送的交易确认信息时,也可确定第二交易节点存在违约情况。Generally speaking, after receiving the transaction confirmation request, the transaction node of the second node can send the transaction confirmation information of the transfer transaction data to the first transaction node if it is determined that the transfer transaction data included in the transaction confirmation request is correct. Wherein, the above-mentioned transaction confirmation information may include a transaction digital signature of the transaction data of the second transaction node, and the like. Specifically, the second transaction node may perform a hash operation on the confirmed transfer transaction data based on a hash algorithm to obtain corresponding summary information. The generated digest information is encrypted by the node private key of the second transaction node, and a transaction digital signature can be obtained. Then, the second transaction node may send transaction confirmation information including the transaction digital signature to the first transaction node. Wherein, after the first transaction node receives the transaction confirmation information sent by the second transaction node, the first transaction node can obtain the node public key of the second transaction node from the blockchain, and based on the node public key of the second transaction node Decrypt the transaction digital signature included in the transaction confirmation information to obtain the decrypted summary information (for the convenience of description, the first summary information is taken as an example), and at the same time, the first transaction node performs hashing on the transfer transaction data. Then, the summary information corresponding to the transfer transaction data can be obtained (for the convenience of description, the second summary information is taken as an example for description). Furthermore, by comparing and analyzing the first summary information and the second summary information, the legitimacy of the transaction confirmation information can be determined. Generally speaking, when the first summary information is the same as the second summary information, it can be determined that the transaction confirmation information is legal transaction confirmation information. That is, when the first transaction node determines that the transaction confirmation information is legal transaction confirmation information, the The second transaction node has no objection to the confirmation of the transfer transaction data, so the transaction can proceed normally. 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 speaking, when it is determined that the transaction confirmation information is illegal transaction confirmation information, it can be determined that the second transaction node has a default situation. Alternatively, when the first transaction node sends transaction confirmation requests to the second transaction node for many times, and the transaction confirmation information returned by the second transaction node based on each transaction confirmation request sent is illegal transaction confirmation information, it can be determined that the The second transaction node is in breach of contract. Alternatively, when the transaction digital signature cannot be decrypted based on the node public key of the second transaction node, the transaction confirmation information can also be determined to be illegal transaction confirmation information. Alternatively, when the first transaction node fails to receive the transaction confirmation information sent by the second transaction node within the timeout period, it may also be determined that the second transaction node is in breach of contract.
在一些可行的实施方式中,当确定第一交易数据的交易确认信息为不合法交易确认信息时,第一交易节点可申请仲裁节点的介入。也就是说,当确定第一交易数据的交易确认信息为不合法交易确认信息时,第一交易节点可向仲裁节点发送对第一交易数据的交易核验请求。In some feasible implementations, when it is determined that the transaction confirmation information of the first transaction data is illegal transaction confirmation information, the first transaction node may apply for the intervention of the arbitration node. That is, when it is determined that the transaction confirmation information of the first transaction data is 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 feasible implementation manners, 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 each transaction after the first transaction data. The legality of the transaction confirmation information of the data is verified, and the third transaction data and the transaction confirmation information of the second transaction node for the third transaction data are broadcast in the blockchain system, so that each consensus node in the blockchain system can verify the third transaction data. Three transactions are verified, wherein the third transaction data is transaction data whose transaction generation time is earlier than that of the first transaction data, and the transaction generation time difference between the transaction generation time of the first transaction data and the transaction generation time of the first transaction data is the smallest. It is not difficult to understand that when the first transaction node determines that each consensus node has reached a consensus on the third transaction data according to the received verification results of the third transaction data sent by each consensus node, the transaction including the third transaction data will be Blocks are added to the blockchain. That is to say, 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 can suspend the transactions of other transaction data whose subsequent transaction generation time is later than that of the first transaction data. Confirm the validity of information to save computing resources. At the same time, the first transaction node can send a transaction data (for the convenience of description, referred to as the third transaction data) that is closest to the transaction generation time of the first transaction data and located before the first transaction data to the zone Each consensus node in the blockchain system performs verification, and when it is determined that each consensus node has reached a consensus on the third transaction data, the third transaction data is uploaded to the chain.
举例来说,请参见图3,图3是本申请实施例提供的数据处理的应用场景示意图。如图3所示,在第一预设时间段内共包括1000笔交易数据,其中,按照交易产生时间的先后顺序,可分别记作交易1,交易2,交易3,……,交易399,交易400,交易401,……,交易999,交易1000。其中,为保证交易的正常进行,第二交易节点需要对每笔交易数据进行交易确认。其中,当第一交易节点按照交易产生时间依次对每笔交易数据的交易确认信息进行合法性验证时,当校验到第400笔交易时,即交易400,发现交易400的交易确认信息为不合法交易确认信息,因此,第一交易节点将终止对后续交易401,交易402,……,交易999,交易1000的交易确认信息的合法性验证,同时,第一交易节点可将交易399的交易确认信息以及交易399在区块链系统中进行广播,以使区块链系统中的共识节点可对交易399进行交易合法性验证,并在各共识节点达成共识时,将交易399添加至区块链。For example, please refer to FIG. 3 , which is a schematic diagram of an application scenario of data processing provided by an embodiment of the present application. As shown in Figure 3, the first preset time period includes a total of 1000 transaction data, among which, according to the order of transaction generation time, they can be recorded as transaction 1, transaction 2, transaction 3, ..., transaction 399, Transaction 400, Transaction 401, ..., Transaction 999, Transaction 1000. Among them, in order to ensure the normal progress of the transaction, the second transaction node needs to perform transaction confirmation on each transaction data. Among them, when the first transaction node sequentially verifies the validity of the transaction confirmation information of each transaction data according to the transaction generation time, when the 400th transaction is verified, that is, transaction 400, it is found that the transaction confirmation information of transaction 400 is invalid. Legal transaction confirmation information, therefore, the first transaction node will terminate the legality verification of the subsequent transaction 401, transaction 402,... The confirmation information and the transaction 399 are broadcast in the blockchain system, so that the consensus nodes in the blockchain system can verify the transaction legality of the transaction 399, and when each consensus node reaches a consensus, the transaction 399 is added to the block chain.
S103、仲裁节点接收交易核验请求,根据交易核验请求中包括的交易合约标识,从区块链中获取交易合约标识对应的交易合约数据,并根据交易合约数据确定第一交易数据的合法性,当确定第一交易数据为合法交易数据时,仲裁节点向第一交易节点发送对第一交易数据的第一交易确认信息。S103. The arbitration node receives the transaction verification request, obtains the 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 determines the legality of the first transaction data according to the transaction contract data. When determining that the first transaction data is legal transaction data, the arbitration node sends first transaction confirmation information for the first transaction data to the first transaction node.
在一些可行的实施方式中,仲裁节点通过接收交易核验请求,可根据交易核验请求中包括的交易合约标识,从区块链中获取交易合约标识对应的交易合约数据,并根据交易合约数据确定第一交易数据的合法性。应当理解的是,上述交易合约数据为第一交易节点和第二交易节点事先签订并上传至区块链中的合约数据,该交易合约数据中包括事前约定好的每次交易的交易详情信息。In some feasible implementations, by receiving the transaction verification request, the arbitration node can obtain the 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 the first order according to the transaction contract data. 1. Legality of transaction data. It should be understood that the above-mentioned transaction contract data is the contract data signed in advance by the first transaction node and the second transaction node and uploaded to the blockchain, and the transaction contract data includes the transaction details of each transaction agreed in advance.
具体地,仲裁节点可通过如下方式确认第一交易数据是否正常:根据交易核验请求中包括的交易合约标识,从区块链中获取交易合约标识对应的交易合约数据,通过验证第一交易数据中包括的各项数据内容是否与交易合约数据中对应的数据内容匹配,以判断第一交易数据是否正常,即是否满足合约条件。例如,仲裁节点可验证交易双方账户是否合法,验证转出账户余额是否支持转账金额等,具体验证方式可基于实际应用场景确定,在此不做限制。Specifically, the arbitration node can confirm whether the first transaction data is normal in the following manner: according to the transaction contract identifier included in the transaction verification request, obtain the transaction contract data corresponding to the transaction contract identifier from the blockchain, and verify the first transaction data by Whether the included data content matches the corresponding data content in the transaction contract data to determine whether the first transaction data is normal, that is, whether the contract conditions are met. For example, the arbitration node can verify whether the accounts of both parties of the transaction are legal, and whether the balance of the outgoing account supports the transfer amount, etc. The specific verification method can be determined based on the actual application scenario, which is not limited here.
可选的,在一些可行的实施方式中,当仲裁节点确定第一交易数据满足交易合约数据中的合约条件时,为使得仲裁节点的判断更具公信力,仲裁节点还可以将交易核验请求转发至与仲裁节点相关联的各仲裁辅助节点,以使各仲裁辅助节点根据交易核验请求中包括的交易合约标识,从区块链中获取交易合约标识对应的交易合约数据,以根据交易合约数据校验第一交易数据的合法性,并最终将生成的校验结果返回至仲裁节点。其中,仲裁节点通过接收各仲裁辅助节点发送的各校验结果,当确定各仲裁辅助节点发送的各校验结果皆为校验通过时,仲裁节点可最终确定第一交易数据为合法交易数据。Optionally, in some feasible implementations, when the arbitration node determines that the first transaction data satisfies the contract conditions in the transaction contract data, in order to make the judgment of the arbitration node more credible, the arbitration node may also 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 blockchain according to the transaction contract identifier included in the transaction verification request, so as to verify according to the transaction contract data The validity of the first transaction data, and finally return the generated verification result to the arbitration node. The arbitration node receives each verification result sent by each arbitration auxiliary node, and when it is determined that each verification result sent by each arbitration auxiliary node is all verified, the arbitration node can finally determine that the first transaction data is legal transaction data.
在一些可行的实施方式中,当仲裁节点确定第一交易数据为合法交易数据时,仲裁节点可向第一交易节点发送对第一交易数据的第一交易确认信息。也就是说,仲裁节点作为具备公信力的机构对应的节点,被仲裁节点确认后的交易可确定为合法交易数据。其中,当仲裁节点确定第一交易数据为异常交易或不合法交易数据时,可驳回或拒绝第一交易节点的交易核验请求。In some feasible implementation manners, when the arbitration node determines that the first transaction data is legal transaction data, the arbitration node may send first transaction confirmation information for the first transaction data to the first transaction node. That is to say, the arbitration node, as a node corresponding to a credible institution, can determine the transaction confirmed by the arbitration node as legal transaction data. Wherein, when the arbitration node determines that the first transaction data is abnormal transaction or illegal transaction data, it can reject or reject the transaction verification request of the first transaction node.
S104、第一交易节点接收第一交易确认信息,并将第一交易数据和第一交易确认信息在区块链系统中进行广播以使区块链系统中的各共识节点对第一交易数据进行校验以生成校验结果。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 each consensus node in the blockchain system performs the first transaction data on the first transaction data. Verify to generate verification results.
在一些可行的实施方式中,第一交易节点通过接收第一交易确认信息,可将第一交易数据和第一交易确认信息在区块链系统中进行广播以使区块链系统中的各共识节点对第一交易数据进行校验以生成校验结果。也就是说,当第二交易节点存在违约情况时,经仲裁节点确认后的交易数据可继续推进。In some feasible implementations, 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 in the blockchain system can be achieved. The node verifies the first transaction data to generate a verification result. That is to say, when the second transaction node is in breach of contract, the transaction data confirmed by the arbitration node can continue to advance.
S105、当第一交易节点根据接收到的各共识节点发送的校验结果确定各共识节点对第一交易数据达成共识时,将包括第一交易的交易区块添加至区块链。S105. When the first transaction node determines that each consensus node has reached a consensus on the first transaction data according to the received verification results sent by each consensus node, add a transaction block including the first transaction to the blockchain.
在一些可行的实施方式中,当第一交易节点根据接收到的各共识节点发送的校验结果确定各共识节点对第一交易数据达成共识时,可将包括第一交易的交易区块添加至区块链。具体地,当接收到的各共识节点返回的校验结果中校验通过的比例不小于预设通过比例时,则可确定各共识节点对第一交易数据达成共识。例如,当区块链系统中超过51%的共识节点的校验结果为校验通过时,即可确定各共识节点对第一交易数据达成了共识。进而,可将包括第一交易数据的交易区块添加至区块链中。In some feasible implementations, when the first transaction node determines that each consensus node has reached a consensus on the first transaction data according to the received verification results sent by each consensus node, the transaction block including the first transaction can be added to the blockchain. Specifically, when the proportion of the verification results returned by the received consensus nodes is not less than the preset pass ratio, it can be determined that each consensus node has reached a consensus on the first transaction data. For example, when the verification results of more than 51% of the consensus nodes in the blockchain system are verified, it can be determined that each consensus node has reached a consensus on the first transaction data. Further, the transaction block including the first transaction data can be added to the blockchain.
在一些可行的实施方式中,通过将包括第一交易的交易区块添加至区块链之后,第一交易节点可继续对第一交易数据之后的各笔交易数据的交易确认信息的合法性验证,当确定第一交易数据之后的各笔交易数据的交易确认信息皆为合法交易确认信息时,从第一交易数据之后的各笔交易数据中确定出交易产生时间最晚的第四交易数据,并将第四交易数据和第二交易节点对第四交易数据的交易确认信息在区块链系统中进行广播,以将包括第四交易数据的交易区块添加至区块链。In some feasible implementations, after adding the transaction block including the first transaction to the blockchain, the first transaction node can continue to verify the legitimacy of the transaction confirmation information of each transaction data after the first transaction data , when it is determined that the transaction confirmation information of each transaction data after the first transaction data is all legal transaction confirmation information, the fourth transaction data with the latest transaction generation time is determined from each transaction data after the first transaction data, The fourth transaction data and the transaction confirmation information of the second transaction node for the fourth transaction data are broadcast in the blockchain system, so as to add the transaction block including the fourth transaction data to the blockchain.
可选的,在一些可行的实施方式中,后续可每隔第一预设时间段,获取该第一预设时间段内的所有交易数据的交易确认信息进行合法性验证,当第一交易节点确定第一预设时间段内的多笔交易数据中每笔交易数据的交易确认信息皆为合法交易确认信息时,第一交易节点从多笔交易数据中确定出交易产生时间最晚的第二交易数据,并将第二交易数据和第二交易节点对第二交易数据的交易确认信息在区块链系统中进行广播,以使区块链系统中的各共识节点对第二交易进行校验。其中,当第一交易节点根据接收到的各共识节点发送的对第二交易数据的校验结果,确定各共识节点对第二交易数据达成共识时,将包括第二交易数据的交易区块添加至区块链。也就是说,当第一预设时间段内的每笔交易数据的交易确认信息皆为合法交易确认信息时,可将多笔交易数据中的最后一笔交易(即交易产生时间最晚的交易数据)发送至区块链网络中的共识节点以对该笔交易进行共识。并在达成共识时,将该第一预设时间段内的最后一笔交易上链。或者,在接收到第一交易节点或者第二交易节点发送的终止交易消息时,将在接收终止交易消息之前的最后一笔交易发送至区块链网络中的共识节点进行验证,并在验证通过后将该最后一笔交易上链。如A、B公司在基于合同进行日常交易的过程中,只有最后一笔交易为A、B公司的结算交易,在此之前的所有交易均为记账形式,因此可在A、B公司终止交易时,将双方的最后一笔交易进行上链即可。Optionally, in some feasible implementations, the transaction confirmation information of all transaction data within the first preset time period may be obtained for legality verification at every first preset time period. When the first transaction node When it is determined that the transaction confirmation information of each transaction data in the multiple transaction data within the first preset time period is legal transaction confirmation information, the first transaction node determines the second transaction generation time from the multiple transaction data. transaction data, and 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 can verify the second transaction . Wherein, when the first transaction node determines that each consensus node has reached a consensus on the second transaction data according to the received verification result of the second transaction data sent by each consensus node, the transaction block including the second transaction data is added to the transaction block. to the blockchain. That is to say, when the transaction confirmation information of each transaction data within the first preset time period is legal transaction confirmation information, the last transaction in the multiple transaction data (that is, the transaction with the latest transaction generation time) can be data) to consensus nodes in the blockchain network to reach consensus on the transaction. And when a consensus is reached, the last transaction within the first preset time period is put on the chain. Or, when receiving the termination transaction message sent by the first transaction node or the second transaction node, the last transaction before receiving the termination transaction message is sent to the consensus node in the blockchain network for verification, and after the verification passes Then the last transaction is put on the chain. For example, when companies A and B conduct daily transactions based on contracts, only the last transaction is the settlement transaction of companies A and B. All previous transactions are in the form of bookkeeping, so they can be terminated at companies A and B. , just upload the last transaction of both parties on the chain.
请参见图4,图4是本申请实施例提供的数据处理装置的一结构示意图。本申请实施例提供的数据处理装置包括:交易数据获取模块21,用于获取第一预设时间段内与第二交易节点间的多笔交易数据,以及所述第二交易节点对所述多笔交易数据中每笔交易数据的交易确认信息;处理模块22,用于根据每笔交易数据验证每笔交易数据的交易确认信息的合法性;收发模块23,用于当确定第一交易数据的交易确认信息为不合法交易确认信息时,向仲裁节点发送对所述第一交易数据的交易核验请求,以使所述仲裁节点通过接收所述交易核验请求,根据所述交易核验请求中包括的交易合约标识,从区块链中获取所述交易合约标识对应的交易合约数据,并根据所述交易合约数据确定所述第一交易数据的合法性,当确定所述第一交易数据为合法交易数据时,向所述收发模块发送对所述第一交易数据的第一交易确认信息;所述收发模块23,还用于接收所述第一交易确认信息,并将所述第一交易数据和所述第一交易确认信息在区块链系统中进行广播以使所述区块链系统中的各共识节点对所述第一交易数据进行校验以生成校验结果;区块上链模块24,用于当根据接收到的所述各共识节点发送的校验结果确定所述各共识节点对所述第一交易数据达成共识时,将包括所述第一交易的交易区块添加至区块链。Please refer to FIG. 4 , which is a schematic structural diagram of a data processing apparatus provided by an embodiment of the present application. The data processing apparatus provided by the embodiment of the present application includes: a transaction data acquisition module 21, configured to acquire multiple transaction data with a second transaction node within a first preset time period, and the second transaction node to the multiple transaction data. The transaction confirmation information of each transaction data in the transaction data; the processing module 22 is used to verify the legitimacy of the transaction confirmation information of each transaction data according to each transaction data; the transceiver module 23 is used to determine the validity of the first transaction data. When the transaction confirmation information is illegal transaction confirmation information, a transaction verification request for the first transaction data is sent to the arbitration node, so that the arbitration node receives the transaction verification request according to the transaction verification request. A transaction contract identifier, obtain the transaction contract data corresponding to the transaction contract identifier from the blockchain, and determine the legitimacy of the first transaction data according to the transaction contract data, when it is determined that the first transaction data is a legal transaction When the data is received, send the first transaction confirmation information for the first transaction data to the transceiver module; the transceiver module 23 is further configured to receive the first transaction confirmation information, and combine the first transaction data with the first transaction confirmation information. The first transaction confirmation information is broadcast in the blockchain system, so that each consensus node in the blockchain system verifies the first transaction data to generate a verification result; the block chaining module 24 is used to add the transaction block including the first transaction to the block when it is determined that the consensus nodes have reached a consensus on the first transaction data according to the received verification results sent by the consensus nodes chain.
在一些可行的实施方式中,所述处理模块22,还用于当确定所述多笔交易数据中每笔交易数据的交易确认信息皆为合法交易确认信息时,所述第一交易节点从所述多笔交易数据中确定出交易产生时间最晚的第二交易数据,所述收发模块23,还用于将所述第二交易数据和所述第二交易节点对所述第二交易数据的交易确认信息在区块链系统中进行广播,以使所述区块链系统中的各共识节点对所述第二交易进行校验;所述处理模块22,还用于当根据所述收发模块接收到的所述各共识节点发送的对所述第二交易数据的校验结果,确定所述各共识节点对所述第二交易数据达成共识时,将包括所述第二交易数据的交易区块添加至区块链。In some feasible implementations, the processing module 22 is further configured to, when it is determined that the transaction confirmation information of each transaction data in the multiple transaction data is legal transaction confirmation information, the first transaction node from the The second transaction data with the latest transaction generation time is determined from the multiple transaction data, and the transceiver module 23 is further configured to compare the second transaction data and the second transaction data by the second transaction node to the second transaction data. The transaction confirmation information is broadcast in the blockchain system, so that each consensus node in the blockchain system can verify the second transaction; the processing module 22 is also used for when according to the transceiver module The received verification results of the second transaction data sent by the consensus nodes, when it is determined that the consensus nodes reach a consensus on the second transaction data, will include the transaction area of the second transaction data. Blocks are added to the blockchain.
在一些可行的实施方式中,所述处理模块22还用于:根据第二预设时间段内所述第一交易节点与各交易节点间的交易数量,从所述各交易节点中确定出与所述第一交易节点间产生交易数量最多的交易节点,作为第二交易节点。In some feasible implementations, the processing module 22 is further configured to: according to the number of transactions between the first transaction node and each transaction node within a second preset time period, determine from the transaction nodes the number of transactions with each transaction node. The transaction node with the largest number of transactions between the first transaction nodes is used as the second transaction node.
在一些可行的实施方式中,每笔交易数据中包括交易产生时间,每笔交易数据的交易确认信息中包括所述第二交易节点对每笔交易数据的交易数字签名;所述处理模块22还用于:从所述区块链中获取所述第二交易节点的节点公钥,并按照交易产生时间从早到晚的顺序,基于所述节点公钥依次对每笔交易数据的交易数字签名进行解密以得到第一摘要信息;分别对每笔交易数据进行哈希运算以得到每笔交易数据对应的第二摘要信息;当第一交易数据对应的第一交易摘要信息与所述第一交易数据对应的第二摘要信息不同时,确定所述第一交易数据的交易确认信息为不合法交易确认信息。In some feasible implementations, each transaction data includes the transaction generation time, and the transaction confirmation information of each transaction data includes the transaction digital signature of the second transaction node for each transaction data; the processing module 22 further Used to: obtain the node public key of the second transaction node from the blockchain, and in the order of the transaction generation time from early to late, sequentially digitally sign the transaction data of each transaction based on the node public key Perform decryption to obtain the first summary information; perform hash operation on each transaction data to obtain the second summary information corresponding to each transaction data; when the first transaction summary information corresponding to the first transaction data and the first transaction When the second summary information corresponding to the data is different, it is determined that the transaction confirmation information of the first transaction data is illegal transaction confirmation information.
在一些可行的实施方式中,所述处理模块22还用于:暂停对所述第一交易数据之后的各笔交易数据的交易确认信息的合法性验证,并将第三交易数据和所述第二交易节点对所述第三交易数据的交易确认信息在区块链系统中进行广播以使区块链系统中各共识节点对所述第三交易进行校验,其中,所述第三交易数据为交易产生时间早于所述第一交易数据,且与所述第一交易数据的交易产生时间的交易产生时间差最小的交易数据;当根据接收到的所述各共识节点发送的对所述第三交易数据的校验结果确定所述各共识节点对所述第三交易数据达成共识时,将包括所述第三交易数据的交易区块添加至区块链。In some feasible implementations, the processing module 22 is further configured to: suspend the legality verification of the transaction confirmation information of each transaction data subsequent to the first transaction data, and combine the third transaction data with the first transaction data. The second transaction node broadcasts the transaction confirmation information of the third transaction data in the blockchain system, so that each consensus node in the blockchain system can verify the third transaction, wherein the third transaction data It is the transaction data whose transaction generation time is earlier than the first transaction data, and the transaction generation time difference between the transaction generation time of the first transaction data and the transaction generation time of the first transaction data is the smallest; When the verification result of the three transaction data determines that the consensus nodes reach a consensus on the third transaction data, the transaction block including the third transaction data is added to the blockchain.
在一些可行的实施方式中,所述处理模块22还用于:继续对所述第一交易数据之后的各笔交易数据的交易确认信息的合法性验证,当确定所述第一交易数据之后的各笔交易数据的交易确认信息皆为合法交易确认信息时,从所述第一交易数据之后的各笔交易数据中确定出交易产生时间最晚的第四交易数据,并将所述第四交易数据和所述第二交易节点对所述第四交易数据的交易确认信息在区块链系统中进行广播,以将包括所述第四交易数据的交易区块添加至区块链。In some feasible implementation manners, the processing module 22 is further configured to: continue to verify the legitimacy of the transaction confirmation information of each transaction data after the first transaction data. When the transaction confirmation information of each transaction data is legal transaction confirmation information, the fourth transaction data with the latest transaction generation time is determined from each transaction data after the first transaction data, and the fourth transaction data is determined. The data and the transaction confirmation information of the fourth transaction data by the second transaction node are broadcast in the blockchain system to add a transaction block including the fourth transaction data to the blockchain.
请参见图5,图5是本申请实施例提供的数据处理装置的另一结构示意图。本申请实施例提供的数据处理装置包括:收发模块31,用于接收对第一交易数据的交易核验请求;处理模块32,用于根据所述交易核验请求中包括的交易合约标识,从区块链中获取所述交易合约标识对应的交易合约数据;所述处理模块32,还用于根据所述交易合约数据确定所述第一交易数据的合法性;所述收发模块31,还用于当确定所述第一交易数据为合法交易数据时,向所述第一交易节点发送对所述第一交易数据的第一交易确认信息。Referring to FIG. 5 , FIG. 5 is another schematic structural diagram of a data processing apparatus provided by an embodiment of the present application. The data processing apparatus provided by the embodiment of the present application includes: a transceiver module 31, configured to receive a transaction verification request for the first transaction data; a processing module 32, configured to, according to the transaction contract identifier included in the transaction verification request, retrieve the data from the block The transaction contract data corresponding to the transaction contract identifier is obtained in the chain; the processing module 32 is further configured to determine the legality of the first transaction data according to the transaction contract data; the transceiver module 31 is further configured to When it is determined that the first transaction data is legal transaction data, first transaction confirmation information for the first transaction data is sent to the first transaction node.
在一些可行的实施方式中,所述收发模块31还用于当确定所述第一交易数据满足所述交易合约数据中的合约条件时,将所述交易核验请求转发至各仲裁辅助节点,以使所述各仲裁辅助节点根据所述交易核验请求中包括的所述交易合约标识,从区块链中获取所述交易合约标识对应的交易合约数据,并根据所述交易合约数据校验所述第一交易数据的合法性,并向所述收发模块发送对所述第一交易数据的校验结果;所述收发模块31,还用于接收所述各仲裁辅助节点发送的各校验结果;所述处理模块32,还用于当确定所述各仲裁辅助节点发送的各校验结果皆为校验通过时,确定所述第一交易数据为合法交易数据。In some feasible implementation manners, the transceiver module 31 is further configured to forward the transaction verification request to each arbitration auxiliary node when it is determined that the first transaction data satisfies the contract conditions in the transaction contract data, so as to Make each arbitration auxiliary node obtain the 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 verify the transaction contract data according to the transaction contract data. the validity of the first transaction data, and send the verification result of the first transaction data to the transceiver module; the transceiver module 31 is further configured to receive the verification results sent by the arbitration auxiliary nodes; The processing module 32 is further configured to determine that the first transaction data is legal transaction data when it is determined that the verification results sent by the arbitration auxiliary nodes are all verified.
请参见图6,图6是本申请实施例提供的终端设备的结构示意图。如图6所示,本实施例中的终端设备可以包括:一个或多个处理器401和存储器402。上述处理器401和存储器402通过总线403连接。存储器402用于存储计算机程序,该计算机程序包括程序指令,处理器401用于执行存储器402存储的程序指令,用于执行上述步骤S101至步骤S106中所提供的方法。Referring to FIG. 6, FIG. 6 is a schematic structural diagram of a terminal device provided by 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 a memory 402 . The above-mentioned processor 401 and memory 402 are connected through a bus 403 . The memory 402 is used for storing a computer program, the computer program includes program instructions, and the processor 401 is used for executing the program instructions stored in the memory 402 for executing the methods provided in the above steps S101 to S106.
应当理解,在一些可行的实施方式中,上述处理器401可以是中央处理单元 (central processing unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器 (digital signal processor,DSP)、专用集成电路 (application specific integrated circuit,ASIC)、现成可编程门阵列 (field programmable gate array,FPGA) 或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。该存储器402可以包括只读存储器和随机存取存储器,并向处理器401 提供指令和数据。存储器402的一部分还可以包括非易失性随机存取存储器。例如,存储器402还可以存储设备类型的信息。It should be understood that, in some feasible implementation manners, the above-mentioned processor 401 may be a central processing unit (central processing unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (digital signal processor, DSP), application-specific integrated circuit (application specific integrated circuit, ASIC), off-the-shelf programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The memory 402 , which may include read-only memory and random access memory, provides instructions and data to the processor 401 . A portion of memory 402 may also include non-volatile random access memory. For example, memory 402 may also store device type information.
具体实现中,上述终端设备可通过其内置的各个功能模块执行如上述图2中各个步骤所提供的实现方式。例如,该终端设备可以为上述的第一交易节点,可以执行上述方法中该第一交易节点执行的步骤;又如,该终端设备还可以为上述的仲裁节点,可以执行上述方法中该仲裁节点执行的步骤,具体可参见上述各个步骤所提供的实现方式,在此不再赘述。In a specific implementation, the above-mentioned terminal device may execute the implementation manner provided by each step in the above-mentioned FIG. 2 through various built-in function modules. For example, the terminal device can be the above-mentioned first transaction node, and can perform the steps performed by the first transaction node in the above-mentioned method; for another example, the terminal device can also be the above-mentioned arbitration node, and can perform the above-mentioned method in the arbitration node. For details of the steps to be performed, reference may be made to the implementation manners provided by the foregoing steps, and details are not described herein again.
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序包括程序指令,该程序指令被处理器执行时实现图2中各个步骤所提供的数据处理方法,具体可参见上述各个步骤所提供的实现方式,在此不再赘述。Embodiments of the present application further provide 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, data provided by each step in FIG. 2 is implemented For details of the processing method, reference may be made to the implementation manners provided by the above steps, and details are not described herein again.
可选的,本申请涉及的存储介质如计算机可读存储介质可以是非易失性的,也可以是易失性的。Optionally, the storage medium involved in this application, such as a computer-readable storage medium, may be non-volatile or volatile.
上述计算机可读存储介质可以是前述任一实施例提供的数据处理装置或者上述终端设备的内部存储单元,例如电子设备的硬盘或内存。该计算机可读存储介质也可以是该电子设备的外部存储设备,例如该电子设备上配备的插接式硬盘,智能存储卡(smart media card, SMC),安全数字(secure digital, SD)卡,闪存卡(flash card)等。进一步地,该计算机可读存储介质还可以既包括该电子设备的内部存储单元也包括外部存储设备。该计算机可读存储介质用于存储该计算机程序以及该电子设备所需的其他程序和数据。该计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。The above-mentioned computer-readable storage medium may be the data processing apparatus provided in any of the foregoing embodiments or an internal storage unit of the above-mentioned 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 pluggable hard disk, a smart media card (SMC), a secure digital (SD) card equipped on the electronic device, Flash card, etc. Further, the computer-readable storage medium may also include both an internal storage unit of the electronic device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the electronic device. The computer-readable storage medium can also be used to temporarily store data that has been or will be output.
本申请实施例提供的方法及相关装置是参照本申请实施例提供的方法流程图和/或结构示意图来描述的,具体可由计算机程序指令实现方法流程图和/或结构示意图的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。这些计算机程序指令可提供到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或结构示意图一个方框或多个方框中指定的功能的装置。这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或结构示意图一个方框或多个方框中指定的功能。这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或结构示意一个方框或多个方框中指定的功能的步骤。The methods and related apparatuses provided by the embodiments of the present application are described with reference to the method flowcharts and/or schematic structural diagrams provided in the embodiments of the present application. Specifically, each process and/or the schematic structural diagrams of the method flowcharts and/or structural schematic diagrams can be implemented by computer program instructions. or blocks, and combinations of processes and/or blocks in flowcharts and/or block diagrams. 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 device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce a function An apparatus for implementing the functions specified in one or more of the flowcharts and/or one or more blocks of the structural diagrams. These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in one or more of the flowcharts and/or one or more blocks of the structural diagram. These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the block or blocks of the flowchart and/or structural representation.

Claims (20)

  1. 一种数据处理方法,其中,所述方法包括:A data processing method, wherein the method comprises:
    第一交易节点获取第一预设时间段内与第二交易节点间的多笔交易数据,以及所述第二交易节点对所述多笔交易数据中每笔交易数据的交易确认信息;The first transaction node obtains multiple transaction data with the second transaction node within the first preset time period, and the transaction confirmation information of the second transaction node for each transaction data in the multiple transaction data;
    所述第一交易节点根据每笔交易数据验证每笔交易数据的交易确认信息的合法性,当确定第一交易数据的交易确认信息为不合法交易确认信息时,向仲裁节点发送对所述第一交易数据的交易核验请求,以使所述仲裁节点通过接收所述交易核验请求,根据所述交易核验请求中包括的交易合约标识,从区块链中获取所述交易合约标识对应的交易合约数据,并根据所述交易合约数据确定所述第一交易数据的合法性,当确定所述第一交易数据为合法交易数据时,向所述第一交易节点发送对所述第一交易数据的第一交易确认信息;The first transaction node verifies the legitimacy of the transaction confirmation information of each transaction data according to each transaction data, and when it is determined that the transaction confirmation information of the first transaction data is illegal transaction confirmation information, it sends the arbitration node to the arbitration node. A transaction verification request for transaction data, so that the arbitration node, by receiving the transaction verification request, obtains the transaction contract corresponding to the transaction contract identifier from the blockchain according to the transaction contract identifier included in the transaction verification request. data, and determine the legality of the first transaction data according to the transaction contract data, when it is determined that the first transaction data is legal transaction data, send the first transaction data to the first transaction node. The first transaction confirmation information;
    所述第一交易节点接收所述第一交易确认信息,并将所述第一交易数据和所述第一交易确认信息在区块链系统中进行广播以使所述区块链系统中的各共识节点对所述第一交易数据进行校验以生成校验结果;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 each The consensus node verifies the first transaction data to generate a verification result;
    当所述第一交易节点根据接收到的所述各共识节点发送的校验结果确定所述各共识节点对所述第一交易数据达成共识时,将包括所述第一交易的交易区块添加至区块链。When the first transaction node determines that the consensus nodes have reached a consensus on the first transaction data according to the received verification results sent by the consensus nodes, the transaction block including the first transaction is added to the transaction block. to the blockchain.
  2. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, wherein the method further comprises:
    当所述第一交易节点确定所述多笔交易数据中每笔交易数据的交易确认信息皆为合法交易确认信息时,所述第一交易节点从所述多笔交易数据中确定出交易产生时间最晚的第二交易数据,并将所述第二交易数据和所述第二交易节点对所述第二交易数据的交易确认信息在区块链系统中进行广播,以使所述区块链系统中的各共识节点对所述第二交易进行校验;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 the transaction generation time from the multiple transaction data The latest second transaction data, and 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 the blockchain Each consensus node in the system verifies the second transaction;
    当所述第一交易节点根据接收到的所述各共识节点发送的对所述第二交易数据的校验结果,确定所述各共识节点对所述第二交易数据达成共识时,将包括所述第二交易数据的交易区块添加至区块链。When the first transaction node determines that the consensus nodes have reached a consensus on the second transaction data according to the received verification results of the second transaction data sent by the consensus nodes, it will include all The transaction block of the second transaction data is added to the blockchain.
  3. 根据权利要求1所述的方法,其中,所述第一交易节点获取第一预设时间段内与第二交易节点间的多笔交易数据之前,所述方法还包括:The method according to claim 1, wherein before the first transaction node acquires multiple transaction data between the first transaction node and the second transaction node within the first preset time period, the method further comprises:
    所述第一交易节点根据第二预设时间段内所述第一交易节点与各交易节点间的交易数量,从所述各交易节点中确定出与所述第一交易节点间产生交易数量最多的交易节点,作为第二交易节点。According to the number of transactions between the first transaction node and each transaction node within the second preset time period, the first transaction node determines from the transaction nodes that the number of transactions generated between the first transaction node and the first transaction node is the largest. The transaction node of , as the second transaction node.
  4. 根据权利要求1所述的方法,其中,每笔交易数据中包括交易产生时间,每笔交易数据的交易确认信息中包括所述第二交易节点对每笔交易数据的交易数字签名;所述第一交易节点根据每笔交易数据验证每笔交易数据的交易确认信息的合法性包括:The method according to claim 1, wherein each transaction data includes 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; A transaction node verifies the legitimacy of the transaction confirmation information of each transaction data according to each transaction data, including:
    所述第一交易节点从所述区块链中获取所述第二交易节点的节点公钥,并按照交易产生时间从早到晚的顺序,基于所述节点公钥依次对每笔交易数据的交易数字签名进行解密以得到第一摘要信息;The first transaction node obtains the node public key of the second transaction node from the blockchain, and in the order of the transaction generation time from early to late, based on the public key of the node, the data of each transaction is sequentially evaluated. Decrypt the transaction digital signature to obtain the first digest information;
    所述第一交易节点分别对每笔交易数据进行哈希运算以得到每笔交易数据对应的第二摘要信息;The first transaction node performs a hash operation on each transaction data to obtain second summary information corresponding to each transaction data;
    当第一交易数据对应的第一交易摘要信息与所述第一交易数据对应的第二摘要信息不同时,所述第一交易节点确定所述第一交易数据的交易确认信息为不合法交易确认信息。When the first transaction summary information corresponding to the first transaction data is different from the 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 an illegal transaction confirmation information.
  5. 根据权利要求1-4任一项所述的方法,其中,所述向仲裁节点发送对所述第一交易数据的交易核验请求之前,所述方法还包括:The method according to any one of claims 1-4, wherein before the sending a transaction verification request for the first transaction data to the arbitration node, the method further comprises:
    所述第一交易节点暂停对所述第一交易数据之后的各笔交易数据的交易确认信息的合法性验证,并将第三交易数据和所述第二交易节点对所述第三交易数据的交易确认信息在区块链系统中进行广播以使区块链系统中各共识节点对所述第三交易进行校验,其中,所述第三交易数据为交易产生时间早于所述第一交易数据,且与所述第一交易数据的交易产生时间的交易产生时间差最小的交易数据;The first transaction node suspends the legality verification of the transaction confirmation information of each transaction data after the first transaction data, and compares the third transaction data and the second transaction node to the third transaction data. The transaction confirmation information is broadcast in the blockchain system to enable each consensus node in the blockchain system to verify the third transaction, wherein the third transaction data is that the transaction was generated earlier than the first transaction data, and the transaction data with the smallest transaction generation time difference from the transaction generation time of the first transaction data;
    当第一交易节点根据接收到的所述各共识节点发送的对所述第三交易数据的校验结果确定所述各共识节点对所述第三交易数据达成共识时,将包括所述第三交易数据的交易区块添加至区块链。When the first transaction node determines that the consensus nodes have reached a consensus on the third transaction data according to the received verification results of the third transaction data sent by the consensus nodes, the third transaction data will be included. A transaction block of transaction data is added to the blockchain.
  6. 根据权利要求5所述的方法,其中,所述将包括所述第一交易的交易区块添加至区块链之后,所述方法还包括:The method of claim 5, wherein after adding the transaction block including the first transaction to the blockchain, the method further comprises:
    所述第一交易节点继续对所述第一交易数据之后的各笔交易数据的交易确认信息的合法性验证,当确定所述第一交易数据之后的各笔交易数据的交易确认信息皆为合法交易确认信息时,从所述第一交易数据之后的各笔交易数据中确定出交易产生时间最晚的第四交易数据,并将所述第四交易数据和所述第二交易节点对所述第四交易数据的交易确认信息在区块链系统中进行广播,以将包括所述第四交易数据的交易区块添加至区块链。The first transaction node continues to verify the legitimacy of the transaction confirmation information of each transaction data after the first transaction data, when it is determined that the transaction confirmation information of each transaction data after the first transaction data is legal In the case of transaction confirmation information, the fourth transaction data with the latest transaction generation time is determined from the transaction data after the first transaction data, and the fourth transaction data and the second transaction node are compared to the transaction data. The transaction confirmation information of the fourth transaction data is broadcast in the blockchain system to add a transaction block including the fourth transaction data to the blockchain.
  7. 一种数据处理方法,其中,所述方法包括:A data processing method, wherein the method comprises:
    仲裁节点接收对第一交易数据的交易核验请求;The arbitration node receives the transaction verification request for the first transaction data;
    所述仲裁节点根据所述交易核验请求中包括的交易合约标识,从区块链中获取所述交易合约标识对应的交易合约数据;The arbitration node obtains the transaction contract data corresponding to the transaction contract identifier from the blockchain according to the transaction contract identifier included in the transaction verification request;
    所述仲裁节点根据所述交易合约数据确定所述第一交易数据的合法性,当确定所述第一交易数据为合法交易数据时,向第一交易节点发送对所述第一交易数据的第一交易确认信息。The arbitration node determines the legitimacy of the first transaction data according to the transaction contract data, and when determining that the first transaction data is legal transaction data, sends the first transaction data to the first transaction node. 1. Transaction confirmation information.
  8. 根据权利要求7所述的方法,其中,所述根据所述交易合约数据确定所述第一交易数据的合法性,包括:The method according to claim 7, wherein the determining the legitimacy of the first transaction data according to the transaction contract data comprises:
    当所述仲裁节点确定所述第一交易数据满足所述交易合约数据中的合约条件时,所述仲裁节点将所述交易核验请求转发至与所述仲裁节点相关联的各仲裁辅助节点,以使所述各仲裁辅助节点根据所述交易核验请求中包括的所述交易合约标识,从区块链中获取所述交易合约标识对应的交易合约数据,并根据所述交易合约数据校验所述第一交易数据的合法性,并向所述仲裁节点发送对所述第一交易数据的校验结果;When the arbitration node determines that the first transaction data satisfies the 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 as to Make each arbitration auxiliary node obtain the 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 verify the transaction contract data according to the transaction contract data. the validity of the first transaction data, and send the verification result of the first transaction data to the arbitration node;
    所述仲裁节点接收所述各仲裁辅助节点发送的各校验结果,当确定所述各仲裁辅助节点发送的各校验结果皆为校验通过时,所述仲裁节点确定所述第一交易数据为合法交易数据。The arbitration node receives the verification results sent by the arbitration auxiliary nodes, and when it is determined that the verification results sent by the arbitration auxiliary nodes are all verified, the arbitration node determines the first transaction data. For legitimate transaction data.
  9. 一种数据处理方法,其中,所述方法包括:A data processing method, wherein the method comprises:
    第一交易节点获取第一预设时间段内与第二交易节点间的多笔交易数据,以及所述第二交易节点对所述多笔交易数据中每笔交易数据的交易确认信息;The first transaction node obtains multiple transaction data with the second transaction node within the first preset time period, and the transaction confirmation information of each transaction data in the multiple transaction data by the second transaction node;
    所述第一交易节点根据每笔交易数据验证每笔交易数据的交易确认信息的合法性,当确定第一交易数据的交易确认信息为不合法交易确认信息时,向仲裁节点发送对所述第一交易数据的交易核验请求;The first transaction node verifies the legitimacy of the transaction confirmation information of each transaction data according to each transaction data, and when it is determined that the transaction confirmation information of the first transaction data is illegal transaction confirmation information, it sends the arbitration node to the arbitration node. 1. A transaction verification request for transaction data;
    所述仲裁节点接收所述交易核验请求,根据所述交易核验请求中包括的交易合约标识,从区块链中获取所述交易合约标识对应的交易合约数据,并根据所述交易合约数据确定所述第一交易数据的合法性,当确定所述第一交易数据为合法交易数据时,所述仲裁节点向所述第一交易节点发送对所述第一交易数据的第一交易确认信息;The arbitration node receives the transaction verification request, obtains the 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 determines the transaction contract data according to the transaction contract data. the validity of the first transaction data, when determining that the first transaction data is legal transaction data, the arbitration node sends first transaction confirmation information for the first transaction data 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 the blockchain system, so that each The consensus node verifies the first transaction data to generate a verification result;
    当所述第一交易节点根据接收到的所述各共识节点发送的校验结果确定所述各共识节点对所述第一交易数据达成共识时,将包括所述第一交易的交易区块添加至区块链。When the first transaction node determines that the consensus nodes have reached a consensus on the first transaction data according to the received verification results sent by the consensus nodes, the transaction block including the first transaction is added to the transaction block. to the blockchain.
  10. 一种终端设备,其中,所述终端设备为第一交易节点;所述终端设备包括:处理器和存储器,所述处理器和所述存储器相互连接,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用上述程序指令,执行以下方法:A terminal device, wherein the terminal device is a first transaction node; the terminal device comprises: a processor and a memory, the processor and the memory are connected to each other, the memory is used to store a computer program, the The computer program includes program instructions, and the processor is configured to invoke the program instructions to perform the following method:
    获取第一预设时间段内与第二交易节点间的多笔交易数据,以及所述第二交易节点对所述多笔交易数据中每笔交易数据的交易确认信息;Acquiring multiple transaction data with the second transaction node within the first preset time period, and transaction confirmation information of the second transaction node for each transaction data in the multiple transaction data;
    根据每笔交易数据验证每笔交易数据的交易确认信息的合法性,当确定第一交易数据的交易确认信息为不合法交易确认信息时,向仲裁节点发送对所述第一交易数据的交易核验请求,以使所述仲裁节点通过接收所述交易核验请求,根据所述交易核验请求中包括的交易合约标识,从区块链中获取所述交易合约标识对应的交易合约数据,并根据所述交易合约数据确定所述第一交易数据的合法性,当确定所述第一交易数据为合法交易数据时,向所述第一交易节点发送对所述第一交易数据的第一交易确认信息;The validity of the transaction confirmation information of each transaction data is verified according to each transaction data, and when it is determined that the transaction confirmation information of the first transaction data is illegal transaction confirmation information, the transaction verification information of the first transaction data is sent to the arbitration node. request, so that the arbitration node, by receiving the transaction verification request, obtains the 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 according to the transaction contract identifier The transaction contract data determines the legitimacy of the first transaction data, and when it is determined that the first transaction data is legal transaction data, first transaction confirmation information for the first transaction data is sent to the first transaction node;
    接收所述第一交易确认信息,并将所述第一交易数据和所述第一交易确认信息在区块链系统中进行广播以使所述区块链系统中的各共识节点对所述第一交易数据进行校验以生成校验结果;Receive the first transaction confirmation information, and broadcast the first transaction data and the first transaction confirmation information in the block chain system, so that each consensus node in the block chain system can understand the first transaction data and the first transaction confirmation information. A transaction data is verified to generate a verification result;
    当根据接收到的所述各共识节点发送的校验结果确定所述各共识节点对所述第一交易数据达成共识时,将包括所述第一交易的交易区块添加至区块链。When it is determined that the consensus nodes have reached a consensus on the first transaction data according to the received verification results sent by the consensus nodes, a transaction block including the first transaction is added to the blockchain.
  11. 根据权利要求10所述的终端设备,其中,所述处理器还用于执行:The terminal device according to claim 10, wherein the processor is further configured to execute:
    当确定所述多笔交易数据中每笔交易数据的交易确认信息皆为合法交易确认信息时,从所述多笔交易数据中确定出交易产生时间最晚的第二交易数据,并将所述第二交易数据和所述第二交易节点对所述第二交易数据的交易确认信息在区块链系统中进行广播,以使所述区块链系统中的各共识节点对所述第二交易进行校验;When it is determined that the transaction confirmation information of each transaction data in the multiple transaction data is legal transaction confirmation information, the second transaction data with the latest transaction generation time is determined from the multiple transaction data, and the The second transaction data and the transaction confirmation information of the second transaction data by the second transaction node are broadcast in the blockchain system, so that each consensus node in the blockchain system can verify the second transaction data. check;
    当根据接收到的所述各共识节点发送的对所述第二交易数据的校验结果,确定所述各共识节点对所述第二交易数据达成共识时,将包括所述第二交易数据的交易区块添加至区块链。When it is determined that the consensus nodes have reached a consensus on the second transaction data according to the received verification results of the second transaction data sent by the consensus nodes, the data including the second transaction data will be The transaction block is added to the blockchain.
  12. 根据权利要求10或11所述的终端设备,其中,所述向仲裁节点发送对所述第一交易数据的交易核验请求之前,所述处理器还用于执行:The terminal device according to claim 10 or 11, wherein before the sending the transaction verification request for the first transaction data to the arbitration node, the processor is further configured to execute:
    暂停对所述第一交易数据之后的各笔交易数据的交易确认信息的合法性验证,并将第三交易数据和所述第二交易节点对所述第三交易数据的交易确认信息在区块链系统中进行广播以使区块链系统中各共识节点对所述第三交易进行校验,其中,所述第三交易数据为交易产生时间早于所述第一交易数据,且与所述第一交易数据的交易产生时间的交易产生时间差最小的交易数据;Suspend the legality verification of the transaction confirmation information of each transaction data after the first transaction data, and put the third transaction data and the transaction confirmation information of the second transaction node on the third transaction data in the block broadcast in the blockchain system to enable each consensus node in the blockchain system to verify the third transaction, wherein the third transaction data is that the transaction generation time is earlier than the first transaction data, and is consistent with the The transaction data with the smallest transaction generation time difference of the transaction generation time of the first transaction data;
    当根据接收到的所述各共识节点发送的对所述第三交易数据的校验结果确定所述各共识节点对所述第三交易数据达成共识时,将包括所述第三交易数据的交易区块添加至区块链。When it is determined that the consensus nodes have reached a consensus on the third transaction data according to the received verification results of the third transaction data sent by the consensus nodes, the transaction including the third transaction data Blocks are added to the blockchain.
  13. 根据权利要求12所述的终端设备,其中,所述将包括所述第一交易的交易区块添加至区块链之后,所述处理器还用于执行:The terminal device according to claim 12, wherein after the transaction block including the first transaction is added to the blockchain, the processor is further configured to execute:
    继续对所述第一交易数据之后的各笔交易数据的交易确认信息的合法性验证,当确定所述第一交易数据之后的各笔交易数据的交易确认信息皆为合法交易确认信息时,从所述第一交易数据之后的各笔交易数据中确定出交易产生时间最晚的第四交易数据,并将所述第四交易数据和所述第二交易节点对所述第四交易数据的交易确认信息在区块链系统中进行广播,以将包括所述第四交易数据的交易区块添加至区块链。Continue to verify the legitimacy of the transaction confirmation information of each transaction data after the first transaction data, when it is determined that the transaction confirmation information of each transaction data after the first transaction data is legal transaction confirmation information, from In each transaction data after the first transaction data, the fourth transaction data with the latest transaction generation time is determined, and the transaction between the fourth transaction data and the second transaction node on the fourth transaction data is calculated. The confirmation information is broadcast in the blockchain system to add the transaction block including the fourth transaction data to the blockchain.
  14. 一种终端设备,其中,所述终端设备为仲裁节点;所述终端设备包括:处理器和存储器,所述处理器和所述存储器相互连接,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用上述程序指令,执行以下方法:A terminal device, wherein the terminal device is an arbitration node; the terminal device includes: a processor and a memory, the processor and the memory are connected to each other, and the memory is used to store a computer program, the computer program Including program instructions, the processor is configured to invoke the above program instructions to perform the following methods:
    接收对第一交易数据的交易核验请求;receiving a transaction verification request for the first transaction data;
    根据所述交易核验请求中包括的交易合约标识,从区块链中获取所述交易合约标识对应的交易合约数据;According to the transaction contract identifier included in the transaction verification request, obtain the transaction contract data corresponding to the transaction contract identifier from the blockchain;
    根据所述交易合约数据确定所述第一交易数据的合法性,当确定所述第一交易数据为合法交易数据时,向第一交易节点发送对所述第一交易数据的第一交易确认信息。The validity of the first transaction data is determined according to the transaction contract data, and when it is determined that the first transaction data is legal transaction data, first transaction confirmation information for the first transaction data is sent to the first transaction node .
  15. 根据权利要求14所述的终端设备,其中,执行所述根据所述交易合约数据确定所述第一交易数据的合法性,包括:The terminal device according to claim 14, wherein the determining the validity of the first transaction data according to the transaction contract data comprises:
    当确定所述第一交易数据满足所述交易合约数据中的合约条件时,将所述交易核验请求转发至与所述仲裁节点相关联的各仲裁辅助节点,以使所述各仲裁辅助节点根据所述交易核验请求中包括的所述交易合约标识,从区块链中获取所述交易合约标识对应的交易合约数据,并根据所述交易合约数据校验所述第一交易数据的合法性,并向所述仲裁节点发送对所述第一交易数据的校验结果;When it is determined that the first transaction data satisfies the contract conditions in the transaction contract data, the transaction verification request is forwarded to each arbitration auxiliary node associated with the arbitration node, so that each arbitration auxiliary node is based on the For the transaction contract identifier included in the transaction verification request, obtain the transaction contract data corresponding to the transaction contract identifier from the blockchain, and verify the legality of the first transaction data according to the transaction contract data, and sending the verification result of the first transaction data to the arbitration node;
    接收所述各仲裁辅助节点发送的各校验结果,当确定所述各仲裁辅助节点发送的各校验结果皆为校验通过时,确定所述第一交易数据为合法交易数据。Receive each verification result sent by each arbitration assistant node, and when it is determined that each verification result sent by each arbitration assistant node is all verification passed, determine that the first transaction data is legal transaction data.
  16. 一种计算机可读存储介质,其中,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行以下方法:A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, the computer program comprising program instructions that, when executed by a processor, cause the processor to perform the following method:
    获取第一预设时间段内与第二交易节点间的多笔交易数据,以及所述第二交易节点对所述多笔交易数据中每笔交易数据的交易确认信息;Acquiring multiple transaction data with the second transaction node within the first preset time period, and transaction confirmation information of the second transaction node for each transaction data in the multiple transaction data;
    根据每笔交易数据验证每笔交易数据的交易确认信息的合法性,当确定第一交易数据的交易确认信息为不合法交易确认信息时,向仲裁节点发送对所述第一交易数据的交易核验请求,以使所述仲裁节点通过接收所述交易核验请求,根据所述交易核验请求中包括的交易合约标识,从区块链中获取所述交易合约标识对应的交易合约数据,并根据所述交易合约数据确定所述第一交易数据的合法性,当确定所述第一交易数据为合法交易数据时,向第一交易节点发送对所述第一交易数据的第一交易确认信息;The validity of the transaction confirmation information of each transaction data is verified according to each transaction data, and when it is determined that the transaction confirmation information of the first transaction data is illegal transaction confirmation information, the transaction verification information of the first transaction data is sent to the arbitration node. request, so that the arbitration node, by receiving the transaction verification request, obtains the 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 according to the transaction contract identifier The transaction contract data determines the legitimacy of the first transaction data, and when it is determined that the first transaction data is legal transaction data, sending first transaction confirmation information for the first transaction data to the first transaction node;
    接收所述第一交易确认信息,并将所述第一交易数据和所述第一交易确认信息在区块链系统中进行广播以使所述区块链系统中的各共识节点对所述第一交易数据进行校验以生成校验结果;Receive the first transaction confirmation information, and broadcast the first transaction data and the first transaction confirmation information in the block chain system, so that each consensus node in the block chain system can understand the first transaction data and the first transaction confirmation information. A transaction data is verified to generate a verification result;
    当根据接收到的所述各共识节点发送的校验结果确定所述各共识节点对所述第一交易数据达成共识时,将包括所述第一交易的交易区块添加至区块链。When it is determined that the consensus nodes have reached a consensus on the first transaction data according to the received verification results sent by the consensus nodes, a transaction block including the first transaction is added to the blockchain.
  17. 根据权利要求16所述的计算机可读存储介质,其中,所述程序指令当被处理器执行时还使所述处理器执行:The computer-readable storage medium of claim 16, wherein the program instructions, when executed by a processor, further cause the processor to:
    当确定所述多笔交易数据中每笔交易数据的交易确认信息皆为合法交易确认信息时,从所述多笔交易数据中确定出交易产生时间最晚的第二交易数据,并将所述第二交易数据和所述第二交易节点对所述第二交易数据的交易确认信息在区块链系统中进行广播,以使所述区块链系统中的各共识节点对所述第二交易进行校验;When it is determined that the transaction confirmation information of each transaction data in the multiple transaction data is legal transaction confirmation information, the second transaction data with the latest transaction generation time is determined from the multiple transaction data, and the The second transaction data and the transaction confirmation information of the second transaction data by the second transaction node are broadcast in the blockchain system, so that each consensus node in the blockchain system can verify the second transaction data. check;
    当根据接收到的所述各共识节点发送的对所述第二交易数据的校验结果,确定所述各共识节点对所述第二交易数据达成共识时,将包括所述第二交易数据的交易区块添加至区块链。When it is determined that the consensus nodes have reached a consensus on the second transaction data according to the received verification results of the second transaction data sent by the consensus nodes, the data including the second transaction data will be The transaction block is added to the blockchain.
  18. 根据权利要求16或17所述的计算机可读存储介质,其中,所述向仲裁节点发送对所述第一交易数据的交易核验请求之前,所述程序指令当被处理器执行时还使所述处理器执行:17. The computer-readable storage medium of claim 16 or 17, wherein the program instructions, when executed by a processor, further cause the The processor executes:
    暂停对所述第一交易数据之后的各笔交易数据的交易确认信息的合法性验证,并将第三交易数据和所述第二交易节点对所述第三交易数据的交易确认信息在区块链系统中进行广播以使区块链系统中各共识节点对所述第三交易进行校验,其中,所述第三交易数据为交易产生时间早于所述第一交易数据,且与所述第一交易数据的交易产生时间的交易产生时间差最小的交易数据;Suspend the legality verification of the transaction confirmation information of each transaction data after the first transaction data, and put the third transaction data and the transaction confirmation information of the second transaction node on the third transaction data in the block broadcast in the blockchain system to enable each consensus node in the blockchain system to verify the third transaction, wherein the third transaction data is that the transaction generation time is earlier than the first transaction data, and is consistent with the The transaction data with the smallest transaction generation time difference of the transaction generation time of the first transaction data;
    当根据接收到的所述各共识节点发送的对所述第三交易数据的校验结果确定所述各共识节点对所述第三交易数据达成共识时,将包括所述第三交易数据的交易区块添加至区块链。When it is determined that the consensus nodes have reached a consensus on the third transaction data according to the received verification results of the third transaction data sent by the consensus nodes, the transaction including the third transaction data Blocks are added to the blockchain.
  19. 根据权利要求18所述的计算机可读存储介质,其中,所述将包括所述第一交易的交易区块添加至区块链之后,所述程序指令当被处理器执行时还使所述处理器执行:19. The computer-readable storage medium of claim 18, wherein the program instructions, when executed by a processor, further cause the processing after adding the transaction block including the first transaction to the blockchain The device executes:
    继续对所述第一交易数据之后的各笔交易数据的交易确认信息的合法性验证,当确定所述第一交易数据之后的各笔交易数据的交易确认信息皆为合法交易确认信息时,从所述第一交易数据之后的各笔交易数据中确定出交易产生时间最晚的第四交易数据,并将所述第四交易数据和所述第二交易节点对所述第四交易数据的交易确认信息在区块链系统中进行广播,以将包括所述第四交易数据的交易区块添加至区块链。Continue to verify the legitimacy of the transaction confirmation information of each transaction data after the first transaction data, when it is determined that the transaction confirmation information of each transaction data after the first transaction data is legal transaction confirmation information, from In each transaction data after the first transaction data, the fourth transaction data with the latest transaction generation time is determined, and the transaction between the fourth transaction data and the second transaction node on the fourth transaction data is calculated. The confirmation information is broadcast in the blockchain system to add the transaction block including the fourth transaction data to the blockchain.
  20. 一种计算机可读存储介质,其中,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行以下方法:A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, the computer program comprising program instructions that, when executed by a processor, cause the processor to perform the following method:
    接收对第一交易数据的交易核验请求;receiving a transaction verification request for the first transaction data;
    根据所述交易核验请求中包括的交易合约标识,从区块链中获取所述交易合约标识对应的交易合约数据;According to the transaction contract identifier included in the transaction verification request, obtain the transaction contract data corresponding to the transaction contract identifier from the blockchain;
    根据所述交易合约数据确定所述第一交易数据的合法性,当确定所述第一交易数据为合法交易数据时,向第一交易节点发送对所述第一交易数据的第一交易确认信息。The validity of the first transaction data is determined according to the transaction contract data, and when it is determined that the first transaction data is legal transaction data, first transaction confirmation information for the first transaction data is sent to the first transaction node .
PCT/CN2021/097308 2020-08-28 2021-05-31 Data processing method and apparatus WO2022041902A1 (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
WO2022041902A1 true WO2022041902A1 (en) 2022-03-03

Family

ID=73587336

Family Applications (1)

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

Country Status (2)

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

Cited By (1)

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

Families Citing this family (2)

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

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180285869A1 (en) * 2017-03-28 2018-10-04 Alibaba Group Holding Limited Method and apparatus for processing transaction requests
CN109872159A (en) * 2019-01-07 2019-06-11 必可嘉(武汉)科技有限公司 A kind of block chain common recognition method and framework
CN110555774A (en) * 2019-09-10 2019-12-10 苏州阿尔山数字科技有限公司 Distributed consensus mechanism with arbitration
CN110648204A (en) * 2019-09-20 2020-01-03 北京海益同展信息科技有限公司 Method and apparatus for arbitration
CN112036878A (en) * 2020-08-28 2020-12-04 平安科技(深圳)有限公司 Data processing method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109598616B (en) * 2018-12-09 2023-08-22 大连飞创信息技术有限公司 Method for protecting privacy of blockchain data by introducing arbitration mechanism
WO2019170167A2 (en) * 2019-05-31 2019-09-12 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
CN111179087B (en) * 2019-12-31 2023-07-18 重庆邮电大学 Alliance chain consensus method based on grid arbitration

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180285869A1 (en) * 2017-03-28 2018-10-04 Alibaba Group Holding Limited Method and apparatus for processing transaction requests
CN109872159A (en) * 2019-01-07 2019-06-11 必可嘉(武汉)科技有限公司 A kind of block chain common recognition method and framework
CN110555774A (en) * 2019-09-10 2019-12-10 苏州阿尔山数字科技有限公司 Distributed consensus mechanism with arbitration
CN110648204A (en) * 2019-09-20 2020-01-03 北京海益同展信息科技有限公司 Method and apparatus for arbitration
CN112036878A (en) * 2020-08-28 2020-12-04 平安科技(深圳)有限公司 Data processing method and device

Cited By (2)

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

Also Published As

Publication number Publication date
CN112036878A (en) 2020-12-04
CN112036878B (en) 2023-08-22

Similar Documents

Publication Publication Date Title
US10824763B2 (en) Integrity of communications between blockchain networks and external data sources
WO2022095244A1 (en) Cross-chain transaction method, system and apparatus, device, and storage medium
US11323271B2 (en) Retrieving public data for blockchain networks using highly available trusted execution environments
US11095629B2 (en) Retrieving access data for blockchain networks using highly available trusted execution environments
WO2022041902A1 (en) Data processing method and apparatus
CN108596588B (en) Block data processing method and device, computing equipment and storage medium
US8555069B2 (en) Fast-reconnection of negotiable authentication network clients
US20220239496A1 (en) Blockchain consensus method, device and system
CN110601816B (en) Lightweight node control method and device in block chain system
CN110570196A (en) Transaction data processing method and device, terminal equipment and storage medium
WO2019101232A2 (en) Methods and devices for providing transaction data to blockchain system for processing
WO2021017350A1 (en) Bidding document management method and system, and computer readable storage medium
WO2022179115A1 (en) User authentication method and apparatus, server and storage medium
CN115567324B (en) Data encryption transmission method, system, computer equipment and storage medium
US11290256B2 (en) Blockchain-based advertisement monitoring method and apparatus, and electronic device
US10880383B2 (en) Methods and devices for establishing communication between nodes in blockchain system
WO2023045972A1 (en) Consensus method and device for blockchain system
WO2021031741A1 (en) Voip processing method, device, and terminal
JP2022554202A (en) INTERACTIVE AGGREGATE SIGNATURE METHOD, EQUIPMENT AND STORAGE MEDIUM
CN110060055B (en) Digital asset hosting method and device in block chain and electronic equipment
CN112994891B (en) Transaction request consensus method and system based on threshold signature
WO2021027504A1 (en) Consensus protocol-based information processing method, and related device
WO2023103689A1 (en) Method and device for generating random number in blockchain, blockchain node, storage medium and computer program product
WO2023005500A1 (en) Cross-chain transaction processing method and apparatus, electronic device, and storage medium
WO2021088451A1 (en) Methods and devices for preventing denial-of-service attack on blockchain system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21859746

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21859746

Country of ref document: EP

Kind code of ref document: A1