Block chain-based computer batch data storage method and system

By using blockchain technology to perform data classification, encryption, smart contract allocation, index record management and security audit in computer batch data storage systems, the problems of difficulty in distinguishing data access frequency, insufficient data security and inefficient retrieval efficiency in traditional systems are solved, efficient and automated data management and allocation are achieved, and data privacy protection, traceability and integrity verification capabilities are improved.

CN119996433AActive Publication Date: 2025-05-13WUXI HENGCHUANG INTELLECTUAL PROPERTY AGENCY CO LTD

Patent Information

Application Number
CN202510450580.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-11
Publication Date
2025-05-13
Estimated Expiration
2045-04-11

AI Technical Summary

Technical Problem

Traditional computer batch data storage systems lack effective means to distinguish data of different access frequencies, and data is vulnerable to attacks or leaks during transmission and storage. Traditional systems rely on manual or semi-automatic methods to allocate data to different storage levels, which is time-consuming and error-prone, has low retrieval efficiency and difficult data integrity verification.

Method used

The computer batch data storage method based on blockchain is adopted, and the data is divided into hot data and cold data through data classification method. The data is encrypted using homomorphic encryption method. The smart contract definition logic allocates the encrypted data to the corresponding storage level, creates detailed index records and saves them on the blockchain. The method of querying index records on the blockchain determines the data location when retrieving specific data, and checks the integrity of the data and the operating status of the system through security audits to adjust the storage strategy.

Benefits of technology

It realizes an automated and efficient data management and allocation mechanism, improves data privacy protection capabilities, simplifies the data retrieval process, enhances data traceability and integrity verification capabilities, improves data management transparency, integrity and credibility, and is suitable for maintaining long-term data consistency and compliance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996433A_ABST
    Figure CN119996433A_ABST
Patent Text Reader

Abstract

The invention discloses a computer batch data storage method and system based on a block chain, and relates to the technical field of computer batch data storage.The computer batch data storage method comprises the steps that computer batch data are analyzed through a data classification method, the computer batch data are divided into hot data and cold data according to the access frequency, and a classified data set is obtained; performing encryption processing on the classified data set by adopting a homomorphic encryption method to obtain an encrypted data set; distributing the encrypted data set to a corresponding storage level by adopting intelligent contract definition logic to obtain a data record with a distributed storage position; creating a detailed index record and storing the detailed index record on the block chain to obtain an index record on the block chain; determining a data position when the specific data is retrieved by adopting a method of querying the index record on the block chain, and obtaining verified data; and checking the integrity of the data and the running state of the system by adopting a security auditing method to obtain an auditing result, and adjusting a storage strategy based on the auditing result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer batch data storage, and in particular to a computer batch data storage method and system based on blockchain. Background Art

[0002] File encryption technology plays a vital role in today's information security field. With the rapid development of information technology, users' demand for file security and privacy protection is growing. Traditional encryption methods often rely on fixed keys and algorithms, and have problems such as complex key management and limited anti-attack capabilities, which cannot meet users' needs for personalized and intelligent encryption. Therefore, how to use advanced technical means to improve the intelligence level and security of file encryption has become one of the current problems that need to be solved urgently.

[0003] In the field of computer batch data storage, in traditional data management systems, there is a lack of effective means to distinguish data with different access frequencies, and data is vulnerable to attacks or leakage during transmission and storage. Traditional systems usually rely on manual or semi-automatic methods to allocate data to different storage levels. This method is not only time-consuming but also prone to errors. At the same time, when specific information needs to be retrieved from a large amount of stored data, existing systems often face problems such as low retrieval efficiency and difficulty in data integrity verification. Summary of the invention

[0004] In view of the above existing problems, the present invention is proposed.

[0005] Therefore, the present invention provides a computer batch data storage method and system based on blockchain to solve the problem that in traditional data management systems, there is a lack of effective means to distinguish data with different access frequencies, and data is vulnerable to attack or leakage during transmission and storage. Traditional systems usually rely on manual or semi-automatic methods to allocate data to different storage levels, which is not only time-consuming but also prone to errors.

