Data integrity verification method and system based on blockchain
By setting preset parameters and detection devices in blockchain data integrity verification, the problem of accuracy and efficiency of data integrity verification is solved, and higher accuracy and efficiency are achieved.
Patent Information
- Application Number
- CN202210635675.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-07
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2042-06-07
AI Technical Summary
The existing blockchain-based data integrity verification methods have low accuracy and verification efficiency.
During the data integrity verification process, the preset data integrity, the preset data transmission rate mutation value and the preset integrity difference value are set, and the central control module is used to make preliminary judgments on the data transmission situation, and the data transmission rate detection device is used to detect the data transmission rate. The detected data transmission rate is further judged, the delayed transmission detection time is adjusted, and the accuracy and efficiency of data integrity verification are improved.
It improves the accuracy and verification efficiency of data integrity verification, realizes accurate supervision and in-depth confirmation of the data transmission process, and enhances the accuracy and efficiency of data integrity verification.
Smart Images

Figure CN115118460B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and in particular to a blockchain-based data integrity verification method and system. Background Art
[0002] Blockchain is a distributed ledger that combines data blocks in a sequential manner in chronological order and is cryptographically guaranteed to be tamper-proof and unforgeable. The node information of the blockchain is maintained by all participants of the blockchain, so all information on the blockchain is open and transparent, and once the information is released, it is permanently retained and cannot be tampered with. The public verification and tamper-proof characteristics of the blockchain enable it to serve as a trusted third party to solve the concerns of users in the cloud computing environment. All results can be published in the blockchain and authenticated and maintained by all users of the blockchain. Therefore, combining blockchain with the field of cloud computing and using the advantages of blockchain to solve the drawbacks of the cloud computing environment can more effectively provide protection for user data security.
[0003] Chinese Patent Publication Number: CN113553627A. A data integrity verification method, system, device and medium based on blockchain are disclosed, the method comprising: receiving real-time integrity information sent by a user terminal, the real-time integrity information is generated by cloud storage data based on preset data processing rules; searching whether there is original integrity information consistent with the real-time integrity information in the blockchain network to obtain a search result. By storing the integrity information of the original data in the blockchain network and performing data integrity verification in the blockchain network, it is ensured that the integrity information of the original data is not tampered with or deleted, thereby improving the reliability of data integrity verification. It can be seen that the data integrity verification method, system, device and medium based on blockchain have the following problems: the accuracy and efficiency of data integrity verification are low. Summary of the invention
[0004] To this end, the present invention provides a data integrity verification method and system based on blockchain to overcome the problems of low accuracy and verification efficiency of data integrity verification in the prior art.
[0005] To achieve the above objectives, the present invention provides a data integrity verification method based on blockchain, comprising:
[0006] Step S1, before the data integrity verification begins, the central control module controls the user terminal to perform a block operation on the data and transmits each data block after the data block is completed to the encryption module; Step S2, when the encryption module completes receiving each data block, the central control module controls the encryption module to encrypt each data block respectively, and sends the encrypted data block to the server; Step S3, when the server receives the data block transmitted by the encryption module, the central control module controls the server to decrypt each data block and searches the blockchain for the same data information as the data information sent by the user terminal based on the decrypted data, sends the data information to the data integrity verification module, and sends the data to the data integrity verification module after the data is received by the user terminal. The transmission rate of the data is detected during the process of transmission from the end to the data integrity verification module; step S4, when the central control module determines that the upload time for the data information reaches the predetermined transmission time, the central control module makes a preliminary judgment on the transmission situation of the system according to the integrity of the data actually transmitted to the data integrity verification module, and further judges the data transmission situation of the system according to the data transmission rate detected by the data transmission rate detection device, and when the central control module completes the judgment on the data transmission situation, the duration of the delayed transmission detection is adjusted according to the difference between the actual data integrity and the preset data integrity, and after the delay time, the central control module controls the verification module to perform a secondary detection on the integrity of the data and further judges the data transmission situation.
[0007] Further, in the step S4, when the data integrity verification module receives the data transmitted by the user terminal, the central control module determines the data transmission status of the system according to the actual integrity S of the data received by the data integrity verification module, and the central control module is provided with a preset first preset integrity S1, a second preset integrity S2 and a third preset integrity S3, wherein S1<S2<S3,
[0008] If S≤S1, the central control module preliminarily determines that the system has been intercepted and performs reverse tracking on the device that intercepted the data;
[0009] If S1<S≤S2, the central control module preliminarily determines that the data transmission is poor and controls the data transmission rate detection device to detect the data transmission rate;
[0010] If S2<S≤S3, the central control module preliminarily determines that the data transmission is not completed and a delay detection is required, and the central control module calculates the difference △S between the actual integrity and the preset integrity and determines the duration of the delay detection according to △S;
[0011] If S>S3, the central control module determines that the data integrity is qualified and the data transmission is normal.
[0012] Furthermore, when determining that S≤S1, the central control module determines the address of the system being intercepted according to whether the data transmission rate has a mutation within the period, and the central control module is provided with a preset first data transmission rate mutation value P1 and a preset second data transmission rate mutation value P2, wherein P1<P2,
[0013] If P≤P1, the central control module determines that the actual data transmission rate mutation value is within the allowable range and does not determine the address corresponding to the transmission rate mutation value;
[0014] If P1<P≤P2, the central control module determines that the actual data transmission rate mutation value exceeds the allowable range and calculates the difference △P between the actual data transmission rate mutation value and the preset first data transmission rate mutation value, and further determines whether there is interception based on △P, and sets △P=P-P1;
[0015] If P>P2, the central control module determines that the actual data transmission rate mutation value exceeds the allowable range, determines the address corresponding to the mutation value as the address where the system is intercepted, and sends the address to the server for storage.
[0016] Furthermore, when determining that P1<P≤P2, the central control module further determines whether there is interception according to the difference △P between the actual data transmission rate mutation value and the preset data transmission rate mutation value, and the central control module is provided with a preset first data transmission rate mutation value difference △P1 and a preset second data transmission rate mutation value difference △P2, wherein △P1<△P2,
[0017] If ΔP≤ΔP1, the central control module determines that the difference between the actual data transmission rate mutation value and the preset data transmission rate mutation value is within the allowable range and determines not to determine the address corresponding to the transmission rate mutation value;
[0018] If △P1<△P≤△P2, the central control module determines that the difference between the actual data transmission rate mutation value and the preset data transmission rate mutation value is within the allowable range and sends the address corresponding to the transmission rate mutation value to the server as a reserve address;
[0019] If ΔP>ΔP2, the central control module determines that the difference between the actual data transmission rate mutation value and the preset data transmission rate mutation value exceeds the allowable range and determines the address corresponding to the mutation value as the address where the system is intercepted and sends the address to the server for storage.
[0020] Furthermore, when determining that S1<S≤S2, the central control module further determines the data transmission situation according to the actual data transmission rate detected by the actual transmission rate detection device, and the central control module is provided with a preset first transmission rate Q1 and a preset second transmission rate Q2, wherein Q1<Q2,
[0021] If Q≤Q1, the central control module determines that the network environment is congested and issues a poor transmission alarm;
[0022] If Q1<Q≤Q2, the central control module determines that the data transmission is poor, detects the server load and determines whether to postpone the tasks that are being performed simultaneously in the server load according to the load;
[0023] If Q>Q2, the central control module determines that the data transmission rate is qualified and the data is intercepted.
[0024] Furthermore, when the central control module determines that Q1<Q≤Q2, the load detection device is controlled to detect whether the load amount transmitted simultaneously by the server is postponed for determination of the data transmission task being performed simultaneously. The central control module is provided with a preset first transmission load amount D1 and a preset second transmission load amount D2, wherein D1<D2,
[0025] If D≤D1, the central control module determines that the actual transmission load is lower than the allowable range and increases the number of data blocks transmitted;
[0026] If D1<D≤D2, the central control module determines that the actual transmission load is within the allowable range and does not postpone the data transmission tasks that are transmitted simultaneously;
[0027] If D>D2, the central control module determines that the actual transmission load exceeds the allowable range and postpones the data transmission tasks transmitted simultaneously.
[0028] Further, when determining that S2<S≤S3, the central control module determines the delay time according to the difference △S between the actual integrity of the data received by the data integrity verification module and the preset integrity, and sets △S=S3-S. The central control module is provided with a preset first preset integrity difference △S1, a second preset integrity difference △S2, a first preset delay time t1 and a second preset delay time t2, △S1<△S2, t1<t2,
[0029] If 0<△S≤△S1, the central control module determines that the verification module delays the reception of data by a duration of t1;
[0030] If △S1<△S≤△S2, the central control module determines that the verification module delays receiving the data for a period of time t2 before performing the detection;
[0031] If ΔS>ΔS2, the central control module determines that the data transmission is poor and performs a secondary detection on the data transmission rate.
[0032] Furthermore, after the central control module delays t1, the central control module controls the data integrity detection program to re-detect the data integrity S'.
[0033] If S'>S3, the central control module determines that the data has not been intercepted and does not perform reverse tracking on the data;
[0034] If S'≤S3, the central control module determines that the data is intercepted and performs reverse tracking.
[0035] Furthermore, after the central control module delays t2, the central control module controls the data integrity detection program to re-detect the data integrity S' and further determines whether the data is intercepted according to the difference between S' and S3.
[0036] If S'>S3, the central control module determines that the data has poor transmission and issues a data transmission problem alarm;
[0037] If S'≤S3, calculate △S' and set △S'=S3-S';
[0038] If 0<△S≤△S1, the central control module determines the delay time t1 and detects the data transmission rate Q to determine whether there is a poor data transmission situation;
[0039] If △S1<△S≤△S2, the central control module determines that the data is intercepted and issues a data interception alarm;
[0040] If ΔS>ΔS2, the central control module determines that data transmission is blocked and issues a data transmission problem alarm.
[0041] A data integrity verification system based on blockchain, comprising:
[0042] The user terminal is used to perform block operations and data encryption operations on the data and send the block-partitioned and encrypted data to the server;
[0043] An encryption module, connected to the user terminal, for performing encryption operations on data blocks transmitted from the user terminal;
[0044] The server is connected to the encryption module, and is used to receive the data encryption information transmitted by the encryption module and decrypt the data encryption information. After completing the decryption of the information, it searches the blockchain for data information that is the same as the data information sent by the user terminal based on the decrypted data, and sends the data information to the data integrity verification module;
[0045] The data integrity verification module is connected to the server and is used to verify the integrity of the data transmitted from the user terminal according to the data information received by the server.
[0046] Compared with the prior art, the beneficial effect of the present invention lies in that, by setting a preset data integrity, a preset data transmission rate mutation value and a preset integrity difference, the present invention can make a preliminary judgment on the transmission situation of the system according to the actual data integrity, and further judge the data transmission situation of the system according to the data transmission rate detected by the data transmission rate detection device, and can adjust the duration of delayed transmission detection according to the difference between the actual data integrity and the preset data integrity, thereby improving the accuracy of data integrity verification, the precise monitoring of the data transmission rate of data integrity verification and the efficiency of data integrity verification, and realizing the improvement of the accuracy and verification efficiency of data integrity verification.
[0047] Furthermore, the method of the present invention can determine the data transmission status of the system according to the actual integrity by setting a preset first preset integrity, a second preset integrity and a third preset integrity, thereby improving the precise judgment of data integrity verification and further achieving an improvement in the accuracy and verification efficiency of data integrity verification.
[0048] Furthermore, the method of the present invention can determine the address of the system being intercepted according to whether the data transmission rate mutates within a period by setting a preset first data transmission rate mutation value and a preset second data transmission rate mutation value, thereby improving the ability to supervise the data transmission process and further improving the accuracy and efficiency of data integrity verification.
[0049] Furthermore, the method of the present invention can further determine whether there is interception based on the difference △P between the actual data transmission rate mutation value and the preset data transmission rate mutation value by setting a preset first data transmission rate mutation value difference and a preset second data transmission rate mutation value, thereby improving the ability to accurately identify whether there is interception in the data transmission process, and further achieving improved accuracy and efficiency of data integrity verification.
[0050] Furthermore, the method of the present invention can further determine the data transmission situation according to the actual data transmission rate detected by the actual transmission rate detection device by setting a preset first transmission rate and a preset second transmission rate, thereby improving the ability to accurately determine data transmission and further achieving improved accuracy and efficiency of data integrity verification.
[0051] Furthermore, the method of the present invention can make a judgment on whether to postpone the simultaneous data transmission tasks based on the detected simultaneously transmitted load amounts by setting a preset first transmission load amount and a preset second transmission load amount, thereby improving the ability to accurately adjust the data transmission tasks and further achieving improved accuracy and efficiency of data integrity verification.
[0052] Furthermore, the method of the present invention can determine the delay duration according to the difference between the actual integrity and the preset integrity by setting a preset first preset integrity difference, a second preset integrity difference, a first preset delay duration t1 and a second preset delay duration, thereby achieving accurate determination of the delay duration and further improving the accuracy and efficiency of data integrity verification.
[0053] Furthermore, the method of the present invention can further determine the data integrity by re-detecting the data integrity after a delay period, thereby improving the deep confirmation capability of the transmission process that affects the data integrity, and further achieving improved accuracy and efficiency of data integrity verification.
[0054] Furthermore, the method of the present invention achieves further accurate determination of the data transmission process involved in data integrity by controlling the data integrity detection program to re-detect the data integrity and further determine whether the data has been intercepted, thereby further improving the accuracy and efficiency of data integrity verification.
[0055] The system of the present invention can verify data integrity by setting up a user terminal, a server and a data integrity verification module, thereby improving the accuracy of data integrity verification and further improving the accuracy and verification efficiency of data integrity verification. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 This is a flowchart of a data integrity verification method based on blockchain according to an embodiment of the present invention;
[0057] Figure 2 This is a system block diagram of a data integrity verification system based on blockchain according to an embodiment of the present invention. DETAILED DESCRIPTION
[0058] In order to make the objects and advantages of the present invention more clearly understood, the present invention is further described below in conjunction with embodiments; it should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0059] The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.
[0060] See also Figure 1 As shown, a data integrity verification method based on blockchain includes:
[0061] Step S1, before starting the data integrity verification, the central control module controls the user terminal to perform a block operation on the data and transmit each data block after the data block is completed to the encryption module;
[0062] Step S2, when the encryption module completes receiving each of the data blocks, the central control module controls the encryption module to encrypt each data block respectively, and sends the encrypted data block to the server;
[0063] Step S3, when the server receives the data block transmitted by the encryption module, the central control module controls the server to perform a decryption operation on each data block and searches the blockchain for data information identical to the data information sent by the user terminal based on the decrypted data, sends the data information to the data integrity verification module, and detects the data transmission rate during the process of transmitting the data from the user terminal to the data integrity verification module;
[0064] Step S4, when the central control module determines that the upload time for the data information reaches the predetermined transmission time, the central control module makes a preliminary judgment on the transmission status of the system according to the integrity of the data actually transmitted to the data integrity verification module, and further judges the data transmission status of the system according to the data transmission rate detected by the data transmission rate detection device. When the central control module completes the judgment on the data transmission status, the duration of the delayed transmission detection is adjusted according to the difference between the actual data integrity and the preset data integrity. After the delay time, the central control module controls the verification module to perform a secondary detection on the integrity of the data and further judges the data transmission status.
[0065] The present invention can make a preliminary judgment on the transmission status of the system according to the actual data integrity by setting a preset data integrity, a preset data transmission rate mutation value and a preset integrity difference, and further judge the data transmission status of the system according to the data transmission rate detected by the data transmission rate detection device, and can adjust the duration of delayed transmission detection according to the difference between the actual data integrity and the preset data integrity, thereby improving the accuracy of data integrity verification, the precise monitoring of the data transmission rate of data integrity verification and the efficiency of data integrity verification, and realizing the improvement of the accuracy and verification efficiency of data integrity verification.
[0066] Specifically, in step S4, when the data integrity verification module receives data transmitted from the user terminal, the central control module determines the data transmission status of the system according to the actual integrity S of the data received by the data integrity verification module. The central control module is provided with a preset first preset integrity S1, a second preset integrity S2 and a third preset integrity S3, wherein S1<S2<S3,
[0067] If S≤S1, the central control module preliminarily determines that the system has been intercepted and performs reverse tracking on the device that intercepted the data;
[0068] If S1<S≤S2, the central control module preliminarily determines that the data transmission is poor and controls the data transmission rate detection device to detect the data transmission rate;
[0069] If S2<S≤S3, the central control module preliminarily determines that the data transmission is not completed and a delay detection is required, and the central control module calculates the difference △S between the actual integrity and the preset integrity and determines the duration of the delay detection according to △S;
[0070] If S>S3, the central control module determines that the data integrity is qualified and the data transmission is normal.
[0071] The method of the present invention can determine the data transmission status of the system according to the actual integrity by setting a preset first preset integrity, a second preset integrity and a third preset integrity, thereby improving the precise determination of data integrity verification and further improving the accuracy and verification efficiency of data integrity verification.
[0072] Specifically, when determining S≤S1, the central control module determines the address of the system being intercepted according to whether the data transmission rate in the period has a mutation. The central control module is provided with a preset first data transmission rate mutation value P1 and a preset second data transmission rate mutation value P2, wherein P1<P2,
[0073] If P≤P1, the central control module determines that the actual data transmission rate mutation value is within the allowable range and does not determine the address corresponding to the transmission rate mutation value;
[0074] If P1<P≤P2, the central control module determines that the actual data transmission rate mutation value exceeds the allowable range and calculates the difference △P between the actual data transmission rate mutation value and the preset first data transmission rate mutation value, and further determines whether there is interception based on △P, and sets △P=P-P1;
[0075] If P>P2, the central control module determines that the actual data transmission rate mutation value exceeds the allowable range, determines the address corresponding to the mutation value as the address where the system is intercepted, and sends the address to the server for storage.
[0076] The method of the present invention can determine the address of the system being intercepted according to whether the data transmission rate mutates within a period by setting a preset first data transmission rate mutation value and a preset second data transmission rate mutation value, thereby improving the ability to supervise the data transmission process and further improving the accuracy and efficiency of data integrity verification.
[0077] Specifically, when determining that P1<P≤P2, the central control module further determines whether there is interception according to the difference △P between the actual data transmission rate mutation value and the preset data transmission rate mutation value. The central control module is provided with a preset first data transmission rate mutation value difference △P1 and a preset second data transmission rate mutation value difference △P2, wherein △P1<△P2,
[0078] If ΔP≤ΔP1, the central control module determines that the difference between the actual data transmission rate mutation value and the preset data transmission rate mutation value is within the allowable range and determines not to determine the address corresponding to the transmission rate mutation value;
[0079] If △P1<△P≤△P2, the central control module determines that the difference between the actual data transmission rate mutation value and the preset data transmission rate mutation value is within the allowable range and sends the address corresponding to the transmission rate mutation value to the server as a reserve address;
[0080] If ΔP>ΔP2, the central control module determines that the difference between the actual data transmission rate mutation value and the preset data transmission rate mutation value exceeds the allowable range and determines the address corresponding to the mutation value as the address where the system is intercepted and sends the address to the server for storage.
[0081] The method of the present invention sets a preset first data transmission rate mutation value difference and a preset second data transmission rate mutation value difference, and can further determine whether there is interception according to the difference △P between the actual data transmission rate mutation value and the preset data transmission rate mutation value, thereby improving the ability to accurately identify whether there is interception in the data transmission process, and further achieving the improvement of the accuracy and verification efficiency of data integrity verification.
[0082] Specifically, when determining that S1<S≤S2, the central control module further determines the data transmission situation according to the actual data transmission rate detected by the actual transmission rate detection device. The central control module is provided with a preset first transmission rate Q1 and a preset second transmission rate Q2, wherein Q1<Q2,
[0083] If Q≤Q1, the central control module determines that the network environment is congested and issues a poor transmission alarm;
[0084] If Q1<Q≤Q2, the central control module determines that the data transmission is poor, detects the server load and determines whether to postpone the tasks that are being performed simultaneously in the server load according to the load;
[0085] If Q>Q2, the central control module determines that the data transmission rate is qualified and the data is intercepted.
[0086] The method of the present invention can further determine the data transmission situation according to the actual data transmission rate detected by the actual transmission rate detection device by setting a preset first transmission rate and a preset second transmission rate, thereby improving the ability to accurately determine the data transmission and further achieving the improvement of the accuracy and verification efficiency of data integrity verification.
[0087] Specifically, when the central control module determines that Q1<Q≤Q2, the load detection device is controlled to detect whether the load amount transmitted simultaneously by the server is postponed to determine whether the data transmission task being performed simultaneously is postponed. The central control module is provided with a preset first transmission load amount D1 and a preset second transmission load amount D2, wherein D1<D2,
[0088] If D≤D1, the central control module determines that the actual transmission load is lower than the allowable range and increases the number of data blocks transmitted;
[0089] If D1<D≤D2, the central control module determines that the actual transmission load is within the allowable range and does not postpone the data transmission tasks that are transmitted simultaneously;
[0090] If D>D2, the central control module determines that the actual transmission load exceeds the allowable range and postpones the data transmission tasks transmitted simultaneously.
[0091] The method of the present invention can determine whether to postpone the simultaneous data transmission tasks based on the detected simultaneously transmitted load amounts by setting a preset first transmission load amount and a preset second transmission load amount, thereby improving the ability to accurately adjust the data transmission tasks and further achieving improved accuracy and efficiency of data integrity verification.
[0092] Specifically, when determining that S2<S≤S3, the central control module determines the delay time according to the difference △S between the actual integrity of the data received by the data integrity verification module and the preset integrity, and sets △S=S3-S. The central control module is provided with a preset first preset integrity difference △S1, a second preset integrity difference △S2, a first preset delay time t1 and a second preset delay time t2, △S1<△S2, t1<t2,
[0093] If 0<△S≤△S1, the central control module determines that the verification module delays the reception of data by a duration of t1;
[0094] If △S1<△S≤△S2, the central control module determines that the verification module delays receiving the data for a period of time t2 before performing the detection;
[0095] If ΔS>ΔS2, the central control module determines that the data transmission is poor and performs a secondary detection on the data transmission rate.
[0096] The method of the present invention can determine the delay time according to the difference between the actual integrity and the preset integrity by setting a preset first preset integrity difference, a second preset integrity difference, a first preset delay time t1 and a second preset delay time, thereby achieving accurate determination of the delay time and further improving the accuracy and efficiency of data integrity verification.
[0097] Specifically, after the central control module delays t1, the central control module controls the data integrity detection program to re-detect the data integrity S'.
[0098] If S'>S3, the central control module determines that the data has not been intercepted and does not perform reverse tracking on the data;
[0099] If S'≤S3, the central control module determines that the data is intercepted and performs reverse tracking.
[0100] The method of the present invention can further determine the data integrity by re-detecting the data integrity after a delay period, thereby improving the deep confirmation capability of the transmission process that affects the data integrity, and further improving the accuracy and efficiency of data integrity verification.
[0101] Specifically, after the central control module delays t2, the central control module controls the data integrity detection program to re-detect the data integrity S' and further determines whether the data is intercepted based on the difference between S' and S3.
[0102] If S'>S3, the central control module determines that the data has poor transmission and issues a data transmission problem alarm;
[0103] If S'≤S3, calculate △S' and set △S'=S3-S';
[0104] If 0<△S≤△S1, the central control module determines the delay time t1 and detects the data transmission rate Q to determine whether there is a poor data transmission situation;
[0105] If △S1<△S≤△S2, the central control module determines that the data is intercepted and issues a data interception alarm;
[0106] If ΔS>ΔS2, the central control module determines that data transmission is blocked and issues a data transmission problem alarm.
[0107] The method of the present invention controls the data integrity detection program to re-detect the data integrity and further determine whether the data is intercepted, thereby achieving further accurate determination of the data transmission process involved in data integrity, and further achieving improved accuracy and efficiency of data integrity verification.
[0108] See also Figure 2 As shown, a data integrity verification system based on blockchain includes:
[0109] The user terminal is used to perform block operations and data encryption operations on the data and send the block-partitioned and encrypted data to the server;
[0110] An encryption module, connected to the user terminal, for performing encryption operations on data blocks transmitted from the user terminal;
[0111] The server is connected to the encryption module, and is used to receive the data encryption information transmitted by the encryption module and decrypt the data encryption information. After completing the decryption of the information, it searches the blockchain for data information that is the same as the data information sent by the user terminal based on the decrypted data, and sends the data information to the data integrity verification module;
[0112] The data integrity verification module is connected to the server and is used to verify the integrity of the data transmitted from the user terminal according to the data information received by the server.
[0113] The system of the present invention can verify data integrity by setting up a user terminal, a server and a data integrity verification module, thereby improving the accuracy of data integrity verification and further improving the accuracy and verification efficiency of data integrity verification.
[0114] 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.
[0115] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A data integrity verification method based on blockchain, characterized in that: include: Step S1, before starting the data integrity verification, the central control module controls the user terminal to perform a block operation on the data and transmit each data block after the data block is completed to the encryption module; Step S2, when the encryption module completes receiving each of the data blocks, the central control module controls the encryption module to encrypt each data block respectively, and sends the encrypted data block to the server; Step S3, when the server receives the data block transmitted by the encryption module, the central control module controls the server to perform a decryption operation on each data block and searches the blockchain for data information identical to the data information sent by the user terminal based on the decrypted data, sends the data information to the data integrity verification module, and detects the data transmission rate during the process of transmitting the data from the user terminal to the data integrity verification module; Step S4, when the central control module determines that the upload time for the data information reaches the preset transmission time, the central control module makes a preliminary judgment on the transmission status of the system according to the integrity of the data actually transmitted to the data integrity verification module, and further judges the data transmission status of the system according to the data transmission rate detected by the data transmission rate detection device. When the central control module completes the judgment on the data transmission status, the duration of the delayed transmission detection is adjusted according to the difference between the actual data integrity and the preset data integrity. After the delay time, the central control module controls the data integrity verification module to perform a secondary detection on the integrity of the data and further judges the data transmission status.
2. The data integrity verification method based on blockchain according to claim 1 is characterized in that: In step S4, when the data integrity verification module receives data transmitted from the user terminal, the central control module determines the data transmission status of the system according to the actual integrity S of the data received by the data integrity verification module. The central control module is provided with a preset first preset integrity S1, a second preset integrity S2 and a third preset integrity S3, wherein S1<S2<S3, If S≤S1, the central control module preliminarily determines that the system has been intercepted and performs reverse tracking on the device that intercepted the data; If S1<S≤S2, the central control module preliminarily determines that the data transmission is poor and controls the data transmission rate detection device to detect the data transmission rate; If S2<S≤S3, the central control module preliminarily determines that the data transmission is not completed and a delay detection is required, and the central control module calculates the difference △S between the actual integrity and the preset integrity and determines the duration of the delay detection according to △S; If S>S3, the central control module determines that the data integrity is qualified and the data transmission is normal.
3. The data integrity verification method based on blockchain according to claim 2 is characterized in that: When determining that S≤S1, the central control module determines the address of the system being intercepted according to whether the data transmission rate has a mutation within the period. The central control module is provided with a preset first data transmission rate mutation value P1 and a preset second data transmission rate mutation value P2, wherein P1<P2, If P≤P1, the central control module determines that the actual data transmission rate mutation value is within the allowable range and does not determine the address corresponding to the transmission rate mutation value; If P1<P≤P2, the central control module determines that the actual data transmission rate mutation value exceeds the allowable range and calculates the difference △P between the actual data transmission rate mutation value and the preset first data transmission rate mutation value, and further determines whether there is interception based on △P, and sets △P=P-P1; If P>P2, the central control module determines that the actual data transmission rate mutation value exceeds the allowable range, determines the address corresponding to the mutation value as the address where the system is intercepted, and sends the address to the server for storage.
4. The data integrity verification method based on blockchain according to claim 3 is characterized in that: When determining that P1<P≤P2, the central control module further determines whether there is interception according to the difference △P between the actual data transmission rate mutation value and the preset data transmission rate mutation value. The central control module is provided with a preset first data transmission rate mutation value difference △P1 and a preset second data transmission rate mutation value difference △P2, wherein △P1<△P2, If ΔP≤ΔP1, the central control module determines that the difference between the actual data transmission rate mutation value and the preset data transmission rate mutation value is within the allowable range and determines not to determine the address corresponding to the transmission rate mutation value; If △P1<△P≤△P2, the central control module determines that the difference between the actual data transmission rate mutation value and the preset data transmission rate mutation value is within the allowable range and sends the address corresponding to the transmission rate mutation value to the server as a reserve address; If ΔP>ΔP2, the central control module determines that the difference between the actual data transmission rate mutation value and the preset data transmission rate mutation value exceeds the allowable range and determines the address corresponding to the mutation value as the address where the system is intercepted and sends the address to the server for storage.
5. The data integrity verification method based on blockchain according to claim 4 is characterized in that: The central control module further determines the data transmission situation according to the actual data transmission rate detected by the data transmission rate detection device when determining S1<S≤S2. The central control module is provided with a preset first transmission rate Q1 and a preset second transmission rate Q2, wherein Q1<Q2, If Q≤Q1, the central control module determines that the network environment is congested and issues a poor transmission alarm; If Q1<Q≤Q2, the central control module determines that the data transmission is poor, detects the server load and determines whether to postpone the tasks that are being performed simultaneously in the server load according to the load; If Q>Q2, the central control module determines that the data transmission rate is qualified and the data is intercepted.
6. The data integrity verification method based on blockchain according to claim 5 is characterized in that: When the central control module determines that Q1<Q≤Q2, the load detection device controls the load detection device to detect the load amount of the server's simultaneous transmission to determine whether to postpone the data transmission task being performed simultaneously. The central control module is provided with a preset first transmission load amount D1 and a preset second transmission load amount D2, wherein D1<D2. If D≤D1, the central control module determines that the actual transmission load is lower than the allowable range and increases the number of data blocks transmitted; If D1<D≤D2, the central control module determines that the actual transmission load is within the allowable range and does not postpone the data transmission tasks that are transmitted simultaneously; If D>D2, the central control module determines that the actual transmission load exceeds the allowable range and postpones the data transmission tasks transmitted simultaneously.
7. The data integrity verification method based on blockchain according to claim 6 is characterized in that: When determining that S2<S≤S3, the central control module determines the delay time according to the difference △S between the actual integrity of the data received by the data integrity verification module and the preset integrity, and sets △S=S3-S. The central control module is provided with a preset first preset integrity difference △S1, a second preset integrity difference △S2, a first preset delay time t1 and a second preset delay time t2, △S1<△S2, t1<t2, If 0<△S≤△S1, the central control module determines that the verification module delays the reception of data by a duration of t1; If △S1<△S≤△S2, the central control module determines that the verification module delays receiving the data for a period of time t2 before performing the detection; If ΔS>ΔS2, the central control module determines that the data transmission is poor and performs a secondary detection on the data transmission rate.
8. The data integrity verification method based on blockchain according to claim 7 is characterized in that: After the central control module delays t1, the central control module controls the data integrity detection program to re-detect the data integrity S'. If S'>S3, the central control module determines that the data has not been intercepted and does not perform reverse tracking on the data; If S'≤S3, the central control module determines that the data is intercepted and performs reverse tracking.
9. The data integrity verification method based on blockchain according to claim 8 is characterized in that: After the central control module delays t2, the central control module controls the data integrity detection program to re-detect the data integrity S' and further determines whether the data is intercepted based on the difference between S' and S3. If S'>S3, the central control module determines that the data has poor transmission and issues a data transmission problem alarm; If S'≤S3, calculate △S' and set △S'=S3-S'; If 0<△S≤△S1, the central control module determines the delay time t1 and detects the data transmission rate Q to determine whether there is a poor data transmission situation; If △S1<△S≤△S2, the central control module determines that the data is intercepted and issues a data interception alarm; If ΔS>ΔS2, the central control module determines that data transmission is blocked and issues a data transmission problem alarm.
10. A system for blockchain-based data integrity verification using the method described in any one of claims 1 to 9, characterized in that: include: The user terminal is used to perform block operations and data encryption operations on the data and send the block-partitioned and encrypted data to the server; An encryption module, connected to the user terminal, for performing encryption operations on data blocks transmitted from the user terminal; The server is connected to the encryption module, and is used to receive the data encryption information transmitted by the encryption module and decrypt the data encryption information. After completing the decryption of the information, it searches the blockchain for data information that is the same as the data information sent by the user terminal according to the decrypted data, and sends the data information to the data integrity verification module; The data integrity verification module is connected to the server and is used to verify the integrity of the data transmitted from the user terminal according to the data information received by the server.
Citation Information
Patent Citations
Block chain-based data integrity verification method, system and device and medium
CN113553627A
Data storage method based on identity in cloud computing and integrity verification method based on identity in cloud computing
CN104811450A
User data integrity verification method and apparatus capable of guaranteeing privacy
KR101586439B1
Method for communication based on automotive safety integrity level in automotive network and apparatus for the same
KR1020180029846A
Method and apparatus for providing integrity check data
US20170331837A1
