Data possession verification method, system, device and computer-readable storage medium
By generating replica Merkel trees and aggregated Merkle trees, and using bilinear mapping to verify data block labels and fragmentation information, the problem of whether the data storer completely stores different copies of the target file is solved, and efficient data integrity is achieved. Validation and dynamic data manipulation support.
Patent Information
- Application Number
- CN202010220307.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-25
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-03-25
AI Technical Summary
It is difficult to efficiently verify whether the data storer completely stores different copies of the target file with existing technology. Especially in cloud storage applications, there are issues with data integrity verification efficiency and cost.
The data owner generates copy Merkle trees and copy aggregation Merkle trees for different copies of the target file, uses random data block identification to determine the certification path, and verifies data block labels and fragmentation information through bilinear mapping to ensure that the data The storer stores different copies of the target file in its entirety.
It realizes efficient verification of different copies of target files stored by the data storer, prevents cheating behavior of saving storage space without storing copies, supports multi-copy storage and dynamic data operations, and improves the accuracy and efficiency of data integrity verification.
Smart Images

Figure CN112311548B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of information technology, and in particular to a data possession verification method, a system device, and a computer-readable storage medium. Background Art
[0002] In cloud storage applications, users need to detect whether the data stored in the cloud is complete. PDI (Provable Data Integrity) is an important means to solve such problems. The data integrity verification mechanism is divided into PDP (Provable Data Possession) scheme and POR (Proof of Retrievability) scheme according to whether the original stored data can be retrieved. PDP focuses on quickly determining whether the files stored on the remote storage node (also known as the data storer) are damaged, so it pays more attention to the efficiency and cost of detection; POR can not only detect whether the file is damaged, but also recover the damaged part of the file, so it pays more attention to how to enable the remote storage node to have the ability to recover data. Summary of the invention
[0003] A technical problem solved by the present disclosure is how to simply and efficiently verify that a data storer has not completely stored different copies of a target file.
[0004] According to one aspect of an embodiment of the present disclosure, a data possession verification method is provided, including: the data owner and the data storage device respectively generate replica Merkle trees for different copies of a target file, the leaf nodes of each replica Merkle tree being an ordered set of hashes of each data block of the corresponding copy; the data owner generates a replica aggregation Merkle tree, the leaf nodes of the replica aggregation Merkle tree being an ordered set of root nodes of each replica Merkle tree; the data owner challenges the data storage device through a random data block identifier; the data storage device determines the authentication path of each replica Merkle tree based on the random data block identifier, and sends the authentication path to the data owner; the data owner uses the data blocks corresponding to the random data block identifier in different copies and the root node of the replica aggregation Merkle tree to verify the authentication path, and in the event of failure in the authentication path verification, determines that the data storage device has not completely stored different copies of the target file.
[0005] In some embodiments, it also includes: when the authentication path verification is successful, the data owner uses the private key to generate data block tags for each data block in different copies, and uses each data block tag to generate a data block aggregation tag corresponding to each data block identifier; the data owner sends the data block aggregation tag to the data store; the data store generates information to be verified based on the random data block identifier and the data block aggregation tag, and sends the information to be verified to the data owner; the data owner uses the public key to verify the information to be verified; when the verification fails, the data owner determines that the data store has not completely stored different copies of the target file; when the verification is successful, it is determined that the data store has completely stored different copies of the target file.
[0006] In some embodiments, the information to be verified includes: label information to be verified, data shard information to be verified, and data block information to be verified; generating the information to be verified based on the random data block identifier and the data block aggregation label includes: generating the label information to be verified based on the data block aggregation label corresponding to the random data block identifier; generating the data shard information to be verified based on each data shard contained in each data block in different copies corresponding to the random data block identifier; generating the data block information to be verified based on the data blocks corresponding to the random data block identifier in different copies.
[0007] In some embodiments, it also includes: the data owner sends the random number corresponding to the random data block identifier to the data storage; generating the tag information to be verified according to the data block aggregation tag corresponding to the random data block identifier includes: generating the tag information to be verified according to the data block aggregation tag and the random number corresponding to the random data block identifier; generating the data shard information to be verified according to the various data shards contained in each data block in different copies corresponding to the random data block identifier includes: generating the data shard information to be verified according to the various data shards and random numbers contained in each data block in different copies corresponding to the random data block identifier.
[0008] In some embodiments, the data owner verifies the information to be verified using the public key, including: verifying and Are they equal? Represents a bilinear map G1×G2→G T , G1 and G2 represent GDH groups, G T represents a multiplicative cyclic group with a prime number p as its order; i is the replica identifier, n is the total number of replicas; j is the random data block identifier, r j is the random number corresponding to the random data block identifier j; Q is the set of random data block identifiers and random numbers, H represents the BLS signature algorithm, is the jth data block of the i-th copy of the target file; k is the data shard identifier, s is the total number of data shards; u k is the random number corresponding to the shard identifier k, g is the generator of G2, y is the public key, is the kth data shard of the jth data block of the i-th copy of the target file, Z p represents an integer group; x is a private key, x∈Z p , y = g x ∈G2;
[0009] In some embodiments, it also includes: sending different copies of the target file marked with the file identifier to the data storage; initiating a challenge to the data storage through the random data block identifier includes: initiating a challenge to the data storage through the file identifier and the random data block identifier; determining the authentication path of the Merkle tree of each copy of the copy according to the random data block identifier includes: determining the target file according to the file identifier, and determining the authentication path of the Merkle tree of each copy of the target file according to the random data block identifier; using the data blocks corresponding to the random data block identifier in different copies and the root node of the Merkle tree of the copy aggregation to verify the authentication path includes: determining different copies according to the file identifier; using the data blocks corresponding to the random data block identifier in different copies, the root node of the Merkle tree of the copy aggregation and the file identifier to verify the authentication path.
[0010] In some embodiments, it also includes: the data owner sends the file identifier, data block operation type, data block identification of the target data block, the updated value of the target data block, and the updated value of the data block aggregation tag corresponding to the data block identification of the target data block to the data store; the data store updates different copies of the target file according to the file identifier, data block operation type, data block identification of the target data block, and the updated value of the target data block; the data store updates the Merkle tree of each copy; the data store determines the updated authentication path of each copy Merkle tree according to the data block identification of the target data block, and sends the updated authentication path to the data owner; the data store updates the data block aggregation tag corresponding to the data block identification of the target data block according to the updated value of the data block aggregation tag corresponding to the data block identification of the target data block; the data owner updates the root node of the copy aggregation Merkle tree according to the updated authentication path and the updated value of the target data block.
[0011] In some embodiments, the data block operation type is data block modification; updating the target data blocks in different copies of the target file includes: modifying the target data blocks in different copies of the target file to updated values; updating each replica Merkle tree includes: in each replica Merkle tree, replacing the hash of the target data block with the hash of the updated value as a leaf node of each replica Merkle tree to regenerate each replica Merkle tree.
[0012] In some embodiments, the data block operation type is data block insertion; updating the target data blocks in different copies of the target file includes: inserting the update value after the target data blocks in different copies of the target file; updating each replica Merkle tree includes: in each replica Merkle tree, replacing the hash of the target data block with the hash of the target data block and the update value, and using the hash of the updated value of the target data block and the hash of the target data block as leaf nodes of each replica Merkle tree to regenerate each replica Merkle tree.
[0013] In some embodiments, the data block operation type is data block deletion; updating the target data blocks in different copies of the target file includes: deleting the target data blocks in different copies of the target file; updating each copy Merkle tree includes: in each copy Merkle tree, deleting the leaf node where the hash of the target data block is located, and replacing the parent node with the sibling leaf node of the hash of the target data block to regenerate each copy Merkle tree.
[0014] According to another aspect of an embodiment of the present disclosure, a data possession verification system is provided, including a data owner and a data storage device; wherein the data owner and the data storage device are configured to: generate replica Merkle trees for different copies of a target file respectively, the leaf nodes of each replica Merkle tree being an ordered set of hashes of each data block of the corresponding copy; the data owner is further configured to: generate a replica aggregation Merkle tree, the leaf nodes of the replica aggregation Merkle tree being an ordered set of root nodes of each replica Merkle tree; the data owner challenges the data storage device through a random data block identifier; the data storage device is further configured to: determine the authentication path of each replica Merkle tree according to the random data block identifier, and send the authentication path to the data owner; the data owner is further configured to: verify the authentication path using the data blocks corresponding to the random data block identifier in different copies and the root node of the replica aggregation Merkle tree, and determine that the data storage device has not completely stored different copies of the target file when the authentication path verification fails.
[0015] In some embodiments, the data owner is further configured to: when the authentication path verification is successful, use the private key to generate data block tags for each data block in different copies, and use each data block tag to generate a data block aggregation tag corresponding to each data block identifier; send the data block aggregation tag to the data store; the data store is further configured to: generate information to be verified based on the random data block identifier and the data block aggregation tag, and send the information to be verified to the data owner; the data owner is further configured to: use the public key to verify the information to be verified; in the event of verification failure, determine that the data store has not completely stored different copies of the target file; in the event of verification success, determine that the data store has completely stored different copies of the target file.
[0016] In some embodiments, the information to be verified includes: label information to be verified, data shard information to be verified, and data block information to be verified; generating the information to be verified based on the random data block identifier and the data block aggregation label includes: generating the label information to be verified based on the data block aggregation label corresponding to the random data block identifier; generating the data shard information to be verified based on each data shard contained in each data block in different copies corresponding to the random data block identifier; generating the data block information to be verified based on the data blocks corresponding to the random data block identifier in different copies.
[0017] In some embodiments, the data owner is further configured to: send the random number corresponding to the random data block identifier to the data storage; generate the tag information to be verified according to the data block aggregation tag corresponding to the random data block identifier, including: generating the tag information to be verified according to the data block aggregation tag and the random number corresponding to the random data block identifier; generate the data shard information to be verified according to the data shards contained in each data block in different copies corresponding to the random data block identifier, including: generating the data shard information to be verified according to the data shards and random numbers contained in each data block in different copies corresponding to the random data block identifier.
[0018] In some embodiments, the data owner verifies the information to be verified using the public key including:
[0019] verify and Are they equal? Represents a bilinear map G1×G2→G T , G1 and G2 represent GDH groups, G T represents a multiplicative cyclic group with a prime number p as its order; i is the replica identifier, n is the total number of replicas; j is the random data block identifier, r j is the random number corresponding to the random data block identifier j; Q is the set of random data block identifiers and random numbers, H represents the BLS signature algorithm, is the jth data block of the i-th copy of the target file; k is the data shard identifier, s is the total number of data shards; u k is the random number corresponding to the shard identifier k, g is the generator of G2, y is the public key, is the kth data shard of the jth data block of the i-th copy of the target file, Z p represents an integer group; x is a private key, x∈Z p , y = g x ∈G2;
[0020] In some embodiments, the data owner is further configured to: send different copies of the target file marked with a file identifier to the data storage; initiating a challenge to the data storage through a random data block identifier includes: initiating a challenge to the data storage through a file identifier and a random data block identifier; determining the authentication path of the Merkle tree of each copy according to the random data block identifier includes: determining the target file according to the file identifier, and determining the authentication path of the Merkle tree of each copy of the target file according to the random data block identifier; verifying the authentication path using the data blocks corresponding to the random data block identifier in different copies and the root node of the Merkle tree of the copy aggregation, including: determining different copies according to the file identifier; verifying the authentication path using the data blocks corresponding to the random data block identifier in different copies, the root node of the Merkle tree of the copy aggregation, and the file identifier.
[0021] In some embodiments, the data owner is further configured to: send the file identifier, data block operation type, data block identification of the target data block, the updated value of the target data block, and the updated value of the data block aggregation tag corresponding to the data block identification of the target data block to the data store; the data store is further configured to: update different copies of the target file according to the file identifier, data block operation type, data block identification of the target data block, and the updated value of the target data block; update the Merkle tree of each copy; determine the updated authentication path of each copy Merkle tree according to the data block identification of the target data block, and send the updated authentication path to the data owner; the data store is further configured to: update the data block aggregation tag corresponding to the data block identification of the target data block according to the updated value of the data block aggregation tag corresponding to the data block identification of the target data block; and update the root node of the copy aggregation Merkle tree according to the updated authentication path and the updated value of the target data block.
[0022] In some embodiments, the data block operation type is data block modification; updating the target data blocks in different copies of the target file includes: modifying the target data blocks in different copies of the target file to updated values; updating each replica Merkle tree includes: in each replica Merkle tree, replacing the hash of the target data block with the hash of the updated value as a leaf node of each replica Merkle tree to regenerate each replica Merkle tree.
[0023] In some embodiments, the data block operation type is data block insertion; updating the target data blocks in different copies of the target file includes: inserting the update value after the target data blocks in different copies of the target file; updating each replica Merkle tree includes: in each replica Merkle tree, replacing the hash of the target data block with the hash of the target data block and the update value, and using the hash of the updated value of the target data block and the hash of the target data block as leaf nodes of each replica Merkle tree to regenerate each replica Merkle tree.
[0024] In some embodiments, the data block operation type is data block deletion; updating the target data blocks in different copies of the target file includes: deleting the target data blocks in different copies of the target file; updating each copy Merkle tree includes: in each copy Merkle tree, deleting the leaf node where the hash of the target data block is located, and replacing the parent node with the sibling leaf node of the hash of the target data block to regenerate each copy Merkle tree.
[0025] According to another aspect of an embodiment of the present disclosure, there is provided a data possession verification device, comprising: a memory; and a processor coupled to the memory, wherein the processor is configured to execute the aforementioned data possession verification method based on instructions stored in the memory.
[0026] According to another aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and when the instructions are executed by a processor, the aforementioned data possession verification method is implemented.
[0027] The present disclosure can more efficiently verify that the data storer has not completely stored different copies of the target file.
[0028] Other features and advantages of the present disclosure will become apparent from the following detailed description of exemplary embodiments of the present disclosure with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0030] Figure 1 A schematic diagram showing an application scenario of the data possession verification method disclosed in the present invention.
[0031] Figure 2 A flowchart of a data possession verification method according to some embodiments of the present disclosure is shown.
[0032] Figure 3 A schematic diagram of the structure of the replica aggregation Merkle tree is shown.
[0033] Figure 4 A schematic flow chart of a data possession verification method according to some other embodiments of the present disclosure is shown.
[0034] Figure 5 A schematic flow chart of a data possession verification method according to some other embodiments of the present disclosure is shown.
[0035] Figure 6 A schematic diagram of a flow chart for dynamically operating different copies of a target file stored in a data store is shown.
[0036] Figure 7 A schematic diagram of the replica Merkle tree when a data block is modified is shown.
[0037] Figure 8 A schematic diagram of the replica Merkle tree when inserting a data block is shown.
[0038] Fig. 9 A schematic diagram of a replica Merkle tree when a data block is deleted is shown.
[0039] Fig.10 A schematic diagram of the structure of a data possession verification system according to some embodiments of the present disclosure is shown.
[0040] Fig.11 A schematic diagram of the structure of a data possession verification device according to some embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present disclosure and its application or use. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0042] First combine Figure 1 Describe the application scenarios of the data possession verification method disclosed in the present invention.
[0043] Figure 1 A schematic diagram showing an application scenario of the data possession verification method disclosed in the present invention is shown. Figure 1 As shown in the figure, the application scenario consists of three main roles: data owner, remote storage node, and verification node. The functions of these three main roles are explained below.
[0044] Data owner: An organization or individual who wishes to transfer sensitive data from local storage to external storage needs to ensure that the files and their copies are stored intact in remote storage nodes and provide rewards to remote storage nodes and verification nodes.
[0045] Remote storage nodes: nodes that have certain infrastructure and are willing to provide paid storage space, such as cloud service providers, etc., need to promise users that they can store data and its copies completely, respond to challenges from data owners or verification nodes, and obtain income based on storage conditions;
[0046] Verification node: regularly issues data possession verification challenges to remote storage nodes and verifies their responses. When the verification fails, it broadcasts to the entire network. The verification results can be written into the blockchain, which has the characteristics of non-repudiation and traceability of behavior.
[0047] Those skilled in the art should understand that the data owner itself may also have the function of a verification node. In order to simplify the description and facilitate the reader's understanding, the present disclosure refers to both the data owner and the verification node as the data owner, and the remote storage node as the data storer.
[0048] Combine the following Figure 2 Some embodiments of the data possession verification method disclosed in the present invention are described.
[0049] Figure 2 FIG. 1 is a flow chart showing a method for verifying data possession in some embodiments of the present disclosure. Figure 2 As shown, this embodiment includes steps S201 to S205.
[0050] In step S201, the data owner and the data store respectively generate replica Merkle trees for different replicas of the target file.
[0051] Assume that F is the target file that the data owner needs to store, which is stored in the form of a series of blocks, specifically expressed as F = {b1, b2, ..., b m}, where m is the total number of blocks. Each copy Each consists of m blocks Each block can be further divided into s fragments, that is, The data owner is the owner of each different file copy Generate a replica Merkel tree, i is the replica identifier. Each file replica The leaf nodes of the replica Merkle tree MHT are all the data blocks b of the replica ij Hash An ordered set of , h represents a hash function (such as SHA-2), and j is a data block identifier. The root of the Merkle tree of copies is denoted as h Ri It should be noted that all replica Merkle trees are constructed in a preset order. In this embodiment, the data blocks in the file replicas can be arranged in order from left to right as leaf nodes.
[0052] In step S202, the data owner generates a replica aggregation Merkle tree, and the leaf nodes of the replica aggregation Merkle tree are an ordered set of root nodes of each replica Merkle tree.
[0053] According to the generation principle of Merkel tree, the root node of each replica Merkel tree is used as the leaf node of the replica aggregation Merkel tree, and then the root nodes of each replica Merkel tree are aggregated layer by layer into a root node h of the replica aggregation Merkel tree. DR , get the replica aggregated Merkle tree. Figure 3 The schematic diagram of the structure of the replica aggregation Merkle tree is shown. In this way, the integrity of all replicas can be verified in a hierarchical manner.
[0054] In step S203, the data owner challenges the data storer through a random data block identifier.
[0055] For example, the data owner can directly send the random data block identifier to be challenged to the data store, or send a pseudo-random number generation key to the data store, and the data owner and the data store use the random number generation key to generate a random value as the random data block identifier.
[0056] In step S204, the data store determines the authentication path of each replica Merkle tree based on the random data block identifier, and sends the authentication path to the data owner.
[0057] Assuming that the random data block is identified as j, indicating that the j-th data block in each replica needs to be verified, then the brother nodes of all nodes that start from the j-th leaf node of the Merkle tree of each replica and reach the root node of the Merkle tree of each replica are referred to as authentication paths by technicians in this field.
[0058] In step S205, the data owner verifies the authentication path using the random data block identifiers of the corresponding data blocks in different replicas and the root node of the replica aggregation Merkle tree.
[0059] Those skilled in the art should understand that the data owner can use the random data block identifier to obtain the hash of the data block corresponding to the different copies, and then calculate the node on the authentication path and the data block hash corresponding to the random data block identifier according to the generation rule of the replica Merkle tree, and verify whether the calculation result is the same as the root node of the replica aggregation Merkle tree. If different, the authentication path verification fails; if the same, the authentication path verification succeeds. In the case of a failure in authentication path verification, the data owner can determine that the data store has not completely stored different copies of the target file. In the case of a successful authentication path verification, the data owner can further verify whether the data store has completely stored different copies of the target file.
[0060] This embodiment can more efficiently verify that the data storage provider has not completely stored different copies of the target file, prevent the data storage provider from cheating by not storing copies of the target file to save storage space, and meet the user's needs for multiple copies of storage. At the same time, this embodiment supports public verification, and there is no limit on the number of verifications. Even if the data owner does not obtain the stored target file or the copy of the target file from the data storage provider, he can verify that the data storage provider has not completely stored different copies of the target file.
[0061] Combine the following Figure 4 Describes how to further verify whether the data store completely stores different copies of the target file.
[0062] Figure 4 FIG. 2 is a flow chart showing a data possession verification method according to another embodiment of the present disclosure. Figure 4 As shown, in Figure 2 Based on the corresponding embodiment, this embodiment further includes steps S407 to S410.
[0063] In step S407, when the authentication path verification is successful, the data owner uses the private key to generate data block tags for each data block in different copies, and uses each data block tag to generate data block aggregation tags corresponding to each data block identifier.
[0064] First, let's introduce the concept of bilinear mapping. Assume G is a GDH group, G T is a multiplicative cyclic group of prime order p, and defines a mapping e:G×G→G T is a bilinear map, let g be a generator of the group G, then the bilinear map has the following properties:
[0065] (1) Bilinearity: Q,R∈G, we have
[0066] (2) Computability: There is an efficient algorithm that can effectively calculate
[0067] (3) Non-degenerate: Make
[0068] (4) Aggregation: Make
[0069] use represents a bilinear map, G1 and G2 represent GDH groups, G T represents the multiplicative cyclic group of prime order p, g is the generator of G2, y is the private key, x is the public key, x∈Z p , Z p represents the integer group, y = g x ∈G2. The data owner has a copy of the file Each data block in Calculation Tags Where 1≤i≤n,1≤j≤m,1≤k≤s, n is the total number of replicas, s is the total number of data shards, H represents the BLS signature algorithm, u k Generate a random number for the replica generation method. Next, the data owner multiplies and aggregates the labels of the data blocks with block number j in different replicas to generate a set of aggregate labels The set of aggregated labels is represented as Φ = {σ j} 1≤j≤m .
[0070] In step S408 , the data owner sends the data block aggregation tag to the data store.
[0071] In step S409, the data store generates information to be verified based on the random data block identifier and the data block aggregation tag, and sends the information to be verified to the data owner.
[0072] The information to be verified includes: label information to be verified, data shard information to be verified, and data block information to be verified. In the process of generating the information to be verified, the label information to be verified can be generated according to the data block aggregation label corresponding to the random data block identifier; the data shard information to be verified can be generated according to each data shard contained in each data block in different replicas corresponding to the random data block identifier; and the data block information to be verified can be generated according to the data blocks corresponding to the random data block identifier in different replicas.
[0073] In some embodiments, in step S408, the data owner also sends the random number corresponding to the random data block identifier to the data storage. In step S409, the data storage generates the tag information to be verified based on the data block aggregation tag and the random number corresponding to the random data block identifier; and generates the data shard information to be verified based on the data shards and random numbers contained in each data block in different copies corresponding to the random data block identifier.
[0074] For example, the data owner sends the number of data blocks to be challenged c and two newly generated keys in each challenge: the replacement key k1 corresponding to the pseudo-random permutation function PRP and the pseudo-random number generation key k2 corresponding to the pseudo-random function PRF. Both the verification node and the remote storage node need to use k1 and k2 to generate a pair of random exponents and random values, and combine them into a set Q = {(j,r j )},in Used to randomly select data blocks that need to be challenged, π key (·) represents the PRP function; ψ key (·) represents the PRF function, which is used in the calculation process of response and verification. After receiving the challenge number, a random number set Q = {(j,r j )}, in order to prove that n copies are actually stored and have data integrity, the remote storage node provides the following proof: in, μ={μ ik} 1≤i≤n,1≤k≤s , A ij1≤i≤n yes The certification path.
[0075] In step S410, the data owner verifies the information to be verified using the public key.
[0076] verify and Are they equal? in, Represents a bilinear map G1×G2→G T , r j is the random number corresponding to the random data block identifier j; Q is the set of random data block identifiers and random numbers, is the jth data block of the i-th copy of the target file; k is the data shard identifier; u k is a random number corresponding to the shard identifier k, The kth data shard of the jth data block of the i-th copy of the target file;
[0077] When the verification fails, the data owner determines that the data store does not completely store different copies of the target file; when the verification succeeds, the data owner determines that the data store completely stores different copies of the target file.
[0078] From the above formula, we can find that if the remote storage node performs μ ik The summation work, that is, calculate in advance And send The communication overhead can be reduced by n times. However, such a modification can make the remote storage node deceive the verification node. The proof formula is as follows: From the formula, we can know that the malicious remote storage node can calculate in advance And store it locally. In this way, even if the remote storage node does not store the user data completely, the value calculated in advance is still valid and can pass the data integrity verification. Therefore, we require that the remote storage node must send μ = {μ ik} 1≤i≤n,1≤k≤s , and the summation operation is performed by the verification node.
[0079] In this embodiment, steps S101 to S105 are first used to perform preliminary data possession verification. If the preliminary verification fails, it is efficiently verified that the data storage does not completely store different copies of the target file. If the preliminary verification succeeds, steps S407 to S410 are used to perform further data possession verification based on the Merkle tree and bilinear mapping calculation to determine whether the data storage has completely stored different copies of the target file, making the data possession verification process more accurate and efficient.
[0080] The inventors have found that the PDP scheme includes a PDP model based on RSA (Ron Rivest, Adi Shamir, Leonard Adleman) tags, a dynamic PDP model based on hashing, a dynamic PDP model based on verification data structure, a dynamic PDP model based on RSA, and the like. In the existing data possession proof methods, the PDP model based on RSA tags has security risks and does not take into account the storage of dynamic data. If these schemes are directly extended from static data storage to dynamic data storage, many design and security issues will arise. The dynamic PDP model based on hashing only focuses on the dynamic data of a single copy, only allows a certain number of challenges, and does not support full dynamic operations (data cannot be inserted). The dynamic PDP model based on RSA introduces a third party to verify data integrity, does not consider the risk of collusion between the third party and the cloud service provider, has security risks, and only considers the situation of dynamic data of a single copy. It can be seen that most data possession verification schemes focus on the dynamic data possession of a single copy, and a small number of schemes that focus on multiple copies do not support dynamic operations of data, and lack a method for verifying the data possession of multiple copies and dynamic data on remote storage nodes. In view of this, the present disclosure further provides some embodiments of the data possession verification method to support dynamic operation of data.
[0081] Figure 5 FIG. 2 is a flow chart showing a method for verifying data possession in accordance with some other embodiments of the present disclosure. Figure 5 As shown, this embodiment includes steps S500 to S510.
[0082] In step S500 , the data owner sends different copies of the target file marked with the file identifier to the data storage.
[0083] The data owner calculates metadata M = h(ID F / / h DR ), where the symbol / / indicates cascading concatenation of variables, ID F Is a unique file identifier for each file, including the file name, the number of copies n, and the random number u k , represented by ID F = file name / / u1 / / u2 / / …… / / u s / / n. The data owner can also store metadata M in the blockchain network for use in verification. When verifying, the data owner can use metadata M for verification. DR It is the root node of the replica aggregation Merkle tree, which can quickly verify the integrity of all replicas. FAfter embedding metadata M, it can prevent storage nodes from using data blocks of other files to pass through. Unless the user wants to delete some replicas, the structure of the replica aggregation tree generally does not change, and only the value of the root node is recalculated due to partial data modification.
[0084] In step S501, the data owner and the data store generate replica Merkle trees for different replicas of the target file respectively. The specific process can refer to step S201.
[0085] In step S502, the data owner generates a replica aggregation Merkle tree. The specific process can refer to step S202.
[0086] In step S503, the data owner performs dynamic operations on different copies of the target file stored in the data storage.
[0087] The dynamic operation includes data block modification, data block insertion, data block deletion, etc. The specific dynamic operation process will be described in detail in the subsequent embodiments.
[0088] In step S504, the data owner challenges the data storer through the file identifier and the random data block identifier.
[0089] In step S505, the data store determines the target file according to the file identifier, determines the authentication path of the Merkle tree of each copy of the target file according to the random data block identifier, and sends the authentication path to the data owner.
[0090] In step S506, the data owner determines different copies according to the file identifier; and verifies the authentication path using the data blocks corresponding to the random data block identifiers in the different copies, the root node of the replica aggregation Merkle tree, and the file identifier.
[0091] For example, the data owner as well as ij > 1≤i≤n Construct h DR ' and V = h (ID F / / h DR '), and verify
[0092] In the case where the authentication path verification fails, the data owner can determine that the data store does not completely store different copies of the target file. In the case where the authentication path verification succeeds, step S507 is executed.
[0093] In step S507, when the authentication path verification is successful, the data owner uses the private key to generate data block tags for each data block in different copies, and uses each data block tag to generate a data block aggregation tag corresponding to each data block identifier. The specific process can refer to step S407.
[0094] In step S508, the data owner sends the data block aggregation tag to the data store. The specific process may refer to step S408.
[0095] In step S509, the data store generates information to be verified based on the random data block identifier and the data block aggregation tag, and sends the information to be verified to the data owner. The specific process can refer to step S409.
[0096] In step S510, the data owner verifies the information to be verified using the public key. The specific process may refer to step S410.
[0097] In the case of a verification failure, it is determined that the data store does not completely store different copies of the target file; in the case of a verification success, it is determined that the data store completely stores different copies of the target file.
[0098] This embodiment not only supports the user's demand for multiple copy storage, avoiding the fraudulent behavior of not storing copies to save storage space, but also supports dynamic data operation behaviors, including modification, insertion, deletion and append operations.
[0099] At the same time, the data owner can also use the file identifier to identify the target file, and apply the file identifier in the challenge and verification process to improve the accuracy of the data possession verification method.
[0100] Combine the following Figure 6 Describes how to dynamically operate on different copies of a target file stored in a data store.
[0101] Figure 6 FIG. 1 shows a flow chart of dynamically operating different copies of a target file stored in a data store. Figure 6 As shown, this embodiment includes steps S601 to S606.
[0102] In step S6031, the data owner sends the file identifier, the data block operation type, the data block identifier of the target data block, the update value of the target data block, and the update value of the data block aggregation tag corresponding to the data block identifier of the target data block to the data store.
[0103] In step S6032, the data store updates different copies of the target file according to the file identifier, the data block operation type, the data block identifier of the target data block, and the update value of the target data block.
[0104] In step S6033, the data store updates the Merkle tree of each replica.
[0105] In step S6034, the data store determines the updated authentication path of each replica Merkle tree based on the data block identifier of the target data block, and sends the updated authentication path to the data owner.
[0106] In step S6035, the data store updates the data block aggregation tag corresponding to the data block identifier of the target data block according to the update value of the data block aggregation tag corresponding to the data block identifier of the target data block.
[0107] In step S6036, the data owner updates the root node of the replica aggregation Merkle tree according to the updated authentication path and the updated value of the target data block.
[0108] The following is a specific application example for detailed introduction.
[0109] Assume that the dynamic operation of the replica is of the form The request is performed at the data block level. F is the file identifier, BlockOp is the data block operation type, including modification, deletion or insertion, j is the data block identifier of the target data block, is the updated value of the target data block in all replicas, The updated value of the data block aggregation tag corresponding to the data block identifier of the target data block.
[0110] (1) The data block operation type is data block modification.
[0111] Data modification is one of the most common dynamic data operations. For a file F = {b1, b2, ..., b m}, assuming that the data owner wants to j Modified to b' j .
[0112] (1) The data owner generates n different block copies Each block replica is divided into s shards: The block replica is generated as follows, where E k It is an encryption function with strong diffusion characteristics, such as AES and so on.
[0113]
[0114] (2) The data owner generates a new data block for each Calculate new labels And generate updated values for the data block aggregation labels
[0115] (3) The data owner sends a modification request to the data store.
[0116] (4) After receiving the request, the data store will store all the data blocks in the replicas. Modified to And update the replica file collection.
[0117] (5) The data store stores the leaf nodes of each replica Merkle tree Modified to
[0118] (6) The data store calculates the modified authentication path of block j in all copies. ij > 1≤i≤n , where A ij Indicates that on the Merkle tree of replica No. i, from the leaf node All sibling nodes required to reach the root node.
[0119] (7) The data store stores the label σ j Modified to σ' j , and generate a label set Φ'={σ1,…,σ' j ,…,σ m}.
[0120] (8) The data store sends the authentication path ij > 1≤i≤n To the data owner.
[0121] (9) After receiving the authentication path, the data owner generates a new replica cluster tree root h' DR , and update the metadata to M'=h(ID F / / h DR ').
[0122] Figure 7 The schematic diagram of the replica Merkle tree when modifying a data block is shown. The data storer modifies the target data block in different replicas of the target file to an updated value; in each replica Merkle tree, the hash of the target data block is replaced with the hash of the updated value as the leaf node of each replica Merkle tree to regenerate each replica Merkle tree. Figure 7 As shown in the figure, assuming that the first data block in all copies is to be modified, the slash tree node represents the modified node, and the modified leaf nodes include {h 11 ,h 21 ,…,h n1}, and all are modified to Gray nodes represent the authentication path of the modified data block. For example, the authentication path of b1'1 includes {h 12 ,h 1B}. On the data owner side, use the authentication path <{h 12 ,h 1B},…,{h n2 ,h nB}> and the modified data block A new directory tree root h' can be constructed DR , and generate metadata M'=h(ID F / / h DR ').
[0123] (ii) The data block operation type is data block insertion
[0124] The data owner wants to have a file F = {b1, b2, ..., b m Insert a new data block after position j in} Final composition The insertion of a new data block changes the overall structure of the file replica, but since the block index is placed in the label, there is no need to recalculate the block label that is shifted after the block is inserted, avoiding additional computational overhead. In addition, the replica aggregation Merkle tree can be used to verify the data integrity after the new data block is inserted.
[0125] (1) The data owner generates n independently distinguishable copies of the block to be inserted in And divided into s shards
[0126] (2) The data owner is each data block Calculation Tags And aggregate the tags into
[0127] (3) The data owner sends an insert request To the data store, the data store receives the insert request.
[0128] (4) The data store stores the data block Insert all copies After the jth block, the leaf nodes in all replica Merkle trees Then add a new node The new version of the file copy and the copy Merkle tree are built.
[0129] (5) The data store calculates the newly inserted block in all replicas Certification path of ij > 1≤i≤n , where A ij Indicates that on the Merkle tree of replica No. i, from the leaf node All sibling nodes required to reach the root node.
[0130] (6) The data store calculates the new label of the newly inserted data block after position j And build the original labels and new labels into a set
[0131] (7) Data storage device sends ij > 1≤i≤n To the data owner.
[0132] (8) After receiving the authentication path, the data owner generates a new replica cluster tree root h' DR , and update the metadata to M'=h(ID F / / h DR ').
[0133] Figure 8 The schematic diagram of the replica Merkle tree when inserting a data block is shown. The data store inserts the update value after the target data block in different replicas of the target file; in each replica Merkle tree, the hash of the target data block and the update value is used to replace the hash of the target data block, and the hash of the update value of the target data block and the hash of the target data block are used as leaf nodes of each replica Merkle tree to regenerate each replica Merkle tree. Assuming that we are currently inserting after the third data block of all replicas, on the data store side, the cross-hair tree node represents the inserted new leaf node, where Slash tree nodes represent nodes that are updated due to the insertion of new blocks, and newly generated nodes Used to reconstruct the replica Merkle tree. The gray nodes represent the authentication path of the newly inserted block, such as The certification path includes {h 13 ,h 14 ,h 1A}. On the data owner side, use the authentication path <{h 1A ,h 13 ,h 14},…,{h nA ,h n3 ,h n4}> and the inserted block Construct a new replica cluster tree root h'DR , and generate metadata M'=h(ID F / / h DR ').
[0134] If the user performs a large number of insertions, it may cause the tree to be unbalanced and increase the time complexity of the calculation. In response to this situation, node rotation can be used for adjustment. The specific rotation strategy can refer to the implementation method of the self-balancing binary search tree, which effectively reduces the waste of computing resources caused by the excessive length of the unilateral subtree. The deletion of data blocks in the following situation is also optimized by this strategy. Those skilled in the art should understand that since the block append operation refers to adding a new block at the end of the stored data, it can be simply implemented by inserting the data block after the last block.
[0135] (III) The data block operation type is data block deletion
[0136] The data block deletion operation is the opposite of the insertion operation. When a data block is deleted, all subsequent data blocks move forward one position. To delete the jth data block, the data owner sends <ID F ,BlockOp,j,null,null>Request to the data store.
[0137] (1) The data store calculates the authentication path of the jth data block in all replicas. ij > 1≤i≤n , where A ij Indicates that on the Merkle tree of replica No. i, from the leaf node The sibling nodes required to reach the root node.
[0138] (2) The data store deletes the jth data block in all replicas Delete leaf nodes And output a new copy of the file and the copy Merkle tree.
[0139] (3) The data store deletes σ from the tag set j , and output Φ'={σ1,…,σ j-1 ,σ j+1 ,…,σ m-1}.
[0140] (4) Data storage device sends ij > 1≤i≤n To the data owner.
[0141] Fig. 9 The figure shows a schematic diagram of the replica Merkle tree when deleting a data block. The data store deletes the target data block in different replicas of the target file; in each replica Merkle tree, the leaf node where the hash of the target data block is located is deleted, and the parent node is replaced by the sibling leaf node of the hash of the target data block to regenerate each replica Merkle tree. Assume that we currently want to delete the 4th data block in all replicas. On the data store side, the crossed-out leaf nodes represent the nodes to be deleted, and the curved arrows represent the nodes {h i3} 1≤i≤n Replace {h iB} 1≤i≤n ,The slashed nodes represent nodes updated due to deletion, and the gray nodes represent the authentication path after deleting the data block, e.g. After being deleted, the certification path includes {h 13 ,h 1A}. On the data owner side, use the authentication path <{h 13 ,h 1A},L,{h n3 ,h nA}>Construct a new copy of the cluster tree root h' DR , and generate metadata M'=h(ID F / / h DR ').
[0142] Combine the following Fig.10 Some embodiments of the disclosed data possession verification system are described.
[0143] Fig.10 FIG. 1 is a schematic diagram showing the structure of a data possession verification system according to some embodiments of the present disclosure. Fig.10As shown, the data possession verification system 100 in this embodiment includes a data owner 1001 and a data storage 1002. Among them, the data owner 1001 and the data storage 1002 are configured to: generate replica Merkle trees for different copies of the target file respectively, and the leaf nodes of each replica Merkle tree are the ordered set of hashes of each data block of the corresponding copy; the data owner 1001 is also configured to: generate a replica aggregation Merkle tree, and the leaf nodes of the replica aggregation Merkle tree are the ordered set of root nodes of each replica Merkle tree; the data owner challenges the data storage through a random data block identifier; the data storage 1002 is also configured to: determine the authentication path of each replica Merkle tree according to the random data block identifier, and send the authentication path to the data owner; the data owner 1001 is further configured to: use the data blocks corresponding to the random data block identifier in the different copies and the root node of the replica aggregation Merkle tree to verify the authentication path, and in the case of failure of the authentication path verification, determine that the data storage does not completely store different copies of the target file.
[0144] In some embodiments, the data owner 1001 is further configured to: when the authentication path verification is successful, use the private key to generate data block tags for each data block in different copies, and use each data block tag to generate a data block aggregation tag corresponding to each data block identifier; send the data block aggregation tag to the data store 1002; the data store 1002 is further configured to: generate information to be verified based on the random data block identifier and the data block aggregation tag, and send the information to be verified to the data owner 1001; the data owner 1001 is further configured to: use the public key to verify the information to be verified; in the event of verification failure, determine that the data store 1002 has not completely stored different copies of the target file; in the event of verification success, determine that the data store 1002 has completely stored different copies of the target file.
[0145] In some embodiments, the information to be verified includes: label information to be verified, data shard information to be verified, and data block information to be verified; generating the information to be verified based on the random data block identifier and the data block aggregation label includes: generating the label information to be verified based on the data block aggregation label corresponding to the random data block identifier; generating the data shard information to be verified based on each data shard contained in each data block in different copies corresponding to the random data block identifier; generating the data block information to be verified based on the data blocks corresponding to the random data block identifier in different copies.
[0146] In some embodiments, the data owner 1001 is further configured to: send the random number corresponding to the random data block identifier to the data storer 1002; generate the tag information to be verified according to the data block aggregation tag corresponding to the random data block identifier, including: generating the tag information to be verified according to the data block aggregation tag and the random number corresponding to the random data block identifier; generating the data shard information to be verified according to the data shards contained in each data block in different copies corresponding to the random data block identifier, including: generating the data shard information to be verified according to the data shards and random numbers contained in each data block in different copies corresponding to the random data block identifier.
[0147] In some embodiments, the data owner 1001 verifies the information to be verified using the public key including:
[0148] verify and Are they equal? Represents a bilinear map G1×G2→G T , G1 and G2 represent GDH groups, G T represents a multiplicative cyclic group with a prime number p as its order; i is the replica identifier, n is the total number of replicas; j is the random data block identifier, r j is the random number corresponding to the random data block identifier j; Q is the set of random data block identifiers and random numbers, H represents the BLS signature algorithm, is the jth data block of the i-th copy of the target file; k is the data shard identifier, s is the total number of data shards; u k is the random number corresponding to the shard identifier k, g is the generator of G2, y is the public key, is the kth data shard of the jth data block of the i-th copy of the target file, Z p represents an integer group; x is a private key, x∈Z p , y = g x ∈G2;
[0149] In some embodiments, the data owner 1001 is also configured to: send different copies of the target file marked with a file identifier to the data store 1002; challenge the data store 1002 through a random data block identifier, including: challenge the data store 1002 through a file identifier and a random data block identifier; determine the authentication path of the Merkle tree of each copy according to the random data block identifier, including: determine the target file according to the file identifier, and determine the authentication path of the Merkle tree of each copy of the target file according to the random data block identifier; verify the authentication path using the data blocks corresponding to the random data block identifier in different copies and the root node of the Merkle tree of the replica aggregation, including: determine different copies according to the file identifier; verify the authentication path using the data blocks corresponding to the random data block identifier in different copies, the root node of the Merkle tree of the replica aggregation, and the file identifier.
[0150] In some embodiments, the data owner 1001 is further configured to: send the file identifier, the data block operation type, the data block identifier of the target data block, the updated value of the target data block, and the updated value of the data block aggregation tag corresponding to the data block identifier of the target data block to the data store 1002; the data store 1002 is further configured to: update different copies of the target file according to the file identifier, the data block operation type, the data block identifier of the target data block, and the updated value of the target data block; update the Merkle tree of each copy; determine the updated authentication path of each copy Merkle tree according to the data block identifier of the target data block, and send the updated authentication path to the data owner 1001; the data store 1002 is further configured to: update the data block aggregation tag corresponding to the data block identifier of the target data block according to the updated value of the data block aggregation tag corresponding to the data block identifier of the target data block; update the root node of the copy aggregation Merkle tree according to the updated authentication path and the updated value of the target data block.
[0151] In some embodiments, the data block operation type is data block modification; updating the target data blocks in different copies of the target file includes: modifying the target data blocks in different copies of the target file to updated values; updating each replica Merkle tree includes: in each replica Merkle tree, replacing the hash of the target data block with the hash of the updated value as a leaf node of each replica Merkle tree to regenerate each replica Merkle tree.
[0152] In some embodiments, the data block operation type is data block insertion; updating the target data blocks in different copies of the target file includes: inserting the update value after the target data blocks in different copies of the target file; updating each replica Merkle tree includes: in each replica Merkle tree, replacing the hash of the target data block with the hash of the target data block and the update value, and using the hash of the updated value of the target data block and the hash of the target data block as leaf nodes of each replica Merkle tree to regenerate each replica Merkle tree.
[0153] In some embodiments, the data block operation type is data block deletion; updating the target data blocks in different copies of the target file includes: deleting the target data blocks in different copies of the target file; updating each copy Merkle tree includes: in each copy Merkle tree, deleting the leaf node where the hash of the target data block is located, and replacing the parent node with the sibling leaf node of the hash of the target data block to regenerate each copy Merkle tree.
[0154] Combine the following Fig.11 Some embodiments of the data possession verification device of the present disclosure are described.
[0155] Fig.11 FIG. 1 is a schematic diagram showing the structure of a data possession verification device according to some embodiments of the present disclosure. Fig.11 As shown, the data possession verification device 110 of this embodiment includes: a memory 1110 and a processor 1120 coupled to the memory 1110, and the processor 1120 is configured to execute the data possession verification method in any of the aforementioned embodiments based on the instructions stored in the memory 1110.
[0156] The memory 1110 may include, for example, a system memory, a fixed non-volatile storage medium, etc. The system memory may store, for example, an operating system, an application program, a boot loader, and other programs.
[0157] The data possession verification device 110 may also include an input / output interface 1130, a network interface 1140, a storage interface 1150, etc. These interfaces 1130, 1140, 1150, the memory 1110, and the processor 1120 may be connected, for example, via a bus 1160. The input / output interface 1130 provides a connection interface for input / output devices such as a display, a mouse, a keyboard, and a touch screen. The network interface 1140 provides a connection interface for various networked devices. The storage interface 1150 provides a connection interface for external storage devices such as SD cards and USB flash drives.
[0158] The present disclosure also includes a computer-readable storage medium having computer instructions stored thereon, which, when executed by a processor, implement the data possession verification method in any of the aforementioned embodiments.
[0159] The present disclosure is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present disclosure. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes 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 generate 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.
[0160] 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 including 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.
[0161] 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 in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0162] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure should be included in the protection scope of the present disclosure.
Claims
1. A data possession verification method, comprising: The data owner and data storage respectively generate replica Merkle trees for different copies of the target file. The leaf nodes of each replica Merkle tree are the ordered set of hashes of each data block of the corresponding replica. The data owner generates a replica aggregation Merkel tree, the leaf nodes of which are an ordered set of the root nodes of each replica Merkel tree, wherein the root node of each replica Merkel tree serves as a leaf node of the replica aggregation Merkel tree, and the root nodes of each replica Merkel tree are aggregated layer by layer into the root node of the replica aggregation Merkel tree to obtain the replica aggregation Merkel tree; The data owner challenges the data storer through a random data block identifier; The data storage device determines the authentication path of each of the replica Merkle trees according to the random data block identifier, and sends the authentication path to the data owner; The data owner verifies the authentication path using random data block identifiers of corresponding data blocks in the different copies and the root node of the replica aggregation Merkle tree, and determines that the data storer has not completely stored different copies of the target file if the authentication path verification fails.
2. The data possession verification method according to claim 1, further comprising: When the authentication path verification is successful, the data owner uses the private key to generate data block tags for each data block in the different copies, and uses each data block tag to generate data block aggregation tags corresponding to each data block identifier; The data owner sends the data block aggregation tag to the data storage; The data storer generates information to be verified according to the random data block identifier and the data block aggregation tag, and sends the information to be verified to the data owner; The data owner verifies the information to be verified using the public key; In the case of a verification failure, the data owner determines that the data store does not completely store different copies of the target file; In case of successful verification, it is determined that the data store completely stores different copies of the target file.
3. The data possession verification method according to claim 2, wherein: The information to be verified includes: tag information to be verified, data fragment information to be verified, and data block information to be verified; The generating of the information to be verified according to the random data block identifier and the data block aggregation label includes: generating the label information to be verified according to the data block aggregation label corresponding to the random data block identifier; generating the data shard information to be verified according to each data shard contained in each data block in the different copies corresponding to the random data block identifier; generating the data block information to be verified according to the data block corresponding to the random data block identifier in the different copies.
4. The data possession verification method according to claim 3, further comprising: The data owner sends the random number corresponding to the random data block identifier to the data store; The generating the tag information to be verified according to the data block aggregation tag corresponding to the random data block identifier includes: generating the tag information to be verified according to the data block aggregation tag corresponding to the random data block identifier and the random number; The generating of the data shard information to be verified according to the data shards contained in the data blocks in the different copies corresponding to the random data block identifier includes: generating the data shard information to be verified according to the data shards contained in the data blocks in the different copies corresponding to the random data block identifier and the random number.
5. The data possession verification method according to claim 4, wherein: The data owner verifies the information to be verified using the public key, including: verify and Are they equal? Represents a bilinear map G1×G2→G T , G1 and G2 represent GDH groups, G T represents a multiplicative cyclic group with a prime number p as its order; i is the replica identifier, n is the total number of replicas; j is the random data block identifier, r j is a random number corresponding to the random data block identifier j; Q is a set consisting of the random data block identifier and the random number; H represents the BLS signature algorithm; is the jth data block of the i-th copy of the target file; k is the data shard identifier, s is the total number of data shards; u k is the random number corresponding to the shard identifier k, g is the generator of G2, y is the public key, is the kth data shard of the jth data block of the i-th copy of the target file, Z p represents an integer group; x is a private key, x∈Z p , y = g x ∈G2; 6. The data possession verification method according to claim 2, further comprising: The data owner sends different copies of the target file marked with the file identifier to the data storage; The challenging the data storage holder through the random data block identifier includes: challenging the data storage holder through the file identifier and the random data block identifier; Determining the authentication path of each of the replica Merkle trees according to the random data block identifier includes: determining the target file according to the file identifier, and determining the authentication path of each of the replica Merkle trees of the target file according to the random data block identifier; The method of verifying the authentication path by using the data blocks corresponding to the random data block identifiers in the different copies and the root node of the replica aggregation Merkle tree includes: determining the different copies according to the file identifier; verifying the authentication path by using the data blocks corresponding to the random data block identifiers in the different copies, the root node of the replica aggregation Merkle tree and the file identifier.
7. The data possession verification method according to claim 6, further comprising: The data owner sends the file identifier, the data block operation type, the data block identifier of the target data block, the updated value of the target data block, and the updated value of the data block aggregation tag corresponding to the data block identifier of the target data block to the data storage; The data storage device updates different copies of the target file according to the file identifier, the data block operation type, the data block identifier of the target data block, and the update value of the target data block; The data storer updates each of the replica Merkle trees; The data storage device determines the updated authentication path of each of the replica Merkle trees according to the data block identifier of the target data block, and sends the updated authentication path to the data owner; The data storer updates the data block aggregation tag corresponding to the data block identifier of the target data block according to the update value of the data block aggregation tag corresponding to the data block identifier of the target data block; The data owner updates the root node of the replica aggregation Merkle tree based on the updated authentication path and the updated value of the target data block.
8. The data possession verification method according to claim 7, wherein: The data block operation type is data block modification; The updating of the target data blocks in the different copies of the target file includes: modifying the target data blocks in the different copies of the target file to the updated values; The updating of each of the replica Merkle trees includes: in each of the replica Merkle trees, replacing the hash of the target data block with the hash of the update value as a leaf node of each of the replica Merkle trees, so as to regenerate each of the replica Merkle trees.
9. The data possession verification method according to claim 7, wherein: The data block operation type is data block insertion; The updating of the target data blocks in the different copies of the target file comprises: inserting the update value after the target data blocks in the different copies of the target file; The updating of each of the replica Merkle trees includes: in each of the replica Merkle trees, replacing the hash of the target data block with the hash of the target data block and the update value, and using the hash of the update value of the target data block and the hash of the target data block as leaf nodes of each of the replica Merkle trees to regenerate each of the replica Merkle trees.
10. The data possession verification method according to claim 7, wherein: The data block operation type is data block deletion; The updating of the target data blocks in different copies of the target file includes: deleting the target data blocks in different copies of the target file; The updating of each of the replica Merkle trees includes: in each of the replica Merkle trees, deleting the leaf node where the hash of the target data block is located, and replacing the parent node with the brother leaf node of the hash of the target data block to regenerate each of the replica Merkle trees.
11. A data possession verification system, comprising a data owner and a data storage; wherein: The data owner and the data storage are configured to: generate replica Merkle trees for different replicas of the target file, and the leaf nodes of each replica Merkle tree are the ordered set of hashes of each data block of the corresponding replica; The data owner is further configured to: generate a replica aggregation Merkle tree, the leaf nodes of which are an ordered set of the root nodes of each replica Merkle tree, wherein the root node of each replica Merkle tree serves as a leaf node of the replica aggregation Merkle tree, and the root nodes of each replica Merkle tree are aggregated layer by layer into the root node of the replica aggregation Merkle tree to obtain the replica aggregation Merkle tree; the data owner challenges the data storage owner through a random data block identifier; The data storer is further configured to: determine the authentication path of each of the replica Merkle trees according to the random data block identifier, and send the authentication path to the data owner; The data owner is further configured to verify the authentication path using random data block identifiers corresponding to the data blocks in the different copies and the root node of the replica aggregation Merkle tree, and determine that the data storer has not completely stored different copies of the target file if the authentication path verification fails.
12. A data possession verification device, comprising: Memory; as well as A processor coupled to the memory, wherein the processor is configured to execute the data possession verification method according to any one of claims 1 to 10 based on instructions stored in the memory.
13. A computer-readable storage medium, wherein: The computer-readable storage medium stores computer instructions, and when the instructions are executed by a processor, the data possession verification method according to any one of claims 1 to 10 is implemented.
