Decentralized storage efficient batch auditing scheme supporting time awareness and distributed digital identity
By introducing a blockchain-based time-aware data auditing solution into the decentralized storage network and utilizing smart contracts and polynomial commitment technology, the challenges of data integrity and security in decentralized storage are solved and efficient batch verification is achieved. and enhanced security to ensure the timeliness and integrity of stored files.
Patent Information
- Application Number
- CN202410784866.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-09-17
AI Technical Summary
In a decentralized storage network, ensuring data integrity and security, especially when multiple storage providers are involved, it is difficult for existing technologies to achieve efficient time awareness and batch auditing of distributed digital identities, resulting in data storage unreliability and potential service interruptions.
A time-aware data audit scheme based on blockchain is proposed, which uses smart contracts and polynomial commitment technology to support batch verification of files with different timestamps and enhances the security of the audit process through distributed digital identity verification. The solution includes five steps of parameter setting, storing files, generating challenges, generating proofs and proof auditing. It implements batch verification of timestamp files through polynomial commitments and accumulators to ensure the behavioral reliability of the storage provider.
It achieves efficient batch verification of data in a decentralized environment, ensures the timeliness and integrity of stored files, improves the security and efficiency of the audit process, and reduces the risk of single points of failure.
Smart Images

Figure CN118659868A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of decentralized storage audit technology, and in particular to a decentralized storage efficient batch audit method supporting time perception and distributed digital identity. Background Art
[0002] In recent years, with the popularity of big data and artificial intelligence applications, the scale and amount of data generated have reached an unprecedented level. Therefore, the data storage problem has reached a critical stage. Outsourced storage is favored by individuals and enterprises due to its characteristics of large data access elasticity, strong scalability, and low storage cost, and is widely regarded as the next generation of data storage solutions. However, in practical applications, storing data only on a single cloud server brings potential risks of inefficiency and unreliability. Due to the possibility of single point failure, cloud servers may cause service interruptions and data loss. Outsourced storage based on decentralized architecture allows users to store and retrieve data by interacting directly with other users in a decentralized network without relying on a central server. This approach greatly reduces the risk of failure and improves the elasticity of data access. In recent years, many decentralized storage projects such as Filecoin, Sia, and Storj have been developed and promoted. They realize the functions of decentralized storage through blockchain technology, provide reliable, secure, and efficient storage services, and provide users with new data storage options. They have built an algorithm-based storage market platform that enables clients and storage providers to participate freely. On this platform, customers who want to purchase storage resources can store their data in storage providers through the network for a certain fee. Storage providers' storage resources come from individuals or businesses participating in the market, who rent out their idle storage resources in exchange for certain financial compensation. This form of resource exchange provides customers with a cost-effective and secure storage solution and increases revenue for individuals and businesses who want to rent out unused storage resources. Ensuring that each storage provider accurately performs data storage services is a key challenge in a decentralized network environment. Given that decentralized storage (DS) networks allow different storage providers to participate, data integrity verification must be performed on these nodes to maintain a high standard of storage services. Specifically, storage providers need to prove that they can keep the original state of the file unchanged for a given period of time to ensure the integrity and security of the stored data. To achieve this goal, decentralized platforms need to introduce an efficient storage audit mechanism. This mechanism can effectively monitor the behavior of storage providers to ensure that they comply with established storage protocols, thereby ensuring that data integrity is reliably maintained. In the real world, users tend to pay based on actual usage time. This model allows users to make flexible payments based on real-time changes in storage needs, which is called a pay-as-you-go payment model. Auditing storage time through a storage audit policy can ensure the fairness and transparency of such payments. In actual storage scenarios, there are a large number of files in outsourced storage, and the storage time required for different files is usually inconsistent. Therefore, it is necessary to propose a time-aware data auditing solution based on blockchain to support batch auditing of data in P2P outsourced storage. In addition, the user's distributed digital identity can be used to verify user data and enhance the security of the audit process. Summary of the invention
[0003] To address the above challenges, we propose ETA, an efficient batch audit scheme for decentralized storage that supports time-awareness and distributed digital identity, supporting batch verification of decentralized storage. The scheme enables users to batch verify data in a decentralized environment and provide information about the timeliness of stored files in plain text. In a decentralized network, users outsource their data to storage providers. During the audit process, the smart contract on the blockchain sends an audit challenge, and the storage provider provides storage proof based on the challenge content. When the smart contract verifies the correctness of the storage proof, it means that the storage provider has stored the data correctly; otherwise, a penalty will be imposed. In addition, in the de-2 centralized setting, the audit scheme uses distributed digital identity (DID) to verify the identity of the user, enhancing the security of the audit process. The main contributions can be summarized as follows:
[0004] (1) We propose an efficient batch auditing scheme for decentralized storage that supports time awareness and distributed digital identity. The scheme allows integrity verification of data without compromising privacy. It supports batch verification of files with different timestamps and ensures the accuracy of timestamps. In addition, audit security is enhanced based on decentralized identity.
[0005] (2) We conduct a formal security analysis and a comprehensive performance evaluation of the proposed solution. Compared with related works, the results show that the proposed solution has reliable security and improves efficiency in computation and communication.
[0006] There are three parties involved in the ETA system model, namely the client, the decentralized storage provider (DSP), and the smart contract on the blockchain.
[0007] (1) Clients: Users outsource local data to multiple decentralized storage providers in the network and seek to ensure the integrity of their data storage. In addition, the timeliness of data storage is the user’s primary concern, so the audit solution must also prioritize this aspect.
[0008] (2) Decentralized Storage Providers: Storage providers provide storage space for outsourcing data to users. Due to the diversity of storage devices that storage providers participating in the decentralized network can provide, the storage resources they provide may come from servers, personal computers, or mobile devices.
[0009] (3) Smart Contract on the blockchain: The blockchain is maintained by the clients and DSPs in the network. It stores transactions between clients and DSPs in the form of blocks. The storage contract (SC) stored in the blockchain is used to audit the data in the blockchain on behalf of the client.
[0010] Figure 1 The interaction between the three parties and the main processes in the audit and storage layers of each entity are also explained. The user first pre-processes the file in the storage layer, and then generates a validator and the corresponding audit status in the audit layer. Then, it uploads the file block, validator, and audit status to the DSP. It also passes the audit status to the storage contract in the blockchain. Each DSP receives the file and stores it on its storage server. The SC in the blockchain challenges the DSP with the challenge parameters. The DSP generates aggregate data, constructs a proof polynomial with the aggregate data, and aggregates the data validator. The DSP forwards all the proofs of the challenged file block to the SC. Finally, the SC verifies the proof of the validator to check whether the DSP has completely stored the data.
[0011] This solution has 5 steps, the specific steps are as follows. The process is shown in Figure 1 .
[0012] (1) Parameter setting phase: Based on the input security parameter λ, the user generates a secret value ξ and a secret key δ, as well as the corresponding public parameter pm.
[0013] (2) File storage phase: In the file storage phase, the user generates a data verifier and an audit state. It requires the input of a secret value ξ, a secret key δ, a polynomial compression ratio d, and a file M. The output includes a set of data authenticators υ i and audit status D st .
[0014] (3) Challenge generation phase: The smart contract randomly selects a data block index based on public parameters and data block index and generates a random challenge. The challenge includes keys R1 and R2, and the number of challenge blocks r.
[0015] (4) Proof generation phase: The decentralized storage provider uses the proof generation algorithm to generate the corresponding proof based on the above challenge content and some parameters. The generated PRF proof includes polynomial linear aggregation output, auxiliary proof and audit proof.
[0016] (5) Proof audit phase: The smart contract implements proof audit and is responsible for verifying the proof generated by the decentralized storage provider. It takes the key (R1, R2), the challenge number r, the proof Prf and the public parameter pm as input. If the decentralized storage provider can pass the verification, the algorithm outputs a successful SUC, otherwise it outputs a failed FAIL.
[0017] The present invention uses polynomial commitment and accumulator to realize batch verification of time stamp files. The polynomial commitment reduces the extra storage overhead generated by auditing, and the accumulator realizes batch verification of different time stamp files.
[0018] Attached pictures recommended
[0019] Figure 1 This is the system architecture diagram. DETAILED DESCRIPTION
[0020] The three participants in this solution are decentralized storage providers, users (Clients) and smart contracts (Smart Contract), and each participant executes the corresponding algorithm. Specifically, users execute the setup phase algorithm and the storage file phase algorithm, smart contracts execute the challenge generation phase algorithm and the proof verification phase algorithm; decentralized storage providers execute the proof generation phase algorithm. The specific implementation method is as follows.
[0021] (1) Parameter setting stage
[0022] In the setup phase, the user generates public parameters and secret values. Assume that P(x) is set to a polynomial of degree d-1, where d is the polynomial compression ratio (P-compression ratio). g and h represent two generators of the multiplication cyclic group G1 with prime order p. The client sends the distributed digital identity D id is input into the pseudo-random function PRF(·) to generate the secret value ξ and the secret key δ. Then the public parameter {κ b} b∈[0,d-1] Calculated as Where b represents the value range [0, d-1], ξ is the secret value. And calculate the public value {φ z} z∈[0,|M|] , the calculation formula is Where |M| represents the number of file blocks in file M, z represents the value range [0,|M|], and δ is the secret key.
[0023] (2) File storage stage
[0024] The user will each file block M z ∈M is split into data blocks M z ={M z,0 ,M z,1 ···,M z,d-1}, where d-1 is the degree of the polynomial, and z represents the value range [0,|M|]. The user then performs polynomial compression and uses polynomial commitment to compress the data. First, the polynomial of each file block is obtained. The polynomial of each file block is represented by P u (x) = α u,0 +α u,1 x+α u,2 x 2 +···+α u,d-1 x d-1 mod p, where α u,b is the hash value calculated for each data block, where u∈[0,|M|], |M| is the number of file blocks in file M, b represents the value range [0, d-1], d-1 is the polynomial degree. mod p is the formula to perform a modulo operation on the result, the object of the modulo operation is p, p is the prime field The user computes the polynomial commitment as P i (ξ), where ξ is the secret value generated in the setup phase.
[0025] Afterwards, the user computes the data authenticator z represents the value range [0,|M|], where P z (υ) is the polynomial commitment just calculated, multiplying P by the exponent of the generator g z (ξ) is to prevent P z (ξ) is exposed to the decentralized storage provider. The user then calculates the audit state D st Audit Status D st The calculation formula is Commit G It means submitting the value in the multiplication cycle group G1 to the prime field In z} z∈M It is a data authenticator, Commit G (v z ) is to convert the data authenticator {v z} z∈M From values in the multiplicative cyclic group G1 to the field of prime numbers t is the timestamp. δ is the secret key generated in the setup phase. s in this equation represents a value range of [0,|M|], |M| is the number of file blocks in file M, and t is the timestamp. The data authenticator user will store all file blocks {M z}、Data Authenticator{ν b} and audit status D st Transmit to the decentralized storage provider. Where z represents the value range [0,|M|].
[0026] (3) Challenge Generation Phase
[0027] In the challenge generation phase, the user sends the challenge parameters (R1, R2, r) to the decentralized storage provider, where R1 and R2 are random keys and r is the challenge number (the number of challenge file blocks).
[0028] (4) Proof Generation Phase
[0029] Given the challenge parameters, the decentralized storage provider calculates the challenge set Δ={(i,μ i )},in is the index of the challenge block, and is the coefficient generated by the proof, where k is equivalent to a random value, and the value range of k is k∈[1,r], and They represent the pseudo-random permutation of random key R1 and the pseudo-random function of random key R2, μ i The value range of is i∈[0,|Δ|], where |Δ| is the number of elements in the challenge set. Based on the challenge set Δ, the decentralized storage provider constructs the proof polynomial P(x).
[0030]
[0031] In equation (2), let α x,i represents {μ i α i,j ·x b} b∈[0,d-1] The decentralized storage provider gets the coefficient α x ={α x,i} i∈Δ .
[0032] The decentralized storage provider then generates an auxiliary proof η v . Auxiliary proof η v The calculation formula of is shown in equation (3).
[0033]
[0034] Auxiliary proof η v The data authenticator that aggregates all challenge blocks. In equation (3) y∈M\Δ means that the range of y is the set of files M after removing the challenge set Δ, h is the generator of the multiplicative cycle group G1 in the setup phase, Is the audit status D st The elements in the set,δ,are the secret keys in the setup phase.
[0035] In order to prevent the secret key δ from being exposed, the To calculate the auxiliary proof, where β yare the public parameters generated in the setup phase, β y is through the polynomial The calculated coefficients, |M| and |Δ| represent the number of elements in file M and challenge set Δ, M\Δ represents the set of file M after removing challenge set Δ, φ y is the public value generated in the setup phase, where y∈[0,|M|-|Δ|] and y∈M\Δ both represent the set of files M after removing the challenge set Δ. Here, y∈[0,|M|-|Δ|] and y∈M\Δ both represent the set of files M after removing the challenge set Δ. Is the audit status D st The elements in the collection (y is the index), δ is the secret key, β y are the calculated polynomial coefficients (y is the index), δ y represents the yth power of the secret key. Finally, the decentralized storage provider will prove that Prf=(v,η v ,α x ) is sent to the smart contract, where v is the set of data authenticators, η v is an auxiliary proof, α x is the linear aggregation output.
[0036] (5) Audit verification stage
[0037] In the audit verification phase, after receiving the proof from the decentralized storage provider, the verifier first uses the same method in the proof algorithm to retrieve the challenge set Δ={(i,μ i )},in is the index of the challenge block, and is the coefficient generated by the proof, where k is equivalent to a random value, and the value range of k is k∈[1,r], and They represent the pseudo-random permutation for the random key R1 and the pseudo-random function for the random key R2 respectively.
[0038] Afterwards, the smart contract calculates Where i∈Δ, Δ is the challenge set, Commit G It means submitting the value in the multiplication cycle group G1 to the prime field In i} i∈Δ is a data authenticator within the challenge set Δ. Then calculate the polynomial Get the coefficients of the polynomial. After expansion, it becomes the following equation: γ0+γ1δ+...+γ |Δ| δ |Δ| =γ0+γ1δ+...+γ r δr ,γ is the polynomial coefficient obtained after the expansion calculation, δ is the secret value generated in the setup phase, and r represents the number of challenge blocks, which is equivalent to the number of elements in the challenge set |Δ|. i} i∈Δ After calculating H Δ , H Δ is the auxiliary value used to verify the auxiliary proof. Calculate H Δ The formula is where φ is the common value generated in the setup phase, {γ i} i∈Δ is the calculated polynomial coefficient within the challenge set. The auxiliary proof of the data verifier is verified by equation (5), where e represents the bilinear pairing operation, D st represents the audit state, h represents the generator of the multiplicative cyclic group G1 with prime order p, η v represents auxiliary proof, H Δ is the verification auxiliary value just calculated. This equation means to determine whether the two sides are equal after the bilinear pairing operation. If they are equal, it means that the auxiliary proof verification is successful.
[0039] e(D st ,h)=e(η υ ,H Δ )#(5)
[0040] Afterwards, the audit result is checked by equation (6). In equation (6), the value range of i is i∈Δ,υ i is a data authenticator, μ i is the coefficient generated by the proof. In addition, The value range of b is [0, d-1], where g is the generator of the multiplicative cyclic group G1, P(ξ) is the point of polynomial commitment, and k b are the public parameters generated during the setup phase, a x,b is the linear aggregation output generated in the proof phase. If both sides of equation (6) are equal, it proves that the data is indeed stored in the decentralized storage provider, otherwise it means that the decentralized storage provider does not store the data correctly.
[0041]
[0042] In the embodiments provided in this application, it should be understood that the disclosed method can be implemented in other ways without exceeding the spirit and scope of this application. The current embodiment is only an illustrative example and should not be used as a limitation. The specific content given should not limit the purpose of this application.
[0043] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. An efficient batch auditing solution for decentralized storage supporting time perception and distributed digital identity, characterized by: The three participants in this scheme are decentralized storage providers, users (Clients) and smart contracts (Smart Contract). Each participant executes the corresponding algorithm; specifically, users execute the setting phase algorithm and the storage file phase algorithm, and smart contracts execute the challenge generation phase algorithm and the proof verification phase algorithm; decentralized storage providers execute the proof generation phase algorithm. The specific implementation method is as follows; (1) Parameter setting stage In the setup phase, the user generates public parameters and secret values; assume that P(x) is set to a polynomial of degree d-1, where d is the polynomial compression ratio; g and h represent two generators of the multiplicative cyclic group G1 with prime order p; the client sends the distributed digital identity D id Input into the pseudo-random function PRF(·) to generate the secret value ξ and the secret key δ; Then the public parameter {κ b } b∈[0,d-1] Calculated as Where b represents the value range [0, d-1], ξ is the secret value; And calculate the common value {φ z } z∈[0,|M|] , the calculation formula is Where |M| represents the number of file blocks in file M, z represents the value range [0,|M|], and δ is the secret key; (2) File storage stage The user will each file block M z ∈M is split into data blocks M z ={M z,0 ,M z,1 ···,M z,d-1 }, where d-1 is the degree of the polynomial, and z represents the value range [0,|M|]; then the user performs polynomial compression and compresses the data using polynomial commitment; first, the polynomial of each file block is obtained; the polynomial of each file block is expressed as P u (x) = α u,0 +α u,1 x+α u,2 x 2 +···+α u,d-1 x d-1 mod p, where α u,b is the hash value calculated for each data block, where u∈[0,|M|], |M| is the number of file blocks in file M, b represents the value range [0, d-1], d-1 is the degree of the polynomial; mod p is the formula for performing a modular operation on the result. The object of the modular operation is p, which is a prime number domain. The number of features in; the user calculates the polynomial commitment as P i (ξ), where ξ is the secret value generated in the setup phase; Afterwards, the user computes the data authenticator z represents the value range [0,|M|], where P z (υ) is the polynomial commitment just calculated, multiplying P by the exponent of the generator g z (ξ) is to prevent P z (ξ) is exposed to the decentralized storage provider; the user then calculates the audit state D st ;Audit status D st The calculation formula is Commit G It means submitting the value in the multiplication cycle group G1 to the prime field In z } z∈M It is a data authenticator, Commit G (v z ) is to convert the data authenticator {v z } z∈M From values in the multiplicative cyclic group G1 to the field of prime numbers middle; t refers to the timestamp; δ is the secret key generated in the setup phase. In this equation, s represents the value range [0,|M|], |M| is the number of file blocks in file M, and t represents the timestamp. The data authenticator user sends all file blocks {M z }、Data Authenticator{v b } and audit status D st Transmit to the decentralized storage provider; where z represents the value range [0,|M|]; (3) Challenge Generation Phase In the challenge generation phase, the user sends the challenge parameters (R1, R2, r) to the decentralized storage provider, where R1 and R2 are random keys and r is the challenge number (the number of challenge file blocks); (4) Proof Generation Phase Given the challenge parameters, the decentralized storage provider calculates the challenge set Δ={(i,μ i )},in is the index of the challenge block, and is the coefficient generated by the proof, where k is equivalent to a random value, and the value range of k is k∈[1,r], and They represent the pseudo-random permutation of random key R1 and the pseudo-random function of random key R2, μ i The value range of is p∈[0,|Δ|], where |Δ| is the number of elements in the challenge set. Based on the challenge set Δ, the decentralized storage provider constructs the proof polynomial P(x). In equation (2), let α x,p represents {μ i α i,j ·x b } b∈[0,d-1] ; The decentralized storage provider gets the coefficient α x ={α x,i } i∈Δ ; The decentralized storage provider then generates an auxiliary proof η v ; Auxiliary proof η v The calculation formula is shown in equation (3); Auxiliary proof η v The data authenticator that aggregates all challenge blocks; in equation (3) y∈M\Δ means that the range of y is the set of files M after removing the challenge set Δ, h is the generator of the multiplicative cycle group G1 in the setup phase, Is the audit status D st The elements in the set,δ,are the secret keys in the setup phase; In order to prevent the secret key δ from being exposed, the To calculate the auxiliary proof, where β y are the public parameters generated in the setup phase, β y is through the polynomial The calculated coefficients, |M| and |Δ| represent the number of elements in file M and challenge set Δ, M\Δ represents the set of file M after removing challenge set Δ, φ y is the public value generated in the setup phase, where y∈[0,|M|-|Δ|] and y∈M\Δ both represent the set of files M after removing the challenge set Δ; in the polynomial Here, y∈[0,|M|-|Δ|] and y∈M\Δ both represent the set of files M after removing the challenge set Δ. Is the audit status D st The elements in the collection (y is the index), δ is the secret key, β y are the calculated polynomial coefficients (y is the index), δ y represents the yth power of the secret key; finally, the decentralized storage provider will prove that Prf=(v,η v ,α x ) is sent to the smart contract, where υ is the set of data authenticators, η υ is an auxiliary proof, α x is the linear aggregation output; (5) Audit verification stage In the audit verification phase, after receiving the proof from the decentralized storage provider, the verifier first uses the same method in the proof algorithm to retrieve the challenge set Δ={(i,μ i )},in is the index of the challenge block, and is the coefficient generated by the proof, where k is equivalent to a random value, and the value range of k is k∈[1,r], and They represent the pseudo-random permutation for the random key R1 and the pseudo-random function for the random key R2 respectively; Afterwards, the smart contract calculates Where i∈Δ, Δ is the challenge set, Commit G It means submitting the value in the multiplication cycle group G1 to the prime field In i } i∈Δ is a data authenticator within the challenge set Δ; then calculate the polynomial Get the coefficients of the polynomial; where After expansion, it becomes the following equation: γ0+γ1δ+...+γ |Δ| δ |Δ| =γ0+γ1δ+...+γ r δ r ,γ is the polynomial coefficient obtained after the expansion calculation, δ is the secret value generated in the setup phase, r represents the number of challenge blocks, which is equivalent to the number of elements in the challenge set |Δ|; the polynomial coefficient {γ i } i∈Δ After calculating H Δ , H Δ is the auxiliary value used to verify the auxiliary proof; calculate H Δ The formula is where φ is the common value generated in the setup phase, {γ i } i∈Δ is the calculated polynomial coefficient within the challenge set; the auxiliary proof of the data verifier is verified by equation (5), where e represents the bilinear pairing operation, D st represents the audit state, h represents the generator of the multiplicative cyclic group G1 with prime order p, η υ represents auxiliary proof, H Δ is the verification auxiliary value just calculated; this equation means to determine whether the two sides are equal after the bilinear pairing operation. If they are equal, it means that the auxiliary proof verification is successful; wheat st ,h)=e(η υ ,H Δ )#(5) Afterwards, the audit result is checked by equation (6); in equation (6), the value range of i is i∈Δ,υ i is a data authenticator, μ i is the coefficient generated by the proof; in addition, The value range of b is [0, d-1], where g is the generator of the multiplicative cyclic group G1, P(ξ) is the point of polynomial commitment, κ b are the common parameters generated in the setup phase, α x,b is the linear aggregation output generated in the proof phase; if both sides of equation (6) are equal, it proves that the data is indeed stored in the decentralized storage provider, otherwise it means that the decentralized storage provider does not store the data correctly;
Citation Information
Cited By
Efficient dual-compression data integrity verification scheme based on distributed storage
CN116938539A
High-efficiency dual-compression data integrity verification scheme based on distributed storage
CN116938539B
