Blockchain-based data processing method, device and electronic device

By dividing the data into blocks and transmitting it in batches, the data amount of each data block is controlled within the maximum amount of a single transmission in the blockchain, which solves the problems of low data transmission efficiency and transmission failure in the blockchain and realizes large-scale data transmission. success and efficiency improvements.

CN114157716BActive Publication Date: 2024-08-27WEBANK (CHINA)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111462222.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-02
Publication Date
2024-08-27
Estimated Expiration
2041-12-02

AI Technical Summary

Technical Problem

Blockchain data transmission efficiency is low, and transmission fails when the amount of data exceeds a threshold, making financial services unusable.

Method used

The data is divided into blocks and transmitted in batches. The data volume of each data block does not exceed the maximum data volume of the blockchain for a single transmission, and characteristic information is carried in the data blocks to ensure order and merging.

Benefits of technology

It improves data transmission efficiency, avoids transmission failures caused by data volume exceeding the threshold, and ensures the success rate of large-scale data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114157716B
    Figure CN114157716B
Patent Text Reader

Abstract

The embodiments of the present application provide a data processing method, device and electronic device based on blockchain, by obtaining data to be sent; according to the first data amount of the data to be sent and the maximum data amount corresponding to a single transmission in the blockchain, the data to be sent is divided into blocks to obtain multiple data blocks, wherein the second data amount of the data included in each of the multiple data blocks is not greater than the maximum data amount; and the multiple data blocks are sent to the receiving node in the blockchain in batches. The technical solution provided by the embodiments of the present application enables a large amount of data to be sent to be transmitted based on the blockchain, and the second data amount of the data included in the data block is not greater than the maximum data amount corresponding to a single transmission of the blockchain, which can ensure that the data is successfully sent to the receiving node, thereby improving the efficiency of data block transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of science and technology finance technology, and in particular to a data processing method, device and electronic device based on blockchain. Background Art

[0002] With the development of computer technology, more and more technologies are applied in the financial field. The traditional financial industry is gradually transforming to Fintech (Finteh), and data processing technology is no exception. However, due to the security and real-time requirements of the financial industry, higher requirements are placed on data processing technology. In particular, data processing technology based on blockchain, as the amount of data continues to increase, higher requirements are placed on blockchain data transmission technology.

[0003] As a distributed network, each node of the blockchain is connected to multiple nodes. In order to maintain the stability of the network, a separate data transmission protocol needs to be designed when transmitting data. The amount of data sent and received by the node at a time cannot exceed the data volume threshold, and the data volume threshold is relatively small. For example, the on-chain messenger protocol in the alliance chain does not exceed 32M of data transmitted at a time. When the amount of data transmitted by the blockchain at a time is large but does not exceed the data volume threshold, the bandwidth limitation may cause the transmission speed to be slow, thereby reducing the efficiency of data transmission. However, when the amount of data exceeds the data volume threshold that the blockchain can transmit at a time, the data transmission fails, resulting in the inability to use services that require the transmission of large amounts of data. Summary of the invention

[0004] The embodiments of the present application provide a data processing method, device and electronic device based on blockchain, which can ensure the efficiency of data transmission by dividing data into blocks to obtain data blocks and transmitting the data blocks in batches.

[0005] In a first aspect, an embodiment of the present application provides a data processing method based on blockchain, and the data processing method based on blockchain includes:

[0006] Get the data to be sent.

[0007] According to the first data amount of the data to be sent and the maximum data amount corresponding to a single transmission in the blockchain, the data to be sent is divided into blocks to obtain multiple data blocks, wherein a second data amount of data included in each data block of the multiple data blocks is not greater than the maximum data amount.

[0008] The multiple data blocks are sent to the receiving nodes in the blockchain in batches.

[0009] Optionally, the data to be sent is divided into blocks according to the first data volume of the data to be sent and the maximum data volume corresponding to a single transmission in the blockchain to obtain multiple data blocks, including:

[0010] The number of blocks is determined according to the first data amount and the maximum data amount.

[0011] The data to be sent is divided into blocks according to the number of blocks to obtain multiple data blocks.

[0012] Optionally, sending the multiple data blocks to receiving nodes in the blockchain in batches includes:

[0013] Determine characteristic information corresponding to each data block, wherein the characteristic information includes at least one of the number of blocks, a service identifier corresponding to the data block, and a serial number of the data block.

[0014] The characteristic information is carried in the corresponding data block and sent to the receiving node.

[0015] Optionally, the characteristic information includes a serial number of the data block.

[0016] The step of carrying the characteristic information in the corresponding data block and sending it to the receiving node includes:

[0017] According to the serial numbers corresponding to the multiple data blocks, the characteristic information is carried in the corresponding data blocks and sent to the receiving node in sequence.

[0018] Optionally, sending the multiple data blocks to receiving nodes in the blockchain in batches includes:

[0019] The header information of each data block is determined respectively, wherein the header information includes identification information of the target node and a service identification corresponding to the data block.

[0020] Corresponding header information is added to each data block.

[0021] The data blocks with added header information are sent to the corresponding receiving nodes in batches.

[0022] Optionally, dividing the data to be sent into blocks according to the first data volume of the data to be sent and the maximum data volume corresponding to a single transmission in the blockchain includes:

[0023] Determine whether the first data amount is greater than the maximum data amount.

[0024] If the first data amount is greater than the maximum data amount, the data to be sent is divided into blocks according to the first data amount of the data to be sent and the maximum data amount corresponding to a single transmission in the blockchain.

[0025] In a second aspect, an embodiment of the present application provides a blockchain-based data processing method, which is applied to a receiving node. The blockchain-based data processing method includes:

[0026] Multiple data blocks sent by the sending node are received in sequence, wherein a second data amount of data included in each of the multiple data blocks is not greater than a maximum data amount corresponding to a single transmission in the blockchain.

[0027] The multiple data blocks are merged to obtain target data.

[0028] Optionally, merging the multiple data blocks to obtain target data includes:

[0029] The multiple data blocks are parsed respectively to obtain characteristic information corresponding to each data block, wherein the characteristic information includes at least one of the number of blocks, the service identifier corresponding to the data block, and the serial number of the data block.

[0030] According to the feature information corresponding to each data block, the multiple data blocks are merged to obtain target data.

[0031] Optionally, the characteristic information includes the number of blocks, the service identifier corresponding to the data block, and the serial number of the data block.

[0032] The step of merging the multiple data blocks according to the feature information corresponding to each data block to obtain target data includes:

[0033] Multiple data blocks with the same service identifier are filtered out from all received data blocks.

