A data processing method and device

By packaging and processing transaction data on blockchain nodes, the problem of slow data processing speed in online transactions is solved, and more efficient transaction processing and privacy protection are achieved.

CN113965336BActive Publication Date: 2024-08-27AISINO CORPORATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010635088.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-03
Publication Date
2024-08-27
Estimated Expiration
2040-07-03

AI Technical Summary

Technical Problem

In the existing technology, the data processing speed is reduced due to the need for transaction processing through a third-party application platform during the online transaction process.

Method used

By obtaining the business data sent by the terminal, it is packaged and processed, broadcasted to the blockchain node, and stored in a reversible queue. The data processing request is directly processed by the blockchain node to avoid going through a third-party platform.

Benefits of technology

It improves the speed and efficiency of data processing, especially when the amount of business data is large, ensuring the orderliness and privacy of data processing and avoiding network congestion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113965336B
    Figure CN113965336B
Patent Text Reader

Abstract

The present application relates to the field of computer technology, and in particular to a data processing method and device, which obtain at least one business data sent by a terminal; package and process the at least one business data to obtain a corresponding first packaging result, and broadcast the first packaging result to other blockchain nodes, so that the other blockchain nodes store the first packaging result in a reversible queue after receiving the first packaging result; obtain a data processing request sent by the terminal, and verify the data processing request. If it is determined that the verification is passed, the data processing request is processed according to the business data associated with the data processing request in the first packaging result. In this way, the business data is submitted to the blockchain node, and then the blockchain node processes the data processing request according to the business data, which can improve the efficiency of data processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a data processing method and device. Background Art

[0002] Currently, when conducting online transactions, the transaction initiator needs to generate a transaction request and submit it to a third-party application platform. The third-party application platform then processes the transaction through a server and sends the transaction processing result to the transaction initiator and the transaction recipient. For example, when shopping on Taobao, the buyer and the seller need to conduct transactions through a third-party application platform. However, this transaction processing method in the prior art reduces the speed of data processing during transactions because transactions need to be conducted through a third-party application platform during the transaction process. Summary of the invention

[0003] The embodiments of the present application provide a data processing method and device to increase the speed of data processing.

[0004] The specific technical solutions provided by the embodiments of this application are as follows:

[0005] A data processing method, comprising:

[0006] Acquire at least one service data sent by the terminal;

[0007] Packaging the at least one business data to obtain a corresponding first packaging result, and broadcasting the first packaging result to other blockchain nodes, so that the other blockchain nodes store the first packaging result in a reversible queue after receiving the first packaging result;

[0008] The data processing request sent by the terminal is obtained, and the data processing request is verified. If it is determined that the verification is successful, the data processing request is processed according to the business data associated with the data processing request in the first packaging result.

[0009] Optionally, before broadcasting the first packaging result to other blockchain nodes, the method further includes:

[0010] Performing data simulation on the at least one business data respectively to obtain a plurality of simulated business data;

[0011] According to the amount of business data in the first packaging result, grouping the same amount of simulated business data into one group to obtain each group of simulated business data sets;

[0012] Packaging each set of simulated business data sets respectively to obtain corresponding second packaging results, wherein each second packaging result corresponds to a simulated data identifier, and the simulated data identifier is used to distinguish the simulated business data from the business data;

[0013] The second packaging results are broadcasted to other blockchain nodes so that the other blockchain nodes store the second packaging results in a reversible queue.

[0014] Optionally, obtaining a data processing request sent by the terminal and verifying the data processing request specifically includes:

[0015] Obtaining a data processing request sent by the terminal, wherein the data processing request at least includes a digital signature corresponding to the data processing request;

[0016] Decrypting the digital signature according to the public key corresponding to the digital signature to obtain the first summary information of the data processing request, and calculating the second summary information of the data processing request through a hash algorithm;

[0017] It is determined whether the first digest information and the second digest information are the same. If it is determined that the first digest information is the same as the corresponding second digest information, it is determined that the verification is successful.

[0018] Optionally, if the business data includes at least a transfer amount, obtaining a data processing request sent by the terminal and verifying the data processing request specifically includes:

