A trusted data verification processing method, device and equipment based on blockchain
By introducing blockchain technology and consensus algorithms into the cloud storage system, the problem of untrustworthy data integrity detection in the traditional remote data audit model is solved, secure storage and transparent verification of cloud storage data are realized, and the reliability of the system is enhanced. and security.
Patent Information
- Application Number
- CN202311633063.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-01
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2043-12-01
AI Technical Summary
The traditional remote data audit model has the problem of unreliable data integrity detection results. Especially between cloud storage service providers and users, third-party auditors may participate in collusion attacks, resulting in unreliable data integrity detection.
Adopting a trusted data verification processing method based on the blockchain, through a consensus algorithm elected by representative nodes from multiple agents, the integrity of user data on the cloud storage server is verified, taking advantage of the decentralization and non-tamperability of the blockchain characteristics to ensure data integrity and transparency.
It realizes the safe storage of data in cloud storage services, removes third-party auditors, improves the credibility between users and cloud storage service providers, reduces the risk of fraud, and enhances the security and reliability of the system.
Smart Images

Figure CN117879860B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information security technology, and in particular to a trusted data verification processing method, device and equipment based on blockchain. Background Art
[0002] At present, with the widespread use of cloud storage services, users are often harmed by security risks. For example, cloud storage providers may engage in dishonest behavior that damages the security status of data integrity, such as maliciously tampering with user stored data and other operations. In order to prevent dishonest services from untrusted cloud service providers, most users introduce third-party auditors to assist users and cloud storage servers in data interaction and jointly execute data integrity protocols. However, third-party auditors are not completely trustworthy. A centralized single third party may still launch collusion attacks with other entities. Therefore, traditional remote data audit models have the problem of unreliable data integrity detection results. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide a trusted data verification processing method, device and equipment based on blockchain, establish a trusted and efficient remote data integrity detection model, and realize the secure storage of data in cloud storage services.
[0004] In order to solve the above technical problems, the technical solution of the present invention is as follows:
[0005] A trusted data verification processing method based on blockchain is applied to a representative node, wherein the representative node is one selected from a plurality of agents in communication connection with a cloud storage server through a consensus algorithm, and the method comprises:
[0006] Receiving a first broadcast message sent by a user after uploading a data file to a cloud storage server and a second broadcast message sent by the cloud storage server after receiving the data file;
[0007] According to the first broadcast message and the second broadcast message, updating the ledger record transaction block on the blockchain;
[0008] Perform integrity verification on the data file stored on the cloud storage server to obtain a verification result.
[0009] Optionally, the first broadcast message includes: a first user identifier, a first cloud storage server identifier, a first encrypted file identifier and a signature of a root node, and the signature of the root node is obtained after constructing a hash tree based on encrypted file data blocks in the data file.
[0010] Optionally, the second broadcast message includes: a second cloud storage server identifier, a second user identifier, and a second encrypted file identifier.
[0011] Optionally, updating a ledger record transaction block on a blockchain according to the first broadcast message and the second broadcast message includes:
[0012] Verifying the consistency of the first broadcast message and the second broadcast message to obtain a first verification result;
[0013] Writing the first verification result into the blockchain transaction result field;
[0014] The representative node initiates the consensus process, and after the consensus is successful, the ledger on the blockchain is updated to record the transaction block.
[0015] Optionally, verifying the consistency of the first broadcast message and the second broadcast message to obtain a first verification result includes:
[0016] Verify the consistency of the first user identifier, the first cloud storage server identifier, the first encrypted file identifier in the first broadcast message and the second cloud storage server identifier, the second user identifier, and the second encrypted file identifier in the second broadcast message to obtain a first verification result.
[0017] Optionally, performing integrity verification on the data file stored on the cloud storage server to obtain a verification result includes:
[0018] Acquire a third broadcast message sent by the user after constructing the challenge information and a fourth broadcast message responded by the cloud storage server after receiving the third broadcast message;
[0019] Performing data integrity verification according to the third broadcast message and the fourth broadcast message to obtain a verification result;
[0020] The verification result is written into the blockchain transaction result field, and the representative node initiates a consensus process. After the consensus is successful, the ledger record transaction block on the blockchain is updated.
[0021] Optionally, the method of electing the representative node from multiple agents through a consensus algorithm includes:
[0022] According to the credit score information of each agent in the agent set, an initial agent set is obtained;
[0023] Divide the initial proxy set into 2f+1 subsets, where f is the maximum possible number of malicious super nodes in the subset;
[0024] Each agent in the 2f+1 subsets votes according to the credit score to obtain 2f+1 super nodes;
[0025] The 2f+1 super nodes are randomly sorted, and a representative node is obtained according to the order of arrangement.
[0026] The present invention also provides a trusted data verification processing device based on blockchain, comprising:
[0027] The storage module is used to receive a first broadcast message sent by a user after uploading a data file to a cloud storage server and a second broadcast message sent by the cloud storage server after receiving the data file; and update the ledger record transaction block on the blockchain according to the first broadcast message and the second broadcast message;
[0028] The verification module is used to perform integrity verification on the data file stored on the cloud storage server to obtain a verification result.
[0029] The present invention also provides a computing device, comprising: a processor and a memory storing a computer program, wherein when the computer program is run by the processor, the method as described above is executed.
[0030] The present invention also provides a computer-readable storage medium storing instructions, which, when executed on a computer, enable the computer to execute the above method.
[0031] The above solution of the present invention includes at least the following beneficial effects:
[0032] The above scheme of the present invention receives a first broadcast message sent by a user after uploading a data file to a cloud storage server and a second broadcast message sent by the cloud storage server after receiving the data file; updates the ledger record transaction block on the blockchain according to the first broadcast message and the second broadcast message; and performs integrity verification on the data file stored on the cloud storage server to obtain a verification result. The blockchain is introduced to remove third-party auditors, decentralize the interaction between the client and the cloud storage server, and ensure the integrity of the data. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 It is a flowchart of a trusted data verification processing method based on blockchain according to an embodiment of the present invention;
[0034] Figure 2 It is a system model diagram of a trusted data verification processing method based on blockchain according to an embodiment of the present invention;
[0035] Figure 3 It is a structural diagram of a trusted data verification processing device based on blockchain according to an embodiment of the present invention. DETAILED DESCRIPTION
[0036] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.
[0037] like Figure 1 As shown, an embodiment of the present invention proposes a trusted data verification processing method based on blockchain, which is applied to a representative node, wherein the representative node is one selected from a plurality of agents in communication connection with a cloud storage server through a consensus algorithm, and the method comprises:
[0038] Step 11, receiving a first broadcast message sent by a user after uploading a data file to a cloud storage server and a second broadcast message sent by the cloud storage server after receiving the data file;
[0039] Step 12: updating the ledger record transaction block on the blockchain according to the first broadcast message and the second broadcast message;
[0040] Step 13: perform integrity verification on the data file stored on the cloud storage server to obtain a verification result.
[0041] In this embodiment, blockchain technology has the characteristics of tamper-proof, decentralization, and traceability, and is used to ensure the trust between users and cloud storage providers, and supports public auditing. In view of the shortcomings of traditional solutions, the present invention introduces blockchain and proposes a blockchain-based integrity audit model. And for the permission chain, a set of credit-based incentive strategies and consensus algorithms are proposed.
[0042] like Figure 2 As shown, this application proposes a system model, which includes five entities: a key management authority PKG, a user, an agent set, a cloud storage server CSP, and a blockchain.
[0043] PKG is managed by a trusted authority and is responsible for setting public parameters for the entire system and generating keys for other entities in the system.
[0044] User is an entity that has a large amount of data that can be outsourced, but its communication, storage, and computing resources are limited. It needs to store the data on the cloud storage server and send audit requests to the CSP on demand.
[0045] The agent is regarded as a set of entities designated by the user. The entity set selects a representative node through a consensus algorithm to maintain the blockchain database (distributed ledger) on behalf of the user, and returns the final result to the user when the ledger is updated.
[0046] The cloud storage server CSP provides users with a large amount of storage resources and more efficient computing power, and responds to the received integrity requests. At the same time, it can also check the updates of blocks and maintain blocks at any time like users.
[0047] Due to its advantages of decentralization, traceability and immutability, blockchain enables the entire system to implement secure integrity audits, public verification and other mechanisms.
[0048] The selection of the representative node is based on the consensus mechanism and reward algorithm. The consensus node set and the representative node are selected through the election mechanism preset in this application to perform data integrity verification. After the user uploads the data file to the cloud storage server, the data integrity verification is initiated, and the representative node performs the audit on behalf of the user.
[0049] In this application, the main workflow is as follows:
[0050] 1. File upload operation
[0051] Introduce system parameters, PKG generates keys for users. The next step is to upload files. The user generates a signature for file F using the key generated by PKG, splits F into data blocks for encryption, and calculates the labels of the encrypted data blocks. The Merkle hash tree is constructed using the encrypted data blocks, and its root node and the signature of the root node are calculated. For each encrypted data block, a homomorphic signature is calculated. After performing a series of operations, the user sends the encrypted file, file label, homomorphic signature, encrypted file label, hash tree root node, and root node signature to CSP, and broadcasts the request information (i.e., the first broadcast message mentioned above). After receiving the file sent by the user, CSP stores the encrypted file information and broadcasts a response message (i.e., the second broadcast message mentioned above). The representative node verifies the two broadcast messages, and after verification, the verification results are packaged into the block within a certain period of time, and the consensus process is carried out. After the consensus is successful, the blockchain ledger is updated and the result is returned to the user. After receiving the notification from the representative node, the user deletes the local copy.
[0052] 2. Audit operations
[0053] The node performs remote data integrity verification based on the "challenge-prove-verify" mechanism.
[0054] The user randomly selects a challenge set, and constructs and broadcasts the challenge set and other auxiliary information. After receiving the user's broadcast information, the CSP verifies whether the challenge set exceeds the index range of the file. If not, it calculates the proof information of the challenge set and then broadcasts the response. After receiving the two broadcast messages, the representative node verifies the data integrity of the challenge information, packages the result into the block, and then initiates a consensus proposal. After the consensus is successful, the representative node updates the ledger and returns the result to the user. If the data integrity equation holds, it proves that the data block in the challenge set is complete, otherwise it proves that the data block is damaged.
[0055] In an optional embodiment of the present invention, the first broadcast message includes: a first user identifier, a first cloud storage server identifier, a first encrypted file identifier and a signature of a root node, and the signature of the root node is obtained after constructing a hash tree based on the encrypted file data blocks in the data file.
[0056] In an optional embodiment of the present invention, the second broadcast message includes: a second cloud storage server identifier, a second user identifier, and a second encrypted file identifier.
[0057] In this embodiment, in order to perform the above verification process, the following series of parameter settings need to be performed first:
[0058] 1. Bilinear mapping
[0059] G and G T are two multiplicative cyclic groups with the same prime order p, and g is a generator of the multiplicative cyclic group G. G is selected to form the bilinear map e = G × G → G T ;
[0060] 2. Hash Function
[0061] H is a secure hash function that maps graphs to points: {0, 1} * →G represents the conversion of {0, 1} * Mapped to G, H maps the string in the graph to each element of G. The public parameters of the system are: {G, G T ,p,Z p , g, e}, where Z p is a set of prime numbers.
[0062] 3. Key Generation
[0063] PKG generates a pair of RSA key pairs (spk, ssk) for the user to use for signing. The user selects a random number u∈G and then selects sk=x∈Z p As the private key, the public key is: pk = g x , the key pair P is:
[0064] P=(sk,pk)
[0065] According to the above parameter settings, the user uploads the file. First, the private key ssk generated by PKG generates the signature of file F, that is:
[0066] Sig F =ID F ||Sig ssk (ID F )
[0067] Where ID F Indicates the identifier of file F, Sig F As the identifier of file F.
[0068] Then, the user divides the file F into n data blocks, namely:
[0069] F={B i}={b1,b2,…,b n}(1≤i≤n)
[0070] For the i-th data block b i The user generates ciphertext F by using the encryption algorithm to make the user file F and key P * ,Right now:
[0071]
[0072] The user then calculates the tag of the encrypted file, which is:
[0073]
[0074] The user encrypts the file F * Build a Merkle hash tree with the encrypted data blocks in and calculate its root node, namely:
[0075] R=Root(F * )
[0076] The user calculates the signature of the root node, namely:
[0077] sig root =H(R) x
[0078] For each encrypted data block, the user calculates its homomorphic signature, namely:
[0079] W i =ID F ||i
[0080]
[0081] Among them, W iis an intermediate variable, whose value is the identifier of file F or the i-th data block, σ i Homomorphic signature.
[0082] After the user has constructed the above parameters, Sent to CSP, the user then constructs an inserted request message (i.e. the first broadcast message mentioned above) and broadcasts it. The request message is as follows, namely:
[0083]
[0084] Among them, ID User Indicates the first user ID, ID CSP Indicates the first cloud storage server ID, Indicates the first encrypted file identifier, sig root Represents the signature of the root node.
[0085] After receiving the file sent by the user, the CSP stores the encrypted file and broadcasts a response message (i.e., the second broadcast message mentioned above), namely:
[0086]
[0087] Among them, ID CSP Indicates the second cloud storage server ID User Indicates the second user ID, Indicates the second encrypted file identifier.
[0088] In an optional embodiment of the present invention, step 12, updating the ledger record transaction block on the blockchain according to the first broadcast message and the second broadcast message, includes:
[0089] Step 121, verifying the consistency of the first broadcast message and the second broadcast message to obtain a first verification result;
[0090] Step 122, writing the first verification result into the blockchain transaction result field;
[0091] Step 123, the representative node initiates a consensus process, and after the consensus is successful, the ledger record transaction block on the blockchain is updated.
[0092] In this embodiment, the representative node agent rn Upon receiving TX ReqUser and TX ResCSP After that, if the signatures of the user and the CSP are both verified, that is, the first user identifier and the second user identifier are consistent, the first cloud storage server identifier and the second cloud storage server identifier are consistent, and the first encrypted file identifier and the second encrypted file identifier are consistent, then the agent rn Will
[0093]
[0094] Write the result field of the transaction in the packaged block. Within a certain period of time, the agent rn After consensus is successful, the ledger is updated and returned to the user:
[0095]
[0096] Among them, height represents the height of the latest block in the current account book. After performing the above operations, the user deletes the local file copy.
[0097] In an optional embodiment of the present invention, verifying the consistency of the first broadcast message and the second broadcast message to obtain a first verification result includes:
[0098] Verify the consistency of the first user identifier, the first cloud storage server identifier, the first encrypted file identifier in the first broadcast message and the second cloud storage server identifier, the second user identifier, and the second encrypted file identifier in the second broadcast message to obtain a first verification result.
[0099] In an optional embodiment of the present invention, step 13, performing integrity verification on the data file stored on the cloud storage server to obtain a verification result, includes:
[0100] Step 131, obtaining a third broadcast message sent by the user after constructing the challenge information and a fourth broadcast message responded by the cloud storage server after receiving the third broadcast message;
[0101] Step 132, performing data integrity verification according to the third broadcast message and the fourth broadcast message to obtain a verification result;
[0102] Step 133, write the verification result into the blockchain transaction result field, the representative node initiates a consensus process, and after the consensus is successful, updates the ledger record transaction block on the blockchain.
[0103] In this embodiment, remote data integrity verification is performed based on a "challenge-prove-verify" mechanism.
[0104] In order to verify whether the encrypted data block is completely stored on the cloud storage server, the user can perform the integrity verification protocol with the CSP as an auditor. The specific operations are as follows:
[0105] First, the user selects a set containing c elements, namely:
[0106] I={S i}={S1,S2,...,S c}∈[1,n]
[0107] After the following calculation, two random number sets {r i} and {z i},Right now:
[0108] r=f(S i , T s , Block id )
[0109] z=H(S i , r, Block id )
[0110] Where f(·) is a pseudo-random function that satisfies f: {0, 1} * →[1, n], Block id Represents the identifier of the current block, T s Represents the current timestamp.
[0111] The user will challenge chal = {(r i , z i )} and other auxiliary information to construct and broadcast (i.e., the third broadcast message):
[0112]
[0113] Once the CSP receives the TX audUser , he will first verify whether the challenge set chal is out of range, if it is legal, CSP calculates the proof information:
[0114]
[0115]
[0116] Then the CSP broadcasts a response (i.e. the fourth broadcast message):
[0117]
[0118] Represents the node agent rn Upon receiving TX audUser and TX audCSP After that, the integrity of the data block is verified by the following formula, namely:
[0119]
[0120] And the result:
[0121]
[0122] Write the result field of the transaction in the packaged block. Within a certain period of time, the agent rnInitiate a consensus proposal. If the consensus is successful, the agent rn Update the ledger and return the integrity verification result to the user:
[0123]
[0124] If state=1, it means that the above equation holds true, that is, the challenged remote data block is still stored intact. If state=0, it means that the above equation does not hold true, that is, at least one challenged remote data block is damaged.
[0125] The above-mentioned embodiment of the present invention proposes a blockchain-based agent audit model, which realizes decentralized trusted operations by introducing blockchain on the basis of the traditional model, enables point-to-point transmission between users and cloud storage service providers, and realizes data integrity verification without going through a third-party auditor, which is used to solve the problem of openness and transparency of data storage.
[0126] In an optional embodiment of the present invention, the method of electing the representative node from multiple agents through a consensus algorithm includes:
[0127] According to the credit score information of each agent in the agent set, an initial agent set is obtained;
[0128] Divide the initial proxy set into 2f+1 subsets, where f is the maximum possible number of malicious super nodes in the subset;
[0129] Each agent in the 2f+1 subsets votes according to the credit score to obtain 2f+1 super nodes;
[0130] The 2f+1 super nodes are randomly sorted, and a representative node is obtained according to the order of arrangement.
[0131] In this embodiment, a set of credit-based incentive strategies and consensus algorithms are proposed to solve the problems of storage consistency and reliability of business problems. Credit scores are introduced in the consensus mechanism and regarded as tokens. They are used as a measure of trust for agents and cloud storage service providers, affecting the selection of super nodes and representative nodes. The consensus mechanism uses credit points as a measure of trust. On the one hand, it defines credit points to evaluate the trustworthiness of each agent in the agent set; on the other hand, it defines credit blocks, which are special blocks in the blockchain ledger, consisting of the credit points of each agent in the agent set {Cscore1, Cscore2,,..., Cscore n}.
[0132] In the present invention, the consensus process based on credit points is periodically run by all agents in the agent set. After negotiation, each agent in the agent set obtains their initial credit points.
[0133] The election process for super nodes and representative nodes is as follows:
[0134] 1. Initialization
[0135] When the system model is started, PKG broadcasts the credit scores and corresponding labels of all agents in the network: (Cscore, σ PKG (Cscore)), and then the system gets the credit block to initialize the entire blockchain network.
[0136] 2. Super Node Selection
[0137] According to the selection process of the consensus mechanism, the agent node set in the entire system is divided into 2f+1 sets, f∈Z, and f represents the maximum possible number of malicious super nodes in the set after the super node set is generated. And within the existing time, all agent nodes in the set have the right to vote, and the nodes voted out are super nodes. In order to obtain block rewards, super nodes must run the blockchain network as effectively as possible. Since there are relatively few consensus nodes participating in block rewards, the block speed is relatively high. Since there are many nodes in the queue, if a super node does not perform its duties, it will be kicked out by other nodes in the set. If a department set does not select a super node within the specified time, it will be shuffled and recombined into a response set for selection, and finally a super node set {agent1, agent2,..., agent 2f+1}.
[0138] 3. Representative node selection
[0139] The selection of representative nodes is based on the super node selection process. First, for the above super node set {agent1, agent2, ..., agent 2f+1} are randomly sorted and become representative nodes from the beginning to the end. After the representative node maintains the system for a period of time, the system automatically replaces it with the next node in the set. After all the nodes in the set have been rotated once, the set is reshuffled and randomly sorted. There are several regulations for representative nodes:
[0140] 1) Blocks generated out of sequence are invalid;
[0141] 2) Shuffle the cards once in a cycle to disrupt the original order;
[0142] 3) The rewards obtained by the representative node should be equally shared with other nodes in the selected set;
[0143] 4) Super nodes participating in the consensus will also receive relatively small rewards, which will be equally shared with other nodes in the selected set.
[0144] The election process of the representative node is based on credit points. Only agents with a certain credit score are eligible for election. At the same time, in the process of agents voting for super nodes, credit points are an important factor affecting the voting results of agents. The credit points reward mechanism for motivating agents is as follows:
[0145] 1. Users need to purchase credit points to pay for the audit consumption of the agent set;
[0146] 2. Each interaction during the consensus process will consume a portion of the consensus node’s credit score;
[0147] 3. Consensus nodes can only obtain credit points rewards when the user's operation request is successfully responded to, otherwise there will be no profit or loss;
[0148] 4. If the representative node consensus fails or is identified as a malicious node, the credit points will be reduced and the node will be directly replaced by the next node;
[0149] 5. If the consensus is successful, the representative node will receive more credit points as rewards, and the remaining super nodes will receive fewer credit points as rewards. Each super node will share the rewards equally with the nodes in its set;
[0150] 6. If the credit score is less than the specified value, the node will be directly kicked out of the consensus set.
[0151] The above reward mechanism encourages consensus nodes to honestly repeat some tasks and obtain rewards, thereby enhancing the reliability of the entire system.
[0152] The above method of the present invention realizes the decentralization of the system by introducing blockchain. In order to support public audit, all operation requests and responses of data in the system will be recorded, and any entity can query and verify at any time. In addition, the credit score (Cscore) is introduced into the system, and it is stipulated that only nodes with credit scores that meet the requirements can participate in the consensus process.
[0153] Specifically, before the user uploads the data file to be stored to the CSP, the agent set in the system executes the consensus mechanism to select the representative node agent rn After the user uploads the data file to the CSP, the information sent is broadcasted, and the CSP also broadcasts its response. rnThe two parties reach a consensus on the request and response, and after passing, the ledger records the transaction block. For data integrity verification, the User selects a challenge set and then broadcasts it. After receiving the challenge set, the CSP broadcasts the verification result. The agent rn The two results are compared to verify data integrity and reach consensus. After consensus is passed, the ledger records the transaction block and returns the verified result to the user.
[0154] The above method of the present invention, based on the traditional client, cloud storage server (CSP), third-party audit (TPA) model, proposes that when the cloud storage server and the third-party audit are not credible, the interaction between the client and the cloud storage server is decentralized by introducing blockchain, removing the third-party auditor, and ensuring the integrity of the data. In addition, a new consensus mechanism and reward mechanism are introduced to more effectively increase the reliability and security of the system. Finally, data integrity verification is achieved on the basis of the above.
[0155] The advantages of the present invention are as follows:
[0156] 1. By introducing blockchain and taking advantage of the fact that transactions on blockchain cannot be tampered with, third-party audits are eliminated and decentralized verification is achieved, making transactions between users and cloud storage service providers transparent and reducing the deception of users by third-party auditors and CSPs.
[0157] 2. A new consensus mechanism is proposed, and a reward mechanism is added on this basis. By adding credit points as a trustworthy measure of the agent set, the security and reliability of the system are increased.
[0158] 3. Data integrity verification was achieved and the invention was proven to be correct and feasible.
[0159] like Figure 3 As shown, an embodiment of the present invention further provides a trusted data verification processing device 30 based on blockchain, comprising:
[0160] The storage module 31 is used to receive a first broadcast message sent by a user after uploading a data file to a cloud storage server and a second broadcast message sent by the cloud storage server after receiving the data file; and update the ledger record transaction block on the blockchain according to the first broadcast message and the second broadcast message;
[0161] The verification module 32 is used to perform integrity verification on the data file stored in the cloud storage server to obtain a verification result.
[0162] Optionally, the first broadcast message includes: a first user identifier, a first cloud storage server identifier, a first encrypted file identifier and a signature of a root node, and the signature of the root node is obtained after constructing a hash tree based on encrypted file data blocks in the data file.
[0163] Optionally, the second broadcast message includes: a second cloud storage server identifier, a second user identifier, and a second encrypted file identifier.
[0164] Optionally, updating a ledger record transaction block on a blockchain according to the first broadcast message and the second broadcast message includes:
[0165] Verifying the consistency of the first broadcast message and the second broadcast message to obtain a first verification result;
[0166] Writing the first verification result into the blockchain transaction result field;
[0167] The representative node initiates the consensus process, and after the consensus is successful, the ledger on the blockchain is updated to record the transaction block.
[0168] Optionally, verifying the consistency of the first broadcast message and the second broadcast message to obtain a first verification result includes:
[0169] Verify the consistency of the first user identifier, the first cloud storage server identifier, the first encrypted file identifier in the first broadcast message and the second cloud storage server identifier, the second user identifier, and the second encrypted file identifier in the second broadcast message to obtain a first verification result.
[0170] Optionally, performing integrity verification on the data file stored on the cloud storage server to obtain a verification result includes:
[0171] Acquire a third broadcast message sent by the user after constructing the challenge information and a fourth broadcast message responded by the cloud storage server after receiving the third broadcast message;
[0172] Performing data integrity verification according to the third broadcast message and the fourth broadcast message to obtain a verification result;
[0173] The verification result is written into the blockchain transaction result field, and the representative node initiates a consensus process. After the consensus is successful, the ledger record transaction block on the blockchain is updated.
[0174] Optionally, the method of electing the representative node from multiple agents through a consensus algorithm includes:
[0175] According to the credit score information of each agent in the agent set, an initial agent set is obtained;
[0176] Divide the initial proxy set into 2f+1 subsets, where f is the maximum possible number of malicious super nodes in the subset;
[0177] Each agent in the 2f+1 subsets votes according to the credit score to obtain 2f+1 super nodes;
[0178] The 2f+1 super nodes are randomly sorted, and a representative node is obtained according to the order of arrangement.
[0179] It should be noted that the device is a device corresponding to the above method, and all implementation methods in the above method embodiments are applicable to the embodiments of the device and can achieve the same technical effects.
[0180] An embodiment of the present invention provides a computing device, comprising: a processor and a memory storing a computer program, wherein when the computer program is executed by the processor, the method described above is executed. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.
[0181] The embodiment of the present invention further provides a computer-readable storage medium storing instructions, which, when executed on a computer, enable the computer to execute the above method. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.
[0182] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0183] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0184] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0185] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0186] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0187] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.
[0188] In addition, it should be noted that in the apparatus and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. Moreover, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order, and some steps can be performed in parallel or independently of each other. For those of ordinary skill in the art, it is understood that all or any steps or components of the method and apparatus of the present invention can be implemented in any computing device (including processors, storage media, etc.) or a network of computing devices in hardware, firmware, software or a combination thereof, which can be achieved by those of ordinary skill in the art using their basic programming skills after reading the description of the present invention.
[0189] Therefore, the purpose of the present invention can also be achieved by running a program or a group of programs on any computing device. The computing device can be a well-known general device. Therefore, the purpose of the present invention can also be achieved by simply providing a program product containing a program code that implements the method or device. That is to say, such a program product also constitutes the present invention, and the storage medium storing such a program product also constitutes the present invention. Obviously, the storage medium can be any well-known storage medium or any storage medium developed in the future. It should also be pointed out that in the device and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. In addition, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order. Some steps can be performed in parallel or independently of each other.
[0190] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A trusted data verification processing method based on blockchain, characterized in that: Applied to a representative node, the representative node is one selected from a plurality of agents in communication connection with a cloud storage server through a consensus algorithm, the method comprising: Receiving a first broadcast message sent by a user after uploading a data file to a cloud storage server and a second broadcast message sent by the cloud storage server after receiving the data file; According to the first broadcast message and the second broadcast message, updating the ledger record transaction block on the blockchain; Performing integrity verification on the data file stored on the cloud storage server to obtain a verification result; The method of selecting the representative node from multiple agents through a consensus algorithm includes: The initial agent set is obtained based on the credit score information of each agent in the agent set; when the system model is started, the key management agency broadcasts the credit scores and corresponding tags of all agents, and then the system obtains the credit block to initialize the blockchain network; Divide the initial proxy set into 2f+1 subsets, where f is the maximum possible number of malicious super nodes in the subset; Each agent in the 2f+1 subsets votes according to the credit points to obtain 2f+1 super nodes; within the preset time, all agents in the set have the right to vote, and the nodes voted out are super nodes; when a super node fails to perform its duties, it will be kicked out by other nodes in the set; if a department set fails to select a super node within the preset time, it will be shuffled and recombined into a response set for selection; Randomly sort the 2f+1 super nodes, and obtain representative nodes according to the arrangement order; randomly sort the super nodes, and become representative nodes in order from the beginning to the end according to the sorting order; after the representative node maintains the system for a period of time, the system automatically replaces it with the next node in the set; after all the nodes in the set are rotated once, the set is re-shuffled and randomly sorted.
2. The blockchain-based trusted data verification processing method according to claim 1 is characterized in that: The first broadcast message includes: a first user identifier, a first cloud storage server identifier, a first encrypted file identifier and a signature of a root node, and the signature of the root node is obtained after a hash tree is constructed according to encrypted file data blocks in the data file.
3. The blockchain-based trusted data verification processing method according to claim 1 is characterized in that: The second broadcast message includes: a second cloud storage server identifier, a second user identifier, and a second encrypted file identifier.
4. The blockchain-based trusted data verification processing method according to claim 1 is characterized in that: According to the first broadcast message and the second broadcast message, updating the ledger record transaction block on the blockchain includes: Verifying the consistency of the first broadcast message and the second broadcast message to obtain a first verification result; Writing the first verification result into the blockchain transaction result field; The representative node initiates the consensus process, and after the consensus is successful, the ledger on the blockchain is updated to record the transaction block.
5. The blockchain-based trusted data verification processing method according to claim 4 is characterized in that: Verifying the consistency of the first broadcast message and the second broadcast message to obtain a first verification result includes: Verify the consistency of the first user identifier, the first cloud storage server identifier, the first encrypted file identifier in the first broadcast message and the second cloud storage server identifier, the second user identifier, and the second encrypted file identifier in the second broadcast message to obtain a first verification result.
6. The blockchain-based trusted data verification processing method according to claim 1 is characterized in that: Performing integrity verification on the data file stored on the cloud storage server to obtain a verification result includes: Acquire a third broadcast message sent by the user after constructing the challenge information and a fourth broadcast message responded by the cloud storage server after receiving the third broadcast message; Performing data integrity verification according to the third broadcast message and the fourth broadcast message to obtain a verification result; The verification result is written into the blockchain transaction result field, and the representative node initiates a consensus process. After the consensus is successful, the ledger record transaction block on the blockchain is updated.
7. A trusted data verification processing device based on blockchain, characterized in that: Applied to a representative node, which is one selected from multiple agents communicating with a cloud storage server through a consensus algorithm, including: The storage module is used to receive a first broadcast message sent by a user after uploading a data file to a cloud storage server and a second broadcast message sent by the cloud storage server after receiving the data file; and update the ledger record transaction block on the blockchain according to the first broadcast message and the second broadcast message; A verification module, used to perform integrity verification on the data file stored on the cloud storage server to obtain a verification result; The process of selecting the representative node from multiple agents through a consensus algorithm includes: The initial agent set is obtained based on the credit score information of each agent in the agent set; when the system model is started, the key management agency broadcasts the credit scores and corresponding tags of all agents, and then the system obtains the credit block to initialize the blockchain network; Divide the initial proxy set into 2f+1 subsets, where f is the maximum possible number of malicious super nodes in the subset; Each agent in the 2f+1 subsets votes according to the credit points to obtain 2f+1 super nodes; within the preset time, all agents in the set have the right to vote, and the nodes voted out are super nodes; when a super node fails to perform its duties, it will be kicked out by other nodes in the set; if a department set fails to select a super node within the preset time, it will be shuffled and recombined into a response set for selection; Randomly sort the 2f+1 super nodes, and obtain representative nodes according to the arrangement order; randomly sort the super nodes, and become representative nodes in order from the beginning to the end according to the sorting order; after the representative node maintains the system for a period of time, the system automatically replaces it with the next node in the set; after all the nodes in the set are rotated once, the set is re-shuffled and randomly sorted.
8. A computing device, characterized in that include: A processor and a memory storing a computer program, wherein when the computer program is executed by the processor, the method according to any one of claims 1 to 6 is executed.
9. A computer-readable storage medium, characterized in that: Instructions are stored, and when the instructions are executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 6.
