File Privacy Protection and Encrypted Archiving Method and System Based on Blockchain Technology

By processing the basic information of contract files on blockchain nodes and storing them in the MPT tree, the problem that blockchain technology cannot effectively ensure data authenticity, integrity and privacy when storing contract files, achieving high credibility, security and privacy evidence storage effect.

CN114637808BActive Publication Date: 2025-06-27CENTRAL UNIVERSITY OF FINANCE AND ECONOMICS +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210270532.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-18
Publication Date
2025-06-27
Estimated Expiration
2042-03-18

AI Technical Summary

Technical Problem

Existing blockchain technology cannot effectively guarantee the authenticity, integrity and privacy of data when storing contract files, especially when data is uploaded to the blockchain.

Method used

By receiving and processing basic information of files on blockchain nodes, using the encryption and verification characteristics of blockchain, block headers are generated and contract evidence storage data are stored in the Merkle Patricia Tree (MPT) tree, and linked to the blockchain through hash pointers to ensure the authenticity and integrity of the data, and privacy protection is achieved through a dynamic blockchain network.

Benefits of technology

It ensures the authenticity, integrity and privacy of contract archive data, improves the credibility, security and privacy of evidence storage, and ensures the security of data during uploading and storage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114637808B_ABST
    Figure CN114637808B_ABST
Patent Text Reader

Abstract

The present invention provides a method and system for file privacy protection and encrypted evidence storage based on blockchain technology, which relates to the field of blockchain. A method for file privacy protection and encrypted evidence storage based on blockchain technology includes: a blockchain node receives the basic information of a file uploaded by a node in the network, a data processing request for the basic information of the file, and the digest information corresponding to the contract evidence storage; calculates the hash value of this block according to the data part of the blockchain node, and generates a block header according to the blockchain ID corresponding to the basic information of the file, the hash value of the previous node, and the hash value of this node; performs corresponding processing on the basic information of the file and the data part of the blockchain node, and stores the processed contract evidence storage data in the MPT tree. By generating a message to confirm the effectiveness of the evidence storage record for an untampered contract, the credibility, security, and privacy of the evidence storage are improved. A system for file privacy protection and encrypted evidence storage based on blockchain technology is also provided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain, and in particular, to a method and system for protecting the privacy and encrypting and storing evidence of archives based on blockchain technology. Background Art

[0002] Blockchain technology. Blockchain is a new type of decentralized protocol that can securely store digital currency transactions or other data. The information cannot be forged or tampered with. Transaction confirmations on the blockchain are jointly completed by all nodes on the blockchain, and its consistency is guaranteed by a consensus algorithm. A public ledger is maintained on the blockchain to store the balances of all users on the blockchain network. The public ledger is located on any node in the storage block, thus ensuring its non-forgery and non-tampering.

[0003] Paper contracts in the real world are prone to being lost or damaged. To solve these problems, there are currently methods to digitize the contracts and then store them on the blockchain to prevent the contracts from being tampered with or lost. However, this solution can only ensure that the contracts are not tampered with or lost during the period of being stored on the blockchain, and cannot guarantee whether the contract data has been forged during the process of uploading to the blockchain or before uploading to the blockchain. Therefore, the evidence records of contracts stored on the blockchain are often carefully adopted in judicial practice, and even lose the meaning of storage.

[0004] Traditional contract file management uses paper contracts for storage and management, and its management system has been relatively perfect. However, the rapid development of the network nowadays provides a new network-based management mode, that is, electronic contract files. Compared with traditional paper contract files, electronic contract files can, to a certain extent, improve the utilization rate, circulation, and convenience of files, and also have greater advantages in storage and retrieval.

[0005] However, the authenticity, integrity, and privacy of electronic contract files need to be considered. Paper contract files can verify the generation time and authenticity of the files by judging the time of the material and the handwriting of the filler, and ensure the privacy of the files by storing the files in the contract archives room.

[0006] Blockchain technology is a brand-new bookkeeping method realized by computers, with the characteristic of non-tamperability, and is very suitable for the field of protecting the basic information of contract documents. Summary of the Invention

