Blockchain-based data processing method, device and storage medium

By building a system hash tree in the blockchain and using a path planning algorithm, the problem of insufficient data processing efficiency and security is solved, and efficient and secure data processing is achieved.

CN118227836BActive Publication Date: 2024-09-17JIANGSU MARINE RESOURCES DEV RES INST LIAN YUNGANG +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410155510.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-04
Publication Date
2024-09-17
Estimated Expiration
2044-02-04

AI Technical Summary

Technical Problem

The existing technology is difficult to efficiently obtain and process target data in the blockchain during data processing, and the data security is insufficient.

Method used

By building a system hash tree in the blockchain, connecting the nodes in the blockchain, and using path planning algorithms to optimize data acquisition and processing paths, combined with data preprocessing, hash tree association and data self-encryption technology, Improve data processing efficiency and security.

Benefits of technology

Significantly improves the efficiency and security of data processing, and achieves efficient data acquisition and processing through hash tree connection nodes and path planning algorithms, while enhancing data security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118227836B
    Figure CN118227836B
Patent Text Reader

Abstract

The present invention belongs to the field of blockchain technology, and specifically relates to a data processing method, device and storage medium based on blockchain, wherein the method performs the following steps: A data processing method based on blockchain, characterized in that the method performs the following steps: Step 1: Data preprocessing: preprocessing the data to be processed to obtain preprocessed data; the data preprocessing process includes: data noise reduction processing and data segmentation processing; the data noise reduction processing at least includes: removing unique attributes of data, processing missing values ​​of data, detecting data abnormal values ​​and data reduction processing; the data segmentation processing, performing data segmentation on each data after data noise reduction processing to obtain a data body representing the content of the data and a data header representing the attribute characteristics of the data. It connects the nodes in the blockchain by constructing a system hash tree in the blockchain, so that the target data can be efficiently obtained when performing data processing.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] Blockchain is a term in the field of information technology. In essence, it is a shared database, and the data or information stored in it has the characteristics of "unforgeable", "full traceability", "traceability", "openness and transparency", and "collective maintenance". Based on these characteristics, blockchain technology has laid a solid foundation of "trust", created a reliable "cooperation" mechanism, and has broad application prospects.

[0003] Generally speaking, the blockchain system consists of the data layer, network layer, consensus layer, incentive layer, contract layer and application layer. Among them, the data layer encapsulates the underlying data blocks and related basic data and basic algorithms such as data encryption and timestamp; the network layer includes distributed networking mechanism, data dissemination mechanism and data verification mechanism; the consensus layer mainly encapsulates various consensus algorithms of network nodes; the incentive layer integrates economic factors into the blockchain technology system, mainly including the issuance mechanism and allocation mechanism of economic incentives; the contract layer mainly encapsulates various scripts, algorithms and smart contracts, which is the basis of the programmable characteristics of blockchain; the application layer encapsulates various application scenarios and cases of blockchain. In this model, the chain block structure based on timestamp, the consensus mechanism of distributed nodes, the economic incentive based on consensus computing power and the flexible and programmable smart contract are the most representative innovations of blockchain technology.

[0004] Data is a form of expression of facts, concepts or instructions, which can be processed by manual or automated devices. After data is interpreted and given a certain meaning, it becomes information. Data processing is the collection, storage, retrieval, processing, transformation and transmission of data. The basic purpose of data processing is to extract and derive valuable and meaningful data for certain specific people from a large amount of data that may be disorganized and difficult to understand. Data processing is a basic link in system engineering and automatic control. Data processing runs through all areas of social production and social life. The development of data processing technology and the breadth and depth of its application have greatly affected the process of human social development.

[0005] Therefore, combining blockchain technology and data processing can not only significantly improve the efficiency of data processing, but also improve data security. Summary of the invention