[0019] According to the node identifier corresponding to the transfer amount, searching for the bank card balance associated with the node identifier from any blockchain node of the blockchain network, wherein the blockchain network is composed of multiple blockchain nodes;

[0020] Determine whether the bank card balance is greater than the transfer amount. If it is determined that the bank card balance is greater than or equal to the transfer amount, then determine that the verification is successful.

[0021] Optionally, if multiple data processing requests are obtained, after obtaining the data processing request sent by the terminal, further comprising:

[0022] According to the node addresses of the blockchain nodes corresponding to the multiple data processing requests, the data processing requests with different node addresses are grouped together to obtain a set of data processing requests;

[0023] Then, according to the business data associated with the data processing request in the first packaging result, the data processing request is processed, specifically including:

[0024] According to the business data associated with each data processing request, each data processing request included in the data processing request set is processed in parallel.

[0025] A data processing device, comprising:

[0026] An acquisition module, used to acquire at least one service data sent by a terminal;

[0027] A first processing module is used to package the at least one business data to obtain a corresponding first packaging result, and broadcast the first packaging result to other blockchain nodes, so that the other blockchain nodes store the first packaging result in a reversible queue after receiving the first packaging result;

[0028] The second processing module is used to obtain the data processing request sent by the terminal and verify the data processing request. If it is determined that the verification is successful, the data processing request is processed according to the business data associated with the data processing request in the first packaging result.

[0029] Optionally, before broadcasting the first packaging result to other blockchain nodes, the method further includes:

[0030] A simulation module, used to perform data simulation on the at least one business data respectively to obtain a plurality of simulated business data;

[0031] A first grouping module, used for grouping the same amount of simulated business data into one group according to the amount of business data in the first packaging result, to obtain each group of simulated business data sets;

[0032] A packaging module, used to package the groups of simulated business data sets respectively to obtain corresponding second packaging results, wherein each second packaging result corresponds to a simulated data identifier, and the simulated data identifier is used to distinguish the simulated business data from the business data;

[0033] The broadcast module is used to broadcast the second packaging results to other blockchain nodes, so that the other blockchain nodes store the second packaging results in a reversible queue.

[0034] Optionally, when obtaining the data processing request sent by the terminal and verifying the data processing request, the second processing module is specifically used to:

[0035] Obtaining a data processing request sent by the terminal, wherein the data processing request at least includes a digital signature corresponding to the data processing request;

[0036] Decrypting the digital signature according to the public key corresponding to the digital signature to obtain the first summary information of the data processing request, and calculating the second summary information of the data processing request through a hash algorithm;

[0037] It is determined whether the first digest information and the second digest information are the same. If it is determined that the first digest information is the same as the corresponding second digest information, it is determined that the verification is successful.

[0038] Optionally, if the business data includes at least a transfer amount, when obtaining a data processing request sent by the terminal and verifying the data processing request, the second processing module is specifically configured to:

[0039] According to the node identifier corresponding to the transfer amount, searching for the bank card balance associated with the node identifier from any blockchain node of the blockchain network, wherein the blockchain network is composed of multiple blockchain nodes;

[0040] Determine whether the bank card balance is greater than the transfer amount. If it is determined that the bank card balance is greater than or equal to the transfer amount, then determine that the verification is successful.

[0041] Optionally, if multiple data processing requests are obtained, after obtaining the data processing request sent by the terminal, further comprising:

[0042] A second grouping module is used to group the data processing requests with different node addresses according to the node addresses of the blockchain nodes corresponding to the multiple data processing requests, to obtain a set of data processing requests;

[0043] When processing the data processing request according to the business data associated with the data processing request in the first packaging result, the second processing module is specifically used to:

[0044] According to the business data associated with each data processing request, each data processing request included in the data processing request set is processed in parallel.

[0045] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the steps of the above-mentioned data processing method are implemented when the processor executes the program.

[0046] A computer-readable storage medium stores a computer program, which implements the steps of the above data processing method when executed by a processor.