[0034] Determine whether the number of the plurality of data blocks with the same service identifier is equal to the number of blocks;

[0035] If they are equal, the multiple data blocks with the same service identifier are merged in sequence according to the sequence number of each data block to obtain the target data.

[0036] Optionally, each data block also includes header information, and the header information includes identification information of the target node.

[0037] The respectively parsing the multiple data blocks comprises:

[0038] It is determined whether the identification information of the target node corresponding to each data block is the same as the identification information of the receiving node.

[0039] If they are the same, the multiple data blocks are parsed respectively.

[0040] Optionally, the header information also includes a service identifier corresponding to the data block.

[0041] The respectively parsing the multiple data blocks comprises:

[0042] It is determined whether the service identifier corresponding to each data block is a preset identifier.

[0043] If it is the preset identifier, the multiple data blocks are parsed respectively.

[0044] In a third aspect, an embodiment of the present application provides a data processing device based on blockchain, wherein the data processing device based on blockchain includes:

[0045] The acquisition module is used to obtain the data to be sent.

[0046] The processing module is used to divide the data to be sent into blocks according to the first data amount of the data to be sent and the maximum data amount corresponding to a single transmission in the blockchain to obtain multiple data blocks, wherein the second data amount of the data included in each data block of the multiple data blocks is not greater than the maximum data amount.

[0047] The sending module is used to send the multiple data blocks to the receiving nodes in the blockchain in batches.

[0048] Optionally, the processing module is specifically used to determine the number of blocks according to the first data amount and the maximum data amount; and divide the data to be sent into blocks according to the number of blocks to obtain multiple data blocks.

[0049] Optionally, the sending module is specifically used to determine characteristic information corresponding to each data block, the characteristic information including at least one of the number of blocks, the service identifier corresponding to the data block and the serial number of the data block; and carry the characteristic information in the corresponding data block and send it to the receiving node.

[0050] Optionally, the characteristic information includes the serial number of the data block; the sending module is specifically used to carry the characteristic information in the corresponding data blocks and send them to the receiving node in sequence according to the serial numbers corresponding to the multiple data blocks.

[0051] Optionally, the sending module is specifically used to determine the header information of each data block respectively, the header information including the identification information of the target node and the service identification corresponding to the data block; add the corresponding header information to each data block; and send the data blocks with the added header information to the corresponding receiving nodes in batches.

[0052] Optionally, the processing module is specifically used to determine whether the first data amount is greater than the maximum data amount; when the first data amount is greater than the maximum data amount, the data to be sent is divided into blocks according to the first data amount of the data to be sent and the maximum data amount corresponding to a single transmission in the blockchain.

[0053] In a fourth aspect, an embodiment of the present application provides a data processing device based on blockchain, wherein the data processing device based on blockchain includes:

[0054] The receiving module is used to sequentially receive multiple data blocks sent by the sending node, wherein a second data amount of data included in each of the multiple data blocks is not greater than a maximum data amount corresponding to a single transmission in the blockchain.

[0055] The merging module is used to merge the multiple data blocks to obtain target data.

[0056] Optionally, the merging module is specifically used to parse the multiple data blocks separately to obtain characteristic information corresponding to each data block, the characteristic information including at least one of the number of blocks, the service identifier corresponding to the data block and the serial number of the data block; according to the characteristic information corresponding to each data block, the multiple data blocks are merged to obtain the target data.

[0057] Optionally, the characteristic information includes the number of blocks, the service identifier corresponding to the data block and the serial number of the data block; the merging module is specifically used to filter multiple data blocks with the same service identifier from all received data blocks; determine whether the number of the multiple data blocks with the same service identifier is equal to the number of blocks; when they are equal, merge the multiple data blocks with the same service identifier in turn according to the serial number of each data block to obtain the target data.

[0058] Optionally, each data block also includes header information, and the header information includes identification information of the target node; the merging module is specifically used to determine whether the identification information of the target node corresponding to each data block is the same as the identification information of the receiving node; if they are the same, the multiple data blocks are parsed separately.

[0059] Optionally, the header information also includes a service identifier corresponding to the data block; the merging module is specifically used to determine whether the service identifier corresponding to each data block is a preset identifier; when it is the preset identifier, the multiple data blocks are parsed separately.

[0060] In a fifth aspect, an embodiment of the present application further provides an electronic device, the electronic device comprising: a processor, and a memory communicatively connected to the processor;

[0061] The memory stores computer-executable instructions;

[0062] The processor executes the computer-executable instructions stored in the memory to implement the blockchain-based data processing method described in any possible implementation manner of the first aspect above.

[0063] In the sixth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When the processor executes the computer-executable instructions, the blockchain-based data processing method described in any possible implementation method of the first aspect above is implemented.

[0064] In the seventh aspect, an embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the blockchain-based data processing method described in any possible implementation method of the first aspect above.

[0065] It can be seen that the embodiment of the present application provides a data processing method, device and electronic device based on blockchain, by obtaining the data to be sent; according to the first data amount of the data to be sent and the maximum data amount corresponding to a single transmission in the blockchain, the data to be sent is divided into blocks to obtain multiple data blocks, wherein the second data amount of the data included in each of the multiple data blocks is not greater than the maximum data amount; and the multiple data blocks are sent to the receiving node in the blockchain in batches. The technical solution provided by the embodiment of the present application can ensure that the data to be sent is successfully sent to the receiving node by dividing the data to be sent into multiple data blocks, and the second data amount of the data included in each data block is not greater than the maximum data amount corresponding to a single transmission of the blockchain, breaking the data amount threshold limit of the blockchain transmission data, and being able to send a large amount of data, effectively improving the efficiency of data transmission, avoiding the problem of data transmission failure caused by the amount of data transmitted exceeding the data amount threshold, thereby improving the success rate of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] Figure 1 A schematic diagram of an application scenario of a blockchain-based data processing method provided in an embodiment of the present application;

[0067] Figure 2 A flowchart of a data processing method based on blockchain provided in an embodiment of the present application;

[0068] Figure 3 A flowchart of another blockchain-based data processing method provided in an embodiment of the present application;

[0069] Figure 4 A schematic diagram of the structure of a blockchain-based streaming data packet provided in an embodiment of the present application;

[0070] Figure 5 A schematic diagram of a process for a sending node to stream and send private ciphertext data provided in an embodiment of the present application;

[0071] Figure 6 A schematic diagram of a process of receiving and merging streaming data packets provided by a receiving node in an embodiment of the present application;

[0072] Figure 7 A schematic diagram of the structure of a blockchain-based data processing device provided in an embodiment of the present application;