[0006] The main purpose of the present invention is to provide a data processing method, device and storage medium based on blockchain, which connects the various nodes in the blockchain by constructing a system hash tree in the blockchain, so that the target data can be efficiently acquired during data processing. At the same time, in each node in the blockchain, the data is connected through the hash tree, which further improves the efficiency of data acquisition. At the same time, when processing data, a path planning algorithm is used to improve the efficiency of data acquisition, which greatly improves the efficiency of data processing.

[0007] To achieve the above object, the technical solution of the present invention is achieved as follows:

[0008] The data processing method based on blockchain is characterized in that the method performs the following steps:

[0009] Step 1: Data preprocessing: preprocess the data to be processed to obtain preprocessed data; the data preprocessing process includes: data noise reduction processing and data segmentation processing; the data noise reduction processing at least includes: removing unique attributes of data, processing missing values ​​of data, detecting data outliers and data reduction processing; the data segmentation processing is to segment each data after the data noise reduction processing to obtain a data body representing the data content and a data header representing the data attribute characteristics;

[0010] Step 2: Build a blockchain system, wherein the blockchain system includes multiple blocks; establish a system hash tree of the blockchain system, wherein each block has a hash value in the system hash tree, and the hash value is the root hash of the block;

[0011] Step 3: Build a hash tree in each block, each node in the block has a hash value in the hash tree, and the hash value is the root hash of the node in the block; add a flag to each block at the same time; the flag includes at least: a timestamp; the root hash, hash tree and flag constitute the block header of the block; the data blocks and mapping data blocks stored in each block constitute the block body of the block;

[0012] Step 4: Input the data body and data header into the blockchain system. Each block in the blockchain system enters the received data body and its corresponding data header. Each data header and corresponding data body are used as data blocks in the block body. Each data block corresponds to a hash value in the hash tree. Then update the data record and the flag in the block header.

[0013] Step 5: Each block copies the data body and data header after data entry, and performs data self-encryption on the copied data body and data header;

[0014] Step 6: After each block copies the data in the current block and writes the data after the data is self-encrypted, the data after the data is self-encrypted is written block by block into the next block; the next block is defined as a block corresponding to another hash value in the system hash tree that is mutually mapped with the hash value of the current block; the data written into the next block constitutes the current block

[0015] Step 7: When processing data, the blockchain system first receives a data request, and first sends a data acquisition command based on the received data request. The data acquisition command performs block screening through the system hash tree to determine the blocks required for data processing. These blocks are associated with each other through the hash values ​​in the system hash tree;

[0016] Step 8: Then, in the filtered blocks, data is filtered based on the hash tree in the blocks to determine the data in the blocks required for data processing. The data in western Zhejiang are associated with each other through the hash value of the hash tree in the blocks;

[0017] Step 9: Plan the data processing path through the filtered blocks and the data in the filtered blocks so that the path during data processing is the shortest.

[0018] Furthermore, the method for processing missing data values ​​in step 1 includes: data preparation, obtaining data without missing values ​​for data preprocessing, and then constructing a random mask according to a given missing rate, using the newly generated random mask and the corresponding data as a new data set for model training; model training, using the new data set generated in the data preparation step for model training to build a model based on neural network decomposition; model use, constructing a corresponding mask for the data to be processed with missing values, and using the above-mentioned trained model to fill in the missing values ​​of the data to be processed.

[0019] Furthermore, the method for data outlier detection in step 1 includes: sorting the processed data in chronological order, filling the missing data with randomly generated data, and obtaining preliminary sorted data; performing outlier detection processing on the preliminary sorted data, and filling the detected outliers with randomly generated data; performing outlier correction processing on the data after outlier detection processing, that is, filling the 0 values ​​in the data, and completing the outlier detection and correction of the data to be processed.

[0020] Furthermore, the method for performing data reduction processing in step 1 includes: removing the average value, calculating the covariance matrix, calculating the eigenvalues ​​and eigenvectors of the covariance matrix, sorting the eigenvalues ​​from large to small, retaining the largest 5 eigenvectors, and converting the data to a new space constructed by the 5 eigenvectors; finally, the processed new data is obtained, and these data are unrelated to each other.