[0047] At least one business data sent by the terminal is obtained, at least one business data is packaged and processed, a corresponding first packaging result is obtained, and the first packaging result is broadcasted to other blockchain nodes, so that after receiving the first packaging result, the other blockchain nodes store the first packaging result in a reversible queue, obtain the data processing request sent by the terminal, and verify the data processing request. If it is determined that the verification is passed, the data processing request is processed according to the business data associated with the data processing request in the first packaging result. In this way, the business data is submitted to the blockchain node without going through a third-party application platform. The blockchain node can process the data processing request according to the obtained business data, which can improve the efficiency of data processing. In addition, the first packaging result is stored in the reversible queue, which can avoid network congestion when the amount of business data is large, and ensure that data processing is carried out in an orderly manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 This is a flow chart of a data processing method in an embodiment of the present application;

[0049] Figure 2 This is a flowchart of another data processing method in an embodiment of the present application;

[0050] Figure 3 This is a schematic diagram of the structure of a data processing device in an embodiment of the present application;

[0051] Figure 4 Schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0052] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0053] At present, when a transaction initiator and a transaction recipient conduct an online transaction, first, the transaction initiator needs to generate a transaction request and submit it to a third-party application platform. Then, the third-party application platform processes the transaction request through a server and generates a transaction processing result. Then, the third-party application platform sends the transaction processing result received from the server to the transaction initiator and the transaction recipient. For example, when a user shops on Taobao, the buyer and the seller need to conduct a transaction through a third-party application platform. However, this transaction processing method in the prior art reduces the rate of business data processing because business processing needs to be performed through a third-party application platform during the transaction process.

[0054] In an embodiment of the present application, at least one business data sent by the terminal is obtained, at least one business data is packaged and processed, a corresponding first packaging result is obtained, and the first packaging result is broadcast to other blockchain nodes, so that after receiving the first packaging result, the other blockchain nodes store the first packaging result in a reversible queue, obtain the data processing request sent by the terminal, and verify the data processing request. If it is determined that the verification is successful, the data processing request is processed according to the business data associated with the data processing request in the first packaging result. In this way, the obtained data processing request is processed by the blockchain node, which can improve the data processing rate, and the first packaging result is stored in the reversible queue. When the amount of business data is very large, it is ensured that the data processing can be carried out in an orderly manner.

[0055] Based on the above embodiments, see Figure 1 FIG. 1 is a flowchart of a data processing method in an embodiment of the present application, which specifically includes:

[0056] Step 100: Acquire at least one service data sent by a terminal.

[0057] In the embodiment of the present application, the execution entity can be any blockchain node in the blockchain network.

[0058] The terminal obtains at least one business data input by the user, and then the terminal sends the at least one business data input to the blockchain node, so that the blockchain node can obtain the at least one business data sent by the terminal.

[0059] Among them, the business data can be, for example, a transfer amount, a bank card number, etc., which is not limited in the embodiments of the present application.

[0060] Each blockchain node corresponds to a terminal. Of course, each blockchain node can also correspond to multiple terminals, which is not limited in the embodiments of the present application.

[0061] Furthermore, each piece of business data corresponds to a node identifier. Since a blockchain node obtains at least one piece of business data, that is, at least one piece of business data originates from the same blockchain node, the node identifier of at least one piece of business data obtained by any blockchain node is the same. In addition, the node identifier is also used to identify node groups. The node group includes multiple blockchain nodes, and the packaging results are sent to other blockchain nodes in the node group through the off-chain channel so that other blockchain nodes can verify the received packaging results.

[0062] Then, the business data corresponding to the same node identifier are grouped together for subsequent data processing.

[0063] Furthermore, business data can also be grouped according to business type. For example, business data corresponding to large-amount transactions can be grouped together, and business data corresponding to small-amount transactions can be grouped together. This makes it easier to store the business data in a reversible queue later.

[0064] When a blockchain node corresponds to multiple terminals, the acquired business data can also be grouped according to the terminal identification of the terminal to obtain a business data set with the same number of terminals. The number of business data sets can also be set according to actual needs, which is not limited in the embodiments of the present application.