[0007] The purpose of the present invention is to provide a method for protecting the privacy and encrypting and storing evidence of archives based on blockchain technology, which can utilize the characteristics of blockchain to encrypt and verify the authenticity, integrity, and privacy of data, store contract archives, and guarantee the authenticity, integrity, and privacy of contract archive data.

[0008] Another object of the present invention is to provide an archival privacy protection and encrypted deposition system based on blockchain technology, which can run an archival privacy protection and encrypted deposition method based on blockchain technology.

[0009] The embodiments of the present invention are implemented as follows:

[0010] In a first aspect, an embodiment of the present application provides an archival privacy protection and encrypted deposition method based on blockchain technology, which includes that a blockchain node receives the basic information of a file uploaded by a node in the network, a data processing request for the basic information of the file, and the digest information corresponding to the contract deposition. Among them, the file information is stored outside the chain, and the basic information of the file is uploaded to the blockchain; calculate the hash value of this block according to the data part of the blockchain node, and generate a block header according to the blockchain ID corresponding to the basic information of the file, the hash value of the previous node, and the hash value of this node; perform corresponding processing on the basic information of the file and the data part of the blockchain node, store the processed contract deposition data in the MPT tree, and link it to the blockchain through a hash pointer.

[0011] In some embodiments of the present invention, the above-mentioned blockchain node receiving the basic information of the file uploaded by the node in the network, the data processing request for the basic information of the file, and the digest information corresponding to the contract deposition includes: the blockchain node receives the data processing request for the basic information of the file and divides it into a data processing request for the basic information of the file and a status data processing request.

[0012] In some embodiments of the present invention, the above further includes: establishing a dynamic blockchain network, which includes original nodes, and the original nodes form a node pool. Each basic information library of the files establishes its own dynamic blockchain network and selects nodes to access.

[0013] In some embodiments of the present invention, the above-mentioned calculating the hash value of this block according to the data part of the blockchain node and generating a block header according to the blockchain ID corresponding to the basic information of the file, the hash value of the previous node, and the hash value of this node includes: adding the blockchain ID and hash value corresponding to the basic information of this file, and the entire blockchain node will be completely recorded on the blockchain. The contract deposition information is tamper-proof and traceable. When there is a need for verification, first calculate the blockchain ID corresponding to the basic information of the file and the hash value of this node, and then compare it with the hash value of the previous node. If the information is consistent, it proves that the basic information of the file has been encrypted and deposited.

[0014] In some embodiments of the present invention, the above further includes: performing hash calculation on the blockchain plaintext information corresponding to the basic information of the file to obtain digest information, signing the digest with a private key, encrypting the obtained digital signature, plaintext information, and digest together with a public key, and sending the encrypted information to the management party.

[0015] In some embodiments of the present invention, the above-mentioned corresponding processing of the basic information of the file and the blockchain node data part, storing the processed contract deposit data in the MPT tree, and linking it to the blockchain through a hash pointer includes: the blockchain node stores the contract deposit data to be stored according to the data mapping relationship, and queries the contract deposit data according to the corresponding mapping relationship.

[0016] In some embodiments of the present invention, the above-mentioned further includes: by ensuring the permission to retrieve the basic information of the file, if the received contract deposit data is incorrect after decryption, broadcasting a message that the permission is in doubt, and similarly reaching a consensus on this message, changing the status of the transaction to failed in the transaction list and feeding back the result, and not opening the permission, so as to achieve the purpose of file privacy protection.

[0017] In a second aspect, an embodiment of the present application provides an archival privacy protection and encrypted deposit system based on blockchain technology, which includes a receiving module for a blockchain node to receive the basic information of a file uploaded by a node in the network, a data processing request for the basic information of the file, and a digest information corresponding to the contract deposit. Among them, the file information is stored outside the chain, and the basic information of the file is uploaded to the blockchain;

[0018] A computing module for calculating the hash value of this block according to the blockchain node data part, and generating a block header according to the blockchain ID corresponding to the basic information of the file, the hash value of the previous node, and the hash value of this node;