[0021] Furthermore, the method for each block in step 5 to copy the data body and data header after data entry includes: directly copying the data header, calculating the average value of the data in the data body and a randomly generated value, and then copying.

[0022] Furthermore, the method of performing data self-encryption on the copied data body and data header in step 5 includes: performing data obfuscation on the copied data, including dividing the data into multiple blocks and exchanging data between the blocks; and encrypting the data using an encryption algorithm; using known information from the copied data as an encryption key; each block is encrypted separately, and for each block, known information from another block is used as the encryption key; the copied data determines a hash value, and uses the determined hash value to determine the size of the block and / or the number of blocks.

[0023] Furthermore, the encryption algorithm is a symmetric encryption algorithm.

[0024] Furthermore, in step 9, the method of planning a data processing path through the filtered blocks and the data in the filtered blocks so as to make the path shortest during data processing includes: firstly, path connecting the filtered blocks through the system hash tree, and the connection order is determined according to the mapping order of the hash values ​​corresponding to each block in the system hash tree; each block is regarded as a node, and data path planning is performed under each node based on the filtered data.

[0025] Furthermore, the data path planning method performs the following steps: determining a path based on the screened data in a random order, and then calculating the complexity of the determined path using the following formula:

[0026] Wherein, N is the number of data screened out, L is the weight ratio of the data screened out, and the weight ratio = the number of data screened out / the total number of data in the block, Indicates the filtered data, J i Indicates the hash value corresponding to the filtered data; if the calculated complexity is within the set threshold, the path is taken as the result of path planning; if the calculated complexity exceeds the set threshold, the path is discarded and another path is determined until the calculated complexity is within the set threshold.

[0027] A data processing device based on blockchain.

[0028] The blockchain-based data processing method, device and storage medium of the present invention have the following beneficial effects: by constructing a system hash tree in the blockchain, the various nodes in the blockchain are connected, so that the target data can be efficiently acquired during data processing; at the same time, in each node in the blockchain, the data is connected through the hash tree, which further improves the efficiency of data acquisition; at the same time, when processing data, a path planning algorithm is used to improve the efficiency of data acquisition, which greatly improves the efficiency of data processing. It is mainly realized through the following processes: It is mainly realized through the following processes: 1. Data preprocessing: The present invention first performs data preprocessing on the data to be processed, and the data preprocessing process includes: data noise reduction processing and data segmentation processing; the data noise reduction processing at least includes: removing the unique attributes of the data, processing the missing values ​​of the data, detecting the data outliers and data reduction processing; the data segmentation processing performs data segmentation on each data after the data noise reduction processing to obtain the data body representing the data content and the data header representing the data attribute characteristics. After this process, the data is processed again, which can significantly improve the efficiency of data processing; 2. Data association: In the process of data processing, the present invention uses a hash tree to associate blocks and data, and the associated data and blocks are more efficient when processed; 3. Data processing path planning: When the present invention performs data processing, the path planning is based on the associated blocks and data. When the planned path is used for data processing, it can save the time of data call and further improve the efficiency of data processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 A schematic diagram of a method flow of a blockchain-based data processing method provided by an embodiment of the present invention;

[0030] Figure 2 A schematic diagram of the structure of a block of a data processing method based on blockchain provided by an embodiment of the present invention;

[0031] Figure 3 A flowchart of a method for performing data processing within a block of a blockchain-based data processing method provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0032] The technical solution of the present invention is further described in detail below in conjunction with specific implementations and drawings:

[0033] Example 1

[0034] like Figure 1 As shown, the data processing method based on blockchain is characterized in that the method performs the following steps:

[0035] Step 1: Data preprocessing: preprocess the data to be processed to obtain preprocessed data; the data preprocessing process includes: data noise reduction processing and data segmentation processing; the data noise reduction processing at least includes: removing unique attributes of data, processing missing values ​​of data, detecting data outliers and data reduction processing; the data segmentation processing is to segment each data after the data noise reduction processing to obtain a data body representing the data content and a data header representing the data attribute characteristics;

