Data security aggregation method and device based on block chain, and medium

Through the blockchain-based data security aggregation method, the decentralization and non-tampering characteristics of the blockchain are used, combined with cryptography and distributed computing technology, to solve the challenges of data security and privacy protection, and achieve efficient data aggregation and Trusted data sharing ensures data security and privacy.

CN118747375APending Publication Date: 2024-10-08SHANDONG INSPUR SCI RES INST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411008979.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

Data security and privacy protection face severe challenges in the context of the development of information technology and the popularization of the Internet. It is difficult for existing technologies to achieve efficient data aggregation and credible data sharing while ensuring data security and privacy.

Method used

Adopting a blockchain-based data security aggregation method, through data collection, encryption, on-chain, storage, aggregation and decryption processing, combined with smart contracts, distributed computing, multi-party secure computing, consensus mechanism and zero-knowledge proof technology, using block The decentralized, non-tamperable and transparent characteristics of the chain enable safe storage and sharing of data.

Benefits of technology

It achieves safe storage and sharing of data, ensures data consistency and reliability, protects data privacy, prevents data fraud and tampering, provides traceable data operation records, and enhances data security and privacy protection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118747375A_ABST
    Figure CN118747375A_ABST
Patent Text Reader

Abstract

The invention relates to the field of network security, in particular to a data security aggregation method and device based on a block chain and a medium. According to the method, data security processing and uploading are firstly carried out, including data acquisition, preprocessing, encryption and uploading to a block chain network to ensure the security and non-tampering of the data, then data aggregation and processing are carried out, distributed computing and a multi-party security computing technology are carried out by using nodes in the block chain network, the encrypted data are aggregated and processed, and the security of the block chain network is improved. And finally, data decryption and verification are carried out, the aggregated data are decrypted according to an authorization strategy and an authorization node, and the authenticity and integrity of a decrypted data result are verified through a consensus mechanism of a block chain and a zero-knowledge proof technology. According to the method, efficient data aggregation and credible data sharing can be realized on the premise of ensuring the data security and privacy by utilizing the decentralization characteristic of the block chain technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network security, and in particular to a data security aggregation method, device and medium based on blockchain. Background Art

[0002] With the rapid development of information technology and the widespread popularity of the Internet, data has become one of the most important resources in modern society. From personal privacy information, corporate business data to government public data, these data not only have huge economic value, but are also crucial to scientific research and technological innovation. However, with the continuous increase in data volume and the deepening of data applications, data security and privacy protection are facing severe challenges.

[0003] As an emerging distributed ledger technology, blockchain technology has gradually become an important means to solve data security problems with its decentralized, tamper-proof, transparent and traceable characteristics. Blockchain uses a consensus mechanism to ensure the consistency of ledger data among all nodes. Each data block is connected to the previous and next blocks through encryption to form a chain structure, thereby preventing data from being tampered with. Due to its distributed nature, there is no single point of failure in the blockchain system, making the system more reliable and secure. The core advantages of blockchain technology include decentralization and independence from third-party institutions; tamper-proof to ensure data integrity; transparency and traceability, all transaction records are open, transparent and traceable; and high security, using cryptographic technology to protect data and prevent unauthorized access and operation. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a data security aggregation method, device and medium based on blockchain, which utilizes the decentralized characteristics of blockchain technology to achieve efficient data aggregation and trusted data sharing under the premise of ensuring data security and privacy. In order to solve the technical problem, the technical solution adopted by the present invention is: a data security aggregation method based on blockchain, comprising the following steps: S01) Data collection: multiple data providers who need to aggregate data actively provide raw data or collect raw data through multiple data sources. The raw data is cleaned, format converted and standardized through pre-processing to ensure that all data formats are consistent; S02), data encryption: the data provider encrypts the pre-processed data to generate encrypted data; S03) Data upload: uploading encrypted data and corresponding data records to the blockchain network through smart contracts. Each data record includes a data hash value, timestamp, and data source identifier. S04) Data storage: encrypted data from multiple data providers are stored in the blockchain network, using the distributed storage characteristics of the blockchain to achieve decentralized data storage; S05) The nodes in the blockchain network aggregate the encrypted data of multiple data providers, use distributed computing and multi-party secure computing to process the encrypted data in parallel, and generate aggregated data. S06), according to the pre-set authorization policy, the authorization node decrypts the aggregated data, uses the decryption key provided by the data source or decrypts the data through multi-party secure computing to generate a readable aggregation result; S07) Verify the readable aggregation results through the consensus mechanism of the blockchain network. If the verification passes, generate the formal aggregation results. If the verification fails, return the failed result.

