Blockchain-based on-chain storage file consistency evaluation method and device

CN115809250BActive Publication Date: 2026-08-11BEIHANG UNIV
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-15
Publication Date
2026-08-11

AI Technical Summary

Technical Problem

[0003]但是随着区块链存储技术的不断发展,一些问题逐渐暴露

Benefits of technology

[0018] 1) A consensus evaluation protocol suitable for on-chain file storage is proposed. This protocol constructs a complete and scalable file content evaluation system through an automated testing algorithm based on a betting protocol, a closed voting scheme based on a linkable one-time ring signature, and an open voting scheme. Using this protocol enables comprehensive evaluation of files, which is of great significance for building a high-quality, efficient, and sustainable blockchain storage network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115809250B_ABST
    Figure CN115809250B_ABST
Patent Text Reader

Abstract

This invention discloses a blockchain-based on-chain file consistency evaluation system and method. The system includes: a verification module for verifying the consistency of on-chain files using a file consistency verification algorithm, performing multi-faceted and multi-stage evaluations; a storage module for storing user files in a distributed system and rewarding storage contributors through an incentive mechanism; and a front-end module for visually displaying the on-chain file consistency verification process. This system can quantitatively evaluate the correctness, legality, validity, and acceptance of files.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of information security technology, and in particular to a method and apparatus for evaluating the consistency of on-chain stored files based on blockchain. Background Technology

[0002] Since its inception, blockchain technology, leveraging cryptography and game theory, has acquired characteristics such as decentralization, immutability, and verifiability, leading to its application in fields like intelligent transportation, supply chain management, smart healthcare, and e-government. Blockchain-based distributed storage has also seen continuous development in recent years, with products like Filecoin, Storj, and PPIO emerging. These blockchain-based storage products possess excellent characteristics such as decentralization and immutability, demonstrating strong application prospects.

[0003] However, with the continuous development of blockchain storage technology, some problems have gradually emerged. Currently, there is no robust file verification mechanism, and community users cannot obtain basic information such as the correctness and quality of files. This greatly increases the difficulty of retrieval, leading to a loss of community users. At the same time, existing products lack a sound incentive mechanism; there is no effective incentive and promotion among file uploaders, hard drive providers, and downloaders, reducing resource utilization and community participation. Summary of the Invention

[0004] The present invention aims to at least partially solve one of the technical problems in the related art.

[0005] Therefore, one objective of this invention is to propose a blockchain-based on-chain file consistency evaluation system that can quantitatively evaluate the correctness, legality, validity, and acceptance of files.

[0006] A first aspect of the present invention provides a blockchain-based on-chain storage file consistency evaluation system, comprising: a verification module for verifying the consistency of on-chain files through a file consistency verification algorithm, and for evaluating the on-chain files in a multi-faceted and multi-stage manner; a storage module for storing users' files in a distributed system and rewarding the contributions of storage workers through an incentive mechanism; and a front-end module for visually displaying the on-chain file consistency verification process.

[0007] In addition, the blockchain-based on-chain storage file consistency evaluation system according to the above embodiments of the present invention may also have the following additional technical features:

[0008] In one embodiment of the present invention, the verification module is further configured to, through verification workers, evaluate the correctness, validity, and popularity of a document using a correctness evaluation algorithm, closed-loop voting based on a betting protocol, and open-loop voting, and upload the evaluation results to the blockchain for viewing.

[0009] In one embodiment of the present invention, the verification module is further used to perform verification based on a voting protocol with linkable one-time ring signatures. Specifically, anonymous voting on the blockchain is conducted using linkable one-time ring signature technology, symmetric keys, and blockchain technology. In the voting initiation phase, the voting process is initiated. In the preparation phase, voters are randomly selected using distributed random number beacon technology and confirmed to participate in the voting by uploading a one-time public key. In the voting phase, the encrypted voting content is signed using linkable one-time ring signature technology. In the vote counting phase, the one-time private key is published, and the voting results are calculated.

[0010] In one embodiment of the present invention, the verification module is further used to perform verification based on the correctness testing algorithm of the betting protocol. Specifically, the correctness of the on-chain file is judged by automated testing, and the results are published by a voting protocol based on a linkable one-time ring signature. At the same time, multiple verifiers perform verification simultaneously. If the verification results of the verifiers are inconsistent, the betting protocol is used to resolve the dispute.