[0036] Step 2: Build a blockchain system, wherein the blockchain system includes multiple blocks; establish a system hash tree of the blockchain system, wherein each block has a hash value in the system hash tree, and the hash value is the root hash of the block;

[0037] Step 3: Build a hash tree in each block, each node in the block has a hash value in the hash tree, and the hash value is the root hash of the node in the block; add a flag to each block at the same time; the flag includes at least: a timestamp; the root hash, hash tree and flag constitute the block header of the block; the data blocks and mapping data blocks stored in each block constitute the block body of the block;

[0038] Step 4: Input the data body and data header into the blockchain system. Each block in the blockchain system enters the received data body and its corresponding data header. Each data header and corresponding data body are used as data blocks in the block body. Each data block corresponds to a hash value in the hash tree. Then update the data record and the flag in the block header.

[0039] Step 5: Each block copies the data body and data header after data entry, and performs data self-encryption on the copied data body and data header;

[0040] Step 6: After each block has copied the data in the current block and has written the data after the data is self-encrypted, the data after the data is self-encrypted is written block by block into the next block; the next block is defined as a block corresponding to another hash value in the system hash tree that is mutually mapped with the hash value of the current block; the data written into the next block constitutes the current block;

[0041] Step 7: When processing data, the blockchain system first receives a data request, and first sends a data acquisition command based on the received data request. The data acquisition command performs block screening through the system hash tree to determine the blocks required for data processing. These blocks are associated with each other through the hash values ​​in the system hash tree;

[0042] Step 8: Then, in the filtered blocks, data is filtered based on the hash tree in the blocks to determine the data in the blocks required for data processing. The data in western Zhejiang are associated with each other through the hash value of the hash tree in the blocks;

[0043] Step 9: Plan the data processing path through the filtered blocks and the data in the filtered blocks so that the path during data processing is the shortest.

[0044] By adopting the above technical solution, the present invention connects the various nodes in the blockchain by constructing a system hash tree in the blockchain, so that the target data can be efficiently acquired during data processing. At the same time, in each node in the blockchain, the data is connected through the hash tree, which further improves the efficiency of data acquisition. At the same time, when processing data, a path planning algorithm is used to improve the efficiency of data acquisition, which greatly improves the efficiency of data processing. It is mainly realized through the following processes: It is mainly realized through the following processes: 1. Data preprocessing: The present invention first performs data preprocessing on the data to be processed, and the data preprocessing process includes: data noise reduction processing and data segmentation processing; the data noise reduction processing at least includes: removing the unique attributes of the data, processing the missing values ​​of the data, detecting the data outliers and data reduction processing; the data segmentation processing performs data segmentation on each data after the data noise reduction processing to obtain the data body representing the data content and the data header representing the data attribute characteristics. After this process, the data is processed again, which can significantly improve the efficiency of data processing; 2. Data association: In the process of data processing, the present invention uses a hash tree to associate blocks and data, and the associated data and blocks are more efficient when processed; 3. Data processing path planning: When the present invention performs data processing, the path planning is based on the associated blocks and data. When the planned path is used for data processing, it can save the time of data call and further improve the efficiency of data processing.

[0045] Example 2

[0046] Based on the previous embodiment, the method for processing missing data values ​​in step 1 includes: data preparation, obtaining data without missing values ​​for data preprocessing, and then constructing a random mask according to a given missing rate, using the newly generated random mask and the corresponding data as a new data set for model training; model training, using the new data set generated in the data preparation step for model training to build a model based on neural network decomposition; model use, constructing a corresponding mask for the data to be processed with missing values, and using the above-mentioned trained model to fill in the missing values ​​of the data to be processed.