[0005] Furthermore, in step S04), the preprocessed data is encrypted using the Paillier algorithm, and in step S05), the encrypted data is subjected to additive aggregation.

[0006] Furthermore, in step S04), the preprocessed data is encrypted using the RSA algorithm, and in step S05), multiplication aggregation is performed on the encrypted data.

[0007] Furthermore, in step S04), the preprocessed data is encrypted using the BFV algorithm, and in step S05), a mixed data aggregation of addition and multiplication is implemented on the encrypted data.

[0008] Furthermore, in step S04), a sharding storage technology is used to divide the data into multiple small segments for separate storage.

[0009] Furthermore, the consensus mechanism in step S07) includes proof of work, proof of stake and Byzantine fault tolerance algorithm.

[0010] Furthermore, zero-knowledge proof technology is used to verify the authenticity of the aggregation results.

[0011] Furthermore, a trusted third party is used to generate and manage data encryption keys. The keys are generated by the trusted third party and sent to the data providers. Each aggregation task uses a unique key. For the same aggregation task, multiple data providers use a unified encryption key.

[0012] The present invention also discloses a blockchain-based data security aggregation device, comprising a processor and a memory storing program instructions, wherein the processor is configured to execute the blockchain-based data security aggregation method as described above when running the program instructions.

[0013] The present invention also discloses a storage medium storing program instructions, which, when running, execute the data security aggregation method based on blockchain as described above.

[0014] Beneficial effects of the present invention: The data security aggregation method based on blockchain makes full use of the advantages of blockchain technology and realizes the secure storage and sharing of data through distributed ledger technology. Each node holds a complete copy of the data, and any changes to the data need to be confirmed through a consensus mechanism to ensure the consistency and reliability of the data. Combined with cryptographic technology, data can be encrypted, stored and transmitted on the blockchain to protect data privacy. At the same time, by using advanced technologies such as zero-knowledge proof and homomorphic encryption, secure calculation and analysis of data can be achieved while ensuring data privacy. The transparency and tamper-proof characteristics of blockchain make it possible to trace every operation and change of the data, which is convenient for tracking the source and usage of the data, and effectively prevents data falsification and tampering. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 This is a flow chart of the method described in Example 1. DETAILED DESCRIPTION

[0016] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0017] Example 1 This embodiment discloses a data security aggregation method based on blockchain, that is, a secure data aggregation method for multiple data sources. It utilizes the decentralized characteristics of blockchain technology and can achieve efficient data aggregation and trusted data sharing under the premise of ensuring data security and privacy.

[0018] The main participants in this approach include: 1. Trusted third party: responsible for generating and managing the master key for data encryption and ensuring the uniqueness of the key for each data aggregation task, that is, different aggregation tasks use different keys, and distribute homomorphically encrypted public and private keys to data providers to ensure the security and credibility of the keys.

[0019] 2. Data provider: responsible for collecting raw data and preprocessing it. This mainly includes collecting data, preprocessing data (data cleaning, format conversion, standardization), encrypting data and uploading it to the blockchain network.

[0020] 3. Blockchain network: responsible for storing and managing data blocks. It mainly includes receiving encrypted data from data sources, verifying data and uploading it to the blockchain through smart contracts, and ensuring decentralized storage and immutability of data.

[0021] like Figure 1 As shown, the method described in this embodiment includes the following steps: S01) Data Collection Multiple data providers who need to aggregate data actively provide raw data, or multiple data sources (such as sensors, databases, applications, etc.) collect raw data separately. The raw data is cleaned, formatted, and standardized through preprocessing to ensure consistency among all data providers.

[0022] S02) Data encryption Multiple data providers encrypt the preprocessed data to protect the privacy and security of the data. Paillier additive homomorphic encryption, RSA multiplicative homomorphic encryption, and BFV fully homomorphic encryption algorithms can be used for data encryption. Multiple data providers use a unified encryption key to encrypt the data and generate encrypted data. This facilitates subsequent data aggregation operations.

[0023] S03) Data on-chain The encrypted data and corresponding data records are uploaded to the blockchain network through smart contracts. Each data record contains data hash value, timestamp, data source identification and other information to ensure the integrity and traceability of the data. Smart contracts verify the data when it is uploaded to ensure the legitimacy and validity of the data.

[0024] S04) Data storage The encrypted data of multiple data providers is stored in the blockchain network, and the distributed storage characteristics of the blockchain are used to achieve decentralized storage of data. Large amounts of data can be divided into multiple small fragments for storage through sharding storage technology, which improves the efficiency of data storage and transmission.