[0011] In one embodiment of the present invention, the verification module is further configured to perform verification through a closed voting protocol, evaluate the legality and popularity of the on-chain file by community members, evaluate the consistency of the on-chain file through a voting protocol based on a linkable one-time ring signature, and publicly release the on-chain file in the system when the voting score is higher than the set system parameters.

[0012] In one embodiment of the present invention, the verification module is further configured to quantify and evaluate the workload of all nodes participating in the verification process using a proof-of-work algorithm, and to provide incentives.

[0013] In one embodiment of the present invention, the verification module is further configured to adjust the user's reputation value based on the user's behavior, define community members based on the reputation value, and constrain their behavior within the community.

[0014] A second aspect of the present invention provides a blockchain-based method for evaluating the consistency of on-chain stored files, comprising the following steps: verifying the consistency of on-chain files through a file consistency verification algorithm, and evaluating the on-chain files from multiple perspectives and in multiple stages; storing user files in a distributed system and rewarding the contributions of storage workers through an incentive mechanism; and visually displaying the on-chain file consistency verification process.

[0015] A third aspect of the present invention provides an electronic device, including a processor and a memory; wherein the processor runs a program corresponding to the executable program code stored in the memory to implement the blockchain-based on-chain storage file consistency evaluation method as described in the above embodiments.

[0016] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, characterized in that the program is executed by a processor to implement the blockchain-based on-chain storage file consistency evaluation method as described in the above embodiments.

[0017] The blockchain-based on-chain storage file consistency evaluation system and method of this invention has the following beneficial effects:

[0018] 1) A consensus evaluation protocol suitable for on-chain file storage is proposed. This protocol constructs a complete and scalable file content evaluation system through an automated testing algorithm based on a betting protocol, a closed voting scheme based on a linkable one-time ring signature, and an open voting scheme. Using this protocol enables comprehensive evaluation of files, which is of great significance for building a high-quality, efficient, and sustainable blockchain storage network.

[0019] 2) Propose an extensible proof-of-work algorithm that evaluates objective work. Currently, widely used proof-of-work algorithms mainly solve objective problems, such as solving mathematical problems or proving that a copy of a file is stored. Research on proof-of-work algorithms for subjective problems is still in its early stages. The contribution proof algorithm of this invention can evaluate and incentivize work that solves subjective problems. This algorithm can be ported to fields such as code publishing, blogs, novels, and music composition.

[0020] 3) Implement all components involved in the blockchain-based file consistency protocol, conduct functional and performance tests in an experimental environment, and demonstrate that the system built using this mechanism is stable and reliable during trial operation, further verifying the reliability, effectiveness, and practicality of the consistency protocol designed in this paper.

[0021] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description

[0022] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein:

[0023] Figure 1This is a schematic diagram of the structure of a blockchain-based on-chain storage file consistency evaluation system according to an embodiment of the present invention.

[0024] Figure 2 This is a schematic diagram illustrating the composition of a document consistency evaluation protocol according to an embodiment of the present invention;

[0025] Figure 3 This is a schematic diagram of a blockchain-based file consistency protocol hierarchy according to an embodiment of the present invention;

[0026] Figure 4 This is a flowchart illustrating the interaction between nodes in the storage layer according to an embodiment of the present invention.

[0027] Figure 5 This is a flowchart illustrating the interaction between nodes in the verification layer according to an embodiment of the present invention.

[0028] Figure 6 This is a flowchart of a document consistency evaluation protocol according to an embodiment of the present invention;

[0029] Figure 7 This is a flowchart of a voting scheme based on a one-time ring signature according to an embodiment of the present invention;

[0030] Figure 8 A flowchart of an automated testing algorithm based on a betting protocol according to an embodiment of the present invention;

[0031] Figure 9 This is a flowchart of a betting agreement according to an embodiment of the present invention;

[0032] Figure 10 A flowchart of a blockchain-based on-chain storage file consistency evaluation method according to an embodiment of the present invention;

[0033] Figure 11 A schematic diagram of the structure of an electronic device provided for an embodiment of the invention.

[0034] Explanation of reference numerals in the attached figures:

[0035] 100 - Verification module, 200 - Storage module, 300 - Front-end module, 111 - Memory, 112 - Processor, and 113 - Communication interface. Detailed Implementation

[0036] Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain the present invention, and should not be construed as limiting the present invention.