[0047] Specifically, with the development of modern information technology and Internet technology, people are acquiring more and more data through different channels. These data are the core of big data analysis, machine learning and knowledge discovery. High-quality data is the basic requirement for knowledge discovery, modeling and rule extraction. However, due to the uneven quality of data sources, environmental errors and human interference in the data collection process, a large amount of data used for data mining and analysis has missing values. Missing data refers to data that should be obtained during data collection but was not obtained for some reason. Filling in missing values ​​as accurately as possible helps improve data quality and the effectiveness of data mining and pattern recognition. Therefore, effectively filling in missing values ​​is of great significance.

[0048] Example 3

[0049] On the basis of the previous embodiment, the method for data outlier detection in step 1 includes: sorting the processed data in chronological order, filling the missing data with randomly generated data, and obtaining preliminary sorted data; performing outlier detection processing on the preliminary sorted data, and filling the detected outliers with randomly generated data; performing outlier correction processing on the data after the outlier detection processing, that is, filling the 0 values ​​in the data, and completing the outlier detection and correction of the data to be processed.

[0050] Specifically, for the research on real-time data outlier detection methods, predecessors have proposed methods such as neural networks and support vector machines, but have not considered the processing of outliers in historical data, because the accurate prediction of real-time data needs to be based on the reliability of historical data. For the detection of outliers in historical data, commonly used methods include outlier detection methods based on statistics, clustering, distance, density, etc., but these methods do not consider the temporal variation characteristics of time series data, but consider the entire data set, and the outliers hidden in the local area are difficult to detect. The present invention uses the median-EEMD method for historical data to effectively detect local outliers in the time series, and combined with the neural network method, it can more effectively detect outliers in real-time data.

[0051] Example 4

[0052] On the basis of the previous embodiment, the method for data reduction processing in step 1 includes: removing the average value, calculating the covariance matrix, calculating the eigenvalues ​​and eigenvectors of the covariance matrix, sorting the eigenvalues ​​from large to small, retaining the maximum 5 eigenvectors, and converting the data to a new space constructed by the 5 eigenvectors; finally, the processed new data is obtained, and these data are unrelated to each other.

[0053] Example 5

[0054] Based on the previous embodiment, the method for each block in step 5 to copy the data body and data header after data entry includes: directly copying the data header, calculating the average value of the data in the data body and a randomly generated value, and then copying.

[0055] Example 6

[0056] Based on the previous embodiment, the method of self-encrypting the data body and data header after the data is copied in step 5 includes: blurring the copied data, including dividing the data into multiple blocks and exchanging data between the blocks; and encrypting the data using an encryption algorithm; using known information from the copied data as an encryption key; each block is encrypted separately, and for each block, known information from another block is used as the encryption key; the copied data determines a hash value, and uses the determined hash value to determine the size of the block and / or the number of blocks.

[0057] Specifically, the purpose of data transmission encryption technology is to encrypt the data stream in transmission, which usually includes line encryption and end-to-end encryption. Line encryption focuses on the line without considering the source and destination of the information, and uses different encryption keys to provide security protection for confidential information through each line. End-to-end encryption means that the information is automatically encrypted by the sender and encapsulated in data packets by TCP / IP, and then passes through the Internet as unreadable and unrecognizable data. When the information reaches the destination, it will be automatically reassembled and decrypted to become readable data.

[0058] The purpose of data storage encryption technology is to prevent data from being leaked during storage. Data storage encryption technology can be divided into two types: ciphertext storage and access control. The former is generally achieved through encryption algorithm conversion, additional passwords, encryption modules, etc.; the latter is to review and restrict user qualifications and permissions to prevent illegal users from accessing data or legal users from accessing data beyond their authority.

[0059] The purpose of data integrity authentication technology is to verify the identity of people involved in information transmission, access and processing and the relevant data content, generally including the authentication of passwords, keys, identities, data, etc. The system achieves data security protection by comparing whether the characteristic value input by the verification object meets the pre-set parameters.

[0060] Key management technology includes confidentiality measures at every stage including key generation, distribution, storage, replacement and destruction.

[0061] Example 7

