CN112036878B - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

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

Links

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

Abstract

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

Description

Data processing method and device
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a data processing method and apparatus.
Background
In existing blockchain verification mechanisms, each transaction data is required to pass verification of all or most of the nodes in the blockchain before the transaction data is written to the blockchain. However, in the case of multi-party nodes participating in the blockchain, each transaction data requires a certain amount of time. For two nodes with a large number of transactions between the nodes, each transaction needs to pass the verification of the multiparty nodes, so that the processing efficiency of transaction data is greatly reduced, and the blockchain resources are wasted.
Disclosure of Invention
The embodiment of the application provides a data processing method and a data processing device, which can improve transaction data processing efficiency and save blockchain resources.
In a first aspect, an embodiment of the present application provides a data processing method, including:
the method comprises the steps that a first transaction node obtains a plurality of transaction data between a first preset time period and a second transaction node, and the second transaction node confirms transaction information of each transaction data in the plurality of transaction data;
the first transaction node verifies the validity of the transaction confirmation information of each transaction data according to each transaction data, and when the transaction confirmation information of the first transaction data is determined to be illegal transaction confirmation information, a transaction verification request for the first transaction data is sent to an arbitration node;
the arbitration node receives the transaction verification request, acquires transaction contract data corresponding to the transaction contract identifier from a blockchain according to the transaction contract identifier included in the transaction verification request, so as to determine validity of the first transaction data according to the transaction contract data, and when the first transaction data is determined to be legal transaction data, the arbitration node sends first transaction confirmation information of 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 a blockchain system so that each consensus node in the blockchain system checks the first transaction data to generate a check result;
and adding a transaction block comprising the first transaction to a blockchain when the first transaction node determines that each consensus node agrees with the first transaction data according to the received verification result sent by each consensus node.
With reference to the first aspect, in a possible implementation manner, the method further includes:
when the first transaction node determines that the transaction confirmation information of each transaction data in the transaction data is legal transaction confirmation information, the first transaction node determines second transaction data with latest transaction generation time from the transaction data, and broadcasts the second transaction data and the transaction confirmation information of the second transaction data by the second transaction node in a blockchain system so that each consensus node in the blockchain system verifies the second transaction;
And when the first transaction node determines that the first transaction node agrees with the second transaction data according to the received verification result of the second transaction data sent by the consensus nodes, adding a transaction block comprising the second transaction data to a blockchain.
With reference to the first aspect, in one possible implementation manner, before the first transaction node obtains a plurality of transaction data between the first preset time period and the second transaction node, the method further includes:
and the first transaction node determines the transaction node with the largest transaction quantity generated between the first transaction node and the first transaction node from the transaction nodes according to the transaction quantity between the first transaction node and each transaction node in a second preset time period, and takes the transaction node as a second transaction node.
With reference to the first aspect, in a possible implementation manner, each transaction data includes a transaction generation time, and the transaction confirmation information of each transaction data includes a transaction digital signature of the second transaction node on each transaction data; the first transaction node verifying validity of transaction confirmation information of each transaction data according to each transaction data comprises the following steps:
The first transaction node acquires a node public key of the second transaction node from the blockchain, and sequentially decrypts the transaction digital signature of each transaction data based on the node public key according to the sequence of transaction generation time from early to late to obtain first abstract information;
the first transaction node respectively carries out hash operation on each transaction data to obtain second abstract information corresponding to each transaction data;
when first transaction summary information corresponding to first transaction data is different from second summary information corresponding to the first transaction data, the first transaction node determines that transaction confirmation information of the first transaction data is illegal transaction confirmation information.
With reference to the first aspect, in a possible implementation manner, before the sending, to an arbitration node, a transaction verification request for the first transaction data, the method further includes:
the first transaction node pauses validity verification of transaction confirmation information of each transaction data after the first transaction data, and broadcasts third transaction data and the transaction confirmation information of the second transaction node to the third transaction data in a blockchain system so that each consensus node in the blockchain system verifies the third transaction, wherein the third transaction data is transaction data with a transaction generation time earlier than the first transaction data and a transaction generation time with the first transaction data with a minimum transaction generation time difference;
And when the first transaction node determines that the first transaction node agrees with the third transaction data according to the received verification result of the third transaction data sent by the consensus nodes, adding a transaction block comprising the third transaction data to a blockchain.
With reference to the first aspect, in a possible implementation manner, after the adding the transaction block including the first transaction to a blockchain, the method further includes:
and the first transaction node continuously verifies the validity of the transaction confirmation information of each transaction data after the first transaction data, determines fourth transaction data with latest transaction generation time from each transaction data after the first transaction data when determining that the transaction confirmation information of each transaction data after the first transaction data is legal transaction confirmation information, and broadcasts the transaction confirmation information of the fourth transaction data by the fourth transaction data and the second transaction node in a blockchain system so as to add a transaction block comprising the fourth transaction data to a blockchain.
With reference to the first aspect, in a possible implementation manner, the determining validity of the first transaction data according to the transaction contract data includes:
When the arbitration node determines that the first transaction data meets 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 that each arbitration auxiliary node obtains transaction contract data corresponding to the transaction contract identification from a blockchain according to the transaction contract identification included in the transaction verification request, verifies the validity of the first transaction data according to the transaction contract data, and sends a verification result of the first transaction data to the arbitration node;
and the arbitration node receives all the verification results sent by all the arbitration auxiliary nodes, and when all the verification results sent by all the arbitration auxiliary nodes are determined to pass the verification, the arbitration node determines that the first transaction data are legal transaction data.
In a second aspect, an embodiment of the present application provides a data processing method, including:
the method comprises the steps that a first transaction node obtains a plurality of transaction data between a first preset time period and a second transaction node, and the second transaction node confirms transaction information of each transaction data in the plurality of transaction data;
The first transaction node verifies the validity of transaction confirmation information of each transaction data according to each transaction data, when the transaction confirmation information of the first transaction data is determined to be illegal transaction confirmation information, a transaction verification request for the first transaction data is sent to an arbitration node, so that the arbitration node obtains transaction contract data corresponding to the transaction contract identification from a blockchain according to the transaction contract identification included in the transaction verification request by receiving the transaction verification request, and determines the validity of the first transaction data according to the transaction contract data, and when the first transaction data is determined to be legal transaction data, the first transaction confirmation information for the first transaction data is sent to the first transaction node;
the first transaction node receives the first transaction confirmation information and broadcasts the first transaction data and the first transaction confirmation information in a blockchain system so that each consensus node in the blockchain system checks the first transaction data to generate a check result;
and adding a transaction block comprising the first transaction to a blockchain when the first transaction node determines that each consensus node agrees with the first transaction data according to the received verification result sent by each consensus node.
In a third aspect, an embodiment of the present application provides a data processing method, including:
the arbitration node receives the transaction verification request;
the arbitration node acquires transaction contract data corresponding to the transaction contract identification from a blockchain according to the transaction contract identification included in the transaction verification request;
the arbitration node determines validity of the first transaction data according to the transaction contract data, and when the first transaction data is determined to be legal transaction data, sends first transaction confirmation information for the first transaction data to the first transaction node.
In a fourth aspect, an embodiment of the present application provides a data processing apparatus, including:
the transaction data acquisition module is used for acquiring a plurality of transaction data between a first preset time period and a second transaction node and transaction confirmation information of the second transaction node on each transaction data in the plurality of transaction data;
the processing module is used for verifying the validity of the transaction confirmation information of each transaction data according to each transaction data;
the receiving and transmitting module is used for transmitting a transaction verification request for the first transaction data to the arbitration node when the transaction verification information of the first transaction data is determined to be illegal transaction verification information, so that the arbitration node obtains transaction contract data corresponding to the transaction contract identification from a blockchain according to the transaction contract identification included in the transaction verification request by receiving the transaction verification request, determines the validity of the first transaction data according to the transaction contract data, and transmits the first transaction verification information for the first transaction data to the receiving and transmitting module when the first transaction data is determined to be legal transaction data;
The transceiver module is further configured to receive the first transaction confirmation information, and broadcast the first transaction data and the first transaction confirmation information in a blockchain system, so that each consensus node in the blockchain system performs verification on the first transaction data to generate a verification result;
and the block uplink module is used for adding the transaction block comprising the first transaction to a block chain when the consensus nodes agree on the first transaction data according to the received verification result sent by the consensus nodes.
In a fifth aspect, an embodiment of the present application provides a data processing apparatus, including:
the receiving and transmitting module is used for receiving the transaction verification request;
the processing module is used for acquiring transaction contract data corresponding to the transaction contract identification from a blockchain according to the transaction contract identification included in the transaction verification request;
the processing module is further used for determining the validity of the first transaction data according to the transaction contract data;
the transceiver module is further configured to send first transaction confirmation information for the first transaction data to the first transaction node when the first transaction data is determined to be 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 for storing a computer program supporting the terminal device to perform the method provided in the second or third aspect, the computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method provided in the second or third aspect.
In a seventh aspect, embodiments of the present application provide a computer readable storage medium storing a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method provided in the second or third aspects above.
In an eighth aspect, an embodiment of the present application provides a data processing system, the data processing system comprising a first transaction node and an arbitration node, wherein:
the first transaction node is used for acquiring a plurality of transaction data between the first transaction node and the second transaction node in a first preset time period, and transaction confirmation information of the second transaction node on each transaction data in the plurality of transaction data;
The first transaction node is further configured to verify validity of transaction confirmation information of each transaction data according to each transaction data, and 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 an arbitration node;
the arbitration node is configured to receive the transaction verification request, acquire transaction contract data corresponding to the transaction contract identifier from a blockchain according to the transaction contract identifier included in the transaction verification request, determine validity of the first transaction data according to the transaction contract data, and send first transaction confirmation information for the first transaction data to the first transaction node when the first transaction data is determined to be legal transaction data;
the first transaction node is further configured to receive the first transaction confirmation information, and broadcast the first transaction data and the first transaction confirmation information in a blockchain system, so that each consensus node in the blockchain system performs verification on the first transaction data to generate a verification result;
and when the first transaction node is further used for determining that each consensus node agrees with the first transaction data according to the received verification result sent by each consensus node, adding the transaction block comprising the first transaction to a blockchain.
In the embodiment of the present application, when the transaction confirmation information received by the first transaction node from the second transaction node for a certain transaction data is illegal transaction confirmation information, the first transaction node may send a transaction verification request including the certain transaction data to the arbitration node, so that the arbitration node verifies the certain transaction data. When the arbitration node determines that the transaction data is legal, the arbitration node can send transaction confirmation information (namely first transaction confirmation information) of the transaction data to the first transaction node, and then the first transaction node can send the transaction data and the first transaction confirmation information to the consensus nodes so that each consensus node can verify the transaction data, and when the consensus nodes are determined to agree on the transaction data, the transaction data is uplink. The application can accelerate the confirmation speed of the transaction data by introducing the arbitration node, thereby improving the transaction data processing efficiency, and simultaneously, the application saves the blockchain resources by linking up individual transaction data (for example, the transaction data corresponding to the illegal transaction confirmation information received from the second transaction node) instead of linking up each generated transaction data.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a block chain network topology according to an embodiment of the present application;
FIG. 2 is a flow chart of a data processing method according to an embodiment of the present application;
fig. 3 is a schematic diagram of an application scenario of data processing provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of a data processing apparatus according to an embodiment of the present application;
FIG. 5 is a schematic diagram of another structure of a data processing apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a blockchain network topology according to an embodiment of the present application. The blockchain network topology may include multiple nodes or multiple types of nodes, as shown in fig. 1, and the blockchain network topology may include transaction nodes, arbitration auxiliary nodes, and consensus nodes. For convenience of description, the transaction node, the arbitration auxiliary node, the consensus node and the like may be collectively referred to as nodes in the blockchain network, wherein each node has a connection relationship with other nodes. As shown in fig. 1, the number of each type of node may include a plurality, for example, the transaction node may include transaction node 1, transaction node 2, and the like, without limitation. It will be appreciated that any node in the blockchain network topology may be any form of computing device, such as a server, terminal, etc., without limitation. It should be understood that terminals include, but are not limited to, cell phones, tablet computers, notebook computers, palm top computers, mobile internet devices (mobile internet device, MID), and the like, without limitation. Each node may receive input information while operating normally and maintain shared data within the blockchain network topology based on the received input information. In order to ensure information intercommunication in the blockchain network topology, information connection can exist between each node in the blockchain network topology, and information transmission can be carried out between the nodes through the information connection. For example, when any node in the blockchain network topology receives input information, other nodes in the blockchain network topology acquire the input information according to a consensus algorithm, and store the input information as data in shared data, so that the data stored on all nodes in the blockchain network topology are consistent.
According to the method, the first transaction node can verify the validity of the transaction confirmation information of each transaction data according to each transaction data by acquiring the transaction data between the first transaction node and the second transaction node in the first preset time period and the transaction confirmation information of the second transaction node on each transaction data in the transaction data. Wherein when the transaction confirmation information of the first transaction data is determined to be illegal transaction confirmation information, the first transaction node may send a transaction verification request for the first transaction data to the arbitration node. The arbitration node can acquire transaction contract data corresponding to the transaction contract identification from the blockchain according to the transaction contract identification included in the transaction verification request by receiving the transaction verification request, determine validity of the first transaction data according to the transaction contract data, and send first transaction confirmation information for the first transaction data to the first transaction node when the first transaction data is determined to be legal transaction data. The first transaction node receives the first transaction confirmation information, and can 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 check the first transaction data to generate a check result. When the first transaction node determines that each consensus node agrees with the first transaction data according to the received verification result sent by each consensus node, adding a transaction block comprising the first transaction to the blockchain. By adopting the embodiment of the application, the transaction data processing efficiency can be improved, and the blockchain resources can be saved.
The method and the related device according to the embodiments of the present application will be described in detail below with reference to fig. 2 to 6, respectively.
Referring to fig. 2, fig. 2 is a flowchart illustrating a data processing method according to an embodiment of the application. The method provided by the embodiment of the application can comprise the following steps S101 to S106:
s101, a first transaction node acquires a plurality of transaction data between the first transaction node and a second transaction node in a first preset time period, and transaction confirmation information of the second transaction node on each transaction data in the plurality of transaction data.
In some possible embodiments, the first transaction node may obtain a plurality of transaction data between the first transaction node and the second transaction node within a first predetermined period of time, and the second transaction node may determine transaction confirmation information for each of the plurality of transaction data. 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 serve as participants, such as transfer transaction, reddening package, etc., which can be specifically determined based on actual application scenario, and is not limited herein. The specific value of the first preset time period may also be determined according to the actual application scenario, which is not limited herein.
Generally, the first transaction node may determine, from the transaction nodes, the transaction node with the largest transaction number generated between the first transaction node and the first transaction node as the second transaction node according to the transaction number between the first transaction node and each transaction node in the second preset time period. That is, the first transaction node may determine, from other transaction nodes, a transaction node that is frequently transacted with itself as the second transaction node by monitoring the transaction condition of each other transaction node in the blockchain system with itself in a period of time.
Alternatively, in some possible embodiments, when the first transaction node monitors that there is a transaction occurring between the first transaction node and a certain transaction node within N consecutive unit times, the transaction node may be determined to be the second transaction node. The unit time includes, but is not limited to, one hour, one day, one week, etc., and may be specifically determined based on the actual application scenario, which is not limited herein. Wherein, N is an integer greater than 2, and the specific value of N may be determined based on the actual application scenario, which is not limited herein.
Optionally, in some possible embodiments, the first transaction node may further determine, as the second transaction node, a transaction node whose historical transaction amount is greater than a preset number threshold by acquiring historical transaction amounts between other transaction nodes in the blockchain system and the first transaction node.
S102, the first transaction node verifies the validity of the transaction confirmation information of each transaction data according to each transaction data, and when the transaction confirmation information of the first transaction data is determined to be illegal transaction confirmation information, a transaction verification request for the first transaction data is sent to the arbitration node.
In some possible embodiments, the first transaction node may verify the validity of the transaction confirmation information of the second transaction node for each transaction data according to each transaction data. The transaction data may include transaction generation time, transaction amount, transaction participants (i.e., the first transaction node and the second transaction node), transaction event, and the like. The transaction confirmation information may include a transaction digital signature of the second transaction node on the transaction data, etc. Therefore, when the first transaction node verifies the validity of the transaction confirmation information of each transaction data according to each transaction data, the first transaction node can acquire the node public key of the second transaction node from the blockchain, and sequentially decrypt the transaction digital signature of each transaction data based on the node public key according to the sequence of the transaction generation time from the early to the late to obtain the first summary information. Further, the first transaction node may further perform hash operation on each transaction data to obtain second summary information corresponding to each transaction data. It should be understood that, when the first transaction summary information corresponding to any transaction data (for convenience of description, the first transaction data is taken as an example for description) is the same as the second summary information corresponding to the first transaction data, the transaction confirmation information of the first transaction data may be determined to be 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, the transaction confirmation information of the first transaction data can be determined to be illegal transaction confirmation information.
For example, taking a certain transfer transaction between 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 may generate transaction data corresponding to the transfer transaction, which may be abbreviated as transfer transaction data for convenience of description. The transfer transaction data can comprise transaction generation time, transfer amount, transfer party, transaction event and other data contents. It will be appreciated that the achievement of any one transaction necessarily requires that both parties to the transaction approve and disagree with the transfer transaction data. Therefore, in order to ensure that the transfer transaction is performed normally, the first transaction node needs to send a transaction confirmation request including the transfer transaction data to the second transaction node, so that the second transaction node generates transaction confirmation information for the transfer transaction according to the transaction confirmation request, and returns the transaction confirmation information to the first transaction node.
Generally, after the second node transaction node receives the transaction confirmation request, if it is determined that the transfer transaction data included in the transaction confirmation request is correct, transaction confirmation information for the transfer transaction data may be transmitted to the first transaction node. The transaction confirmation information may include a transaction digital signature of the second transaction node on the transaction data, and so on. Specifically, the second transaction node may perform hash operation on the transfer transaction data after the confirmation of no error based on the hash algorithm, so as to obtain corresponding summary information. And encrypting the generated abstract information by using a node private key of the second transaction node to obtain a transaction digital signature. The second transaction node may then send transaction confirmation information including the transaction digital signature to the first transaction node. When the first transaction node receives the transaction confirmation information sent by the second transaction node, the first transaction node may obtain the node public key of the second transaction node from the blockchain, decrypt the transaction digital signature included in the transaction confirmation information based on the node public key of the second transaction node to obtain decrypted digest information (for convenience of description, the first digest information is taken as an example), and at the same time, the first transaction node performs hash operation on the transfer transaction data to obtain the digest information corresponding to the transfer transaction data (for convenience of description, the second digest information is taken as an example). And further, the validity of the transaction confirmation information can be determined by comparing and analyzing the first abstract information and the second abstract information. In general, when the first summary information is the same as the second summary information, the transaction confirmation information may be determined to be legal transaction confirmation information, that is, when the first transaction node determines that the transaction confirmation information is legal transaction confirmation information, it is indicated that the second transaction node has no objection to confirm the transfer transaction data, so that the transaction may be performed 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, when the transaction confirmation information is determined to be illegal transaction confirmation information, it may be determined that the second transaction node has a default condition. Or when the first transaction node sends the transaction confirmation request to the second transaction node for a plurality of times, and the transaction confirmation information returned by the second transaction node based on each sent transaction confirmation request is illegal transaction confirmation information, the second transaction node can be determined to have the default condition. Alternatively, when the transaction digital signature cannot be decrypted based on the node public key of the second transaction node, it may also be determined that the transaction confirmation information is illegal transaction confirmation information. Or when the first transaction node overtime does not receive the transaction confirmation information sent by the second transaction node, the second transaction node can be determined to have a default condition.
In some possible embodiments, the first transaction node may apply for intervention by the arbitration node when it is determined that the transaction confirmation information of the first transaction data is illegal transaction confirmation information. 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 transmit a transaction verification request for the first transaction data to the arbitration node.
Optionally, in some possible embodiments, when the first transaction node determines that the transaction confirmation information of the first transaction data is illegal transaction confirmation information, the first transaction node may suspend validity verification of the transaction confirmation information of each transaction data after the first transaction data, and broadcast the third transaction data and the transaction confirmation information of the second transaction node on the third transaction data in the blockchain system to enable each consensus node in the blockchain system to verify the third transaction, where the third transaction data is transaction data with a transaction generation time earlier than the first transaction data and a transaction generation time with a transaction generation time of the first transaction data having a minimum time difference. It will be appreciated that when the first transaction node determines that each of the consensus nodes agrees with the third transaction data based on the received verification result of the third transaction data sent by each of the consensus nodes, a transaction block including the third transaction data is added to the blockchain. That is, when the first transaction node determines that the transaction confirmation information of the first transaction data is illegal transaction confirmation information, the first transaction node may suspend validity verification of the transaction confirmation information of other transaction data generated later in time than the first transaction data for subsequent transactions, so as to save computing resources. Meanwhile, the first transaction node may send a transaction data (for convenience of description, abbreviated as a third transaction data) located before the first transaction data, which is closest to the transaction generation time of the first transaction data, to each consensus node in the blockchain system for verification, and when determining that each consensus node agrees with the third transaction data, the third transaction data is uplink.
For example, please refer to fig. 3, fig. 3 is a schematic diagram of an application scenario of data processing according to an embodiment of the present application. As shown in fig. 3, 1000 transaction data are included in the first preset time period, wherein the transaction data can be respectively marked as a transaction 1, a transaction 2, a transaction 3, … …, a transaction 399, a transaction 400, a transaction 401, … …, a transaction 999 and a transaction 1000 according to the sequence of the transaction generation time. In order to ensure normal transaction, the second transaction node needs to confirm each transaction data. When the first transaction node sequentially performs validity verification on the transaction confirmation information of each transaction data according to the transaction generation time, and when the 400 th transaction is verified, namely the transaction 400, the first transaction node finds that the transaction confirmation information of the transaction 400 is illegal, so that the first transaction node terminates validity verification on the transaction confirmation information of the subsequent transaction 401, the transaction 402, the … …, the transaction 999 and the transaction 1000, and simultaneously, the first transaction node can broadcast the transaction confirmation information of the transaction 399 and the transaction 399 in the blockchain system, so that the consensus node in the blockchain system can perform transaction validity verification on the transaction 399 and add the transaction 399 to the blockchain when the consensus nodes agree.
And S103, the arbitration node receives a transaction verification request, acquires transaction contract data corresponding to the transaction contract identification from the blockchain according to the transaction contract identification included in the transaction verification request, determines validity of the first transaction data according to the transaction contract data, and when the first transaction data is determined to be legal transaction data, the arbitration node sends first transaction confirmation information for the first transaction data to the first transaction node.
In some possible embodiments, the arbitration node may obtain, from the blockchain, transaction contract data corresponding to the transaction contract identification according to the transaction contract identification included in the transaction verification request by receiving the transaction verification request, and determine validity of the first transaction data according to the transaction contract data. It should be appreciated that the transaction contract data is contract data signed in advance for the first transaction node and the second transaction node and uploaded to the blockchain, and the transaction contract data comprises transaction detail information of each transaction agreed in advance.
Specifically, the arbitration node may confirm whether the first transaction data is normal by: according to the transaction contract identification included in the transaction verification request, transaction contract data corresponding to the transaction contract identification is obtained from the blockchain, and whether the first transaction data are normal or not is judged by verifying whether each item of data content included in the first transaction data is matched with the corresponding data content in the transaction contract data or not, namely whether the contract condition is met or not. For example, the arbitration node may verify whether the accounts of both sides of the transaction are legal, verify whether the balance of the transfer account supports the transfer amount, and the like, and the specific verification manner may be determined based on the actual application scenario, which is not limited herein.
Optionally, in some possible embodiments, when the arbitration node determines that the first transaction data meets the contract condition in the transaction contract data, in order to make the judgment of the arbitration node more public, the arbitration node may further forward the transaction verification request to each arbitration auxiliary node associated with the arbitration node, so that each arbitration auxiliary node obtains, from the blockchain, the transaction contract data corresponding to the transaction contract identification according to the transaction contract identification included in the transaction verification request, to verify the validity of the first transaction data according to the transaction contract data, and finally returns the generated verification result to the arbitration node. The arbitration node receives each check result sent by each arbitration auxiliary node, and when each check result sent by each arbitration auxiliary node is determined to be passing, the arbitration node can finally determine that the first transaction data is legal transaction data.
In some possible implementations, when the arbitration node determines that the first transaction data is legitimate transaction data, the arbitration node may send first transaction confirmation information for the first transaction data to the first transaction node. That is, the arbitration node is a node corresponding to an organization having public trust, and the transaction confirmed by the arbitration node can be determined as legal transaction data. When the arbitration node determines that the first transaction data is abnormal transaction or illegal transaction data, the transaction verification request of the first transaction node can be rejected or refused.
And 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 checks the first transaction data to generate a check result.
In some possible 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 to cause each consensus node in the blockchain system to verify the first transaction data to generate a verification result. That is, when there is an default condition at the second transaction node, the transaction data confirmed by the arbitration node may continue to advance.
S105, when the first transaction node determines that each consensus node agrees with the first transaction data according to the received verification result sent by each consensus node, adding the transaction block comprising the first transaction to the blockchain.
In some possible embodiments, when the first transaction node determines that each consensus node agrees with the first transaction data according to the received verification result sent by each consensus node, a transaction block including the first transaction may be added to the blockchain. Specifically, when the proportion of verification passing in the verification results returned by the received consensus nodes is not smaller than the preset passing proportion, the consensus nodes can be determined to agree on the first transaction data. For example, when more than 51% of the common nodes in the blockchain system pass the verification, it may be determined that each common node has made a common reference to the first transaction data. Further, a transaction block including the first transaction data may be added to the blockchain.
In some possible embodiments, after adding the transaction block including the first transaction to the blockchain, the first transaction node may continue validity verification of the transaction confirmation information of each transaction data subsequent to the first transaction data, determine, when the transaction confirmation information of each transaction data subsequent to the first transaction data is determined to be all legal transaction confirmation information, fourth transaction data having a latest transaction generation time from each transaction data subsequent to the first transaction data, and broadcast the fourth transaction data and the transaction confirmation information of the second transaction node on the fourth transaction data in the blockchain system to add the transaction block including the fourth transaction data to the blockchain.
Optionally, in some possible embodiments, the transaction confirmation information of all transaction data in the first preset time period may be obtained for validity verification at intervals of the first preset time period, and when the first transaction node determines that the transaction confirmation information of each transaction data in the plurality of transaction data in the first preset time period is valid transaction confirmation information, the first transaction node determines second transaction data with latest transaction generation time from the plurality of transaction data, and broadcasts the second transaction data and the transaction confirmation information of the second transaction data by the second transaction node in the blockchain system, so that each consensus node in the blockchain system verifies the second transaction. And when the first transaction node determines that each consensus node agrees with the second transaction data according to the received verification result of the second transaction data sent by each consensus node, adding the transaction block comprising the second transaction data to the blockchain. That is, when the transaction confirmation information of each transaction data in the first preset time period is legal transaction confirmation information, the last transaction (i.e. the transaction data with the latest transaction generation time) in the transaction data is sent to the consensus node in the blockchain network to perform consensus on the transaction. And when consensus is reached, linking up the last transaction in the first preset time period. Or when receiving the transaction termination message sent by the first transaction node or the second transaction node, sending the last transaction before receiving the transaction termination message to a consensus node in the blockchain network for verification, and after the verification is passed, linking the last transaction. For example, in the process of daily transaction based on contract, A, B company only has the last transaction as A, B company settlement transaction, and all transactions before the last transaction are in a billing form, so that when A, B company terminates the transaction, the last transaction of both parties can be linked.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a data processing apparatus according to an embodiment of the application. The data processing device provided by the embodiment of the application comprises:
a transaction data acquisition module 21, configured to acquire a plurality of transaction data between a first preset time period and a second transaction node, and transaction confirmation information of the second transaction node on each transaction data in the plurality of transaction data;
a processing module 22, configured to verify validity of the transaction confirmation information of each transaction data according to each transaction data;
a transceiver module 23, configured to send a transaction verification request for the first transaction data to an arbitration node when determining that the transaction verification information of the first transaction data is illegal transaction verification information, so that the arbitration node obtains transaction contract data corresponding to the transaction contract identification from a blockchain according to the transaction contract identification included in the transaction verification request by receiving the transaction verification request, and determines validity of the first transaction data according to the transaction contract data, and send the first transaction verification information for the first transaction data to the transceiver module when determining that the first transaction data is legal transaction data;
The transceiver module 23 is further configured to receive the first transaction confirmation information, and broadcast the first transaction data and the first transaction confirmation information in a blockchain system to enable each consensus node in the blockchain system to check the first transaction data to generate a check result;
and the block uplink module 24 is configured to add a transaction block including the first transaction to the blockchain when it is determined that the consensus nodes agree on the first transaction data according to the received verification result sent by the consensus nodes.
In some possible embodiments, the processing module 22 is further configured to, when determining that the transaction confirmation information of each transaction data in the plurality of transaction data is legal transaction confirmation information, determine, by the first transaction node, second transaction data with a latest transaction generation time from the plurality of transaction data, and the transceiver module 23 is further configured to broadcast, by the second transaction data and the second transaction node, the transaction confirmation information of the second transaction data in a blockchain system, so that each consensus node in the blockchain system verifies the second transaction;
The processing module 22 is further configured to add a transaction block including the second transaction data to a blockchain when it is determined that the second transaction data is agreed by the consensus nodes according to the verification result of the second transaction data sent by the consensus nodes and received by the transceiver module.
In some possible embodiments, the processing module 22 is further configured to:
and determining the transaction node with the largest transaction quantity generated between the transaction node and the first transaction node from the transaction nodes according to the transaction quantity between the first transaction node and each transaction node in a second preset time period, and taking the transaction node as a second transaction node.
In some possible embodiments, each transaction data includes a transaction generation time, and each transaction data transaction confirmation information includes a transaction digital signature of the second transaction node on each transaction data; the processing module 22 is further configured to:
acquiring a node public key of the second transaction node from the blockchain, and decrypting the transaction digital signature of each transaction data based on the node public key in sequence from the early to the late according to the transaction generation time so as to obtain first abstract information;
Carrying out hash operation on each transaction data to obtain second abstract information corresponding to each transaction data;
when first transaction summary information corresponding to first transaction data is different from second summary information corresponding to the first transaction data, determining that transaction confirmation information of the first transaction data is illegal transaction confirmation information.
In some possible embodiments, the processing module 22 is further configured to:
suspending validity verification of transaction confirmation information of each transaction data after the first transaction data, broadcasting third transaction data and the transaction confirmation information of the second transaction node on the third transaction data in a blockchain system so that each consensus node in the blockchain system verifies the third transaction, wherein the third transaction data is transaction data with transaction generation time earlier than the first transaction data and the transaction generation time of the third transaction data is the transaction data with the minimum time difference;
and adding a transaction block comprising the third transaction data to a blockchain when the consensus nodes agree on the third transaction data according to the received verification result of the third transaction data sent by the consensus nodes.
In some possible embodiments, the processing module 22 is further configured to:
and continuing to verify the validity of the transaction confirmation information of each transaction data after the first transaction data, determining fourth transaction data with latest transaction generation time from each transaction data after the first transaction data when the transaction confirmation information of each transaction data after the first transaction data is determined to be legal transaction confirmation information, and broadcasting the transaction confirmation information of the fourth transaction data by the fourth transaction data and the second transaction node in a blockchain system so as to add a transaction block comprising the fourth transaction data to a blockchain.
Referring to fig. 5, fig. 5 is another schematic structural diagram of a data processing apparatus according to an embodiment of the present application. The data processing device provided by the embodiment of the application comprises:
a transceiver module 31 for receiving the transaction verification request;
a processing module 32, configured to obtain, from a blockchain, transaction contract data corresponding to a transaction contract identifier included in the transaction verification request according to the transaction contract identifier;
the processing module 32 is further configured to determine validity of the first transaction data according to the transaction contract data;
The transceiver module 31 is further configured to send first transaction confirmation information for the first transaction data to the first transaction node when the first transaction data is determined to be legal transaction data.
In some possible embodiments, the transceiver module 31 is further configured to, when determining that the first transaction data meets a contract condition in the transaction contract data, forward the transaction verification request to each arbitration auxiliary node, so that each arbitration auxiliary node obtains, from a blockchain, transaction contract data corresponding to the transaction contract identifier according to the transaction contract identifier included in the transaction verification request, verifies validity of the first transaction data according to the transaction contract data, and sends a verification result of the first transaction data to the transceiver module;
the transceiver module 31 is further configured to receive each verification result sent by each arbitration auxiliary node;
the processing module 32 is further configured to determine that the first transaction data is legal transaction data when it is determined that each of the check results sent by each of the arbitration auxiliary nodes is a check passing.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 6, the terminal device in this embodiment may include: one or more processors 401 and a memory 402. The processor 401 and the memory 402 are connected via a bus 403. The memory 402 is used for storing a computer program comprising program instructions, and the processor 401 is used for executing the program instructions stored in the memory 402 for executing the methods provided in steps S101 to S106 described above.
It should be appreciated that in some possible embodiments, the processor 401 described above may be a central processing unit (central processing unit, CPU), which may also be other general purpose processors, digital signal processors (digital signal processor, DSP), application specific integrated circuits (application specific integrated circuit, ASIC), off-the-shelf programmable gate arrays (field programmable gate array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The memory 402 may include read only memory and random access memory and provides instructions and data to the processor 401. A portion of memory 402 may also include non-volatile random access memory. For example, the memory 402 may also store information of device type.
In a specific implementation, the terminal device may execute, through each functional module built in the terminal device, an implementation manner provided by each step in fig. 2, and specifically, the implementation manner provided by each step may be referred to, which is not described herein again.
The embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium stores a computer program, where the computer program includes program instructions, and when the program instructions are executed by a processor, implement a data processing method provided by each step in fig. 2, and specifically, reference may be made to an implementation manner provided by each step, which is not described herein again.
The computer readable storage medium may be the data processing apparatus provided in any one of the foregoing embodiments or an internal storage unit of the terminal device, for example, a hard disk or a memory of an electronic device. The computer readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash card (flash card) or the like, which are provided on the electronic device. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the electronic device. The computer-readable storage medium is used to store the computer program and other programs and data required by the electronic device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
The terms "first," "second," "third," "fourth" and the like in the claims and in the description and drawings of the present application are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments. The term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations. Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The method and related apparatus provided in the embodiments of the present application are described with reference to the flowchart and/or schematic structural diagrams of the method provided in the embodiments of the present application, and each flow and/or block of the flowchart and/or schematic structural diagrams of the method may be implemented by computer program instructions, and combinations of flows and/or blocks in the flowchart 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 apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or structural diagram block or blocks. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or structures.

Claims (7)

1. A method of data processing, the method comprising:
the method comprises the steps that a first transaction node obtains a plurality of transaction data between a first preset time period and a second transaction node, and the second transaction node confirms transaction information of each transaction data in the plurality of transaction data;
the first transaction node verifies the validity of the transaction confirmation information of each transaction data according to each transaction data, and when the transaction confirmation information of the first transaction data is determined to be illegal transaction confirmation information, a transaction verification request for the first transaction data is sent to an arbitration node;
the arbitration node receives the transaction verification request, acquires transaction contract data corresponding to the transaction contract identification from a blockchain according to the transaction contract identification included in the transaction verification request, determines validity of the first transaction data according to the transaction contract data, and when determining that the first transaction data is legal transaction data, sends first transaction confirmation information of 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 a blockchain system so that each consensus node in the blockchain system checks the first transaction data to generate a check result;
When the first transaction node determines that the first transaction node agrees with the first transaction data according to the received verification result sent by the consensus nodes, adding a transaction block comprising the first transaction to a blockchain;
wherein prior to the sending of the transaction verification request for the first transaction data to the arbitration node, the method further comprises:
the first transaction node pauses validity verification of transaction confirmation information of each transaction data after the first transaction data, and broadcasts third transaction data and the transaction confirmation information of the second transaction node to the third transaction data in a blockchain system so that each consensus node in the blockchain system verifies the third transaction, wherein the third transaction data is transaction data with a transaction generation time earlier than the first transaction data and a transaction generation time with the first transaction data with a minimum transaction generation time difference;
when the first transaction node determines that the first transaction node agrees with the third transaction data according to the received verification result of the third transaction data sent by the consensus nodes, adding a transaction block comprising the third transaction data to a blockchain;
Wherein after the adding the transaction block including the first transaction to the blockchain, the method further includes:
and the first transaction node continuously verifies the validity of the transaction confirmation information of each transaction data after the first transaction data, determines fourth transaction data with latest transaction generation time from each transaction data after the first transaction data when determining that the transaction confirmation information of each transaction data after the first transaction data is legal transaction confirmation information, and broadcasts the transaction confirmation information of the fourth transaction data by the fourth transaction data and the second transaction node in a blockchain system so as to add a transaction block comprising the fourth transaction data to a blockchain.
2. The method according to claim 1, wherein the method further comprises:
when the first transaction node determines that the transaction confirmation information of each transaction data in the transaction data is legal transaction confirmation information, the first transaction node determines second transaction data with latest transaction generation time from the transaction data, and broadcasts the second transaction data and the transaction confirmation information of the second transaction data by the second transaction node in a blockchain system so that each consensus node in the blockchain system verifies the second transaction;
And when the first transaction node determines that the first transaction node agrees with the second transaction data according to the received verification result of the second transaction data sent by the consensus nodes, adding a transaction block comprising the second transaction data to a blockchain.
3. The method of claim 1, wherein prior to the first transaction node obtaining a plurality of transaction data between the first transaction node and the second transaction node within a first predetermined time period, the method further comprises:
and the first transaction node determines the transaction node with the largest transaction quantity generated between the first transaction node and the first transaction node from the transaction nodes according to the transaction quantity between the first transaction node and each transaction node in a second preset time period, and takes the transaction node as a second transaction node.
4. The method of claim 1 wherein each transaction data includes a transaction generation time and wherein each transaction data transaction confirmation includes a transaction digital signature of each transaction data by the second transaction node; the first transaction node verifying validity of transaction confirmation information of each transaction data according to each transaction data comprises the following steps:
The first transaction node acquires a node public key of the second transaction node from the blockchain, and sequentially decrypts the transaction digital signature of each transaction data based on the node public key according to the sequence of transaction generation time from early to late to obtain first abstract information;
the first transaction node respectively carries out hash operation on each transaction data to obtain second abstract information corresponding to each transaction data;
when first transaction summary information corresponding to first transaction data is different from second summary information corresponding to the first transaction data, the first transaction node determines that transaction confirmation information of the first transaction data is illegal transaction confirmation information.
5. The method of any of claims 1-4, wherein the determining the legitimacy of the first transaction data from the transaction contract data comprises:
when the arbitration node determines that the first transaction data meets 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 that each arbitration auxiliary node obtains transaction contract data corresponding to the transaction contract identification from a blockchain according to the transaction contract identification included in the transaction verification request, verifies the validity of the first transaction data according to the transaction contract data, and sends a verification result of the first transaction data to the arbitration node;
And the arbitration node receives all the verification results sent by all the arbitration auxiliary nodes, and when all the verification results sent by all the arbitration auxiliary nodes are determined to pass the verification, the arbitration node determines that the first transaction data are legal transaction data.
6. A data processing apparatus comprising means for performing the method performed by the first transaction node according to any of claims 1-5, or comprising means for performing the method performed by the arbitration node according to any of claims 1-5.
7. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method performed by the first transaction node according to any of claims 1-5 or to perform the method performed by the arbitration node according to any of claims 1-5.
CN202010883757.5A 2020-08-28 2020-08-28 Data processing method and device Active CN112036878B (en)

Priority Applications (2)

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

Applications Claiming Priority (1)

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

Publications (2)

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

Family

ID=73587336

Family Applications (1)

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

Country Status (2)

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

Families Citing this family (3)

* 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
CN115840787B (en) * 2023-02-20 2023-05-02 塔比星信息技术(深圳)有限公司 Block chain-based supply chain data sharing method, device, equipment and medium

Citations (4)

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

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107395557B (en) * 2017-03-28 2020-05-15 创新先进技术有限公司 Service request processing method and device
CN109872159B (en) * 2019-01-07 2021-04-06 必可嘉(武汉)科技有限公司 Block chain consensus method and architecture
SG11202003719QA (en) * 2019-05-31 2020-05-28 Advanced New Technologies Co Ltd System and method for providing privacy and security protection in blockchain-based private transactions
CN110648204A (en) * 2019-09-20 2020-01-03 北京海益同展信息科技有限公司 Method and apparatus for arbitration
CN112036878B (en) * 2020-08-28 2023-08-22 平安科技(深圳)有限公司 Data processing method and device

Patent Citations (4)

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

Also Published As

Publication number Publication date
CN112036878A (en) 2020-12-04
WO2022041902A1 (en) 2022-03-03

Similar Documents

Publication Publication Date Title
WO2022095244A1 (en) Cross-chain transaction method, system and apparatus, device, and storage medium
CN112036878B (en) Data processing method and device
CN110570196A (en) Transaction data processing method and device, terminal equipment and storage medium
CN112035889B (en) Block chain privacy verification method and device for computing outsourcing and computer equipment
CN111445333B (en) Block generation method, device, computer equipment and storage medium
CN110601816B (en) Lightweight node control method and device in block chain system
CN111064583B (en) Threshold SM2 digital signature method and device, electronic equipment and storage medium
CN110990484B (en) Information storage method, system, computer equipment and storage medium based on block chain
CN110336779B (en) Block chain construction method and device and electronic equipment
CN110096894B (en) Data anonymous sharing system and method based on block chain
CN108768618B (en) IP soft core authorization method, device and medium based on block chain
CN110659905B (en) Transaction verification method, device, terminal equipment and storage medium
CN111241586B (en) Anonymous processing method and system for block link address, terminal and storage medium
CN111259428A (en) Data processing method and device based on block chain, node equipment and storage medium
CN113162915B (en) Block chain based transaction method, node, electronic device, medium and system
CN112788555B (en) Cross-operator telephone charge transfer settlement method, device and computing equipment
CN114092093B (en) Block chain transaction processing method and device, electronic equipment and readable medium
CN112507369B (en) Service processing method and device based on block chain, readable medium and electronic equipment
CN113032478B (en) Block chain system and data uplink method, device, equipment and medium
CN116781269A (en) Block chain-based data processing method, device, equipment, medium and product
CN111369332A (en) Data processing method and device based on block chain
CN112116400A (en) Virtual resource intercommunication method and device based on block chain and related equipment
CN110766407A (en) Transaction verification method, accounting node and medium based on block chain
CN110585717A (en) Information processing method and device
CN111369355A (en) Transaction data processing method and device based on alliance chain

Legal Events

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