[0065] Step 110: Packaging and processing at least one business data to obtain a corresponding first packaging result, and broadcasting the first packaging result to other blockchain nodes, so that after receiving the first packaging result, other blockchain nodes store the first packaging result in a reversible queue.

[0066] In an embodiment of the present application, after a blockchain node obtains at least one business data from a terminal, it packages and processes the at least one business data obtained, obtains a corresponding first packaging result, and broadcasts the first packaging result to other blockchain nodes in the blockchain network. Then, after other blockchain nodes receive the first packaging result broadcasted by the blockchain node, they store the first packaging result in a reversible queue.

[0067] For example, when the business data is transaction data, at least one acquired transaction data is packaged and processed to obtain a corresponding first packaging result. After other blockchain nodes receive the first packaging result broadcast from the blockchain node, the first packaging result is stored in the reversible transaction queue.

[0068] In this way, when any blockchain node receives business data, any blockchain node and other blockchain nodes can store the business data in the reversible transaction queue, avoiding network congestion when the transaction data volume is very large, and the transaction process is efficient and orderly.

[0069] Furthermore, in order to improve the privacy of business processing, after obtaining at least one business data of the terminal, before broadcasting the first packaging result to other blockchain nodes, data simulation can be performed on the business data, and then the real business data can be hidden by the simulated business data obtained by simulation. Before broadcasting the first packaging result to other blockchain nodes, it further includes:

[0070] S1: Perform data simulation on at least one business data respectively to obtain multiple simulated business data.

[0071] In the embodiment of the present application, data simulation is performed on each piece of business data obtained from the terminal to obtain multiple simulated business data.

[0072] In the embodiment of the present application, the simulated business data is used to hide the real business data.

[0073] S2: According to the amount of business data in the first packaging result, the simulated business data of the same amount are grouped together to obtain sets of simulated business data in each group.

[0074] In an embodiment of the present application, the blockchain node determines the amount of business data in the first packaging result, and then, based on the amount of business data in the first packaging result, divides the simulated business data of the same amount as the business data in the first packaging result into a group to obtain each group of simulated business data sets.

[0075] Furthermore, in an embodiment of the present application, each business data corresponds to a data number, and multiple simulated business data corresponding to each business data also correspond to the same data number, and then the business data with the same data number are grouped together.

[0076] S3: Pack each group of simulated business data sets respectively to obtain a corresponding second packaging result.

[0077] Each second packaging result corresponds to a simulation data identifier, and the simulation data identifier is used to distinguish between simulation business data and business data.

[0078] In the embodiment of the present application, after obtaining each group of simulated business data sets, each group of simulated business data sets are packaged respectively to obtain a corresponding second packaging result.

[0079] Each second packaging result corresponds to a simulation data identifier, and the simulation data identifier is used to distinguish whether the packaging result is simulation business data or business data.

[0080] S4: Broadcast each second packaging result to other blockchain nodes, so that each other blockchain node stores each second packaging result in a reversible queue.

[0081] In an embodiment of the present application, after obtaining each second packaging result, the second packaging node is broadcast to other blockchain nodes, so that other blockchain nodes store each second packaging result in a reversible transaction queue. In this way, the actual number of transactions can be hidden, which is more private.

[0082] It should be noted that when generating the first packaging result and the second packaging result, the first packaging result and the second packaging result need to be encrypted using a preset encryption algorithm, so that the security of the business data can be improved.

[0083] Step 120: Obtain the data processing request sent by the terminal, and verify the data processing request. If it is determined that the verification is successful, process the data processing request according to the business data associated with the data processing request in the first packaging result.

[0084] In the embodiment of the present application, after the blockchain node obtains the data processing request sent by the terminal, in order to improve the security of data processing, it is also necessary to perform security verification on the data processing request, so the data processing request sent by the terminal is obtained and the data processing request is verified, which specifically includes:

[0085] S1: Get the data processing request sent by the terminal.

[0086] The data processing request at least includes a digital signature corresponding to the data processing request.

[0087] In an embodiment of the present application, the blockchain node obtains the data processing request sent by the terminal according to a preset period.

[0088] The data processing request at least includes a digital signature corresponding to the data processing request.

[0089] The digital signature is generated when the terminal generates the data processing request.