[0006] In order to solve the above technical problems, the present invention provides the following technical solutions: In a first aspect, the present invention provides a computer batch data storage method based on blockchain, which comprises: The computer batch data is analyzed by data classification method, which is divided into hot data and cold data according to the access frequency to obtain the classified data set; The classified data set is encrypted using a homomorphic encryption method to obtain an encrypted data set; The encrypted data set is allocated to the corresponding storage level using smart contract definition logic to obtain data records of the allocated storage location; Create detailed index records and save them on the blockchain to obtain index records on the blockchain; The method of querying the index record on the blockchain is used to determine the data location when retrieving specific data, and obtain verified data; Use security auditing methods to check data integrity and system operating status, obtain audit results, adjust storage strategies based on the audit results, and obtain optimized data storage strategies.

[0007] As a preferred solution of the computer batch data storage method based on blockchain described in the present invention, wherein: the computer batch data is analyzed by using a data classification method, and it is divided into hot data and cold data according to the access frequency to obtain a classified data set. The specific steps are: Collect data access logs from computers; The data access log includes the number of accesses, access time and size information of the data block; For each data block, calculate its average access frequency, the expression is: ; in, Indicates The data block is in The timestamp of the first visit, is the total number of visits, is the length of the observation period, The larger the value, the "hotter" the data block is; Based on the dynamic threshold adjustment mechanism and combined with the average access frequency and standard deviation of all data blocks in the entire data set, the threshold is set. The expression is: ; in, is an empirical constant used to adjust the sensitivity. is the average access frequency of all data blocks, is its standard deviation; When the average access frequency of a data block > , it is classified as hot data, otherwise it is regarded as cold data. The expression is: ; in, Indicates The categories of the data blocks are identified and marked as classified data sets.

[0008] As a preferred solution of the blockchain-based computer batch data storage method of the present invention, wherein: the classified data set is encrypted using a homomorphic encryption method to obtain an encrypted data set, and the specific steps are: Based on the classified data set Select BFV encryption parameters; The BFV encryption parameters include the degree, modulus and coefficient modulus of the polynomial ; Based on the randomization algorithm, the BFV encryption parameters are used to generate public and private keys. The expression is: ; in, is a key generation function, the input is the degree of the polynomial , modulus and coefficient modulus , the output is the public key and private key ; For each encrypted data block , using the generated public key Encrypt and generate the corresponding ciphertext , the expression is: ; in, is an encryption function, the input is the original data and the public key , the output is the encrypted data ; Using Private Key Decrypt part of the ciphertext and compare it with the original data to ensure that it is correct. The expression is: ; in, is the decryption function, the input is the ciphertext and private key , the output is the decrypted data .

[0009] As a preferred solution of the blockchain-based computer batch data storage method of the present invention, wherein: the smart contract definition logic is used to allocate the encrypted data set to the corresponding storage level to obtain the data record of the allocated storage location, and the specific steps are: Define smart contract rules; The smart contract rules include access frequency thresholds for data blocks, preferential allocation of hot data to storage systems with higher performance, and allocation of cold data to the more cost-effective decentralized storage platform IPFS; Deploy the smart contract on the blockchain platform and initialize relevant parameters. The expression is: ; in, Represents a smart contract instance, Contains all the parameters required for initialization; For the encrypted data block , assess whether it is hot data or cold data; Use average access frequency and set thresholds To make a judgment, the expression is: ; ; Based on the evaluation results, the smart contract automatically allocates the data block to the appropriate storage tier; For hot data, choose a high-performance storage system; For cold data, choose low-cost storage media.

[0010] As a preferred solution of the computer batch data storage method based on blockchain of the present invention, wherein: the detailed index record is created and saved on the blockchain to obtain the index record on the blockchain, and the specific steps are: Create detailed index records for each allocated data block and save them on the blockchain; The index record includes the location information of the data block, the encryption key, and the metadata of the access rights, and the expression is: ; in, It is a function that creates index records, and the input is the encrypted data block , its storage location and the associated key , the output is index record .