[0025] S05) Data Aggregation The nodes in the blockchain network aggregate the encrypted data from multiple data sources. Distributed computing technology and multi-party secure computing technology (such as homomorphic encryption, secret sharing, etc.) are used to process encrypted data in parallel to generate aggregated data. Distributed computing technology improves the efficiency of data aggregation; depending on the encryption method, the aggregation function provided by multi-party secure computing technology is also different. For example, Paillier encrypted data can realize the addition aggregation function of encrypted data, RSA encryption method can realize the multiplication data aggregation function, and BFV encryption algorithm can provide a mixed data aggregation function of addition and multiplication. The aggregation process ensures the security and privacy of data without leaking the privacy of a single data source.

[0026] S06) Data decryption According to the pre-set authorization policy, the authorization node decrypts the aggregated data. The data is decrypted using the decryption key provided by the data source or through multi-party secure computing technology to generate a readable aggregated result.

[0027] S07) Result Verification The aggregation results are verified through the consensus mechanism of the blockchain network. The consensus mechanism can use algorithms such as proof of work (PoW), proof of stake (PoS) or Byzantine fault tolerance (PBFT) to ensure the accuracy and completeness of the aggregation results. To further enhance security, zero-knowledge proof technology can be used to verify the authenticity of the aggregation results without leaking the data content.

[0028] If the verification passes, a formal aggregation result is generated. If the verification fails, a failure result is returned.

[0029] Example 2 The present invention discloses a data security aggregation device based on blockchain, comprising a processor and a memory storing program instructions, wherein the processor is configured to execute the data security aggregation method based on blockchain as described in Example 1 when running the program instructions.

[0030] Example 3 This embodiment discloses a storage medium storing program instructions, which, when run, execute the blockchain-based data security aggregation method as described in Embodiment 1.

[0031] The above description is only the basic principle and preferred embodiments of the present invention. Improvements and substitutions made by those skilled in the art based on the present invention belong to the protection scope of the present invention.

Claims

1. A data security aggregation method based on blockchain, characterized by: The following steps are involved: S01) Data collection: multiple data providers who need to aggregate data actively provide raw data or collect raw data through multiple data sources. The raw data is cleaned, formatted and standardized through pre-processing to ensure that all data formats are consistent; S02), data encryption: the data provider encrypts the pre-processed data to generate encrypted data; S03) Data upload: uploading encrypted data and corresponding data records to the blockchain network through smart contracts. Each data record includes a data hash value, timestamp, and data source identifier. S04) Data storage: encrypted data from multiple data providers are stored in the blockchain network, using the distributed storage characteristics of the blockchain to achieve decentralized data storage; S05) The nodes in the blockchain network aggregate the encrypted data of multiple data providers, use distributed computing and multi-party secure computing to process the encrypted data in parallel, and generate aggregated data. S06), according to the pre-set authorization policy, the authorization node decrypts the aggregated data, uses the decryption key provided by the data source or decrypts the data through multi-party secure computing to generate a readable aggregation result; S07) Verify the readable aggregation results through the consensus mechanism of the blockchain network. If the verification passes, generate the formal aggregation results. If the verification fails, return the failed result.

2. The data security aggregation method based on blockchain according to claim 1 is characterized in that: In step S04), the pre-processed data is encrypted using the Paillier algorithm, and in step S05), the encrypted data is subjected to additive aggregation.

3. The data security aggregation method based on blockchain according to claim 1 is characterized in that: In step S04), the pre-processed data is encrypted using the RSA algorithm, and in step S05), multiplication aggregation is performed on the encrypted data.

4. The data security aggregation method based on blockchain according to claim 1 is characterized in that: In step S04), the pre-processed data is encrypted using the BFV algorithm, and in step S05), a mixed data aggregation of addition and multiplication is implemented on the encrypted data.

5. The data security aggregation method based on blockchain according to claim 1 is characterized in that: In step S04), the fragmentation storage technology is used to divide the data into multiple small fragments for storage.

6. The data security aggregation method based on blockchain according to claim 1 is characterized in that: The consensus mechanism in step S07) includes proof of work, proof of stake and Byzantine fault tolerance algorithm.

7. The data security aggregation method based on blockchain according to claim 1 is characterized in that: Zero-knowledge proof technology is used to verify the authenticity of the aggregation results.

8. The data security aggregation method based on blockchain according to claim 1 is characterized in that: A trusted third party is used to generate and manage data encryption keys. The keys are generated by a trusted third party and sent to data providers. Each aggregation task uses a unique key. For the same aggregation task, multiple data providers use a unified encryption key.

9. A data security aggregation device based on blockchain, comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the blockchain-based data security aggregation method as described in any one of claims 1 to 8 when running the program instructions.

10. A storage medium storing program instructions, characterized in that: When the program instructions are run, they execute the blockchain-based data security aggregation method as described in any one of claims 1 to 8.