[0090] S2: Decrypt the digital signature according to the public key corresponding to the digital signature to obtain the first summary information of the data processing request, and calculate the second summary information of the data processing request through a hash algorithm.

[0091] In an embodiment of the present application, after obtaining the digital signature corresponding to the data processing request, the digital signature corresponding to the data processing request is decrypted according to the public key corresponding to the obtained digital signature to obtain the first summary information of the data processing request, and then, the data processing request is hashed through a hash algorithm to obtain the second summary information of the data processing request.

[0092] S3: Determine whether the first digest information and the second digest information are the same. If it is determined that the first digest information is the same as the corresponding second digest information, then determine that the verification is successful.

[0093] In the embodiment of the present application, after obtaining the first summary information and the second summary information, determining whether the first summary information and the second summary information are the same can be specifically divided into the following two different situations.

[0094] Case 1: The first summary information and the second summary information are the same.

[0095] Specifically include:

[0096] If it is determined that the first summary information and the second summary information are the same, it is determined that the verification is successful, and then the data processing request is processed through the business data.

[0097] The second situation: the first summary information and the second summary information are different.

[0098] Specifically include:

[0099] If it is determined that the first summary information and the second summary information are not the same, the data processing request is deleted.

[0100] In this way, verifying the summary information of business data can ensure the accuracy of data processing and avoid other interference.

[0101] When verifying, not only the summary information of the business data can be verified, but also the business data can be verified. The following takes the business data including at least the transfer amount as an example to explain in detail the verification of the data processing request in the embodiment of the present application, obtain the data processing request sent by the terminal, and verify the data processing request, which specifically includes:

[0102] S1: According to the node identifier corresponding to the transfer amount, find the bank card balance associated with the node identifier from any blockchain node in the blockchain network.

[0103] Among them, the blockchain network is composed of multiple blockchain nodes.

[0104] In the embodiment of the present application, since each blockchain node of the blockchain network stores the business data of other blockchain nodes, when one of the business data is a transfer amount, the bank card balance associated with the node identifier is found from any blockchain node of the blockchain network based on the node identifier corresponding to the transfer amount.

[0105] The node identifier is the identifier of the blockchain node.

[0106] S2: Determine whether the bank card balance is greater than the transfer amount. If it is determined that the bank card balance is greater than or equal to the transfer amount, the verification is determined to be successful.

[0107] In an embodiment of the present application, after finding the bank card balance, it is determined whether the bank card balance is greater than the transfer amount in the business data. If it is determined that the bank card balance is greater than or equal to the transfer amount, it is determined that the user has the ability to pay the transfer amount and the verification is determined to be successful.

[0108] For example, during a transaction, assuming that the bank card balance is 400 yuan and the transfer amount is 300 yuan, then the bank card balance is greater than the transfer amount at this time, and it is determined that the user has the ability to pay, and the verification is successful. Suppose the bank card balance is 400 yuan and the transfer amount is 600 yuan, then the bank card balance is less than the transfer amount, and it is determined that the user does not have the ability to pay the corresponding transfer amount. Therefore, it is determined that the verification has failed. In this way, early verification of the user's transaction data can prevent users who do not have the ability to pay the transfer amount from conducting transfer transactions, and can improve the efficiency of transfers.

[0109] In this way, taking business transactions as an example, the validity of the user's transaction data is verified in advance before the transaction is processed, and the transaction data is screened in advance to prevent users who do not have transaction capabilities from conducting transactions, affecting the transaction time and improving the efficiency of the transaction.

[0110] Furthermore, the data processing requests may be grouped and processed in parallel to improve the efficiency of data processing. After obtaining the data processing request sent by the terminal, the method further includes:

[0111] According to the node addresses of the blockchain nodes corresponding to the multiple data processing requests, the data processing requests with different node addresses are grouped together to obtain each data processing request set.

[0112] In the application embodiment itself, data processing requests corresponding to different node addresses are grouped together according to the node address of the blockchain node corresponding to each data processing request to obtain each data processing request set. That is to say, the node addresses of the data processing requests in each data processing request set are different and come from different blockchain nodes.