[0011] As a preferred solution of the computer batch data storage method based on blockchain of the present invention, wherein: the method of using the index record query on the blockchain to determine the data location when retrieving specific data to obtain verified data, the specific steps are as follows: When specific data needs to be retrieved, the system receives a retrieval request from the user, which includes a unique identifier of the data block to be retrieved; According to the unique identifier in the retrieval request, query the corresponding index record from the blockchain; Extract the actual storage location of the data block and the necessary decryption key from the index record; According to the extracted storage location, obtaining the encrypted data block from the corresponding storage medium; Use the decryption key extracted from the index record to decrypt the encrypted data block and restore the original data. The expression is: ; in, Is the decryption function, the input is the encrypted data block and the decryption key , the output is the original data ; Use hash verification mechanism to verify the decrypted data to verify.

[0012] As a preferred solution of the blockchain-based computer batch data storage method of the present invention, wherein: the security audit method is used to check the integrity of the data and the operating status of the system, obtain the audit results, adjust the storage strategy based on the audit results, and obtain the optimized data storage strategy. The specific steps are: define comprehensive audit standards; The audit criteria include: Data integrity check: Verify that the data has not been tampered with; System performance evaluation: monitor the usage of storage resources; Security check: detect potential security threats or vulnerabilities; Collect necessary audit data from the system, including the hash value of each data block, status information of storage resources, and log records of any abnormal events; For each data block, calculate its current hash value and compare it with the hash value in the index record; Analyze storage resource usage, especially key performance indicators; The key performance indicators include remaining storage space, average access latency and throughput; Check system logs for any unusual behavior or potential security threats; Summarize all audit results and generate detailed audit reports.

[0013] In a second aspect, the present invention provides a computer batch data storage system based on blockchain, comprising: Data classification module, encryption processing module, smart contract allocation module, index record management module, data retrieval and verification module, and security audit module; The data classification module is used to analyze computer batch data and classify it into hot data and cold data according to access frequency to obtain a classified data set; The encryption processing module is used to encrypt the classified data set using a homomorphic encryption method to obtain an encrypted data set; The smart contract allocation module is used to define the smart contract logic and allocate the encrypted data set to the corresponding storage level to obtain the data record of the allocated storage location; The index record management module is used to create detailed index records and save them on the blockchain to obtain index records on the blockchain; The data retrieval and verification module is used to determine the data location when retrieving specific data by using a method of querying index records on the blockchain to obtain verified data; The security audit module is used to check the integrity of data and the operating status of the system using a security audit method, obtain audit results, and adjust the storage strategy based on the audit results to obtain an optimized data storage strategy.

[0014] In a third aspect, the present invention provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: when the computer program is executed by the processor, any step of the blockchain-based computer batch data storage method as described in the first aspect of the present invention is implemented.

[0015] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein: when the computer program is executed by a processor, any step of the blockchain-based computer batch data storage method as described in the first aspect of the present invention is implemented.

[0016] The beneficial effects of the present invention are as follows: by using homomorphic encryption methods to encrypt data, the security of data during transmission and storage is ensured. The method allows certain computing tasks to be performed without decryption, greatly enhancing the data privacy protection capability. The encrypted data blocks are automatically allocated to the appropriate storage level through smart contracts, realizing an automated and efficient data management and distribution mechanism. By creating detailed index records and saving them on the blockchain, permanent recording and tracking of data location and metadata are achieved. This process not only simplifies the data retrieval process, but also enhances the traceability and integrity verification capabilities of the data, achieving the effect of enhancing data management transparency, improving data integrity and credibility, which is essential for maintaining long-term data consistency and compliance. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0018] Figure 1 This is a flowchart of the computer batch data storage method based on blockchain in Example 1.

[0019] Figure 2This is a schematic diagram of a computer batch data storage system based on blockchain in Example 1. DETAILED DESCRIPTION