[0037] The following description, with reference to the accompanying drawings, illustrates a blockchain-based on-chain storage file consistency evaluation system and method according to embodiments of the present invention.

[0038] First, the on-chain storage file consistency evaluation system based on blockchain proposed according to an embodiment of the present invention will be described with reference to the accompanying drawings.

[0039] Figure 1 This is a schematic diagram of the structure of a blockchain-based on-chain storage file consistency evaluation system according to an embodiment of the present invention.

[0040] like Figure 1 As shown, the blockchain-based on-chain storage file consistency evaluation system includes: a verification module 100, a storage module 200, and a front-end module 300.

[0041] The verification module 100 is used to verify the consistency of on-chain files through a file consistency verification algorithm, and to evaluate the on-chain files in a multi-faceted and multi-stage manner.

[0042] Specifically, the consistency of files is verified through a file consistency verification algorithm, which comprehensively and in stages evaluates the correctness, legality, and acceptance of files.

[0043] Storage module 200 is used to store user files in a distributed system and rewards storage workers for their contributions through an incentive mechanism.

[0044] Specifically, the on-chain storage module stores on-chain files, which is a distributed storage method that stores users' files in a distributed system and rewards storage workers for their contributions through an incentive mechanism.

[0045] Front-end module 300 is used to visually demonstrate the consistency verification process of on-chain files.

[0046] Specifically, the front-end module visually displays the entire process of file consistency verification, and at the same time helps users participate in the file consistency verification process simply and conveniently.

[0047] like Figure 2 As shown, the document consistency evaluation protocol consists of a reputation system, the document consistency evaluation protocol itself, an incentive mechanism, and an anti-fraud module. The reputation system and anti-fraud module are prerequisites for the high-quality and secure operation of the system, the document consistency evaluation protocol is the core algorithm for verifying document consistency, and the incentive mechanism is a prerequisite for the long-term stable operation of the system.

[0048] To ensure clarity, the hierarchical structure of the entire system will be described from a system layering perspective, such as... Figure 3As shown. This system adds file verification functionality to Filecoin, thus adding a verification layer to Filecoin's hierarchical architecture.

[0049] Data Layer: The data layer is the blockchain ledger itself, which ensures the immutability and verifiability of the data stored on the chain through chain structure, hash function, and asymmetric encryption mechanism.

[0050] Network layer: The network layer is responsible for communication between nodes. It enables fast data broadcasting through a peer-to-peer network, and also uses message mechanisms and authentication mechanisms to ensure data security during message transmission.

[0051] Consensus Layer: The consensus layer is responsible for ensuring the consistency of the state of each node in the network. In this system, expected consensus is used as the consensus algorithm. Users who contribute more storage space are more likely to obtain the right to produce blocks and thus receive rewards.

[0052] Storage Layer: The storage layer is primarily responsible for the secure and efficient storage of data. It ensures that storage workers honestly store files through replication proofs, spacetime proofs, and download proofs, and incentivizes storage workers accordingly. Its storage process consists of the following steps: Figure 4 As shown.

[0053] 1. Users submit storage orders to the blockchain network and lock a certain amount of storage fees onto the chain;

[0054] 2. Workers submit their storage capacity and pledge a certain amount of deposit to the blockchain;

[0055] 3. The storage market facilitates transactions, and once a transaction is completed, the user sends the file to the storage worker;

[0056] 4. Verification workers need to use the proof-of-replication algorithm and the proof-of-spacetime algorithm to prove that they have stored a copy of a user's file within a certain period of time.

[0057] Files stored through the above process are unverified, and community users and downloaders are completely unaware of the stored content. If users want to make their files public and allow others to download them, they need to enable the verification process.

[0058] Verification Layer: The verification layer primarily runs the file consistency evaluation protocol. This protocol mainly ensures the security, validity, consistency, and legality of files stored on the chain. The protocol consists of an automated testing algorithm based on a betting protocol, a closed-loop voting scheme based on one-time ring signatures, and an open-loop voting scheme. See below for details of the protocol. The verification layer process is as follows: Figure 5 As shown.

[0059] 1. After uploading a file to the IPFS interplanetary storage network, if the uploader needs to make the file publicly available for download, they need to submit a verification order and pay the verification fee to the verification worker.