[0113] Therefore, after obtaining each data processing request set, each data processing request in each data processing request set is processed in parallel, and the data processing request is processed according to the business data associated with the data processing request in the first packaging result, specifically including:

[0114] According to the business data associated with each data processing request, each data processing request included in each data processing request set is processed in parallel.

[0115] In the embodiment of the present application, each data processing request included in each data processing request set is processed in parallel according to the business data associated with each data processing request.

[0116] In an embodiment of the present application, at least one business data sent by the terminal is obtained, at least one business data is packaged and processed, a corresponding first packaging result is obtained, and the first packaging result is broadcast to other blockchain nodes, so that after receiving the first packaging result, the other blockchain nodes store the first packaging result in a reversible queue, obtain the data processing request sent by the terminal, and verify the data processing request. If it is determined that the verification is successful, the data processing request is processed according to the business data associated with the data processing request in the first packaging result. There is no need to go through a third-party application platform, and the data processing request can be processed only through the blockchain, thereby improving the efficiency of data processing.

[0117] Based on the above embodiment, taking the business data as transaction data and the data processing request as a transaction processing request as an example, the data processing method in the embodiment of the present application is described in detail. Figure 2 FIG. 1 is a flowchart of another data processing method in an embodiment of the present application, which specifically includes:

[0118] Step 200: Obtain at least one transaction data sent by the terminal.

[0119] Step 201: Packaging at least one transaction data to obtain a corresponding first packaging result.

[0120] Step 202: broadcast the first packaging result to other blockchain nodes, so that after receiving the first packaging result, other blockchain nodes store the first packaging result in a reversible queue.

[0121] Step 203: Obtain the transaction processing request sent by the terminal.

[0122] The transaction processing request at least includes a digital signature corresponding to the transaction processing request.

[0123] Step 204: decrypt the digital signature according to the public key corresponding to the digital signature to obtain the first summary information of the transaction processing request, and calculate the second summary information of the transaction processing request through a hash algorithm.

[0124] Step 205: Determine whether the first summary information and the second summary information are the same, if so, execute step 206, if not, execute step 207.

[0125] Step 206: Determine whether the verification is successful, and process the transaction processing request according to the transaction data associated with the transaction processing request in the first packaging result.

[0126] Step 207: Delete the transaction processing request.

[0127] In an embodiment of the present application, transaction data is obtained and packaged to obtain a first packaging result. Then, the first packaging result is sent to other blockchain nodes so that other blockchain nodes store the received first packaging results in a reversible transaction queue. Then, after obtaining a transaction processing request, the transaction processing request is verified. If it is determined that the verification is passed, the transaction processing request is processed. In this way, transactions are processed based on the blockchain, which can improve the efficiency of transaction processing.

[0128] Based on the same inventive concept, the present application provides a data processing device in an embodiment, which may be a hardware structure, a software module, or a hardware structure plus a software module. Figure 3 FIG. 1 is a schematic diagram of the structure of a data processing device in an embodiment of the present application, which specifically includes:

[0129] The acquisition module 300 is used to acquire at least one service data sent by the terminal;

[0130] The first processing module 310 is used to package the at least one business data to obtain a corresponding first packaging result, and broadcast the first packaging result to other blockchain nodes, so that the other blockchain nodes store the first packaging result in a reversible queue after receiving the first packaging result;

[0131] The second processing module 320 is used to obtain the data processing request sent by the terminal and verify the data processing request. If it is determined that the verification is successful, the data processing request is processed according to the business data associated with the data processing request in the first packaging result.

[0132] Optionally, before broadcasting the first packaging result to other blockchain nodes, the method further includes:

[0133] The simulation module 330 is used to perform data simulation on the at least one business data to obtain multiple simulated business data;

[0134] A first grouping module 340, configured to group the same amount of simulated business data into one group according to the amount of business data in the first packaging result, to obtain sets of simulated business data in each group;

[0135] A packaging module 350 is used to package the groups of simulated business data sets respectively to obtain corresponding second packaging results, wherein each second packaging result corresponds to a simulated data identifier, and the simulated data identifier is used to distinguish the simulated business data from the business data;