[0020] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.

[0021] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0022] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.

[0023] Example 1, reference Figure 1 and Figure 2 , which is the first embodiment of the present invention, and provides a computer batch data storage method based on blockchain, comprising the following steps: S1. Analyze the batch data of computer by using data classification method, divide it into hot data and cold data according to the access frequency, and obtain the classified data set; Going a step further, data access logs are collected from computers; Data access logs include the number of accesses, access time, and size information of data blocks; For each data block, calculate its average access frequency, the expression is: ; in, Indicates The data block is in The timestamp of the first visit, is the total number of visits, is the length of the observation period, The larger the value, the "hotter" the data block is; Based on the dynamic threshold adjustment mechanism and combined with the average access frequency and standard deviation of all data blocks in the entire data set, the threshold is set. The expression is: ; in, is an empirical constant used to adjust the sensitivity. is the average access frequency of all data blocks, is its standard deviation; When the average access frequency of a data block > , it is classified as hot data, otherwise it is regarded as cold data. The expression is: ; in, Indicates The categories of the data blocks are marked as classified data sets; It should be noted that by dynamically adjusting the threshold mechanism and combining the average access frequency and standard deviation of all data blocks in the entire data set to set the threshold, it can flexibly adapt to different application scenarios and data characteristics. This method not only improves the classification accuracy, but also can cope with changes in data access patterns over time, ensuring long-term data management efficiency.

[0024] S2. Use a homomorphic encryption method to encrypt the classified data set to obtain an encrypted data set; Furthermore, based on the classified data set Select BFV encryption parameters; BFV encryption parameters include the degree, modulus, and coefficient modulus of the polynomial ; Based on the randomization algorithm, the BFV encryption parameters are used to generate public and private keys. The expression is: ; in, is a key generation function, the input is the degree of the polynomial , modulus and coefficient modulus , the output is the public key and private key ; For each encrypted data block , using the generated public key Encrypt and generate the corresponding ciphertext , the expression is: ; in, is an encryption function, the input is the original data and the public key , the output is the encrypted data ; Using Private Key Decrypt part of the ciphertext and compare it with the original data to ensure that it is correct. The expression is: ; in, is the decryption function, the input is the ciphertext and private key , the output is the decrypted data ; It should be noted that the process of selecting BFV encryption parameters and generating public and private keys based on a randomized algorithm ensures the security and flexibility of encryption. The method supports performing computing operations on encrypted data without decryption, providing a guarantee for secure computing in a big data environment while simplifying the key management and data protection process.

[0025] S3. Use smart contract definition logic to allocate the encrypted data set to the corresponding storage level to obtain the data record of the allocated storage location; Going further, define smart contract rules; Smart contract rules include access frequency thresholds for data blocks, priority allocation of hot data to storage systems with higher performance, and allocation of cold data to the more cost-effective decentralized storage platform IPFS; Deploy the smart contract on the blockchain platform and initialize relevant parameters. The expression is: ; in, Represents a smart contract instance, Contains all the parameters required for initialization; For the encrypted data block , assess whether it is hot data or cold data; Use average access frequency and set thresholds To make a judgment, the expression is: ; ; Based on the evaluation results, the smart contract automatically allocates the data block to the appropriate storage tier; For hot data, choose a high-performance storage system; For cold data, choose low-cost storage media; It should be noted that by automatically evaluating the categories of data blocks through smart contracts and allocating them to the appropriate storage tiers, highly automated and intelligent data management is achieved. The strategy can not only significantly improve the system response speed and service quality, but also effectively reduce operating costs and improve resource utilization.

[0026] S4. Create a detailed index record and save it on the blockchain to obtain the index record on the blockchain; Furthermore, a detailed index record is created for each allocated data block and saved on the blockchain; The index record includes the location information of the data block, the encryption key, and the metadata of the access rights. The expression is: ; in, It is a function that creates index records, and the input is the encrypted data block , its storage location and the associated key , the output is index record ; It should be noted that storing index records on the blockchain, by utilizing its tamper-proof and transparent characteristics, ensures the high reliability and traceability of data location information and metadata, which not only enhances the accuracy and efficiency of data retrieval, but also provides a solid foundation for subsequent data audits and compliance checks.