[0060] 2. Upon receiving a user's verification request, the verification worker begins verifying the file's correctness. They obtain the storage location of the file to be verified from the blockchain ledger and download it. In the case of code or program files, the verification chain workers primarily verify the correctness and standardization of the code, the validity of the document, and the legality of the content, storing the verification report on the blockchain. Files that pass verification will then be voted on by community members; files that fail verification will not be allowed to be published.

[0061] 3. The blockchain network generates voting users using distributed random number beacon technology. Selected community users score the document using a closed-loop voting scheme based on one-time ring signatures, and the results are stored in the blockchain network. After the closed-loop voting ends, users can also score the document through public voting.

[0062] 4. Community users can search for files using search keywords. The results will be sorted according to ratings, and users can select suitable files to download from the storage chain.

[0063] The verification layer ensures the consistency between the file and its description through a file consistency evaluation protocol, and provides reasonable incentives to each node through a contribution proof algorithm. The protocol is scalable and feasible.

[0064] Contract Layer: The contract layer is mainly responsible for the interaction between external systems and the blockchain network. Users mainly use smart contracts and gRPC to read and write the blockchain ledger.

[0065] Service Layer: Users can directly participate in the entire file verification process using the gRPC protocol and smart contracts. However, this presents a high barrier to entry for most users. The goal is to leverage a graphical interface to provide a better user experience and attract more users to participate. The top-level service layer interacts with the blockchain ledger by calling smart contracts and the RPC protocol. A community is built through a visual UI, allowing users to register, vote, comment, share, search, and download files.

[0066] In an embodiment of the present invention, the verification module is further configured to, through verification workers, evaluate the correctness, validity, and popularity of a document using a correctness evaluation algorithm, closed-loop voting based on a betting protocol, and open-loop voting, and upload the evaluation results to the blockchain for viewing.

[0067] Specifically, the file consistency verification protocol consists of three phases. The first phase is file correctness testing, where verification workers run automated testing programs to check the correctness of the file. Taking code or programs as an example, the first priority is to ensure the correctness of the code or program, followed by its standardization, security, and legality. The second phase is closed voting. During the review process, voters are unaware of each other's voting information. This phase mainly checks the legality and consistency of the file, and whether it contains inappropriate content, etc. If the score is low, the file will not be allowed to be published. If it passes the review, the voting results from the second phase will participate in the search ranking with a 50% weighting. The third phase is public voting. For open-source files, community participants can vote on them after reading the code, documentation, etc. For paid files, after paying to download, each downloader will have one opportunity to rate and comment on their experience after using the file. Figure 6 It is the entire process of the file consistency verification algorithm.

[0068] In one embodiment of the present invention, the verification module is further used to perform verification based on a voting protocol with linkable one-time ring signatures. Specifically, anonymous voting on the blockchain is conducted using linkable one-time ring signature technology, symmetric keys, and blockchain technology. In the voting initiation phase, the voting process is initiated. In the preparation phase, voters are randomly selected using distributed random number beacon technology and confirmed to participate in the voting by uploading a one-time public key. In the voting phase, the encrypted voting content is signed using linkable one-time ring signature technology. In the vote counting phase, the one-time private key is published, and the voting results are calculated.

[0069] Specifically, the anonymous voting scheme based on one-time ring signatures involves voters and the blockchain ledger, and consists of three phases: preparation, voting, and vote counting. The details are as follows: Figure 7 As shown.

[0070] 1. Voting Initiation: The voting initiator initiates the voting process by sending (Sig) to blockchain workers. orgnizer TOPIC), where TOPIC is the voting topic, and Sig orgnizer It is the initiator's public key used to sign the TOPIC. After the workers verify the signature, the voting process begins.

[0071] 2. Preparation Phase: After initiating the vote, the worker uses distributed random number beacon technology without a trusted third party to randomly select voters. Selected users confirm their participation and then share their public key list {Pub1, Pub2, ..., Pub...}. n The data is saved to the blockchain, where n represents the users eligible to participate in this vote. Since the entire process is recorded in the blockchain ledger, anyone can monitor and verify it. After a voter confirms their participation, a private key x will be randomly generated.i ∈[1, l-1], and compute the corresponding public key P. i =x i G, simultaneously mirroring the key I i =x i H p (P i Stored locally using the wallet's public key Pub. i For P i After signing, you get Sig(Pub) i P i And send it to the worker. After the worker successfully verifies the signature, they will send P. i This is saved to the blockchain ledger. This allows anyone to obtain the list of voters' public keys {P1, P2, ..., P...}. n}, where n is the total number of people confirmed to participate in the vote.