[0019] A processing module for performing corresponding processing on the basic information of the file and the blockchain node data part, storing the processed contract deposit data in the MPT tree, and linking it to the blockchain through a hash pointer.

[0020] In some embodiments of the present invention, the above-mentioned includes: at least one memory for storing computer instructions; at least one processor communicating with the above-mentioned memory, wherein when the at least one processor executes the above-mentioned computer instructions, the at least one processor causes the above-mentioned system to execute: the receiving module, the computing module, and the processing module.

[0021] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the method of any one of the methods for archival privacy protection and encrypted deposit based on blockchain technology.

[0022] Compared with the prior art, the embodiments of the present invention have at least the following advantages or beneficial effects:

[0023] It can utilize the characteristics of blockchain encryption to verify the authenticity, integrity, and privacy of data, store contract files, and ensure the authenticity, integrity, and privacy of contract file data. Storing the contract evidence in a dynamic blockchain network can also identify whether the contract uploaded to the dynamic blockchain network has been tampered with, and by generating a message to confirm the effectiveness of the evidence record only for the untampered contract, the credibility, security, and privacy of the evidence are improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.

[0025] Figure 1 Schematic diagram of the steps of a method for file privacy protection and encrypted evidence storage based on blockchain technology provided by an embodiment of the present invention;

[0026] Figure 2 Schematic diagram of the detailed steps of a method for file privacy protection and encrypted evidence storage based on blockchain technology provided by an embodiment of the present invention;

[0027] Figure 3 Schematic diagram of the modules of a system for file privacy protection and encrypted evidence storage based on blockchain technology provided by an embodiment of the present invention;

[0028] Figure 4 An electronic device provided by an embodiment of the present invention.

[0029] ICON: 10 - receiving module; 20 - calculation module; 30 - processing module; 101 - memory; 102 - processor; 103 - communication interface. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0030] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. Usually, the components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.

[0031] Accordingly, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the claimed present application, but merely represents selected embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts fall within the scope of protection of the present application.

[0032] It should be noted that like reference numerals and letters denote like items in the following drawings, and thus, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings.

[0033] It should be noted that the term "comprising" or any other variant thereof is intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element.

[0034] The following will describe in detail some embodiments of the present application with reference to the accompanying drawings. Without conflict, the following embodiments and the features in the embodiments can be combined with each other.

[0035] Embodiment 1

[0036] Please refer to Figure 1 , Figure 1 which is a schematic diagram of the steps of a method for file privacy protection and encrypted deposition based on blockchain technology provided by an embodiment of the present invention, as shown below:

[0037] Step S100, a blockchain node receives the basic information of a file, a data processing request for the basic information of the file, and the digest information corresponding to the contract deposition uploaded by a node in the network. Among them, the file information is stored outside the chain, and the basic information of the file is uploaded to the blockchain.

[0038] In some embodiments, a DAPP is installed in the node, and the DAPP is designed to deposit a contract on a dynamic blockchain. A scanning device is provided on the node, and the DAPP can drive the scanning device to scan a paper contract to obtain a scanned copy of the contract or a scanned copy of a file. At the same time, after the DAPP is started, a specific display interface is output on the display of the node, so that the user can input the digest information of the contract or file according to the prompt message on the display interface, where the digest information includes at least one of the following: contract name, contract number, identifier of the contract parties, contract signing date.

[0039] In some embodiments, since the file information is relatively large and not suitable for being uploaded to the blockchain, the file information is stored outside the chain. At the same time, the basic information of the file, such as source data information, hash information, etc., is uploaded to the chain, while the file itself is stored outside the chain.

[0040] Step S110: Calculate the hash value of this block based on the data part of the blockchain node, and generate a block header based on the blockchain ID corresponding to the basic information of the file, the hash value of the previous node, and the hash value of this node.

[0041] In some embodiments, the block content of the data part of the blockchain node is the result content checked during the current contract deposit. The hash value of the parent block is the hash value of this block corresponding to the establishment of the contract deposit in this database. The hash value of this block is generated by using the SHA-256 algorithm for the data part of this block. At this time, the number of times of adding metadata information is 1, and the corresponding hash value is the hash value of this block.