[0027] S5. Use the method of querying the index record on the blockchain to determine the data location when retrieving specific data, and obtain verified data; Furthermore, when specific data needs to be retrieved, the system receives a retrieval request from a user, the request including a unique identifier of the data block to be retrieved; According to the unique identifier in the retrieval request, query the corresponding index record from the blockchain; Extract the actual storage location of the data block and the necessary decryption key from the index record; According to the extracted storage location, obtaining the encrypted data block from the corresponding storage medium; Use the decryption key extracted from the index record to decrypt the encrypted data block and restore the original data. The expression is: ; in, Is the decryption function, the input is the encrypted data block and the decryption key , the output is the original data ; Use hash verification mechanism to verify the decrypted data To verify; It should be noted that by querying index records from the blockchain and using decryption keys to restore the original data, high security and integrity are ensured in the data retrieval process. This step not only simplifies the data search process, but also further verifies the authenticity of the data through the hash verification mechanism, thereby enhancing users' trust in the system.

[0028] S6. Use a security audit method to check the integrity of the data and the operating status of the system, obtain the audit results, and adjust the storage strategy based on the audit results to obtain an optimized data storage strategy; Going a step further, define comprehensive audit standards; Audit standards include: Data integrity check: Verify that the data has not been tampered with; System performance evaluation: monitor the usage of storage resources; Security check: detect potential security threats or vulnerabilities; Collect necessary audit data from the system, including the hash value of each data block, status information of storage resources, and log records of any abnormal events; For each data block, calculate its current hash value and compare it with the hash value in the index record; Analyze storage resource usage, especially key performance indicators; Key performance indicators include remaining storage space, average access latency, and throughput; Check system logs for any unusual behavior or potential security threats; Summarize all audit results and generate detailed audit reports; It should be noted that regular and comprehensive security audits can not only detect potential security threats or vulnerabilities in a timely manner, but also monitor the usage of storage resources, thereby achieving the purpose of dynamically adjusting storage strategies. Continuous monitoring and optimization mechanisms help maintain the efficient operation of the system and ensure the long-term security and integrity of data.

[0029] This embodiment also provides a computer batch data storage system based on blockchain, including: Data classification module, encryption processing module, smart contract allocation module, index record management module, data retrieval and verification module, and security audit module; The data classification module is used to analyze computer batch data and classify it into hot data and cold data according to the access frequency to obtain the classified data set; An encryption processing module is used to encrypt the classified data set using a homomorphic encryption method to obtain an encrypted data set; The smart contract allocation module is used to define the smart contract logic and allocate the encrypted data set to the corresponding storage level to obtain the data record of the allocated storage location; An index record management module is used to create detailed index records and save them on the blockchain to obtain index records on the blockchain; A data retrieval and verification module is used to determine the data location when retrieving specific data by querying the index record on the blockchain to obtain verified data; The security audit module is used to check the integrity of data and the operating status of the system using security audit methods, obtain audit results, and adjust the storage strategy based on the audit results to obtain an optimized data storage strategy.

[0030] This embodiment also provides a computer device, which is suitable for the case of a computer batch data storage method based on blockchain, including: a memory and a processor; the memory is used to store computer executable instructions, and the processor is used to execute computer executable instructions to implement the computer batch data storage method based on blockchain as proposed in the above embodiment.

[0031] The computer device may be a terminal, and the computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected through a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through Wi-Fi, an operator network, NFC (near field communication) or other technologies. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covering the display screen, or a key, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.

[0032] This embodiment also provides a storage medium on which a computer program is stored. When the program is executed by a processor, the computer batch data storage method based on blockchain as proposed in the above embodiment is implemented; the storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, disk or optical disk.