[0072] 3. Voting Stage: Voters use x i Symmetric encrypted voting content res i Get vote i =encry(x i ,res i Using locally stored image I i and private key x i Generate a one-time ring signature δ i =(I i c1, ..., c n r1, ..., r n ), and then δ i Send it to workers to be saved in the blockchain ledger. The process of generating a one-time ring signature is as follows:

[0073]

[0074]

[0075] Where, {q i |i=0,…,n},{w i |i=0,…,n,i≠s} are all random numbers generated by the signer, and q i ,w i ∈[1, l-1]. Then perform the following calculations:

[0076] c = H s (vote i ,L1,…,L n ,R1,…,R n )

[0077] Then perform the following calculations:

[0078]

[0079]

[0080] The final one-time ring signature is:

[0081] δ i =(I i ,c1,…,c n ,r1,…,r n )

[0082] The correctness of the vote can be verified using the following formula:

[0083]

[0084]

[0085] On-chain stored votes i It is encrypted, so when the ballots are released, you can only see how many voters have cast their ballots, but you cannot know the number of users who did not vote or the specific number of votes.

[0086] 4. Voting Phase: Voters reveal their one-time private key x i By calculating x i G obtains the public key P. i Thus, we know the relationship with P. i Corresponding Pub i We can also use x i Decrypting the user's voting content (msg) i This allows us to know which voters cast the "yes" vote and which voted against it. If a user does not disclose their private key, the vote will be considered invalid, resulting in the deduction of rewards and a decrease in reputation points. Therefore, rational voters will disclose their private keys within the specified time.

[0087] In an embodiment of the present invention, the verification module is further used to perform verification based on the correctness testing algorithm of the betting protocol. Specifically, the correctness of the on-chain file is judged by automated testing, and the results are published by a voting protocol based on a linkable one-time ring signature. At the same time, multiple verifiers perform verification simultaneously. If the verification results of the verifiers are inconsistent, the betting protocol is used to resolve the dispute.

[0088] Specifically, Filecoin introduces validator workers. Validator workers only participate in the file verification process and do not participate in block packaging. Their income mainly comes from the verification fees paid by file uploaders and dividends from the reward pool. The reason for introducing validator workers is the uncertainty of verification time. If storage workers were to perform verification, it would significantly reduce the block generation speed and increase the uncertainty of block generation time. Therefore, the verification behavior of validator workers can be regarded as an offline activity.

[0089] In the process of determining the correctness of files whose primary analysis object is the program, the uncertainty and complexity of the code or program being analyzed make it difficult to rely on manual judgment. Manual testing is also insufficient for completing complex testing tasks with high quality and efficiency. By introducing automated testing, software testing time can be significantly shortened, and the testing process can be standardized. Currently, automated testing technology is widely used in various software development processes.

[0090] Since the primary focus is on on-chain file consistency protocols, it is assumed that the virtual machine performing automated testing possesses the necessary environment for code execution. For ease of automation and feasibility, a minimum threshold for unit test coverage, UNIT_TEST_MIN_THRESHOLD, is set. Code release is only permitted when the unit test coverage exceeds UNIT_TEST_MIN_THRESHOLD. Workers first run unit tests. Failure of a unit test indicates a problem in the code logic, preventing release. If the unit tests pass, multiple complex checks are performed, including document formatting, code formatting, spelling errors, and link validity. To prevent malicious content, keywords in the code are identified and blocked. A report describing the results is output at the end of the testing process, providing supplementary information for human evaluation.

[0091] To prevent cheating by verification workers, including omitting or reducing the number of tests, or artificially manipulating test results, each verification process will ensure that at least three workers participate in the verification of the same file simultaneously. To guarantee immutability and verifiability, the verification results will be stored on a blockchain ledger. However, due to the public nature of the blockchain, anyone can know the verification results, which would inevitably lead to unfairness and insecurity during the verification process. Therefore, an anonymous voting scheme based on one-time ring signatures will be used, and the verification process will proceed as follows: Figure 8 As shown.

[0092] 1. Verifiers register their computing power on the blockchain ledger and pay a deposit. The blockchain ledger locks the deposit.

[0093] 2. The file uploader initiates the verification process, providing the address of the file to be verified and prepaying the verification fee. The blockchain ledger locks the verification fee.

[0094] 3. The workers randomly select m verification workers using distributed random number beacon technology, with addresses {address1, address2, ..., address...} m If there are fewer than three verification workers confirmed to be performing verification, a random selection process will be initiated three times until there are more than three.

[0095] 4. If the verification worker confirms that verification is to be performed, a one-time key pair (x) is generated. i P i ), and (P i addrese i Stored on the blockchain. After verification begins, the code or program to be tested is downloaded, automated tests are run, and the test results (res) are output. i The verification worker uses the private key x i For the test results res i symmetric encryption is used to obtain vote i .

[0096] 5. Verification workers use one-time ring signatures to vote. i Sign to obtain sig i , will (sig i vote I Stored on the blockchain ledger.

[0097] 6. During the vote counting phase, the verification worker publishes the private key x. i Then you can vote i Decrypt to obtain res i Meanwhile, by calculating x i G retrieves the corresponding public key P. i This allows us to determine the address of the voter corresponding to that vote. i .

[0098] To ensure that at least three verifiers test the same document, inconsistent results indicate the presence of cheating users, a situation inherent to objective issues. In such cases, a performance-based agreement is used to determine the final test result. The premise of this agreement is as follows:

[0099] 1. It is believed that cheaters are a minority, and honest verification workers are the majority.

[0100] 2. In a single test, the side that wins by majority vote is considered the winner.

[0101] 3. For the same document, if the verifier is honest, the verification results will be consistent.

[0102] Under the above conditions, the process of the performance-based agreement is as follows: Figure 9 As shown.

[0103] 1. Before verification, workers will pledge a deposit of 2*COAST, where COAST = TOTAL_COAST / N, TOTAL_COAST is the total fee paid by the uploader, and N is the number of workers in this round of verification.

[0104] 2. If the verification results of N validators are inconsistent, one party may choose to concede, and the conceding party's deposit will be equally distributed among the other validators.

[0105] 3. If both parties choose to wager, a new round of verification will be initiated, at which point the number of verification workers will become 3N. Each worker stakes 2*N*COAST verification fees. This means that as the number of appeal rounds increases, the number of verification workers and the staked fees will increase exponentially. A total of 3*N*TOTAL_COAST is used to pay the verification fees for 3N verification workers, and 3*N*TOTAL_COAST is paid to the winner of this round.

[0106] In an embodiment of the present invention, the verification module is further used to verify the on-chain file through a closed voting protocol, evaluate the legality and popularity of the on-chain file by community members, evaluate the consistency of the on-chain file through a voting protocol based on a linkable one-time ring signature, and publicly release the on-chain file in the system when the voting score is higher than the set system parameters.

[0107] In the closed evaluation phase, the focus is on the legality and content quality of the documents. Legality primarily includes whether the document is plagiarized or contains inappropriate content, while content quality encompasses factors such as popularity, practicality, and entertainment value. Therefore, the reputation and judgment of the reviewers are paramount. The closed evaluation phase aims to prevent the public dissemination of illegal or low-quality documents, which could damage the community's image. Furthermore, closed voting offers advantages over public voting in terms of fairness and accuracy. Both the voting process and the aforementioned automated testing algorithm based on a betting agreement utilize an anonymous voting system based on one-time ring signatures.

[0108] 1. The file uploader initiates a closed voting process and establishes a voting item.

[0109] 2. The block packaging worker uses a distributed random number beacon to randomly select m voters, whose addresses are {address1, address2, ..., address...} mIf the number of users confirming that they will vote is small, more addresses will be randomly selected.

[0110] 3. If a voter confirms their vote, a one-time key pair (x) is generated. i P i ), and (P i addrese i The data is stored on the blockchain. After verification begins, the code or program to be tested is downloaded and evaluated. Content evaluation is divided into positive and negative categories, with positive scores ranging from 0 to 5 and negative scores ranging from -5 to 0. The detection result `res` is output. i Voters use their private key x i For the test results res i symmetric encryption is used to obtain vote i .

[0111] 4. Voters use a one-time ring signature to vote. i Sign to obtain sig i , will (sig i vote I Stored on the blockchain ledger.

[0112] 5. During the vote counting phase, voters publish their private key x. i Then you can vote i Decrypt to obtain res i Meanwhile, by calculating x i G retrieves the corresponding public key P. i This allows us to determine the address of the voter corresponding to that vote. i During the vote counting process, the closed-loop review stage will use the reputation score (closeScoreSum) to determine the final score. i Find the fraction res i The weighted sum, that is, the total score is calculated using the following formula.

[0113]

[0114] Where n represents the total number of votes.

[0115] In one embodiment of the present invention, the verification module is further configured to quantify and evaluate the workload of all nodes participating in the verification process using a proof-of-work algorithm, and to provide incentives.

[0116] In one embodiment of the present invention, the verification module is further configured to adjust the user's reputation value based on the user's behavior, define community members based on the reputation value, and constrain their behavior within the community.

[0117] Compared to closed voting schemes, the open voting scheme of this invention allows voters to know their current vote count and score. During the open review phase, the focus is on the impact of a document within the community, reflected in its acceptance by active community contributors. Therefore, users with reputation scores above the minimum requirement can participate in the voting process at this stage. The influence of a community user is calculated using "coin days," which is the product of the token holding balance and the number of days held (accumulateDay). The balance represents the account's token balance.

[0118] Once an account has a certain number of tokens, it begins to accumulate tokens over time until it reaches a maximum value of MAX_ACCUMULATE_DAY * balance, after which it stops growing. Here, MAX_ACCUMULATE_DAY is a system parameter.

[0119] Each rating action on an account consumes coin days. This involves another parameter – the single rating consumption factor FACTOR, which is selected by the user and determines how many coin days are consumed for each rating action. The number of coin days required for each rating can be calculated as follows.

[0120] consumedTokenDay=FACTOR*balance*accumulateDay

[0121] Among them, consumedTokenDay is the number of token days consumed in this evaluation behavior. If MAX_ACCUMULATE_DAY=7 and FACTOR=0.2, then a user can accumulate token days in one day to make 5 valid evaluations, and a user can accumulate a maximum of 35 token days to make 35 valid evaluations.

[0122] The on-chain storage file consistency evaluation system based on blockchain proposed in this embodiment of the invention can evaluate the consistency of files. It combines blockchain social technology and does not rely on a trusted third party in the file consistency evaluation process. Instead, it uses computers and community members to conduct a comprehensive and multi-process evaluation of file consistency and provides reasonable incentives for the evaluation process.

[0123] Next, referring to the accompanying drawings, a blockchain-based on-chain storage file consistency evaluation method proposed according to an embodiment of the present invention is described.

[0124] Figure 10 This is a flowchart of a blockchain-based on-chain storage file consistency evaluation method according to an embodiment of the present invention.

[0125] like Figure 10As shown, the blockchain-based on-chain storage file consistency evaluation method includes:

[0126] Step S101: Verify the consistency of on-chain files using a file consistency verification algorithm, and evaluate the on-chain files from multiple perspectives and in multiple stages.

[0127] Step S102: Store the user's files in the distributed system and reward the storage workers' contributions through an incentive mechanism.

[0128] Step S103: Visualize the on-chain file consistency verification process.

[0129] It should be noted that the foregoing explanation of the system embodiment also applies to the method of this embodiment, and will not be repeated here.

[0130] The on-chain storage file consistency evaluation method based on blockchain proposed in this embodiment of the invention can evaluate the consistency of files. It combines blockchain social technology and does not rely on a trusted third party in the file consistency evaluation process. Instead, it uses computers and community members to conduct a comprehensive and multi-process evaluation of file consistency and provides reasonable incentives for the evaluation process.

[0131] To implement the above embodiments, the present invention also proposes an electronic device, including a processor and a memory. The processor reads executable program code stored in the memory to run a program corresponding to the executable program code, for implementing the blockchain-based on-chain file consistency evaluation method as described in the foregoing embodiments.

[0132] Figure 11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. The electronic device may include: a memory 111, a processor 112, and a computer program stored in the memory 111 and executable on the processor 112.

[0133] When the processor 112 executes the program, it implements the blockchain-based on-chain storage file consistency evaluation method provided in the above embodiments.

[0134] Furthermore, computer equipment also includes:

[0135] Communication interface 113 is used for communication between memory 111 and processor 112.

[0136] The memory 111 is used to store computer programs that can run on the processor 112.

[0137] The memory 111 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.

[0138] If the memory 111, processor 112, and communication interface 113 are implemented independently, then the communication interface 113, memory 111, and processor 112 can be interconnected via a bus to complete communication between them. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 11 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0139] Optionally, in a specific implementation, if the memory 111, processor 112, and communication interface 113 are integrated on a single chip, then the memory 111, processor 112, and communication interface 113 can communicate with each other through an internal interface.

[0140] Processor 112 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention.

[0141] This embodiment also provides a computer-readable storage medium storing a computer program thereon, characterized in that, when the program is executed by a processor, it implements the above-described blockchain-based on-chain storage file consistency evaluation method.

[0142] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this invention, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0143] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0144] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.