[0136] The broadcast module 360 ​​is used to broadcast the second packaging results to other blockchain nodes, so that the other blockchain nodes store the second packaging results in a reversible queue.

[0137] Optionally, when obtaining the data processing request sent by the terminal and verifying the data processing request, the second processing module 320 is specifically used to:

[0138] Obtaining a data processing request sent by the terminal, wherein the data processing request at least includes a digital signature corresponding to the data processing request;

[0139] Decrypting the digital signature according to the public key corresponding to the digital signature to obtain the first summary information of the data processing request, and calculating the second summary information of the data processing request through a hash algorithm;

[0140] It is determined whether the first digest information and the second digest information are the same. If it is determined that the first digest information is the same as the corresponding second digest information, it is determined that the verification is successful.

[0141] Optionally, if the business data includes at least a transfer amount, when obtaining a data processing request sent by the terminal and verifying the data processing request, the second processing module 320 is specifically configured to:

[0142] According to the node identifier corresponding to the transfer amount, searching for the bank card balance associated with the node identifier from any blockchain node of the blockchain network, wherein the blockchain network is composed of multiple blockchain nodes;

[0143] Determine whether the bank card balance is greater than the transfer amount. If it is determined that the bank card balance is greater than or equal to the transfer amount, then determine that the verification is successful.

[0144] Optionally, if multiple data processing requests are obtained, after obtaining the data processing request sent by the terminal, further comprising:

[0145] A second grouping module 370 is used to group the data processing requests with different node addresses according to the node addresses of the blockchain nodes corresponding to the multiple data processing requests, to obtain a set of data processing requests;

[0146] When processing the data processing request according to the business data associated with the data processing request in the first packaging result, the second processing module 320 is specifically used to:

[0147] According to the business data associated with each data processing request, each data processing request included in the data processing request set is processed in parallel.

[0148] Based on the above embodiments, see Figure 4 Shown is a schematic diagram of the structure of an electronic device in an embodiment of the present application.

[0149] An embodiment of the present application provides an electronic device, which may include a processor 410 (Center Processing Unit, CPU), a memory 420, an input device 430 and an output device 440, etc. The input device 430 may include a keyboard, a mouse, a touch screen, etc., and the output device 440 may include a display device, such as a liquid crystal display (Liquid Crystal Display, LCD), a cathode ray tube (Cathode Ray Tube, CRT), etc.

[0150] The memory 420 may include a read-only memory (ROM) and a random access memory (RAM), and provides the processor 410 with program instructions and data stored in the memory 420. In the embodiment of the present application, the memory 420 may be used to store the program of any data processing method in the embodiment of the present application.

[0151] The processor 410 calls the program instructions stored in the memory 420, and the processor 410 is used to execute any data processing method in the embodiments of the present application according to the obtained program instructions.

[0152] Based on the above embodiments, in an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the data processing method in any of the above method embodiments is implemented.

[0153] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0154] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0155] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0156] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0157] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A data processing method, characterized in that: include: Acquire at least one service data sent by the terminal; The at least one business data is packaged to obtain a corresponding first packaging result, data simulation is performed on the at least one business data to obtain multiple simulated business data, and according to the number of business data in the first packaging result, the simulated business data of the same number are grouped to obtain each group of simulated business data sets, and the simulated business data sets are packaged to obtain a corresponding second packaging result, wherein each second packaging result corresponds to a simulated data identifier, and the simulated data identifier is used to distinguish the simulated business data from the business data; the second packaging results are broadcasted to other blockchain nodes so that the other blockchain nodes store the second packaging results in a reversible queue, and the first packaging result is broadcasted to other blockchain nodes so that the other blockchain nodes store the first packaging results in a reversible queue after receiving the first packaging result; The data processing request sent by the terminal is obtained, and the data processing request is verified. If it is determined that the verification is successful, the data processing request is processed according to the business data associated with the data processing request in the first packaging result.