[0062] Based on the previous embodiment, the encryption algorithm is a symmetric encryption algorithm.

[0063] Specifically,

[0064] Example 8

[0065] On the basis of the previous embodiment, the method of planning a data processing path in step 9 by using the filtered blocks and the data in the filtered blocks to make the path shortest during data processing includes: firstly, path connecting the filtered blocks through the system hash tree, and the connection order is determined according to the mapping order of the hash values ​​corresponding to each block in the system hash tree; each block is regarded as a node, and data path planning is performed under each node based on the filtered data.

[0066] Specifically, a hash table is a data structure that is accessed directly based on a key value. In other words, it accesses records by mapping the key value to a position in the table to speed up the search. This mapping function is called a hash function, and the array that stores the records is called a hash table.

[0067] Given a table M, there exists a function f(key). For any given keyword value key, if the address of the record containing the keyword in the table can be obtained after substituting it into the function, then the table M is called a hash table and the function f(key) is called a hash function.

[0068] The search process of a hash table is basically the same as the table creation process. Some key codes can be found directly through the address converted by the hash function, while other key codes have conflicts on the addresses obtained by the hash function and need to be searched according to the conflict handling method. Among the three conflict handling methods introduced, the search after the conflict is still a process of comparing the given value with the key code. Therefore, the measurement of hash table search efficiency is still measured by the average search length.

[0069] Example 9

[0070] Based on the previous embodiment, the data path planning method performs the following steps: determining a path based on the filtered data in a random order, and then calculating the complexity of the determined path using the following formula:

[0071] Wherein, N is the number of data screened out, L is the weight ratio of the data screened out, and the weight ratio = the number of data screened out / the total number of data in the block, Indicates the filtered data, J iIndicates the hash value corresponding to the filtered data; if the calculated complexity is within the set threshold, the path is taken as the result of path planning; if the calculated complexity exceeds the set threshold, the path is discarded and another path is determined until the calculated complexity is within the set threshold.

[0072] Example 10

[0073] A data processing device based on blockchain.

[0074] The above is only an example of implementation of the present invention, but it cannot be used to limit the scope of the present invention. Any structural changes made according to the present invention should be regarded as falling within the protection scope of the present invention and subject to restrictions as long as they do not lose the essence of the present invention.

[0075] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process and related instructions of the system described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0076] It should be noted that the system provided in the above embodiment is only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the modules or steps in the embodiments of the present invention can be decomposed or combined. For example, the modules in the above embodiments can be combined into one module, or further divided into multiple sub-modules to complete all or part of the functions described above. The names of the modules and steps involved in the embodiments of the present invention are only for distinguishing the modules or steps, and are not regarded as improper limitations of the present invention.

[0077] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process and related instructions of the storage device and processing device described above can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.

[0078] Those skilled in the art should be able to appreciate that the modules and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software or a combination of the two, and the programs corresponding to the software modules and method steps can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs, or any other form of storage medium known in the technical field. In order to clearly illustrate the interchangeability of electronic hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in electronic hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0079] The terms "first", "second", etc. are used to distinguish similar objects rather than to describe or indicate a particular order or sequence.

[0080] The term "comprise" or any other similar term is intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus / device that includes a list of elements includes not only those elements but also other elements not expressly listed, or also includes elements inherent to such process, method, article, or apparatus / device.

[0081] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

[0082] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention.

Claims