Claims

1. A blockchain-based on-chain storage file consistency evaluation system, characterized in that, include: The verification module is used to verify the consistency of on-chain files through a file consistency verification algorithm, and to evaluate the on-chain files from multiple perspectives and in multiple stages. The verification module is further used to verify the correctness of the on-chain files based on a betting protocol. Specifically, the correctness of the on-chain files is evaluated through automated testing, and the results are published through a voting protocol based on a linkable one-time ring signature. At the same time, multiple verification workers perform verification. If the verification results of the verification workers are inconsistent, the betting protocol is used to resolve the dispute. The verification module is further used to verify the voting protocol based on a linkable one-time ring signature. Specifically, it performs anonymous voting on the blockchain using linkable one-time ring signature technology, symmetric keys, and blockchain technology. In the voting initiation phase, the voting process is initiated. In the preparation phase, voters are randomly selected using distributed random number beacon technology and confirmed to participate in the voting by uploading a one-time public key. In the voting phase, the encrypted voting content is signed using linkable one-time ring signature technology. In the vote counting phase, the one-time private key is published, and the voting results are calculated. The storage module is used to store users' files in a distributed system and rewards storage workers for their contributions through an incentive mechanism. The front-end module is used to visually demonstrate the on-chain file consistency verification process.

2. The system of claim 1, wherein, The verification module is further configured to, through verification workers, evaluate the correctness, validity, and popularity of a document using a correctness evaluation algorithm, closed-loop voting based on a betting protocol, and open-loop voting, and upload the evaluation results to the blockchain for viewing.