[0042] Step S120: Perform corresponding processing on the basic information of the file and the data part of the blockchain node, store the processed contract deposit data in the MPT tree, and link it to the blockchain through a hash pointer.

[0043] In some embodiments, the block (Block) in the blockchain system is divided into a block header (Header) and a block body (Body). The block header encapsulates the hash value of the root node of the current block state tree, the hash value of the root node of the previous block state tree, the hash value of the root node of the current block transaction tree, and the hash value of the root node of the previous block transaction tree. Among them, MPT (Merkle Patricia Tree, MPT tree) is a combination of Merkle Tree and Patricia Tree. The hash value of the root node of the MPT tree changes with the change of the stored data content. If the data is tampered with or missing, the hash value of the root node of the MPT tree will change, so the authenticity and integrity of the data can be guaranteed, and it is more suitable for the storage of electronic file data.

[0044] Embodiment 2

[0045] Please refer to Figure 2 , Figure 2 which is a schematic diagram of the detailed steps of a method for file privacy protection and encrypted deposit based on blockchain technology provided by an embodiment of the present invention, as shown below:

[0046] Step S200: The blockchain node receives a request for processing the basic information data of the file, and divides it into a request for processing the basic information data of the file and a request for processing the status data.

[0047] Step S210: Establish a dynamic blockchain network, which includes original nodes. The original nodes form a node pool, and each basic information library of the files establishes its own dynamic blockchain network and selects nodes to access.

[0048] Step S220: Add the blockchain ID and hash value corresponding to the basic information of this file. The entire blockchain nodes will be completely recorded on the blockchain. The contract deposit information cannot be tampered with and is traceable. When there is a verification requirement, first obtain the blockchain ID corresponding to the basic information of the file and calculate the hash value of this node, and then compare it with the hash value of the previous node. If the information is consistent, it proves that the basic information of the file has been encrypted and deposited.

[0049] Step S230: Calculate the digest information by performing a hash calculation on the blockchain plaintext information corresponding to the basic information of the file, sign the digest with the private key, encrypt the obtained digital signature, plaintext information, and digest together using the public key, and send the encrypted information to the management party.

[0050] Step S240: The blockchain nodes store the contract deposit data to be stored according to the data mapping relationship, and query the contract deposit data according to the corresponding mapping relationship when querying.

[0051] Step S250: By ensuring the permission to retrieve the basic information of the file, if the received contract deposit data is incorrect after decryption, broadcast a message with doubts about the permission. Similarly, reach a consensus on this message, change the status of this transaction to failed in the transaction list and feedback the result, and do not open the permission, so as to achieve the purpose of protecting the privacy of the file.

[0052] In some embodiments, the contract archive node receives a transaction data processing request initiated by the user: The transaction data is stored in the block body. Since the data stored in the blockchain can only be increased and cannot be modified, any requests for addition, modification, or deletion initiated by the user to the contract archive node are regarded as requests for adding transaction data. Corresponding to the request for adding archive data is to request adding transaction data in the contract archive node. Corresponding to the request for modifying archive data is to request adding transaction data in the contract archive node. Corresponding to the request for deleting archive data processing is to request adding transaction data in the contract archive node.

[0053] The contract archive node receives a status data processing request initiated by the user: The status data is stored locally in the contract archive node. The status data is data that records the current status of the contract archive. Therefore, any requests for addition, modification, or deletion of data initiated by the user to the contract archive node are regarded as requests for adding, modifying, or deleting status data, respectively.

[0054] In some embodiments, after a node successfully processes and broadcasts, other contract deposit nodes in the dynamic blockchain network confirm. If there are different results, the contract deposit result may not be recognized. If the newly generated block broadcast by the contract deposit node is recognized, a broadcast message is sent and the private key signature is performed on the newly generated block. Within a certain time range, if the newly generated block of the contract deposit node receives the most private key signatures from other contract deposit nodes, it is considered that the contract deposit node is recognized by more contract deposit nodes, and then the contract deposit node obtains the contract deposit right for the current newly generated block.

