A blockchain-based data archiving method and device
Patent Information
- Application Number
- CN202111385598.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-22
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2041-11-22
AI Technical Summary
[0004]上述专利保证了电子数据在存储后依然具有真实性、完整性,以便后续对于电子数据的读取,但是在某些场景下,数据存证需求方由于对数据安全和隐私保护有严格要求,不希望将存证数据存放于不受其控制的服务器端
[0028] This invention stores the encrypted evidence data in a dedicated local storage device of the data owner, eliminating the need to transmit it to a server that is not controlled by the data evidence requester. This solves the problem that existing evidence storage technologies are not suitable for certain scenarios with strict requirements for data security and privacy protection.
Smart Images

Figure CN116150258B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of blockchain technology, and in particular to a data storage method and apparatus based on blockchain. Background Technology
[0002] Existing blockchain-based evidence storage technologies typically transmit evidence data to a server. The server uses a hash algorithm to obtain the hash value of the evidence data, binds the hash value with the evidence parameters, and then sends it to the blockchain for on-chain evidence storage. By directly transmitting the evidence data to the server, user-controlled device tampering with the data is prevented, ensuring its authenticity. Furthermore, storing the hash value of the evidence data on the blockchain further guarantees that the data cannot be tampered with or replaced.
[0003] Chinese invention patent CN202110255707.7 discloses a blockchain-based method for storing electronic data. The method includes: acquiring electronic data, storing the electronic data in a target block corresponding to a first target node on the blockchain, the first target node including multiple nodes, and the electronic data being published by a second target node on the blockchain; providing judicial endorsement to the electronic data to generate a corresponding judicial mark; and storing the judicial mark corresponding to the electronic data in the target block corresponding to the first target node on the blockchain.
[0004] The aforementioned patents ensure that electronic data retains its authenticity and integrity after storage, facilitating subsequent retrieval. However, in certain scenarios, data storage requests have stringent requirements for data security and privacy protection, and therefore do not wish to store the data on servers beyond their control. This renders the aforementioned data storage technologies unsuitable for these situations. Therefore, this paper proposes a blockchain-based data storage method and apparatus. Summary of the Invention
[0005] To address the aforementioned problems, this invention provides a blockchain-based data notarization method, comprising the following steps:
[0006] S1 transmits the encrypted evidence storage data, its description information, and data number to the local dedicated evidence storage device through the data source device, and calculates the corresponding data hash value and information hash value accordingly.
[0007] S2 binds the previous time, data hash value, information hash value, description information of the data to be stored, and data number through a local dedicated storage device and then sends them to the storage server.
[0008] The S3 evidence storage server calculates the information hash value based on the received information. If it matches the hash value in S1, the information is then overlaid with the server's current time and uploaded to the blockchain.
[0009] The S4 evidence storage server records the above information on the blockchain with a number and returns the number to the local dedicated evidence storage device and the data source device.
[0010] Furthermore, in the method, the data hash value is a hash value calculated based on the encrypted data to be certified; the information hash value is a hash value calculated based on the descriptive information of the data to be certified.
[0011] Furthermore, in the method, the dedicated evidence storage device is connected to the evidence storage server via the Internet.
[0012] Furthermore, in the method, the current time of the evidence storage server is synchronized with the current time of the blockchain network.
[0013] Furthermore, in the method, the current time of the local dedicated evidence storage device is synchronized by the evidence storage server or by configuring a satellite positioning and navigation module for it.
[0014] On another level, the present invention provides a data storage device based on blockchain, including a blockchain, which consists of a data layer, a network layer, a consensus layer, an incentive layer, a contract layer and an application layer;
[0015] The evidence storage server is used to calculate the information hash value, and after adding the current time to the received information, it uploads it to the blockchain and returns the number on the blockchain to the dedicated evidence storage device and data source.
[0016] A local dedicated evidence storage device is connected to the evidence storage server, calculates the data hash value and the information hash value, and sends the data hash value, information hash value, description information of the data to be stored, and data number bound to the current time to the evidence storage server.
[0017] The data source device is connected to the local dedicated evidence storage device, used to encrypt the evidence storage data, and transmit the data, its description information, and data number to the local dedicated evidence storage device.
[0018] Furthermore, the dedicated evidence storage device is connected to the data source device via any one of LAN, USB, WIFI, or Bluetooth.
[0019] Furthermore, the description information of the data to be stored includes the data generation time, data size, and device ID attribute provided by the data source device.
[0020] Furthermore, the local dedicated evidence storage device is used to receive the blockchain number returned by the evidence storage server.
[0021] Furthermore, the data layer encapsulates underlying data blocks as well as related basic data and algorithms such as data encryption, timestamps, and numbering.
[0022] Furthermore, the network layer includes a distributed networking mechanism, a data propagation mechanism, and a data verification mechanism.
[0023] Furthermore, the consensus layer mainly encapsulates various consensus algorithms for network nodes.
[0024] Furthermore, the incentive layer integrates economic factors into the blockchain technology system, mainly including the issuance and distribution mechanisms of economic incentives.
[0025] Furthermore, the contract layer mainly encapsulates various scripts, algorithms, and smart contracts, which is the foundation of the programmable nature of blockchain.
[0026] Furthermore, the application layer encapsulates various application scenarios and cases of blockchain.
[0027] The beneficial effects of this invention are as follows:
[0028] This invention stores the encrypted evidence data in a dedicated local storage device of the data owner, eliminating the need to transmit it to a server that is not controlled by the data evidence requester. This solves the problem that existing evidence storage technologies are not suitable for certain scenarios with strict requirements for data security and privacy protection. Attached Figure Description
[0029] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0030] Figure 1 A step diagram illustrating a blockchain-based data storage method provided in this application embodiment;
[0031] Figure 2 A timing diagram for a specific implementation of the embodiments of this application. Detailed Implementation
[0032] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0033] The terminology used in the embodiments of this invention is for the purpose of describing particular embodiments only and is not intended to limit the invention. The singular forms “a,” “the,” and “the” used in the embodiments of this invention and the appended claims are also intended to include the plural forms, unless the context clearly indicates otherwise. “Multiple” generally includes at least two, but does not exclude the inclusion of at least one.
[0034] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.
[0035] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a product or system comprising a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a product or system. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the product or system that includes said element.
[0036] Example 1
[0037] This embodiment provides, for example Figure 1 The blockchain-based data storage method shown includes the following steps:
[0038] S1 transmits the encrypted evidence storage data, its description information, and data number to the local dedicated evidence storage device through the data source device, and calculates the corresponding data hash value and information hash value accordingly.
[0039] S2 binds the previous time, data hash value, information hash value, description information of the data to be stored, and data number through a local dedicated storage device and then sends them to the storage server.
[0040] The S3 evidence storage server calculates the information hash value based on the received information. If it matches the hash value in S1, the information is then overlaid with the server's current time and uploaded to the blockchain.
[0041] The S4 evidence storage server records the above information on the blockchain with a number and returns the number to the local dedicated evidence storage device and the data source device.
[0042] In this embodiment, the data hash value is calculated based on the encrypted data to be certified; the information hash value is calculated by calculating the hash value of the descriptive information of the data to be certified.
[0043] In this embodiment, the encrypted evidence data is stored in the local dedicated storage device of the data owner, without the need to transmit it to the server that is not controlled by the data evidence requester.
[0044] Example 2
[0045] In terms of specific applications, this embodiment takes the example of a data source device periodically transmitting encrypted data to be stored to a local dedicated evidence storage device, and the details are described as follows:
[0046] The data source device encrypts the data to be stored and then transmits it to the local dedicated storage device of the data source in a periodic manner. At the same time, the description information and data number of the data to be stored are also transmitted.
[0047] After receiving the above information, the local dedicated evidence storage device calculates the hash value based on the encrypted data to be stored and records it as the first hash value, and calculates the hash value of the description information of the data to be stored and records it as the second hash value.
[0048] The local dedicated evidence storage device binds the current time, the first hash value, the second hash value, the description information of the data to be stored, and the data number, and then sends them to the evidence storage server;
[0049] After receiving the above information, the evidence storage server calculates the second hash value in the same way as the above-mentioned dedicated evidence storage device. If the calculation results are consistent, the data after adding the above information to the server's current time is uploaded to the blockchain.
[0050] After successful on-chain storage, the evidence storage server records the number of the above data on the blockchain and returns the number to the local dedicated evidence storage device and the data source device.
[0051] In this embodiment, the connection between the local dedicated evidence storage device and the data source device is via LAN or USB.
[0052] In this embodiment, the local dedicated evidence storage device and the evidence storage server are connected via the Internet.
[0053] In this embodiment, the current time of the local dedicated evidence storage device is provided by the evidence storage server or by configuring a satellite positioning and navigation module for it.
[0054] In this embodiment, the current time of the evidence storage server is synchronized with the current time of the blockchain network.
[0055] The results have been verified that this embodiment solves the problem that existing evidence preservation technologies are not suitable for certain scenarios with strict requirements for data security and privacy protection.
[0056] Example 3
[0057] In terms of specific applications, this embodiment takes the example of a data source device transmitting encrypted data to be stored to a local dedicated evidence storage device in the form of streaming data, and the details are described as follows:
[0058] The data source device encrypts the data to be stored and then transmits it to the local dedicated storage device of the data source as streaming data. At the same time, the description information and data number of the data to be stored are also transmitted.
[0059] After receiving the above information, the local dedicated evidence storage device calculates the hash value based on the encrypted data to be stored and records it as the first hash value, and calculates the hash value of the description information of the data to be stored and records it as the second hash value.
[0060] The local dedicated evidence storage device binds the current time, the first hash value, the second hash value, the description information of the data to be stored, and the data number, and then sends them to the evidence storage server;
[0061] After receiving the above information, the evidence storage server calculates the second hash value in the same way as the above-mentioned dedicated evidence storage device. If the calculation results are consistent, the data after adding the above information to the server's current time is uploaded to the blockchain.
[0062] After successful on-chain storage, the evidence storage server records the number of the above data on the blockchain and returns the number to the local dedicated evidence storage device and the data source device.
[0063] In this embodiment, the connection between the local dedicated evidence storage device and the data source device is via WIFI or Bluetooth.
[0064] In this embodiment, the local dedicated evidence storage device and the evidence storage server are connected via the Internet.
[0065] In this embodiment, the current time of the local dedicated evidence storage device is provided by the evidence storage server or by configuring a satellite positioning and navigation module for it.
[0066] In this embodiment, the current time of the evidence storage server is synchronized with the current time of the blockchain network.
[0067] The results have been verified that this embodiment solves the problem that existing evidence preservation technologies are not suitable for certain scenarios with strict requirements for data security and privacy protection.
[0068] Example 4
[0069] This embodiment provides a blockchain-based data storage device, the timing diagram of which is as follows: Figure 2 As shown, specifically including
[0070] Blockchain consists of a data layer, a network layer, a consensus layer, an incentive layer, a contract layer, and an application layer.
[0071] The evidence storage server is used to calculate the information hash value, and after adding the current time to the received information, it uploads it to the blockchain and returns the number on the blockchain to the dedicated evidence storage device and data source.
[0072] A local dedicated evidence storage device is connected to the evidence storage server, calculates the data hash value and the information hash value, and sends the data hash value, information hash value, description information of the data to be stored, and data number bound to the current time to the evidence storage server.
[0073] The data source device is connected to the local dedicated evidence storage device, used to encrypt the evidence storage data, and transmit the data, its description information, and data number to the local dedicated evidence storage device.
[0074] In this embodiment, the dedicated evidence storage device can be connected to the data source device via any one of LAN, USB, WIFI, or Bluetooth.
[0075] In this embodiment, the description information of the data to be stored includes the data generation time, data size, and device ID attribute provided by the data source device.
[0076] In this embodiment, the local dedicated evidence storage device is used to receive the blockchain number returned by the evidence storage server.
[0077] In this embodiment, the data layer encapsulates the underlying data blocks as well as related basic data and algorithms such as data encryption, timestamps, and numbering.
[0078] The network layer in this embodiment includes a distributed networking mechanism, a data propagation mechanism, and a data verification mechanism.
[0079] In this embodiment, the consensus layer mainly encapsulates various consensus algorithms for network nodes.
[0080] In this embodiment, the incentive layer integrates economic factors into the blockchain technology system, mainly including the issuance and distribution mechanisms of economic incentives.
[0081] The contract layer in this embodiment mainly encapsulates various scripts, algorithms, and smart contracts, which is the foundation of the programmable nature of blockchain.
[0082] The application layer of this embodiment encapsulates various application scenarios and cases of blockchain.
[0083] In summary, this invention stores the encrypted evidence data in a dedicated local storage device of the data owner, eliminating the need to transmit it to a server that is not controlled by the data evidence requester. This solves the problem that existing evidence storage technologies are not suitable for certain scenarios with strict requirements for data security and privacy protection.
[0084] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0085] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of a necessary general-purpose hardware platform, or by a combination of hardware and software. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a computer product. The present invention can 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.
[0086] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable resource update device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable resource update device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0087] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable resource update device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0088] These computer program instructions may also be loaded onto a computer or other programmable resource update device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable device for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0089] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0090] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0091] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0092] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A data storage method based on blockchain, characterized in that, The method includes the following steps: S1 transmits the encrypted evidence storage data, its description information, and data number to the local dedicated evidence storage device through the data source device, and calculates the corresponding data hash value and information hash value accordingly. S2 binds the current time, data hash value, information hash value, description information of the data to be stored, and data number to the storage server through a local dedicated storage device; The S3 evidence storage server calculates the information hash value based on the received information. If it matches the hash value in S1, the information is then overlaid with the current time and uploaded to the blockchain. The S4 evidence storage server records the aforementioned information's serial number on the blockchain and returns this serial number to both the local dedicated evidence storage device and the data source device. The data hash value is a hash value calculated based on the encrypted data to be notified; the information hash value is a hash value calculated based on the descriptive information of the data to be notified. The local dedicated evidence storage device is connected to the evidence storage server via the Internet, and wherein, The current time of the evidence storage server is synchronized with the current time of the blockchain network.
2. The data storage method based on blockchain according to claim 1, characterized in that, In the method described, the current time of the local dedicated evidence storage device is provided by the evidence storage server or by configuring a satellite positioning and navigation module for it.
3. A data storage device based on blockchain, characterized in that, include Blockchain consists of a data layer, a network layer, a consensus layer, an incentive layer, a contract layer, and an application layer. The evidence storage server is used to calculate the information hash value, and after adding the current time to the received information, it uploads it to the blockchain, and returns the number on the blockchain to the dedicated evidence storage device and data source. A local dedicated evidence storage device is connected to the evidence storage server, calculates the data hash value and the information hash value, and sends the data hash value, information hash value, description information of the data to be stored, and data number bound to the current time to the evidence storage server. The data source device is connected to the local dedicated evidence storage device and is used to encrypt the evidence storage data. It transmits the encrypted data to be stored, along with its description information and data number, to the local dedicated evidence storage device in a periodic, non-periodic, or streaming manner. The connection method between the dedicated evidence storage device and the data source device is any one of LAN, USB, WIFI, or Bluetooth. The description information of the data to be stored includes the data generation time, data size, and device ID attributes provided by the data source device. The local dedicated evidence storage device is used to receive the blockchain number returned by the evidence storage server.
4. The blockchain-based data storage device according to claim 3, characterized in that, The data layer encapsulates the underlying data blocks, as well as related data encryption, timestamps, numbering basic data, and basic algorithms.
Citation Information
Patent Citations
Electronic data evidence storage method and system based on blockchain
CN113032481A
Sensitive information judicial evidence storage processing method, device and system
CN111191284A