[0073] Figure 8 A schematic diagram of the structure of another blockchain-based data processing device provided in an embodiment of the present application;

[0074] Fig. 9 A schematic diagram of the structure of an electronic device provided in this application.

[0075] The above drawings show clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0076] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0077] In the embodiments of the present application, "at least one" means one or more, and "more" means two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. In the text description of the present application, the character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0078] The technical solution provided in the embodiment of the present application can be applied to data processing scenarios, especially data processing based on blockchain. Blockchain is a chain composed of a series of blocks. In addition to recording the data of the current block, each block also records the hash value of the previous block, forming a chain in this way. There are two core concepts of blockchain, one is cryptography technology, and the other is decentralization. Based on these two concepts, historical information on the blockchain cannot be tampered with. Blockchain can be used for privacy computing, secure multi-party computing, etc.

[0079] Among them, privacy computing refers to a type of information technology that analyzes and calculates data under the premise of ensuring that the data provider does not disclose the original data, ensuring that the data is "available but invisible" in all links of the entire information process, such as generation, storage, calculation, application, and destruction. Privacy computing includes secure multi-party computing, federated learning, trusted execution environment, etc. Secure multi-party computing (MPC) refers to the collaborative calculation of an agreed function by multiple participants without a trusted third party, and ensuring that each party only obtains its own calculation results, and cannot infer the input and output data of any other party through the interactive data during the calculation process.

[0080] When using blockchain to transmit data, in order to maintain the stability of the network, a separate data transmission protocol needs to be designed when transmitting data. The amount of data sent and received by the blockchain node at a time must be less than the data volume threshold, and the data volume threshold is relatively small. For example, the on-chain messenger protocol in the alliance chain does not exceed 32M of data transmitted at a time. When the amount of data transmitted by the blockchain at one time is large but does not exceed the data volume threshold, the transmission bandwidth may be limited, making the transmission speed slower, thereby reducing the efficiency of data transmission. In addition, when the amount of data exceeds the data volume threshold that the blockchain can transmit at one time, data transmission failure will occur, making it impossible to use services such as privacy computing that require the transmission of large amounts of data.

[0081] In order to solve the problem of low efficiency of blockchain data transmission, a large amount of data can be processed in blocks and transmitted in the form of data blocks, avoiding the problem of slow transmission speed caused by bandwidth limitation. The amount of data in the data block is not greater than the maximum amount of data corresponding to a single transmission of the blockchain, so that the database can be successfully sent to the receiving node. In addition, the technical solution provided by this application can be applied to the scenario of sending large-scale data based on blockchain privacy computing services.

[0082] Figure 1 A schematic diagram of an application scenario of a blockchain-based data processing method provided in an embodiment of the present application. Figure 1As shown, when the sending node sends the data to be sent to the receiving node 100, according to the maximum data volume corresponding to a single transmission in the blockchain and the first data volume of the data to be sent, it can be determined that the data to be sent is divided into three parts and placed in three data blocks 200 respectively. For example, the first data volume of the data to be sent is 16, and the maximum data volume corresponding to a single transmission in the blockchain is 8. Therefore, the number of data to be sent stored in the three data blocks can be 5, 5, 6, or other allocation methods not exceeding 8. The embodiments of the present application are only described by taking the above as an example, but it does not mean that the embodiments of the present application are limited to this.

[0083] Furthermore, after obtaining the three data blocks, the three data blocks are sent to the receiving node 103 in the blockchain in batches. The receiving node 103 obtains the data to be sent by merging the data in the three received data blocks.

[0084] The technical solution provided by the embodiment of the present application can place a large amount of data in multiple data blocks and send them to the receiving node in batches, thereby improving the efficiency of data transmission. Moreover, the second data volume of the data included in each data block is not greater than the maximum data volume corresponding to the word transmission in the blockchain, which can ensure the success rate of the data transmission process. Therefore, when using the method provided by the implementation of the present application to transmit data exceeding the data volume threshold, there will be no transmission failure problem, and it can achieve the normal use of services such as privacy computing that require the transmission of large amounts of data.

[0085] Below, the data processing method based on blockchain provided by the present application will be described in detail through specific embodiments. It is understandable that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.

[0086] Figure 2 A flowchart of a blockchain-based data processing method provided in an embodiment of the present application. The blockchain-based data processing method can be executed by software and / or hardware devices. For example, the hardware device can be a blockchain-based data processing device, and the blockchain-based data processing device can be a terminal or a processing chip in the terminal. For examples, see Figure 2 As shown, the blockchain-based data processing method may include:

[0087] S201. Obtain data to be sent.

[0088] In this step, when obtaining the data to be sent, the data to be sent can be obtained from multiple data sources through multiple channels. For example, data of various dimensions of a specified enterprise can be obtained from multiple data sources. The data to be sent obtained is related to the currently executed business. For example, when the currently executed business is a privacy computing business, the data to be sent obtained is data related to privacy computing. The embodiments of the present application do not impose any restrictions on obtaining the data to be sent and the content of the data to be sent.

[0089] S202. According to a first data amount of the data to be sent and a maximum data amount corresponding to a single transmission in the blockchain, the data to be sent is divided into blocks to obtain multiple data blocks, wherein a second data amount of data included in each data block in the multiple data blocks is not greater than the maximum data amount.

[0090] In this step, when the data to be sent is divided into blocks according to the first data amount of the data to be sent and the maximum data amount corresponding to a single transmission in the blockchain to obtain multiple data blocks, the number of blocks can be determined according to the first data amount and the maximum data amount; the data to be sent is divided into blocks according to the number of blocks to obtain multiple data blocks.

[0091] For example, the maximum data volume is the maximum data volume corresponding to a single transmission in the blockchain, which can be 10M, or 30M, or other numbers. The specific setting is based on actual conditions, and the embodiments of the present application do not impose any limitations on this.

[0092] In an embodiment of the present application, by dividing the data to be sent into multiple data blocks, a large amount of data is split into multiple small amounts of data, which can improve the efficiency of the data transmission process, and the probability of wireless errors in the data blocks during the transmission process is low. Therefore, the security of the data can be effectively guaranteed, so that the data to be sent can be accurately sent to the receiving node.

[0093] For example, when the data to be sent is divided into blocks according to the first data amount of the data to be sent and the maximum data amount corresponding to a single transmission in the blockchain, it is determined whether the first data amount is greater than the maximum data amount; if the first data amount is greater than the maximum data amount, the data to be sent is divided into blocks according to the first data amount of the data to be sent and the maximum data amount corresponding to a single transmission in the blockchain.