[0055] Embodiment 3

[0056] Please refer to Figure 3 , Figure 3 , which is a schematic diagram of a file privacy protection and encrypted deposit system module provided by an embodiment of the present invention, as shown below:

[0057] The receiving module 10 is used for the blockchain node to receive the basic information of the file uploaded by the node in the network, the data processing request of the basic information of the file, and the digest information corresponding to the contract deposit;

[0058] The calculation module 20 is used to calculate the hash value of the current block according to the data part of the blockchain node, and generate a block header according to the blockchain ID corresponding to the basic information of the file, the hash value of the previous node, and the hash value of the current node;

[0059] The processing module 30 is used to perform corresponding processing on the basic information of the file and the data part of the blockchain node, store the processed contract deposit data in the MPT tree, and link it to the blockchain through a hash pointer.

[0060] As Figure 4 shown, an embodiment of the present application provides an electronic device, which includes a memory 101 for storing one or more programs; a processor 102. When the one or more programs are executed by the processor 102, the method according to any one of the above first aspects is implemented.

[0061] It further includes a communication interface 103. The memory 101, the processor 102, and the communication interface 103 are directly or indirectly electrically connected to each other to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines. The memory 101 can be used to store software programs and modules. The processor 102 executes various functional applications and data processing by executing the software programs and modules stored in the memory 101. The communication interface 103 can be used for signaling or data communication with other node devices.

[0062] Among them, the memory 101 can be, but is not limited to, a random access memory 101 (RAM), a read only memory 101 (ROM), a programmable read-only memory 101 (PROM), an erasable programmable read-only memory 101 (EPROM), an electrically erasable programmable read-only memory 101 (EEPROM), etc.

[0063] The processor 102 can be an integrated circuit chip with signal processing capabilities. The processor 102 can be a general-purpose processor 102, including a central processing unit 102 (CPU), a network processor 102 (NP), etc.; it can also be a digital signal processor 102 (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0064] In the embodiments provided in this application, it should be understood that the disclosed methods and systems can also be implemented in other ways. The method and system embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions, and operations of the methods, systems, and computer program products according to multiple embodiments of this application. In this regard, each block in the flowchart or block diagram can represent a module, a program segment, or a part of code, and the module, program segment, or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than that marked in the accompanying drawings. For example, two consecutive blocks can actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, as well as the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.

[0065] In addition, in each embodiment of the present application, each functional module can be integrated together to form an independent part, or each module can exist alone, or two or more modules can be integrated to form an independent part.

[0066] On the other hand, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by the processor 102, the method according to any one of the above first aspects is implemented. If the function is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memory 101 (ROM, Read-Only Memory), random access memory 101 (RAM, Random Access Memory), magnetic disks, or optical discs that can store program codes.

[0067] In summary, a method and system for file privacy protection and encrypted evidence storage based on blockchain technology provided by the embodiments of the present application can utilize the characteristics of blockchain to encrypt and verify the authenticity, integrity, and privacy of data, store contract files, and ensure the authenticity, integrity, and privacy of contract file data. Storing the contract evidence in a dynamic blockchain network can also identify whether the contract uploaded to the dynamic blockchain network has been tampered with, and by generating a message to confirm the effectiveness of the evidence record only for the contract that has not been tampered with, the credibility, security, and privacy of the evidence storage are improved.

[0068] The above are only the preferred embodiments of the present invention and are not used to limit the present invention. For those skilled in the art, the present invention can have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

[0069] It is obvious to those skilled in the art that the present application is not limited to the details of the above-mentioned exemplary embodiments, and the present application can be implemented in other specific forms without departing from the spirit or basic characteristics of the present application. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-limiting. The scope of the present application is defined by the appended claims rather than the above description. Therefore, all changes falling within the meaning and scope of the equivalent elements of the claims are intended to be embraced within the present application. Any reference signs in the claims should not be construed as limiting the claims involved.

Claims