2. The method according to claim 1, characterized in that Obtaining a data processing request sent by the terminal and verifying the data processing request, specifically including: Obtaining a data processing request sent by the terminal, wherein the data processing request at least includes a digital signature corresponding to the data processing request; Decrypting the digital signature according to the public key corresponding to the digital signature to obtain the first summary information of the data processing request, and calculating the second summary information of the data processing request through a hash algorithm; It is determined whether the first digest information and the second digest information are the same. If it is determined that the first digest information is the same as the corresponding second digest information, it is determined that the verification is successful.

3. The method according to claim 1, characterized in that If the business data at least includes the transfer amount, obtaining a data processing request sent by the terminal and verifying the data processing request specifically includes: According to the node identifier corresponding to the transfer amount, searching for the bank card balance associated with the node identifier from any blockchain node of the blockchain network, wherein the blockchain network is composed of multiple blockchain nodes; Determine whether the bank card balance is greater than the transfer amount. If it is determined that the bank card balance is greater than or equal to the transfer amount, then determine that the verification is successful.

4. The method according to claim 1, characterized in that If multiple data processing requests are obtained, after obtaining the data processing request sent by the terminal, further comprising: According to the node addresses of the blockchain nodes corresponding to the multiple data processing requests, the data processing requests with different node addresses are grouped together to obtain a set of data processing requests; Then, according to the business data associated with the data processing request in the first packaging result, the data processing request is processed, specifically including: According to the business data associated with each data processing request, each data processing request included in the data processing request set is processed in parallel.

5. A data processing device, characterized in that: include: An acquisition module, used to acquire at least one service data sent by a terminal; A first processing module is used to package the at least one business data to obtain a corresponding first packaging result, and broadcast the first packaging result to other blockchain nodes, so that the other blockchain nodes store the first packaging result in a reversible queue after receiving the first packaging result; A simulation module, used to perform data simulation on the at least one business data respectively to obtain a plurality of simulated business data; A first grouping module, used for grouping the same amount of simulated business data into one group according to the amount of business data in the first packaging result, to obtain each group of simulated business data sets; A packaging module, used to package the groups of simulated business data sets respectively to obtain corresponding second packaging results, wherein each second packaging result corresponds to a simulated data identifier, and the simulated data identifier is used to distinguish the simulated business data from the business data; A broadcast module, used for broadcasting each second packaging result to each other blockchain node, so that each other blockchain node stores each second packaging result in a reversible queue; The second processing module is used to obtain the data processing request sent by the terminal and verify the data processing request. If it is determined that the verification is successful, the data processing request is processed according to the business data associated with the data processing request in the first packaging result.

6. The device according to claim 5, characterized in that When obtaining the data processing request sent by the terminal and verifying the data processing request, the second processing module is specifically used to: Obtaining a data processing request sent by the terminal, wherein the data processing request at least includes a digital signature corresponding to the data processing request; Decrypting the digital signature according to the public key corresponding to the digital signature to obtain the first summary information of the data processing request, and calculating the second summary information of the data processing request through a hash algorithm; It is determined whether the first digest information and the second digest information are the same. If it is determined that the first digest information is the same as the corresponding second digest information, it is determined that the verification is successful.

7. The device according to claim 5, characterized in that If the business data at least includes the transfer amount, then when obtaining the data processing request sent by the terminal and verifying the data processing request, the second processing module is specifically used to: According to the node identifier corresponding to the transfer amount, searching for the bank card balance associated with the node identifier from any blockchain node of the blockchain network, wherein the blockchain network is composed of multiple blockchain nodes; Determine whether the bank card balance is greater than the transfer amount. If it is determined that the bank card balance is greater than or equal to the transfer amount, then determine that the verification is successful.

8. The device according to claim 5, characterized in that If multiple data processing requests are obtained, after obtaining the data processing request sent by the terminal, further comprising: A second grouping module is used to group the data processing requests with different node addresses according to the node addresses of the blockchain nodes corresponding to the multiple data processing requests, to obtain a set of data processing requests; When processing the data processing request according to the business data associated with the data processing request in the first packaging result, the second processing module is specifically used to: According to the business data associated with each data processing request, each data processing request included in the data processing request set is processed in parallel.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method according to any one of claims 1 to 4 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.