[0094] For example, when the data to be sent is divided into blocks according to the first data volume of the data to be sent and the maximum data volume corresponding to a single transmission in the blockchain, it is necessary to determine the data threshold allowed in each data block. The data threshold may be equal to the maximum data volume, or it may be less than the maximum data volume threshold. It can be set according to the actual situation. For example, in the privacy computing business, the value range of the data threshold is greater than 9 and less than the difference between the maximum data volume and the data volume occupied by the fixed parameter. The data threshold can be set according to the actual situation of the blockchain and privacy computing. For example, the data threshold can be taken as half of the maximum data volume. The embodiment of the present application does not impose any restrictions on the specific data threshold.

[0095] In an embodiment of the present application, the data to be sent is divided into blocks according to the maximum data amount corresponding to a single transmission in the blockchain, which can ensure that the amount of data in the data block does not exceed the maximum data amount corresponding to a single transmission in the blockchain, and further ensure that the data block can be sent to the receiving node quickly and accurately.

[0096] S203. Send multiple data blocks to receiving nodes in the blockchain in batches.

[0097] In this step, when multiple data blocks are sent to the receiving node in the blockchain in batches, characteristic information corresponding to each data block can be determined, and the characteristic information includes at least one of the number of blocks, the service identifier corresponding to the data block, and the serial number of the data block; the characteristic information is carried in the corresponding data block and sent to the receiving node.

[0098] For example, the data block can be in the form of a streamPacket. The number of blocks is the number of data blocks, and the number of blocks can be a string type, and the number of bytes it occupies is fixed. For example, the number of bytes occupied by the number of blocks is 4 bytes. The service identifier corresponding to the data block can be a string type, and the number of bytes it occupies is fixed. For example, the number of bytes occupied by the service identifier corresponding to the data block is 16 bytes. The serial number of the data block can be an integer type, and the number of bytes it occupies is fixed. For example, the number of bytes occupied by the serial number of the data block is 4 bytes. The embodiment of the present application does not specifically limit the number of blocks, the service identifier corresponding to the data block, and the number of bytes occupied by the serial number of the data block.

[0099] According to the above steps, when the data to be sent is divided into blocks to obtain multiple data blocks, it is necessary to consider the impact of the number of blocks, the service identifier corresponding to the data block, and the number of bytes occupied by the serial number of the data block on the amount of data that can be stored in the data block. For example, if the maximum amount of data allowed in a data block is 120, and the number of blocks, the service identifier corresponding to the data block, and the serial number of the data block occupy 20, then the maximum amount of data allowed in the data block becomes 100.

[0100] It can be understood that the characteristic information includes at least one of the number of blocks, the service identifier corresponding to the data block and the serial number of the data block, and may also include a receiving node identifier to indicate that the data block is sent to a designated receiving node in the blockchain.

[0101] In an embodiment of the present application, by carrying at least one characteristic information including the number of blocks, the service identifier corresponding to the data block, and the serial number of the data block in the corresponding data block, and sending it to the receiving node together with the data to be sent in the data block, the progress of the data block transmission and whether an error occurs during the data block transmission can be determined based on the characteristic information, thereby further improving the security of data transmission.

[0102] For example, if the characteristic information includes the serial number of the data block, when the characteristic information is carried in the corresponding data block and sent to the receiving node, the characteristic information can be carried in the corresponding data blocks and sent to the receiving node in sequence according to the serial numbers corresponding to the multiple data blocks.

[0103] In the embodiment of the present application, the characteristic information is carried in the corresponding data blocks according to the sequence numbers corresponding to the first data blocks and sent to the receiving node in sequence, so that when sending the data blocks, the order of sending the data blocks can be guaranteed to be the same as the order of the data to be sent, so that the receiving node can merge the received data blocks more efficiently. In addition, it can be determined whether there is a problem with the data block when it is sent to the receiving node.

[0104] For example, the data block may also include header information of the data block. When multiple data blocks are sent to receiving nodes in the blockchain respectively, the header information of each data block may be determined respectively, where the header information includes identification information of the target node and a business identification corresponding to the data block; the corresponding header information is added to each data block; and the data blocks with the added header information are sent to the corresponding receiving nodes in batches.

[0105] In the prior art, when a receiving node receives multiple data sent by a sending node, it needs to parse the data to obtain the business information of the data. In the embodiment of the present application, by adding header information including the identification information of the target node and the business identification corresponding to the data block to the data block, the receiving module can directly determine the business identification corresponding to the data block according to the header information without parsing the data block, thereby further improving the efficiency of data transmission.

[0106] It can be seen that the data processing method based on blockchain provided in the embodiment of the present application obtains the data to be sent; according to the first data amount of the data to be sent and the maximum data amount corresponding to a single transmission in the blockchain, the data to be sent is divided into blocks to obtain multiple data blocks, wherein the second data amount of the data included in each of the multiple data blocks is not greater than the maximum data amount; and the multiple data blocks are sent to the receiving node in the blockchain in batches. The technical solution provided in the embodiment of the present application realizes the transmission of a large amount of data in the blockchain by sending the data to be sent to the receiving node in the form of data blocks. And the second data amount of the data included in the data block is not greater than the maximum data amount corresponding to a single transmission of the blockchain, thereby improving the efficiency and success rate of data transmission.

[0107] Figure 3 A flowchart of another blockchain-based data processing method provided in an embodiment of the present application. The blockchain-based data processing method is applied to a receiving node and can be executed by software and / or hardware devices. For example, the hardware device can be a blockchain-based data processing device, and the blockchain-based data processing device can be a terminal or a processing chip in the terminal. The blockchain-based data processing method is applied to a receiving node. For example, see Figure 3 As shown, the blockchain-based data processing method may include:

[0108] S301. Receive multiple data blocks sent by a sending node in sequence, wherein a second data amount of data included in each of the multiple data blocks is not greater than a maximum data amount corresponding to a single transmission in the blockchain.

[0109] According to the above embodiment, when a sending node sends multiple data blocks to a receiving node in a blockchain in batches, the receiving node receives the multiple data blocks in sequence according to the order in which the sending node sends them.

[0110] S302: Merge multiple data blocks to obtain target data.

[0111] For example, when merging multiple data blocks to obtain target data, the multiple data blocks can be parsed separately to obtain feature information corresponding to each data block, the feature information including at least one of the number of blocks, the service identifier corresponding to the data block, and the serial number of the data block; based on the feature information corresponding to each data block, the multiple data blocks are merged to obtain the target data. The embodiments of the present application do not impose any limitation on the specific parsing method.

