Method and system for secure storage of agency data based on blockchain technology
Through the encryption processing and transmission of the data of the organs to the blockchain network, and the access conditions are set in the blockchain network, the problem of low confidentiality during the data storage of the agency in the existing technology is solved, and the efficient data of the data is realized. And safe storage.
Patent Information
- Application Number
- CN202410995662.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2044-07-24
AI Technical Summary
The blockchain-based data storage method in the prior art has privacy leaks due to the openness and transparency of all transactions and information, and the confidentiality of the agency data is not high when storing it.
By encrypting the stored agency data, the encryption efficiency index is obtained, and the encrypted agency data is obtained in combination with the preset encryption range. Transmit the encrypted agency data to the blockchain network for storage, obtain the transmission stability index, and obtain the first encrypted agency data based on the preset transmission range. According to the relevant index of the first encryption agency's data acquisition request conditions, access conditions are set in the blockchain network to ensure safe access to data.
It has improved the confidentiality of agency data storage, effectively solved the problem of privacy leakage, and ensured the security and confidentiality of data.
Smart Images

Figure CN118890140B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic digital data processing technology, and in particular to a method and system for secure storage of agency data based on blockchain technology. Background Art
[0002] With the continuous increase in data volume and the development of storage systems towards networking and distribution, data security storage has become increasingly important. Traditional storage systems face the risk of data leakage, tampering and destruction. The data security storage background of blockchain technology was born in the context of the global financial crisis. It was proposed to solve the problems of lack of trust and excessive intermediaries in the traditional financial system. Blockchain technology, with its unique characteristics of decentralization, immutability and transparency, provides new solutions for data security storage and has been widely used in finance, supply chain, medical and other fields. Blockchain technology eliminates the need for centralized intermediaries, allowing data to be distributed and verified among multiple nodes, thereby improving the reliability and security of data. Blockchain uses cryptography technology and consensus mechanism to ensure that data cannot be tampered with or deleted once written to the blockchain. This feature makes blockchain an ideal choice for data security storage.
[0003] The existing data storage method based on blockchain technology stores data in the form of a database. The database can protect data through backup and recovery. At the same time, the database supports concurrent access, allowing multiple users to read and write data at the same time.
[0004] For example, the invention patent announcement with announcement number: CN112732695B discloses a method for secure deduplication of cloud storage data based on blockchain, including: sending the generated file tag to the cloud storage service provider for duplication detection; if the result is that the file is duplicated, the user will generate a file duplication storage log, and execute the smart contract through the smart contract management center to integrate the storage log into a transaction and upload it to the blockchain for storage, so as to safely save the current storage status information; if the result is that the file is not duplicated, the key server generates the user's authority key by constructing a role-level hash tree, uses the authority key to perform secure encryption operations on the data, and uploads the ciphertext to the cloud storage server for storage; with the assistance of the smart contract management center, a file non-duplicate storage log and transaction are generated.
[0005] For example, the invention patent with announcement number CN113536358B announces a method for secure storage of private data based on blockchain, including: constructing several storage nodes, generating several copies for each data row, the number of copies matches the storage node, and the copies are associated with numbers; generating an obfuscated value for each field of the data row, and the obfuscated value falls within the range of the true value of the field; randomly distributing the true value of the data row field to several copies for storage, and filling the obfuscated value with the field that is not assigned to the true value; assigning several copies to several storage nodes for storage; the fields of the data row and the allowed length of the fields constitute a data structure; the storage block has an area for storing numbers; when retrieving private data from the storage node, use the private key to sign the number and send it to the storage node, and after verification by the storage node, provide a copy corresponding to the number.
[0006] However, in the process of implementing the technical solution of the invention in the embodiments of the present application, the present application found that the above technology has at least the following technical problems:
[0007] In the existing technology, since all transactions and information on the blockchain are open and transparent, any node can view and verify them, making all transaction records public. This may lead to privacy leaks and cause low confidentiality when storing agency data. Summary of the invention
[0008] The embodiments of the present application solve the problem of low confidentiality of agency data storage in the prior art by providing a method and device for secure storage of agency data based on blockchain technology, thereby improving the confidentiality of agency data storage.
[0009] An embodiment of the present application provides a method for secure storage of agency data based on blockchain technology, comprising the following steps: acquiring stored agency data according to preset data information, wherein the stored agency data includes sensitive information and storage quality information; encrypting the stored agency data to acquire an encryption efficiency index, and acquiring encrypted agency data in combination with a preset encryption range, wherein the encryption efficiency index is used to evaluate the quality of encryption processing of the stored agency data; transmitting the encrypted agency data to a blockchain network for storage and acquiring a transmission stability index, and acquiring first encrypted agency data in combination with a preset transmission range, wherein the transmission stability index is used to evaluate the accuracy of transmission during the transmission of the encrypted agency data, wherein the first encrypted agency data represents data in the encrypted agency data that meets preset conditions corresponding to the preset transmission range; acquiring a request condition-related index according to the first encrypted agency data, and setting access conditions in the blockchain network in combination with the request condition-related index, wherein the request condition-related index is used to describe the insecurity level of the access process of preset personnel.
[0010] Furthermore, the specific acquisition process of the stored agency data is as follows: classify the preset data information to obtain sensitive information; filter the stored agency data according to preset screening conditions to obtain storage quality information, the preset screening conditions are based on the conditions set in the historical agency data storage process, and the screening is used to obtain significant parameters in the historical agency data storage process, and the significant parameters include digital pulse width, effective discrete value, response time and number of communications in the agency data storage process.
[0011] Furthermore, the specific process of obtaining the encryption efficiency index is as follows: distributing quantum keys between the sender and receiver of the storage agency data according to the storage agency data, and the quantum keys are used to convert the storage agency data into ciphertext; measuring the number of communications through a counter and a synchronous clock at a first preset time point, and the first preset time point represents a time point set in the process of distributing the quantum key; measuring the number of communication paths through a counter at the first preset time point; measuring the quantum entanglement dimension through a quantum state analyzer at the first preset time point, and obtaining the encryption efficiency index in combination with the number of communications and the number of communication paths.
[0012] Furthermore, the encryption efficiency index is calculated using the following formula:
[0013]
[0014] In the formula, α represents the encryption efficiency index, T m represents the number of communications at the mth first preset time point, m=1, 2, ... n, m represents the number of the first preset time point, n represents the total number of the first preset time points, W m Indicates the number of communication paths at the mth first preset time point, N m represents the quantum entanglement dimension at the mth first preset time point, ΔQ represents the preset channel capacity threshold, and e represents a natural constant.
[0015] Furthermore, the specific process of obtaining the encrypted agency data is as follows: the encryption efficiency index is compared with the preset encryption range. If the encryption efficiency index is within the preset encryption range, it is judged that the storage agency data meets the preset encryption conditions, and the corresponding storage agency data is recorded as the encrypted agency data; otherwise, it is judged that the storage agency data does not meet the preset encryption conditions.
[0016] Furthermore, the specific acquisition process of the first encrypted agency data is as follows: at a second preset time point, the first width of the digital pulse is measured by a pulse width measuring instrument, and the second preset time point represents a time point set in the encrypted agency data transmission process; at the second preset time point, the first discrete value of the digital pulse is measured by a digital pulse counter, and a transmission stability index is obtained in combination with the first width of the digital pulse; the transmission stability index is compared with a preset transmission range. If the transmission stability index is within the preset transmission range, it is judged that the encrypted agency data meets the pre-transmission conditions and is recorded as the first encrypted agency data. Otherwise, it is judged that the initial encrypted agency data does not meet the preset transmission conditions.
[0017] Furthermore, the transmission stability index is calculated using the following formula:
[0018]
[0019] In the formula, β represents the transmission stability index, T i represents the first width of the i-th second preset time point, i=1,2,...r, i represents the number of the second preset time point, r represents the total number of the second preset time points, N i represents the first discrete value of the i-th second preset time point, T0 represents the preset width threshold, N0 represents the preset discrete threshold, ΔR represents the preset transmission threshold, and e represents a natural constant.
[0020] Furthermore, the specific setting process of the access conditions is as follows: at a third preset time point, a timer is used to measure the response time of the preset personnel's access, and the third preset time point represents the time period set in the process of the preset personnel accessing the first encryption agency data; at the third preset time point, a timer is used to measure the total access time; at the third preset time point, a counter is used to measure the number of accesses, and a request condition related index is obtained in combination with the response time and the total access time, and the request condition related index is compared with the preset access range. If the request condition related index exceeds the preset access range, a prohibited access prompt is sent to the preset personnel, otherwise a permitted access prompt is sent to the preset personnel.
[0021] Furthermore, the request condition related index is calculated using the following formula:
[0022]
[0023] In the formula, γ h represents the request condition related index of the hth third preset time period, h=1, 2, ..., f, h represents the number of the third preset time period, f represents the total number of the third preset time periods, N h represents the number of visits in the hth third preset time period, L hrepresents the response time of the hth third preset time period, T h represents the total access duration of the hth third preset time period, L0 represents the preset response threshold, T0 represents the preset duration threshold, N0 represents the preset number threshold, Δμ represents the preset throughput threshold, and e represents a natural constant.
[0024] The embodiment of the present application provides a method system for secure storage of agency data based on blockchain technology, including: a storage agency data acquisition module, an encryption agency data acquisition module, a first encryption agency data acquisition module and an access condition setting module; wherein the storage agency data acquisition module is used to acquire storage agency data according to preset data information, and the storage agency data includes sensitive information and storage quality information; the encryption agency data acquisition module is used to encrypt the storage agency data to obtain an encryption efficiency index, and acquire encrypted agency data in combination with a preset encryption range, and the encryption efficiency index is used to evaluate the quality of encryption processing of the storage agency data; the first encryption agency data acquisition module is used to transmit the encrypted agency data to the blockchain network for storage and acquire a transmission stability index, and acquire the first encryption agency data in combination with a preset transmission range, and the transmission stability index is used to evaluate the accuracy of transmission during the transmission of the encrypted agency data, and the first encryption agency data represents data in the encrypted agency data that meets the preset conditions corresponding to the preset transmission range; the access condition setting module is used to acquire a request condition related index according to the first encryption agency data, and set access conditions in the blockchain network in combination with the request condition related index, and the request condition related index is used to describe the insecurity of the preset personnel access process.
[0025] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
[0026] 1. The encryption efficiency index is obtained by encrypting the stored agency data, and the encrypted agency data is obtained in combination with the preset encryption range. The encrypted agency data is then transmitted to the blockchain network for storage and the transmission stability index is obtained. The first encrypted agency data is obtained in combination with the preset transmission range. Finally, the request condition related index is obtained according to the first encrypted agency data, and the access conditions are set in the blockchain network in combination with the request condition related index, thereby ensuring the security of the agency data storage process, and further improving the confidentiality of the agency data during storage, effectively solving the problem of low confidentiality of agency data in the prior art.
[0027] 2. The encryption efficiency index is obtained by encrypting the storage agency data, and then the encryption efficiency index is compared with the preset encryption range. If the encryption efficiency index is within the preset encryption range, it is judged that the storage agency data meets the preset encryption conditions and the encrypted agency data is obtained. Otherwise, it is judged that the storage agency data does not meet the preset encryption conditions, thereby realizing encryption of the data and then achieving the reliability of data acquisition.
[0028] 3. By transferring the encrypted agency data to the blockchain network for storage and obtaining the transmission stability index, and then comparing the transmission stability index with the preset transmission range, if the transmission stability index is within the preset transmission range, it is judged that the encrypted agency data meets the pre-transmission conditions and is recorded as the first encrypted agency data. Otherwise, it is judged that the initial encrypted agency data does not meet the preset transmission conditions, thereby realizing the numerical evaluation of the transmission accuracy of the encrypted agency data during transmission, and thus achieving the improvement of data storage security. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 A flowchart of a method for securely storing agency data based on blockchain technology provided in an embodiment of the present application;
[0030] Figure 2 A statistical graph showing changes in the transmission stability index provided in an embodiment of the present application;
[0031] Figure 3 A structural diagram of the system for secure storage of agency data based on blockchain technology provided in an embodiment of the present application. DETAILED DESCRIPTION
[0032] The embodiments of the present application solve the problem of low confidentiality in the storage of agency data in the prior art by providing a method and system for secure storage of agency data based on blockchain technology. The stored agency data is obtained through preset data information, and then the stored agency data is encrypted to obtain an encryption efficiency index, and the encrypted agency data is obtained in combination with a preset encryption range. The encrypted agency data is then transmitted to the blockchain network for storage and a transmission stability index is obtained, and the first encrypted agency data is obtained in combination with the preset transmission range. Finally, access conditions are set in the blockchain network according to the request condition-related index obtained from the first encrypted agency data. If the request condition-related index exceeds the preset access range, a prohibited access prompt is sent to the preset personnel to ensure the access security of the first encrypted agency data, thereby improving the confidentiality of the agency data.
[0033] The technical solution in the embodiment of the present application is to solve the problem of low confidentiality when storing the above-mentioned agency data. The overall idea is as follows:
[0034] By encrypting the stored agency data to obtain the encryption efficiency index and combining it with the preset encryption range to obtain the encrypted agency data, then obtaining the transmission stability index based on the encrypted agency data and combining it with the preset transmission range to obtain the first encrypted agency data, and finally setting access conditions in the blockchain network based on the request condition-related index obtained from the first encrypted agency data, the effect of improving the confidentiality of agency data storage is achieved.
[0035] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0036] like Figure 1 As shown, it is a flow chart of the method for secure storage of agency data based on blockchain technology provided by an embodiment of the present application. The method is applied to a method system for secure storage of agency data based on blockchain technology. The method includes the following steps: acquiring storage agency data according to preset data information, the storage agency data including sensitive information and storage quality information; encrypting the storage agency data to obtain an encryption efficiency index, and acquiring encrypted agency data in combination with a preset encryption range, the encryption efficiency index is used to evaluate the quality of encryption processing of the storage agency data, the encryption processing is to encrypt the storage agency data using a quantum key to ensure the confidentiality of the storage agency data, and the encrypted agency data represents the encrypted storage agency data; transmitting the encrypted agency data to the blockchain network for storage and obtaining a transmission stability index, and acquiring the first encrypted agency data in combination with the preset transmission range, the transmission stability index is used to evaluate the accuracy of transmission during the transmission of the encrypted agency data, the first encrypted agency data represents the data in the encrypted agency data that meets the preset conditions corresponding to the preset transmission range, and the blockchain network is used to improve the security of data storage; acquiring a request condition related index according to the first encrypted agency data, and setting access conditions in the blockchain network in combination with the request condition related index, the access conditions are used to prevent abnormal access to the first encrypted agency data, and the request condition related index is used to describe the insecurity of the preset personnel access process.
[0037] In this embodiment, the transmission stability index can be calculated in combination with the first width of the digital pulse. This is a key indicator for evaluating the quality of data transmission. A high transmission stability index indicates that the number of pulses during data transmission is stable and within the expected range. Otherwise, it may indicate that there are problems or instability in data transmission. The higher the encryption efficiency index, the better the quality of encryption processing for stored agency data. The smaller the request condition-related index, the higher the security level during access by preset personnel. This achieves improved confidentiality when storing agency data.
[0038] Furthermore, the specific acquisition process of stored agency data is as follows: classify the preset data information to obtain sensitive information, the classification is based on the purpose and nature of the stored agency data, sensitive information represents data that has been classified by purpose and nature, and the preset data information represents information that the agency needs to store; filter the stored agency data according to preset screening conditions to obtain storage quality information, the preset screening conditions are based on conditions set in the historical agency data storage process, and the screening is used to obtain significant parameters in the historical agency data storage process, the storage quality information represents significant parameters in the historical agency data storage process, and the significant parameters include digital pulse width, valid discrete value, and response time communication times in the agency data storage process.
[0039] In this embodiment, preset data information generally refers to various data that an agency or system has predetermined to be stored and processed, generally involving the agency's transactions, business activities, orders, etc.; the data is stored according to its purpose and nature to obtain sensitive information so that the agency can understand and manage the data. Significant parameters can help the agency understand the performance of the storage system and how it processes data. When processing stored agency data, data protection and privacy regulations must be strictly observed to ensure that the security and confidentiality of the data are not violated. The use of automated data processing can improve the efficiency and accuracy of data acquisition and storage quality information; the confidentiality of agency data is improved.
[0040] Furthermore, the specific process of obtaining the encryption efficiency index is as follows: quantum keys are distributed between the sender and the receiver according to the storage agency data, and the quantum keys are used to convert the storage agency data into ciphertext; the number of communications is measured by a counter and a synchronous clock at a first preset time point, and the first preset time point represents the time point set in the process of distributing the quantum key, and the number of communications represents the number of communications of the relay entangled quantum pairs that can be controlled within 1 second; the number of communication paths is measured by a counter at the first preset time point, and the number of communication paths represents the number of communication paths of the relay entangled quantum pairs; the quantum entanglement dimension is measured by a quantum state analyzer at the first preset time point, and the encryption efficiency index is obtained in combination with the number of communications and the number of communication paths.
[0041] In this embodiment, the quantum key uses the principles of quantum mechanics, such as the no-cloning theorem and measurement non-interference, to ensure that the key can only be known by the legitimate communicating parties. This non-cloning property ensures that the key cannot be eavesdropped or cracked. The key distributed through the quantum channel will not leak information even if it is intercepted during the transmission process. This is because the intercepted quantum state will be destroyed, and the communicating parties will be aware of the potential eavesdropping behavior, thereby discarding the current key and trying to redistribute it. The counter can determine the transmission frequency and stability of the quantum signal within a certain period of time, thereby evaluating the performance of the system and possible attack risks. During the quantum key distribution process, the synchronous clock is used to ensure the time synchronization of the sender and the receiver. Time synchronization is the key to ensuring quantum state measurement and quantum key distribution, so as to ensure the timing correctness of the measurement and the real-time nature of the communication; it achieves the improvement of confidentiality when storing agency data.
[0042] Furthermore, the encryption efficiency index is calculated using the following formula:
[0043]
[0044] In the formula, α represents the encryption efficiency index, T m represents the number of communications at the mth first preset time point, m=1, 2, ... n, m represents the number of the first preset time point, n represents the total number of the first preset time points, W m Indicates the number of communication paths at the mth first preset time point, N m represents the quantum entanglement dimension at the mth first preset time point, ΔQ represents the preset channel capacity threshold, and e represents a natural constant.
[0045] In this embodiment, the preset channel capacity threshold is a value set based on the relevant data stored in the database of the relevant agency data. The number of communications T m The range is 0-100 (times), the number of communication channels is W m The range is 5-30 (paths), and the quantum entanglement dimension N m The range is 1-10, and the preset channel capacity threshold is 100 (bps). Without considering multiple times, assuming n = 1, the change table of the encryption efficiency index is shown in Table 1:
[0046] Table 1 Changes in encryption efficiency index
[0047]
[0048] As can be seen from Table 1, as the number of communications T m The number of communication paths W m The gradual increase of and the quantum entanglement dimension N mAs the encryption efficiency index α gradually increases, the encryption efficiency index α also gradually increases. The larger the encryption efficiency index α is, the better the quality of encryption processing for storage agency data is; the confidentiality of agency data storage is improved.
[0049] Furthermore, the specific process of obtaining the encrypted agency data is as follows: the encryption efficiency index is compared with the preset encryption range. If the encryption efficiency index is within the preset encryption range, it is judged that the storage agency data meets the preset encryption conditions, and the corresponding storage agency data is recorded as the encrypted agency data; otherwise, it is judged that the storage agency data does not meet the preset encryption conditions.
[0050] In this embodiment, statistics and analysis are performed on the data in the process of storing agency data in a historical period to obtain a preset encryption range. For example, a linear regression model between the encryption efficiency index and the parameters can be established based on historical data, and the Pearson correlation coefficient can be used to evaluate the linear relationship between variables. The linear regression model can be trained using the collected historical data, and the established model can be used to make predictions or inferences. The estimated value of the preset encryption range is obtained by taking the average value of the prediction results of the model; statistics and analysis are performed on the agency data stored in the historical period, and the average value is taken based on the analysis results to determine the characteristics, magnitude, sensitivity, etc. of the data. These data may include confidential documents, personal information, financial data, etc., to ensure the security of agency data during storage and transmission, prevent data from being accessed or tampered with by unauthorized parties, and ensure that data stored in the agency is properly encrypted and protected to protect sensitive information, reduce security risks, and comply with regulatory requirements; and improve the confidentiality of agency data when it is stored.
[0051] Furthermore, the specific acquisition process of the first encrypted agency data is as follows: at a second preset time point, a first width of a digital pulse is measured by a pulse width meter, the second preset time point represents a time point set during the encrypted agency data transmission process, and the first width represents the width of a digital pulse during the encrypted agency data transmission process; at the second preset time point, a first discrete value of the digital pulse is measured by a digital pulse counter, the first discrete value represents the number of valid discrete values of the digital pulse during the encrypted agency data transmission process, and a transmission stability index is obtained in combination with the first width of the digital pulse; the transmission stability index is compared with a preset transmission range, if the transmission stability index is within the preset transmission range, it is judged that the encrypted agency data meets the pre-transmission conditions and is recorded as the first encrypted agency data, otherwise it is judged that the initial encrypted agency data does not meet the preset transmission conditions.
[0052] In this embodiment, statistics and analysis are performed on data in the process of storing agency data within a historical period to obtain a preset transmission range. For example, a linear regression model between a transmission stability index and parameters can be established based on historical data, and the Pearson correlation coefficient can be used to evaluate the linear relationship between variables. The collected historical data is used to train the linear regression model, and the established model is used to make predictions or inferences. An estimated value of the preset transmission range is obtained by taking the average value of the prediction results of the model. A valid discrete value usually refers to a discrete value that is defined as valid or meaningful in data transmission. A pulse width meter is mainly used to measure the time width of a pulse signal, that is, the length of time that a pulse lasts on the time axis. A digital pulse counter is used to accurately count the number of pulses in a digital signal. The pulse width meter and the digital pulse counter provide reliable data support for determining whether encrypted agency data meets preset transmission conditions by measuring and counting the width and number of digital pulses. By measuring the pulse width and discrete values, the rate, stability and quality of data transmission can be evaluated, thereby improving the confidentiality of agency data storage.
[0053] Furthermore, the transmission stability index is calculated using the following formula:
[0054]
[0055] In the formula, β represents the transmission stability index, T i represents the first width of the i-th second preset time point, i=1,2,...r, i represents the number of the second preset time point, r represents the total number of the second preset time points, N i represents the first discrete value of the i-th second preset time point, T0 represents the preset width threshold, N0 represents the preset discrete threshold, ΔR represents the preset transmission threshold, and e represents a natural constant.
[0056] In this embodiment, the preset width threshold is a value set based on the relevant data stored in the relevant agency data in the database, the preset discrete threshold is a value set based on the relevant data stored in the relevant agency data in the database, and the preset transmission threshold is a value set based on the relevant data stored in the relevant agency data in the database; Figure 2 As shown, it is a statistical diagram of the transmission stability index provided in the embodiment of the present application, where it is assumed that the total number of preset time points r=100, the first width T i The range is 0-50 (ns), the first discrete value N i The range is 1-500, and N i Take the integer power of 2, the preset width threshold T0 is 25 (ns), the preset modulation level threshold N0 is 32, and the preset transmission threshold is 100 (bps). It can be seen from the figure that as the first width T i The gradual decrease and the first discrete value N iThe transmission change index gradually increases. The larger the transmission change index is, the higher the accuracy of the transmission during the encrypted agency data transmission process is, and the confidentiality of agency data storage is improved.
[0057] Furthermore, the specific setting process of the access conditions is as follows: at a third preset time point, a response time of the preset personnel's access is measured by a timer, the third preset time point represents the time period set during the preset personnel's access to the first encryption agency data, and the response time represents the average processing time of each access request; at the third preset time point, a total access time is measured by a timer, the total access time represents the total time of the preset personnel's access, at the third preset time point, a counter is used to measure the number of accesses, and a request condition related index is obtained in combination with the response time and the total access time; the request condition related index is compared with the preset access range, and if the request condition related index exceeds the preset access range, a prohibited access prompt is sent to the preset personnel to ensure the security of the first encryption agency data, otherwise an access acceptance prompt is sent to the preset personnel.
[0058] In this embodiment, the data in the process of storing the agency data in the historical period is statistically analyzed to obtain the preset access range. For example, a linear regression model between the request condition related index and the parameter can be established based on the historical data, and the Pearson correlation coefficient can be used to evaluate the linear relationship between the variables. The linear regression model can be trained using the collected historical data, and the established model can be used to predict or infer. The estimated value of the preset access range is obtained by taking the average value of the prediction results of the model. The timer is used to measure the time interval or the passage of time. It usually uses a certain clock signal as a reference and can accurately measure the time difference between the occurrence of one event and the occurrence of another event. The counter is used to count the number of occurrences of a specific event or signal. It can count electronic pulses, trigger signals, input pulses, etc., and is used to record the number of occurrences of events in real time. The timer is used to measure the average processing time of each preset personnel access request. It starts and stops the timing to track the time taken for each request from the beginning to the end. These response time measurements are crucial to evaluating the system response efficiency and help ensure that the system can respond to access requests in a timely manner within the preset time period; the confidentiality of the agency data is improved.
[0059] Furthermore, the request condition relevance index is calculated using the following formula:
[0060]
[0061] In the formula, γ h represents the request condition related index of the hth third preset time period, h=1, 2, ..., f, h represents the number of the third preset time period, f represents the total number of the third preset time periods, N hrepresents the number of visits in the hth third preset time period, L h represents the response time of the hth third preset time period, T h represents the total access duration of the hth third preset time period, L0 represents the preset response threshold, T0 represents the preset duration threshold, N0 represents the preset number threshold, Δμ represents the preset throughput threshold, and e represents a natural constant.
[0062] In this embodiment, the expression of the number of visits in the hth third preset time period is: Among them, N h ′ is the number of visits in the hth third preset time period, N h 0 is the reference access number data of the hth third preset time period, ΔN h is the reference deviation of the number of visits, Among them, L h ′ is the response time data of the hth third preset time period, L h 0 is the reference response time data of the hth third preset time period, ΔL h is the response time reference deviation, Among them, T h ′ is the total access duration data of the hth third preset time period, T h 0 Reference access total duration data of the hth third preset time period, ΔT h The reference deviation for the total duration of the visit.
[0063] It should be understood that the preset response threshold is a value set based on the relevant data of the relevant agency data storage in the database, the preset number threshold is a value set based on the relevant data of the relevant agency data storage in the database, the preset duration threshold is a value set based on the relevant data of the relevant agency data storage in the database, the preset throughput threshold is a value set based on the relevant data of the relevant agency data storage in the database, the access number data of the hth third preset time period is obtained by measurement, the response time data of the hth third preset time period is obtained by measurement, the total access duration data of the hth third preset time period is obtained by measurement, and the reference access number data is obtained by taking the average value after statistical analysis of the access number data of the hth third preset time period. It indicates that the reference response time data is expressed by taking the average value after statistical analysis on the response time data of the hth third preset time period, and the reference total access time data is expressed by taking the average value after statistical analysis on the total access time data of the hth third preset time period; the response time reference deviation is obtained by calculating the response time data and the response time reference data through the deviation formula, the access number reference deviation is obtained by calculating the access number data and the access number reference data through the deviation formula, and the total access time reference deviation is obtained by calculating the total access time data and the total access time reference data through the deviation formula, wherein the deviation formula is the difference between the reference data and the corresponding measured value; the confidentiality of the agency data is improved when it is stored.
[0064] like Figure 3As shown, it is a structural diagram of the system of the method for secure storage of agency data based on blockchain technology provided in the embodiment of the present application. The system of the method for secure storage of agency data based on blockchain technology provided in the embodiment of the present application includes: a storage agency data acquisition module, an encryption agency data acquisition module, a first encryption agency data acquisition module and an access condition setting module; wherein the storage agency data acquisition module is used to acquire storage agency data according to preset data information, and the storage agency data includes sensitive information and storage quality information; the encryption agency data acquisition module is used to encrypt the storage agency data to obtain an encryption efficiency index, and acquire the encrypted agency data in combination with the preset encryption range, the encryption efficiency index is used to evaluate the quality of the encryption processing of the storage agency data, and the encryption processing is to encrypt the storage agency data using a quantum key to ensure the storage agency data The confidentiality of data is ensured, and the encrypted agency data represents the stored agency data that has been encrypted; the first encrypted agency data acquisition module is used to transmit the encrypted agency data to the blockchain network for storage and obtain the transmission stability index, and obtain the first encrypted agency data in combination with the preset transmission range. The transmission stability index is used to evaluate the accuracy of the transmission during the encrypted agency data transmission process. The first encrypted agency data represents the data in the encrypted agency data that meets the preset conditions corresponding to the preset transmission range. The blockchain network is used to improve the security of data storage; the access condition setting module is used to obtain the request condition related index according to the first encrypted agency data, and set the access condition in the blockchain network in combination with the request condition related index. The access condition is used to prevent abnormal access to the first encrypted agency data, and the request condition related index is used to describe the insecurity level of the preset personnel access process.
[0065] In this embodiment, storage agency data acquisition is to acquire storage agency data based on preset data information, encryption agency data acquisition is to encrypt storage agency data to obtain encryption efficiency index, and obtain encrypted agency data in combination with preset encryption range, first encryption agency data acquisition is to transmit encrypted agency data to blockchain network for storage and obtain transmission stability index, and obtain first encryption agency data in combination with preset transmission range, access condition setting is to acquire request condition related index based on first encryption agency data, and set access condition in blockchain network in combination with request condition related index; the confidentiality of agency data is improved when it is stored.
[0066] To summarize, the embodiment of the present application obtains an encryption efficiency index by encrypting the stored agency data, and obtains encrypted agency data in combination with a preset encryption range, then transmits the encrypted agency data to the blockchain network for storage and obtains a transmission stability index, and obtains the first encrypted agency data in combination with the preset transmission range, and finally obtains a request condition related index based on the first encrypted agency data, and sets access conditions in the blockchain network in combination with the request condition related index, thereby ensuring the security of the agency data storage process, and further improving the confidentiality of the agency data during storage, effectively solving the problem of low confidentiality of agency data storage in the prior art.
[0067] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0068] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0069] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0070] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0071] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0072] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for secure storage of institutional data based on blockchain technology, characterized in that: The following steps are involved: S1, acquiring storage agency data according to preset data information, wherein the storage agency data includes sensitive information and storage quality information; S2, encrypting the storage agency data to obtain an encryption efficiency index, and obtaining encrypted agency data in combination with a preset encryption range, wherein the encryption efficiency index is used to evaluate the quality of the encryption processing of the storage agency data; S3, transmitting the encrypted authority data to the blockchain network for storage and obtaining a transmission stability index, and obtaining first encrypted authority data in combination with a preset transmission range, wherein the transmission stability index is used to evaluate the transmission accuracy of the encrypted authority data during transmission, and the first encrypted authority data represents data in the encrypted authority data that meets preset conditions corresponding to the preset transmission range; S4, according to the first encryption authority data acquisition request condition related index, in combination with the request condition related index, setting access conditions in the blockchain network, wherein the request condition related index is used to describe the insecurity level of the access process of the preset personnel; The specific process of obtaining the encryption efficiency index is as follows: Distributing a quantum key between a sender and a receiver based on the storage mechanism data, wherein the quantum key is used to convert the storage mechanism data into ciphertext; Measuring the number of communications by a counter and a synchronous clock at a first preset time point, wherein the first preset time point represents a time point set in the process of distributing a quantum key; Measuring the number of communication paths by a counter at a first preset time point; At a first preset time point, the quantum entanglement dimension is measured by a quantum state analyzer, and the encryption efficiency index is obtained by combining the number of communications and the number of communication paths; The encryption efficiency index is calculated using the following formula: In the formula, α represents the encryption efficiency index, T m represents the number of communications at the mth first preset time point, m=1, 2, ... n, m represents the number of the first preset time point, n represents the total number of the first preset time points, W m Indicates the number of communication paths at the mth first preset time point, N m represents the quantum entanglement dimension at the mth first preset time point, ΔQ represents the preset channel capacity threshold, and e represents a natural constant; The transmission stability index is calculated using the following formula: In the formula, β represents the transmission stability index, T i represents the first width of the i-th second preset time point, i=1,2,...r, i represents the number of the second preset time point, r represents the total number of the second preset time points, N i represents the first discrete value at the i-th second preset time point, T0 represents the preset width threshold, N0 represents the preset discrete threshold, ΔR represents the preset transmission threshold, and e represents a natural constant; The request condition related index is calculated using the following formula: In the formula, γ h represents the request condition related index of the hth third preset time period, h=1, 2, ..., f, h represents the number of the third preset time period, f represents the total number of the third preset time periods, N h represents the number of visits in the hth third preset time period, L h represents the response time of the hth third preset time period, T h represents the total access duration of the hth third preset time period, L0 represents the preset response threshold, T0 represents the preset duration threshold, N0 represents the preset number threshold, Δμ represents the preset throughput threshold, and e represents a natural constant.
2. The method for secure storage of agency data based on blockchain technology as claimed in claim 1, characterized in that: The specific acquisition process of the storage agency data is as follows: Classify the preset data information to obtain sensitive information; The stored agency data is filtered according to preset filtering conditions to obtain storage quality information, and the filtering is used to obtain significant parameters in the historical agency data storage process, and the significant parameters include digital pulse width, effective discrete value, response time and number of communications in the agency data storage process.
3. The method for secure storage of agency data based on blockchain technology as claimed in claim 1, characterized in that: The specific process of obtaining the encrypted authority data is as follows: The encryption efficiency index is compared with the preset encryption range. If the encryption efficiency index is within the preset encryption range, it is judged that the storage agency data meets the preset encryption conditions, and the corresponding storage agency data is recorded as encryption agency data. Otherwise, it is judged that the storage agency data does not meet the preset encryption conditions.
4. The method for secure storage of agency data based on blockchain technology as claimed in claim 1, characterized in that: The specific process of obtaining the first encrypted authority data is as follows: measuring the first width of the digital pulse by a pulse width measuring instrument at a second preset time point, wherein the second preset time point represents a time point set during the encryption authority data transmission process; At a second preset time point, a first discrete value of a digital pulse is measured by a digital pulse counter, and a transmission stability index is obtained in combination with a first width of the digital pulse; The transmission stability index is compared with the preset transmission range. If the transmission stability index is within the preset transmission range, the encryption agency data is judged to meet the pre-transmission conditions and is recorded as the first encryption agency data. Otherwise, the initial encryption agency data is judged to not meet the preset transmission conditions.
5. The method for secure storage of agency data based on blockchain technology as claimed in claim 1, characterized in that: The specific setting process of the access conditions is as follows: Measuring the response time of the preset personnel access by a timer at a third preset time point, wherein the third preset time point represents a time period set during the process of the preset personnel accessing the first encryption authority data; At a third preset time point, the total duration of the visit is measured by a timer; At a third preset time point, the number of accesses is measured by a counter, and a request condition related index is obtained by combining the response time and the total access duration; The request condition related index is compared with the preset access range. If the request condition related index exceeds the preset access range, a prohibited access prompt is sent to the preset personnel, otherwise an accepted access prompt is sent to the preset personnel.
6. A system for secure storage of institutional data based on blockchain technology, for executing a method for secure storage of institutional data based on blockchain technology as claimed in any one of claims 1 to 5, characterized in that: include: A storage agency data acquisition module, an encryption agency data acquisition module, a first encryption agency data acquisition module and an access condition setting module; Wherein, the storage agency data acquisition module is used to acquire storage agency data according to preset data information, and the storage agency data includes sensitive information and storage quality information; The encryption agency data acquisition module is used to encrypt the storage agency data to obtain the encryption efficiency index, and obtain the encryption agency data in combination with the preset encryption range, and the encryption efficiency index is used to evaluate the quality of the encryption processing of the storage agency data; The first encryption authority data acquisition module is used to transmit the encryption authority data to the blockchain network for storage and to obtain a transmission stability index, and to obtain the first encryption authority data in combination with a preset transmission range, wherein the transmission stability index is used to evaluate the transmission accuracy of the encryption authority data during transmission, and the first encryption authority data represents data in the encryption authority data that meets a preset condition corresponding to a preset transmission range; The access condition setting module is used to obtain a request condition related index based on the first encryption authority data, and to set access conditions in the blockchain network in combination with the request condition related index. The request condition related index is used to describe the degree of insecurity during the access process of preset personnel.
Citation Information
Patent Citations
A blockchain-based method for secure deduplication of cloud storage data
CN112732695B
A blockchain-based method for secure storage of privacy-preserving data
CN113536358B
Safe network in-band measurement method based on block chain technology
CN110417739A
Cloud storage data security deduplication method based on block chain
CN112732695A