[0033] In summary, the present invention ensures the security of data during transmission and storage by encrypting data using homomorphic encryption methods. The method allows certain computing tasks to be performed without decryption, greatly enhancing the data privacy protection capability. The encrypted data blocks are automatically allocated to the appropriate storage level through smart contracts, realizing an automated and efficient data management and distribution mechanism. By creating detailed index records and saving them on the blockchain, permanent recording and tracking of data location and metadata are achieved. This process not only simplifies the data retrieval process, but also enhances the traceability and integrity verification capabilities of the data, achieving the effect of enhancing data management transparency, improving data integrity and credibility, which is essential for maintaining long-term data consistency and compliance.

[0034] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. A computer batch data storage method based on blockchain, characterized in that: include: The computer batch data is analyzed by data classification method, which is divided into hot data and cold data according to the access frequency to obtain the classified data set; The classified data set is encrypted using a homomorphic encryption method to obtain an encrypted data set; The encrypted data set is allocated to the corresponding storage level using smart contract definition logic to obtain data records of the allocated storage location; Create detailed index records and save them on the blockchain to obtain index records on the blockchain; The method of querying the index record on the blockchain is used to determine the data location when retrieving specific data, and obtain verified data; Use security auditing methods to check data integrity and system operating status, obtain audit results, adjust storage strategies based on the audit results, and obtain optimized data storage strategies.

2. The computer batch data storage method based on blockchain as claimed in claim 1, characterized in that: The data classification method is used to analyze computer batch data, and the data is divided into hot data and cold data according to the access frequency to obtain the classified data set. The specific steps are as follows: Collect data access logs from computers; The data access log includes the number of accesses, access time and size information of the data block; For each data block, calculate its average access frequency, the expression is: ; in, Indicates The data block is in The timestamp of the first visit, is the total number of visits, is the length of the observation period, The larger the value, the "hotter" the data block is; Based on the dynamic threshold adjustment mechanism and combined with the average access frequency and standard deviation of all data blocks in the entire data set, the threshold is set. The expression is: ; in, is an empirical constant used to adjust the sensitivity. is the average access frequency of all data blocks, is its standard deviation; When the average access frequency of a data block > , it is classified as hot data, otherwise it is regarded as cold data. The expression is: ; in, Indicates The categories of the data blocks are identified and marked as classified data sets.

3. The computer batch data storage method based on blockchain as claimed in claim 2, characterized in that: The homomorphic encryption method is used to encrypt the classified data set to obtain an encrypted data set. The specific steps are: Based on the classified data set Select BFV encryption parameters; The BFV encryption parameters include the degree, modulus and coefficient modulus of the polynomial ; Based on the randomization algorithm, the BFV encryption parameters are used to generate public and private keys. The expression is: ; in, is a key generation function, the input is the degree of the polynomial , modulus and coefficient modulus , the output is the public key and private key ; For each encrypted data block , using the generated public key Encrypt and generate the corresponding ciphertext , the expression is: ; in, is an encryption function, the input is the original data and the public key , the output is the encrypted data ; Using Private Key Decrypt part of the ciphertext and compare it with the original data to ensure that it is correct. The expression is: ; in, is the decryption function, the input is the ciphertext and private key , the output is the decrypted data .

4. The computer batch data storage method based on blockchain as claimed in claim 3, characterized in that: The smart contract definition logic is used to allocate the encrypted data set to the corresponding storage level to obtain the data record of the allocated storage location. The specific steps are: Define smart contract rules; The smart contract rules include access frequency thresholds for data blocks, preferential allocation of hot data to storage systems with higher performance, and allocation of cold data to the more cost-effective decentralized storage platform IPFS; Deploy the smart contract on the blockchain platform and initialize relevant parameters. The expression is: ; in, Represents a smart contract instance, Contains all the parameters required for initialization; For the encrypted data block , assess whether it is hot data or cold data; Use average access frequency and set thresholds To make a judgment, the expression is: ; ; Based on the evaluation results, the smart contract automatically allocates the data block to the appropriate storage tier; For hot data, choose a high-performance storage system; For cold data, choose low-cost storage media.