[0112] After obtaining the characteristic information corresponding to each data block, the receiving node receiver can cache it locally. For example, each data block can be cached using the characteristic information of each data block through data stream cache and count cache. When caching data blocks, the cache key can be set to the receiving node identifier + the service identifier corresponding to the data block + the number of blocks, and the cache value can be set to the data block to indicate that the content of the cache is a data block. After the data block cache is set, the count cache can be set, and the key of the count cache can be set to the receiving node identifier + the service identifier corresponding to the data block, so that when a data block is received, the value of the corresponding count cache is incremented by 1 to count the received data blocks.

[0113] In the present application, multiple data blocks are merged, and the obtained target data is the data to be sent by the sending node.

[0114] In the embodiment of the present application, since the characteristic information of the data block includes at least one of the number of blocks, the service identifier corresponding to the data block, and the sequence number of the data block, it is possible to quickly merge multiple data blocks according to the characteristic information corresponding to each data block, so that the target obtained after the merger is more orderly.

[0115] For example, when the characteristic information includes the number of blocks, the service identifier corresponding to the data block and the serial number of the data block; multiple data blocks with the same service identifier can be screened from all received data blocks; it is determined whether the number of multiple data blocks with the same service identifier is equal to the number of blocks; if they are equal, the multiple data blocks with the same service identifier are merged in turn according to the serial number of each data block to obtain the target data.

[0116] It is understandable that the receiving node may receive data blocks belonging to the same service from multiple sending nodes at the same time or in the same time period, or may receive data blocks belonging to different services from different sending nodes. Therefore, the receiving node needs to filter out multiple data blocks with the same service identifier, and determine whether the number of multiple data blocks with the same service identifier is equal to the number of blocks. For example, the number of multiple data blocks with the same service identifier can be determined by the value of the counting cache, wherein, if the number of multiple data blocks with the same service identifier is equal to the number of blocks, it means that the data blocks with the service identifier have all been received, and then the multiple data blocks with the same service identifier can be merged in sequence according to the sequence number of each data block.

[0117] In an embodiment of the present application, by judging whether the number of multiple data blocks with the same service identifier is equal to the number of blocks, it is determined whether all data blocks with the same service identifier have been received, and when the number of multiple data blocks with the same service identifier is equal to the number of blocks, the multiple data blocks with the same service identifier are merged in sequence, so that the target data obtained after the merger is arranged according to the sequence number of the data block, that is, the target data is completely consistent with the order of the data to be sent sent by the sending node, thereby ensuring the accuracy of the received data.

[0118] For example, each data block may also include header information, and the header information includes identification information of the target node; therefore, when parsing multiple data blocks respectively, it can be determined whether the identification information of the target node corresponding to each data block is the same as the identification information of the receiving node; if they are the same, the multiple data blocks are parsed respectively. It can be understood that the target node is the receiving node.

[0119] In an embodiment of the present application, by determining whether the identification information of the target node corresponding to each data block is the same as the identification information of the receiving node, and if they are the same, respectively parsing multiple data blocks, it is possible to determine whether the data block belongs to the current interpretation node, thereby preventing the receiving node from parsing data blocks that do not belong to the receiving node, causing the data in the parsed data block to interfere with the correct data received by the receiving node, and thereby improving the accuracy of the target data obtained by the receiving node.

[0120] For example, the header information may also include a service identifier corresponding to the data block; when parsing multiple data blocks separately, it may be determined whether the service identifier corresponding to each data block is a preset identifier; if it is a preset identifier, the multiple data blocks are parsed separately.

[0121] It can be understood that the preset identifier can be a service identifier determined in advance by the receiving node and the sending node, or it can be a service identifier set for the receiving node. The embodiment of the present application does not impose any limitation on this.

[0122] For example, the business identifiers corresponding to multiple data blocks may include numbers. For example, the business identifiers corresponding to multiple data blocks belonging to the same business may be A business -1, A business -2, A business -3, A business -4, A business -5. Therefore, the arrangement order of the multiple data blocks can be determined according to the business identifiers corresponding to the multiple data blocks, so that the serial numbers of the multiple data blocks can be determined without parsing the data blocks.

[0123] In the embodiment of the present application, only a plurality of data blocks whose service identifiers corresponding to the data blocks are preset identifiers are parsed, which can avoid the receiving node from parsing the data blocks with wrong service identifiers, that is, it can avoid the data in the wrong data blocks from affecting the target data obtained by the receiving node, and

[0124] It can be seen that the data processing method based on blockchain provided by the embodiment of the present application sequentially receives multiple data blocks sent by the sending node, wherein the second data amount of the data included in each of the multiple data blocks is not greater than the maximum data amount corresponding to a single transmission in the blockchain; and merges the multiple data blocks to obtain the target data. The orderly reception of data can be achieved, so that the obtained target data is exactly the same as the data to be sent by the sending node, thereby improving the accuracy of the data received by the receiving node and effectively improving the efficiency of merging data.

[0125] In order to facilitate understanding of the blockchain-based data processing method provided by the embodiment of the present application, the technical solution provided by the embodiment of the present application will be described in detail below, taking the data block as a blockchain-based streaming data packet as an example. For example, the structure of the streaming data packet can be found in Figure 4 As shown, Figure 4 A schematic diagram of a blockchain-based streaming data packet structure provided in an embodiment of the present application. Figure 4 As shown, the streaming data packet may include a receiving node identifier nodeId, which is a string type, indicating the receiving node identifier of the blockchain, and the size is fixed to 16 bytes; a business identifier businessId, which is a string type, indicating the business identifier, and the size is fixed to 16 bytes; a data packet quantity dataBlockCount, that is, the number of blocks, the total number of streaming data packets, which is an integer type, indicating the total number of streaming blocks, and the size is fixed to 4 bytes; a data packet serial number blockSerialNumber, which is an integer type, indicating the serial number of the streaming block data, and the size is fixed to 4 bytes; a streaming data content dataStream, which is a byte data type, indicating the streaming data content, and the size is less than the amount of data transmitted in a single blockchain, that is, the maximum data amount described in the above embodiment.

[0126] For example, according to Figure 4 For the streaming data packet, the sending node processes the private ciphertext data in a streaming manner and sends it. Figure 5 As shown, Figure 5 A schematic diagram of a process for a sending node to stream and send private ciphertext data provided in an embodiment of the present application. Figure 5 As shown, the sending node may perform streaming processing on the private ciphertext data and send it, including the following steps:

[0127] Step 1: Obtain the private ciphertext data and determine the data threshold.