3. The system of claim 1, wherein, The verification module is further used to verify the on-chain file through a closed voting protocol, evaluate the legality and popularity of the on-chain file by community members, evaluate the consistency of the on-chain file through a voting protocol based on a linkable one-time ring signature, and publicly release the on-chain file in the system when the voting score is higher than the set system parameters.

4. The system of claim 1, wherein, The verification module is further used to quantify and evaluate the workload of all nodes participating in the verification process using a proof-of-work algorithm, and to provide incentives.

5. The system of claim 1, wherein, The verification module is further used to adjust the user's reputation value based on the user's behavior, define community members based on the reputation value, and constrain their behavior within the community. 6.A blockchain-based method for evaluating consistency of files stored on-chain, characterized in that, Includes the following steps: The consistency of on-chain files is verified through a file consistency verification algorithm, and the on-chain files are evaluated from multiple perspectives and in multiple stages. The verification module is further used to verify the correctness of the on-chain files based on a betting protocol. Specifically, the correctness of the on-chain files is evaluated through automated testing, and the results are published through a voting protocol based on a linkable one-time ring signature. At the same time, multiple verification workers perform verification. If the verification results of the verification workers are inconsistent, the betting protocol is used to resolve the dispute. The verification module is further used to verify the voting protocol based on a linkable one-time ring signature. Specifically, it performs anonymous voting on the blockchain using linkable one-time ring signature technology, symmetric keys, and blockchain technology. In the voting initiation phase, the voting process is initiated. In the preparation phase, voters are randomly selected using distributed random number beacon technology and confirmed to participate in the voting by uploading a one-time public key. In the voting phase, the encrypted voting content is signed using linkable one-time ring signature technology. In the vote counting phase, the one-time private key is published, and the voting results are calculated. Store users' files in a distributed system and reward storage workers for their contributions through an incentive mechanism; The on-chain file consistency verification process is visualized.

7. An electronic device, characterized in that, include: The memory, the processor, and the computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the blockchain-based on-chain storage file consistency evaluation method as described in claim 6.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that, The program is executed by the processor to implement the blockchain-based on-chain storage file consistency evaluation method as described in claim 6.

Citation Information

Patent Citations

  • Blockchain-based electronic warehouse receipt transaction system with incentive mechanism

    CN110570308A