5. The computer batch data storage method based on blockchain as claimed in claim 4, characterized in that: The detailed index record is created and saved on the blockchain to obtain the index record on the blockchain. The specific steps are: Create detailed index records for each allocated data block and save them on the blockchain; The index record includes the location information of the data block, the encryption key, and the metadata of the access rights, and the expression is: ; in, It is a function that creates index records, and the input is the encrypted data block , its storage location and the associated key , the output is index record .

6. The computer batch data storage method based on blockchain as claimed in claim 5, characterized in that: The method of using the index record query on the blockchain to determine the data location when retrieving specific data and obtain the verified data, the specific steps are: When specific data needs to be retrieved, the system receives a retrieval request from the user, which includes a unique identifier of the data block to be retrieved; According to the unique identifier in the retrieval request, the corresponding index record is retrieved from the blockchain; Extract the actual storage location of the data block and the necessary decryption key from the index record; According to the extracted storage location, obtaining the encrypted data block from the corresponding storage medium; Use the decryption key extracted from the index record to decrypt the encrypted data block and restore the original data. The expression is: ; in, Is the decryption function, the input is the encrypted data block and the decryption key , the output is the original data ; Use hash verification mechanism to verify the decrypted data to verify.

7. The computer batch data storage method based on blockchain as claimed in claim 6, characterized in that: The method of using security audit to check the integrity of data and the operating status of the system, obtain audit results, adjust the storage strategy based on the audit results, and obtain an optimized data storage strategy, the specific steps are: define comprehensive audit standards; The audit criteria include: Data integrity check: Verify that the data has not been tampered with; System performance evaluation: monitor the usage of storage resources; Security check: detect potential security threats or vulnerabilities; Collect necessary audit data from the system, including the hash value of each data block, status information of storage resources, and log records of any abnormal events; For each data block, calculate its current hash value and compare it with the hash value in the index record; Analyze storage resource usage, especially key performance indicators; The key performance indicators include remaining storage space, average access latency and throughput; Check system logs for any unusual behavior or potential security threats; Summarize all audit results and generate detailed audit reports.

8. A computer batch data storage system based on blockchain, based on the computer batch data storage method based on blockchain according to any one of claims 1 to 7, characterized in that: include: Data classification module, encryption processing module, smart contract allocation module, index record management module, data retrieval and verification module, and security audit module; The data classification module is used to analyze computer batch data and classify it into hot data and cold data according to access frequency to obtain a classified data set; The encryption processing module is used to encrypt the classified data set using a homomorphic encryption method to obtain an encrypted data set; The smart contract allocation module is used to define the smart contract logic and allocate the encrypted data set to the corresponding storage level to obtain the data record of the allocated storage location; The index record management module is used to create detailed index records and save them on the blockchain to obtain index records on the blockchain; The data retrieval and verification module is used to determine the data location when retrieving specific data by using a method of querying index records on the blockchain to obtain verified data; The security audit module is used to check the integrity of data and the operating status of the system using a security audit method, obtain audit results, and adjust the storage strategy based on the audit results to obtain an optimized data storage strategy.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the blockchain-based computer batch data storage method according to any one of claims 1 to 7 are implemented.

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

Citation Information

Patent Citations

  • Block chain data storage method based on fairness and access popularity

    CN113608670A

  • Network information security comprehensive analysis and monitoring system and method

    CN118413359A

  • Terminal interaction data storage security management method and system for instant messaging

    CN118764496A

  • Log-structured storage systems

    WO2019228575A2

  • Searchable encrypted data sharing method and system based on blockchain and homomorphic encryption

    WO2022007889A1

Cited By

  • Financial big data information processing system based on block chain

    CN120910886A

  • Big data platform cold and hot data automatic layering intelligent storage method and system

    CN121116198A

  • Block chain-based electricity selling transaction data tracing method and system

    CN121304199A

  • Blockchain-based power sale transaction data traceability method and system

    CN121304199B