1. A data processing method based on blockchain, characterized in that: The method performs the following steps: Step 1: Data preprocessing: preprocess the data to be processed to obtain preprocessed data; The data preprocessing process includes: data denoising and data segmentation; the data denoising at least includes: removing unique attributes of data, processing missing values ​​of data, detecting data outliers and data reduction; the data segmentation is to segment each data after the data denoising to obtain a data body representing the data content and a data header representing the data attribute characteristics; Step 2: Build a blockchain system, wherein the blockchain system includes multiple blocks; establish a system hash tree of the blockchain system, wherein each block has a hash value in the system hash tree, and the hash value is the root hash of the block; Step 3: Build a hash tree in each block, each node in the block has a hash value in the hash tree, and the hash value is the root hash of the node in the block; add a flag to each block at the same time; the flag includes at least: a timestamp; the root hash, hash tree and flag constitute the block header of the block; the data blocks and mapping data blocks stored in each block constitute the block body of the block; Step 4: Input the data body and data header into the blockchain system. Each block in the blockchain system enters the received data body and its corresponding data header. Each data header and corresponding data body are used as data blocks in the block body. Each data block corresponds to a hash value in the hash tree. Then update the data record and the flag in the block header. Step 5: Each block copies the data body and data header after data entry, and performs data self-encryption on the copied data body and data header; Step 6: After each block copies the data in the current block and writes the data after the data is self-encrypted, the data after the data is self-encrypted is written block by block into the next block; the next block is defined as a block corresponding to another hash value in the system hash tree that is mutually mapped with the hash value of the current block; the data written into the next block constitutes the current block Step 7: When processing data, the blockchain system first receives a data request, and first sends a data acquisition command based on the received data request. The data acquisition command performs block screening through the system hash tree to determine the blocks required for data processing. These blocks are associated with each other through the hash values ​​in the system hash tree; Step 8: Then, data is screened in the filtered blocks based on the hash tree in the blocks to determine the data in the blocks required for data processing. These data are associated with each other through the hash value of the hash tree in the blocks. Step 9: Plan the data processing path through the filtered blocks and the data in the filtered blocks so that the path during data processing is the shortest; The method for processing missing data values ​​in step 1 includes: data preparation, obtaining data without missing values ​​for data preprocessing, then constructing a random mask according to a given missing rate, using the newly generated random mask and the corresponding data as a new data set for model training; model training, using the new data set generated in the data preparation step for model training to build a model based on neural network decomposition; model use, constructing a corresponding mask for the data to be processed with missing values, and using the above-mentioned trained model to fill the missing values ​​of the data to be processed; The method for detecting data outliers in step 1 includes: sorting the data to be processed in chronological order, filling the missing data with a randomly generated data, and obtaining preliminary sorted data; performing outlier detection processing on the preliminary sorted data, and filling the detected outliers with a randomly generated data; performing outlier correction processing on the data after the outlier detection processing, that is, filling the 0 value in the data, and completing the outlier detection and correction of the data to be processed; The method for self-encrypting the data body and data header after the data is copied in step 5 includes: blurring the copied data, including dividing the data into multiple blocks and exchanging data between the blocks; and encrypting the data using an encryption algorithm; using known information from the copied data as an encryption key; each block is encrypted separately, and for each block, known information from another block is used as the encryption key; the copied data determines a hash value, and uses the determined hash value to determine the size of the block and / or the number of blocks.

2. The method according to claim 1, characterized in that The method for data reduction processing in step 1 includes: removing the average value, calculating the covariance matrix, calculating the eigenvalues ​​and eigenvectors of the covariance matrix, sorting the eigenvalues ​​from large to small, retaining the largest 5 eigenvectors, and converting the data to a new space constructed by the 5 eigenvectors; finally, the processed new data is obtained, and these data are unrelated to each other.

3. The method according to claim 2, characterized in that The method for each block in step 5 to copy the data body and data header after data entry includes: directly copying the data header, calculating the average value of the data in the data body and a randomly generated value, and then copying.

4. The method according to claim 1, characterized in that The encryption algorithm is a symmetric encryption algorithm.

5. The method according to claim 1, characterized in that In step 9, the method of planning a data processing path through the filtered blocks and the data in the filtered blocks so as to make the path shortest during data processing includes: firstly, path connecting the filtered blocks through the system hash tree, and the connection order is determined according to the mapping order of the hash values ​​corresponding to each block in the system hash tree; each block is regarded as a node, and data path planning is performed under each node based on the filtered data.

6. A blockchain-based data processing device for implementing the method described in any one of claims 1 to 5.