1. A method for protecting the privacy of archives and encrypting and storing evidence based on blockchain technology, characterized in that, Including: The blockchain node receives the basic information of the file uploaded by the node in the network, the data processing request of the file's basic information, and the digest information corresponding to the contract deposit. Among them, the file information is stored outside the chain, and the basic information of the file is uploaded to the blockchain; Calculate the hash value of this block according to the data part of the blockchain node, and generate a block header according to the blockchain ID corresponding to the basic information of the file, the hash value of the previous node, and the hash value of this node; Perform corresponding processing on the basic information of the file and the data part of the blockchain node, store the processed contract deposit data in the MPT tree, and link it to the blockchain through a hash pointer; The blockchain node receives the basic information of the file uploaded by the node in the network, the data processing request of the file's basic information, and the digest information corresponding to the contract deposit. Among them, the file information is stored outside the chain, and the upload of the basic information of the file to the blockchain includes: The blockchain node receives the data processing request of the file's basic information, and divides it into the data processing request of the file's basic information and the status data processing request; It also includes: establishing a dynamic blockchain network, which includes original nodes. The original nodes form a node pool, and each basic information library of the file establishes its own dynamic blockchain network and selects nodes to access; The calculation of the hash value of this block according to the data part of the blockchain node, and the generation of the block header according to the blockchain ID corresponding to the basic information of the file, the hash value of the previous node, and the hash value of this node includes: Add the blockchain ID and hash value corresponding to the basic information of this file. The entire blockchain node will be completely recorded on the blockchain. The contract deposit information is immutable and traceable. When there is a verification requirement, first calculate the hash value of this node according to the blockchain ID corresponding to the basic information of the file, and then compare it with the hash value of the previous node. If the information is consistent, it proves that the basic information of the file has been encrypted and deposited; It also includes: Perform hash calculation on the blockchain plaintext information corresponding to the basic information of the file to obtain digest information, sign the digest with a private key, encrypt the obtained digital signature, plaintext information, and digest together with a public key, and send the encrypted information to the management party.

2. The method for protecting file privacy and encrypting and storing evidence based on blockchain technology according to claim 1, wherein The corresponding processing of the basic information of the file and the data part of the blockchain node, storing the processed contract deposit data in the MPT tree, and linking it to the blockchain through a hash pointer includes: The blockchain node stores the contract deposit data to be stored according to the data mapping relationship, and queries according to the corresponding mapping relationship when querying the contract deposit data.

3. A method for file privacy protection and encrypted evidence storage based on blockchain technology according to claim 1, characterized in that, It also includes: By ensuring the permission to retrieve the basic information of the file, if the received contract deposit data is incorrect after decryption, broadcast a message that the permission is in doubt, and reach a consensus on this message as well. Change the status of this transaction to failed in the transaction list and feedback the result, and do not open the permission to achieve the purpose of file privacy protection.

4. A blockchain-based file privacy protection and encrypted evidence storage system for implementing the blockchain-based file privacy protection and encrypted evidence storage method according to any one of claims 1-3, characterized in that, Including: A receiving module, configured to receive, by a blockchain node, basic information of a file uploaded by a node in the network, a basic information data processing request of the file, and a digest information corresponding to a contract deposit. Wherein, the file information is stored outside the chain, and the basic information of the file is uploaded to the blockchain; A calculating module, configured to calculate the hash value of the current block according to the data part of the blockchain node, and generate a block header according to the blockchain ID corresponding to the basic information of the file, the hash value of the previous node, and the hash value of the current node; A processing module, configured to perform corresponding processing on the basic information of the file and the data part of the blockchain node, store the processed contract deposit data in an MPT tree, and link it to the blockchain through a hash pointer.

5. The archival privacy protection and encrypted evidence storage system based on blockchain technology according to claim 4, wherein Comprising: At least one memory for storing computer instructions; At least one processor communicating with the memory, wherein when the at least one processor executes the computer instructions, the at least one processor causes the system to execute: the receiving module, the calculating module, and the processing module.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method according to any one of claims 1-3.

Citation Information

Patent Citations

  • Block chain storage method for electronic archives

    CN112800132A