[0128] The streaming data threshold is the maximum value of the amount of data allowed by the data packet described in the above embodiment.

[0129] Exemplarily, assume that the maximum amount of data that can be transmitted by the blockchain at one time is m, and a streaming data threshold r is specified. r can be set according to the actual situation of the blockchain and privacy computing services. Since the receiving node identifier nodeId, service identifier businessId, number of data packets dataBlockCount, and data packet serial number blockSerialNumber in the streaming data structure need to fixedly occupy 16 + 16 + 4 + 4 = 40 bytes, r needs to satisfy 0 < r ≤ m - 40. The amount of data transmitted by the blockchain can be adjusted through the data threshold r. The smaller the amount of data output at one time, the more transmission times. The larger the amount of data output at one time, the fewer transmission times. For example, r can be set to m / 2.

[0130] Step 2: Determine whether the size of the data data is greater than the data threshold. If the size of the data data is greater than the data threshold, execute Step 3. If the size of the data data is less than or equal to the data threshold, directly send the data.

[0131] Step 3: Convert the data data into byte stream data bdata.

[0132] For example, convert a string "c2VsZWN0IHNvdX" by corresponding each character to its ASCII value through the ASCII code table. Each ASCII code value is a number between 0 and 127. The converted byte stream data bdata is [99, 50, 86, 115, 90, 87, 78, 48, 73, 72, 78, 118, 100, 88], and the size I of the byte stream data bdata is 14.

[0133] Among them, the ASCII code uses a specified combination of 7-bit binary numbers to represent 128 possible characters, including all uppercase and lowercase letters, numbers 0 to 9, and punctuation marks.

[0134] Step 4: Divide the byte stream data bdata into multiple streaming data packets, and determine the data packet serial number and the streaming data content of each streaming data packet.

[0135] For example, when dividing the byte stream data bdata into multiple streaming data packets, the byte stream data bdata can be divided according to the data threshold r, and the size of the byte stream data bdata is recorded as I, then the number of divided streaming data packets dataBlockCount = I / / r, where / / represents division with rounding up, for example 3 / / 2 = 2, 4 / / 2 = 2. The data packet serial numbers blockSerialNumber are 1, 2, ..., dataBlockCount respectively. The streaming data contents dataStream are bdata[0, r-1], bdata[r, 2r-1], ..., bdata[(dataBlockCount-1)*r, I-1] respectively.

[0136] For the example in step 3, assuming that the value of the quantity threshold r is set to 5, the number of streaming data packets dataBlockCount=I / / r=14 / / 5=3, and the data packet serial numbers blockSerialNumber are 1, 2, and 3 respectively. The streaming data contents dataStream are bdata[0, 4]=[99, 50, 86, 115, 90], bdata[5, 9]=[87, 78, 48, 73, 72], and bdata[10, 13]=[78, 118, 100, 88].

[0137] Step 5: Assemble multiple streaming data packets according to the data packet sequence number and the streaming data content of each streaming data packet.

[0138] For example, assemble as Figure 4 The multiple streaming data packets shown, according to the example in step 4, have data packet serial numbers blockSerialNumber of 1, 2, and 3 respectively; the streaming data contents dataStream are bdata[0, 4] = [99, 50, 86, 115, 90], bdata[5, 9] = [87, 78, 48, 73, 72], and bdata[10, 13] = [78, 118, 100, 88] respectively, and the receiving node identifier nodeId, the business identifier businessId, the number of data packets dataBlockCount, and the streaming data content dataStream are set. The receiving node identifier nodeId can be set according to the world-class situation, for example, the receiving node identifier is node1. The business identifier businessId is related to the business corresponding to the streaming data data, for example, the business identifier can be job1. The number of data packets dataBlockCount is 3.

[0139] Step 6: Add the header information of the streaming data packet.

[0140] For example, in order to ensure the orderliness of data transmission, data packets can be sent through topic monitoring combined with the data packet serial number blockSerialNumber mechanism. Specifically, before sending data, both the sending node and the receiving node need to set the monitoring topic so that the two nodes of the blockchain can send and receive data according to a specific topic. For example, the monitoring topic can be the header information of the streaming data packet. The monitoring topic can also directly set the form of the transmitted data, that is, ordinary data or streaming data packet. The embodiment of the present application does not specifically limit the monitoring topic.

[0141] When adding header information to a streaming data packet, the header information can be represented by a string. For example, the header information of a streaming data packet sent by a blockchain sending node node1 is node2-job1, where node2 represents the identifier of the receiving node, and job1 represents the first streaming data packet of the job. Therefore, node2-job1 represents the data sent to node2, and the streaming data packet of the job1. The streaming data packets under the same job are distinguished by the data packet serial number blockSerialNumber in the order of data transmission, so that the receiver can merge and restore the data in order, so that the blockchain can realize two-way multi-round orderly data transmission.

[0142] Step 7: Send the streaming data packet with the header information added.

[0143] Figure 6 A schematic diagram of a process of receiving and merging streaming data packets provided by a receiving node in an embodiment of the present application. Figure 6 As shown, the receiving node receives the streaming data packets and merges them, which may include the following steps:

[0144] Step 1: Receive data.

[0145] Step 2: Determine whether a streaming data packet is received. If a streaming data packet is received, execute step 2. If ordinary data is received, process it according to the blockchain's native transmission and reception data method.

[0146] For example, when determining whether a streaming data packet is received, it can be determined by the set monitoring subject. If the monitoring subject is the form of the received data, that is, whether it is ordinary data or a streaming data packet, it can be directly determined. If the monitoring subject is the header information of the streaming data packet, the streaming data packet can be received when the header information exists. The embodiment of the present application is only described by this example, but it does not mean that the embodiment of the present application is limited to this.

[0147] Step 3: parse the streaming data packet to obtain the streaming data packet information.

[0148] For example, a streaming data packet streamPacket is obtained, and the receiving node identifier nodeId, the business identifier businessId, the number of data packets dataBlockCount, the data packet serial number blockSerialNumber and the streaming data content dataStream are obtained by parsing.

[0149] Step 4: Set the data stream cache and count cache.

[0150] For example, when setting the data stream cache and the technical cache, the receiving node sets two caches locally, namely the data stream cache and the count cache. Among them, the data stream cache is used to save streaming data, and its key is set to nodeId+businessId+blockSerialNumber, and its value is set to dataStream. After the data stream cache is successfully set, the count cache is set, and the key of the count cache is set to nodeId+businessId. When a streaming data packet is received, the value of the corresponding count cache is incremented by 1 to determine the number of streaming data packets received through the count cache.

[0151] Step 5: Determine whether the value of the counting buffer is equal to the number of data packets. If so, execute step 6; if not, execute the above steps 1-3.

[0152] For example, when determining whether the value of the counting cache is equal to the number of data packets, the number of data packets obtained by parsing the streaming data packets in the above step 3 can be compared with the value of the current technology cache. If the value of the counting cache is equal to the number of data packets, it means that all streaming data packets have been received. If the value of the counting cache is not equal to the number of data packets, it means that there are still data packets that have not been received, and it is necessary to continue to receive streaming data packets until all streaming data packets are received.

[0153] Step 6: Merge the streaming data packets to obtain the private ciphertext data.

[0154] For example, the keys of the query data stream cache are nodeId+businessId+1, nodeId+businessId+2, ..., nodeId+businessId+dataBlockCount. The queried data stream cache values ​​are merged in sequence according to the query order, which can avoid the problem of disorder in the sending or receiving process of the streaming data packet, resulting in inconsistent data sent and received. According to the method of dividing data into multiple streaming data packets described in the above embodiment, when merging the streaming data packets, they can be stored in a bdata byte array of length I according to bdata[0, r-1], bdata[r, 2r-1], ..., bdata[(dataBlockCount-1)*r, l-1], which can ensure the consistency of the data received by the receiving node and the data sent by the sending node.

[0155] Step 7: Delete the data stream cache and count cache.

[0156] For example, after merging the streaming data packets, the count cache with the key nodeId+businessId and the data stream cache with the key nodeId+businessId+blockSerialNumber can be deleted.

[0157] Figure 7 A schematic diagram of a data processing device 70 based on blockchain provided in an embodiment of the present application, for example, see Figure 7 As shown, the blockchain-based data processing device 70 may include:

[0158] The acquisition module 701 is used to acquire data to be sent.

[0159] The processing module 702 is used to divide the data to be sent into blocks according to the first data amount of the data to be sent and the maximum data amount corresponding to a single transmission in the blockchain to obtain multiple data blocks, wherein the second data amount of the data included in each data block in the multiple data blocks is not greater than the maximum data amount.

[0160] The sending module 703 is used to send multiple data blocks to the receiving nodes in the blockchain in batches.

[0161] Optionally, the processing module 702 is specifically configured to determine the number of blocks according to the first data amount and the maximum data amount; and divide the data to be sent into blocks according to the number of blocks to obtain multiple data blocks.

[0162] Optionally, the sending module 703 is specifically used to determine the characteristic information corresponding to each data block, the characteristic information including at least one of the number of blocks, the service identifier corresponding to the data block and the serial number of the data block; and carry the characteristic information in the corresponding data block and send it to the receiving node.

[0163] Optionally, the characteristic information includes a serial number of a data block; the sending module 703 is specifically configured to carry the characteristic information in corresponding data blocks and send them to a receiving node in sequence according to the serial numbers corresponding to the multiple data blocks.

[0164] Optionally, the sending module 703 is specifically used to determine the header information of each data block respectively, the header information including the identification information of the target node and the service identification corresponding to the data block; add the corresponding header information to each data block; and send the data blocks with the added header information to the corresponding receiving nodes in batches.

[0165] Optionally, the processing module 702 is specifically used to determine whether the first data amount is greater than the maximum data amount; when the first data amount is greater than the maximum data amount, the data to be sent is divided into blocks according to the first data amount of the data to be sent and the maximum data amount corresponding to a single transmission in the blockchain.

[0166] The blockchain-based data processing device provided in the embodiment of the present application can execute the technical solution of the blockchain-based data processing method in any of the above-mentioned embodiments. Its implementation principle and beneficial effects are similar to the implementation principle and beneficial effects of the blockchain-based data processing method. Please refer to the implementation principle and beneficial effects of the blockchain-based data processing method, which will not be repeated here.

[0167] Figure 8 A schematic diagram of another data processing device 80 based on blockchain provided in an embodiment of the present application, for example, see Figure 8 As shown, the blockchain-based data processing device 80 may include:

[0168] The receiving module 801 is used to sequentially receive multiple data blocks sent by the sending node, wherein a second data amount of data included in each of the multiple data blocks is not greater than a maximum data amount corresponding to a single transmission in the blockchain.

[0169] The merging module 802 is used to merge multiple data blocks to obtain target data.

[0170] Optionally, the merging module 802 is specifically used to parse multiple data blocks separately to obtain characteristic information corresponding to each data block, where the characteristic information includes at least one of the number of blocks, the service identifier corresponding to the data block, and the serial number of the data block; based on the characteristic information corresponding to each data block, the multiple data blocks are merged to obtain the target data.

[0171] Optionally, the characteristic information includes the number of blocks, the business identifier corresponding to the data block and the serial number of the data block; the merging module 802 is specifically used to filter out multiple data blocks with the same business identifier from all received data blocks; determine whether the number of multiple data blocks with the same business identifier is equal to the number of blocks; when they are equal, merge the multiple data blocks with the same business identifier in turn according to the serial number of each data block to obtain the target data.

[0172] Optionally, each data block also includes header information, which includes identification information of the target node; the merging module 802 is specifically used to determine whether the identification information of the target node corresponding to each data block is the same as the identification information of the receiving node; if they are the same, the multiple data blocks are parsed separately.

[0173] Optionally, the header information also includes a service identifier corresponding to the data block; the merging module 802 is specifically used to determine whether the service identifier corresponding to each data block is a preset identifier; when it is a preset identifier, the multiple data blocks are parsed separately.

[0174] The blockchain-based data processing device provided in the embodiment of the present application can execute the technical solution of the blockchain-based data processing method in any of the above-mentioned embodiments. Its implementation principle and beneficial effects are similar to the implementation principle and beneficial effects of the blockchain-based data processing method. Please refer to the implementation principle and beneficial effects of the blockchain-based data processing method, which will not be repeated here.

[0175] Fig. 9 This is a schematic diagram of the structure of an electronic device provided in this application. Fig. 9 As shown, the electronic device 900 may include: at least one processor 901 and a memory 902 .

[0176] The memory 902 is used to store programs. Specifically, the programs may include program codes, and the program codes include computer operation instructions.

[0177] The memory 902 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0178] The processor 901 is used to execute the computer-executable instructions stored in the memory 902 to implement the data processing method based on blockchain described in the aforementioned method embodiment. Among them, the processor 901 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. Specifically, when implementing the data processing method based on blockchain described in the aforementioned method embodiment, the electronic device may be, for example, an electronic device with processing functions such as a terminal or a server.

[0179] Optionally, the electronic device 900 may further include a communication interface 903. In a specific implementation, if the communication interface 903, the memory 902 and the processor 901 are implemented independently, the communication interface 903, the memory 902 and the processor 901 may be interconnected through a bus and communicate with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc., but it does not mean that there is only one bus or one type of bus.

[0180] Optionally, in a specific implementation, if the communication interface 903, the memory 902 and the processor 901 are integrated on a chip, the communication interface 903, the memory 902 and the processor 901 can communicate through an internal interface.

[0181] The present application also provides a computer-readable storage medium, which may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes. Specifically, the computer-readable storage medium stores program instructions, and the program instructions are used for the methods in the above embodiments.

[0182] The present application also provides a program product, which includes an execution instruction, which is stored in a readable storage medium. At least one processor of the electronic device can read the execution instruction from the readable storage medium, and at least one processor executes the execution instruction so that the electronic device implements the blockchain-based data processing method provided by the various embodiments described above.

[0183] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A data processing method based on blockchain, characterized in that: include: Obtaining private ciphertext data and determining the data threshold allowed in each streaming data packet; wherein the data threshold is less than the difference between the maximum amount of data corresponding to a single transmission in the blockchain and the amount of data occupied by fixed parameters, wherein the fixed parameters include the number of blocks, the service identifier corresponding to the streaming data packet, the sequence number of the streaming data packet, and the receiving node identifier; When the first data amount of the private ciphertext data is greater than the data threshold, converting the private ciphertext data into byte stream data, and dividing the byte stream data into blocks according to the first data amount and the data threshold to obtain a plurality of streaming data packets, wherein a second data amount of data included in each of the plurality of streaming data packets is not greater than the data threshold; Determine the header information of each of the streaming data packets respectively, wherein the header information includes the service identifier and the identifier information of the target node corresponding to the streaming data packet; Adding corresponding header information to each of the streaming data packets; According to the sequence number of the streaming data packet, a plurality of streaming data packets with added header information are sent to the receiving nodes in the blockchain in batches.

2. The method according to claim 1, characterized in that The step of dividing the byte stream data into blocks according to the first data volume and the data threshold to obtain a plurality of streaming data packets includes: Determining the number of blocks according to the first data amount and the data threshold; The byte stream data is divided into blocks according to the number of blocks to obtain a plurality of data blocks.

3. A data processing method based on blockchain, characterized in that: Applied to a receiving node, the method comprises: Sequentially receive multiple streaming data packets sent by a sending node according to the sequence number of the streaming data packet, wherein the multiple streaming data packets are obtained by dividing the byte stream data converted from the private ciphertext data into blocks and adding header information according to the first data volume and the data threshold when the first data volume of the private ciphertext data is greater than the data threshold, and the second data volume of the data included in each of the multiple streaming data packets is not greater than the data threshold, and the data threshold is less than the difference between the maximum data volume corresponding to a single transmission in the blockchain and the data volume occupied by the fixed parameters, and the fixed parameters include the number of blocks, the service identifier corresponding to the data block, the sequence number of the data block and the receiving node identifier; the header information includes the service identifier corresponding to the streaming data packet and the identification information of the target node; Parsing the plurality of streaming data packets respectively to obtain header information corresponding to each streaming data packet; According to the header information, multiple streaming data packets with the same service identifier are screened from all received streaming data packets; and it is determined whether the number of the multiple streaming data packets with the same service identifier is equal to the number of blocks in the header information; If they are equal, then multiple streaming data packets with the same service identifier are merged in sequence according to the sequence number of each streaming data packet to obtain private ciphertext data.

4. The method according to claim 3, characterized in that The respectively parsing the plurality of streaming data packets comprises: Determine whether the identification information of the target node corresponding to each streaming data packet is the same as the identification information of the receiving node; If they are the same, the multiple streaming data packets are parsed respectively.

5. The method according to claim 4, characterized in that The respectively parsing the plurality of streaming data packets comprises: Determining whether the service identifier corresponding to each streaming data packet is a preset identifier; If it is the preset identifier, the multiple streaming data packets are parsed respectively.

6. A data processing device based on blockchain, characterized in that: include: An acquisition module is used to acquire private ciphertext data and determine the data threshold allowed in each streaming data packet; wherein the data threshold is less than the difference between the maximum data volume corresponding to a single transmission in the blockchain and the data volume occupied by fixed parameters, wherein the fixed parameters include the number of blocks, the service identifier corresponding to the streaming data packet, the sequence number of the streaming data packet, and the receiving node identifier; a processing module, configured to convert the private ciphertext data into byte stream data when the first data amount of the private ciphertext data is greater than the data threshold, and to divide the byte stream data into blocks according to the first data amount and the data threshold to obtain a plurality of streaming data packets, wherein a second data amount of data included in each of the plurality of streaming data packets is not greater than the data threshold; The sending module is used to respectively determine the header information of each of the streaming data packets, wherein the header information includes the service identifier corresponding to the streaming data packet and the identifier information of the target node; respectively add the corresponding header information to each of the streaming data packets; and according to the sequence number of the streaming data packet, sequentially send the multiple streaming data packets with the added header information to the receiving node in the blockchain in batches.

7. A data processing device based on blockchain, characterized in that: include: A receiving module, configured to sequentially receive a plurality of streaming data packets sent by a sending node according to a sequence number of the streaming data packet, wherein the plurality of streaming data packets are obtained by dividing the byte stream data converted from the private ciphertext data into blocks and adding header information according to the first data volume and the data threshold when the first data volume of the private ciphertext data is greater than the data threshold, and the second data volume of the data included in each of the plurality of streaming data packets is not greater than the data threshold, and the data threshold is less than the difference between the maximum data volume corresponding to a single transmission in the blockchain and the data volume occupied by a fixed parameter, and the fixed parameter includes the number of blocks, the service identifier corresponding to the streaming data packet, the sequence number of the streaming data packet and the receiving node identifier; the header information includes the service identifier corresponding to the streaming data packet and the identification information of the target node; The merging module is used to parse the multiple streaming data packets respectively to obtain the header information corresponding to each streaming data packet; based on the header information, filter multiple streaming data packets with the same service identifier from all received streaming data packets; and determine whether the number of the multiple streaming data packets with the same service identifier is equal to the number of blocks in the header information; if equal, merge the multiple streaming data packets with the same service identifier in turn according to the sequence number of each streaming data packet to obtain private ciphertext data.

8. An electronic device comprising: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 5.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 5 when executed by a processor.