Intelligent contract external information acquisition method based on reputation attenuation and voting
Through the reputation decay and voting collaboration mechanism, the lack of trust and manipulation risks of blockchain oracles when verifying external information are solved, the security and reliability of the system are improved, and the incentive mechanism is optimized to achieve higher Information accuracy and system stability.
Patent Information
- Application Number
- CN202410486676.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-22
- Publication Date
- 2024-09-06
AI Technical Summary
Blockchain oracles have problems such as insufficient trust, high manipulation risk, low security, and poor reliability when verifying external information. In particular, human collaborative verification introduces subjectivity and error, and lacks an effective incentive mechanism.
A smart contract external information acquisition method based on reputation decay and voting is adopted. Through the Cobbs-Douglas reward function model and an improved proposal weight algorithm, a reputation decay mechanism and a voting collaboration mechanism are introduced to ensure participant enthusiasm and system security.
It improves the trust and security of the system, reduces the risk of manipulation, enhances the reliability and accuracy of external information, optimizes the incentive mechanism, and promotes the enthusiasm of participants and the healthy operation of the system.
Smart Images

Figure CN118607010A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of blockchain, smart contracts and reputation systems, and in particular to a method for obtaining external information of smart contracts based on reputation decay and voting. By innovatively combining the reputation decay mechanism and the collaborative voting mechanism, reliable verification of external information involved in the execution of smart contracts is achieved, thereby improving the security and credibility of the system. Background Art
[0002] Currently, blockchain oracles play a vital role in smart contracts and decentralized applications as a bridge between smart contracts and external information. Due to the limitations of blockchain itself, when information needs to be introduced from the outside, its correctness cannot be guaranteed. To address this limitation, blockchain oracles were introduced - a service that verifies the validity of external information before storing it in the blockchain. However, the existing blockchain oracle mechanism has a series of challenges in terms of trust and anti-manipulation. These issues include but are not limited to the accuracy of external information, prevention of manipulation, security and reliability of the system, etc.
[0003] In the existing mechanism, when the verification of external information cannot be completed automatically, the oracle relies on human collaboration to perform cross-checks, which leads to a certain degree of unreliability and security issues. Common technical problems are:
[0004] 1. Due to the immutability and persistence of the blockchain itself, although it is suitable for verifying its own information, it lacks trust when it comes to introducing external information. How to ensure the credibility of external information in the blockchain has become the primary problem facing current technology.
[0005] 2. The manipulability of blockchain oracles is one of the key challenges in the current field. Existing mechanisms are insufficient in preventing malicious behavior and are vulnerable to attacks such as vote manipulation. Therefore, it is necessary to find effective mechanisms to improve the security of the system and reduce the risk of manipulation.
[0006] 3. Blockchain oracles usually rely on human collaboration for verification, especially when verification cannot be completed automatically. However, human factors may introduce subjectivity and errors, affecting the accuracy of information. How to effectively overcome the limitations of human collaboration and improve the automatic verification capabilities of oracles is a technical problem that needs to be solved urgently.
[0007] 4. There is currently a lack of an effective incentive mechanism to increase the enthusiasm of participants and enhance their investment in the system. The current reward mechanism is not perfect and fails to effectively stimulate the enthusiasm of participants to cooperate. How to design an innovative incentive mechanism to improve the security and reliability of the system is a technical problem that needs to be solved at present.
[0008] Therefore, it becomes particularly important to find a solution that can improve the trust of blockchain oracle systems, prevent manipulation, and ensure the accuracy of external information. Summary of the invention
[0009] The purpose of the present invention is to provide a method for obtaining external information of smart contracts based on reputation decay and voting, which solves the key problems of insufficient trust, high manipulation risk, low security and poor reliability in the process of obtaining external information of smart contracts. The present invention improves the enthusiasm of participants through a unique incentive mechanism by introducing the Cobbs-Douglas reward function model and an improved proposal weight algorithm, thereby improving the security and reliability of the system. It provides new ideas and solutions for solving key problems in the field of blockchain oracles.
[0010] The above-mentioned object of the present invention is achieved by the following technical solutions:
[0011] The smart contract external information acquisition method based on reputation decay and voting adopts a smart contract external information verification system that includes three participants: submitters, voters, and authenticators. The system structure includes five key elements: participant identity and reputation, reputation decay mechanism, external data provision and verification, smart contract execution, and reward and punishment mechanism.
[0012] The participant identity and reputation: the system participants are divided into nodes that provide data and voting participants. Each participant has a unique identity and is assigned an initial reputation value. The reputation value decays over time, reflecting the historical performance of the participant.
[0013] The reputation decay mechanism: through a set decay rate, that is, the time decay factor e -βt , causing the reputation of participants to gradually decrease over time unless voters and certifiers continue to provide accurate data and actively participate in the network; helps reduce the reputation weight of voters and certifiers who are inactive or have bad behavior for a long time, while encouraging voters and certifiers to maintain high-quality participation; for each vote submitted by a voter and certifier, the voting weight f is calculated as follows:
[0014]
[0015] Where s represents the stake amount submitted by the voter, r represents the voter's reputation value, and t represents time; parameter α is a parameter defined when deploying Oracle, which determines the relative contribution of the stake amount and reputation value to the voting weight; the prover refers to the voter and the authenticator;
[0016] External data provision and verification: Participants provide external data, and the remaining participants verify the provided data by voting; the voting weights of different participants are taken into account, where the weights change as their reputation values decay; this ensures that participants with higher reputations have greater influence in the system;
[0017] The smart contract execution: The smart contract obtains external data by calling the interface of the oracle system and makes decisions based on the voting results; the logic of the smart contract is designed to make full use of the credibility information provided by the reputation decay and voting mechanism;
[0018] The reward and punishment mechanism is as follows: Participants with high reputation values receive additional rewards after successfully verifying data, while participants with low reputation values are punished.
[0019] The reward and punishment mechanism includes:
[0020] (1) Calculate the reward for each proposal and put it into the reward pool. The reward for each proposal of the voter is calculated by function g, which is similar to f and depends on the voter's stake, user reputation r and decay factor β. The calculation formula is as follows:
[0021]
[0022] Among them, the reward function g is complexly affected by the pledge amount s, user reputation r and time t;
[0023] (2) The Cobb-Douglas function is applied to the voting process to balance the importance of reputation decay rewards and voting staking; to ensure that authenticators provide credible verification services while providing them with appropriate economic incentives to improve the reliability of the system; the core idea of this function is to consider both staking fees and reward fees in reward distribution to ensure that not only those authenticators who provide reliable data are rewarded, but also they are encouraged to actively participate in protocol governance; the function is expressed as follows:
[0024]
[0025] Among them, rewards is the reward obtained by the certifier in a specific period; totalRewards is the total amount in the staking pool and the total fees collected in all rewarded pools; feeRatio = fee of the reward pool / total fees collected by all rewarded reward pools; stakeRatio = fee of the staking pool / total fees of all staked to the staking pool; α is the Cobb-Douglas coefficient.
[0026] The beneficial effects of the present invention are as follows: the system and method for obtaining external information of smart contracts based on reputation decay and voting collaboration play an important role in the smart contract ecosystem, and solve key problems such as insufficient trust, manipulation risk, security and reliability in the process of obtaining external information of smart contracts in practical applications, providing a more robust solution for the practical application of blockchain technology. It has the following significant beneficial effects:
[0027] 1. Solved the problem of improving trust. By introducing a reputation decay mechanism, the problem of insufficient trust among participants in the system was successfully solved. This innovative mechanism reduces the impact of bad behavior on the overall system by adjusting the weight of historical behavior, significantly improving the trust of the system. In practical applications, users and smart contracts can have more trust in the accuracy and reliability of external information, thereby improving the availability of the entire system.
[0028] 2. Solved the problem of excessive manipulation risk. The adoption of a voting collaboration mechanism effectively reduces the risk of manipulation. In actual contract execution, the introduction of majority rules ensures the fairness and decentralization of decision-making, and successfully prevents a single participant from manipulating the information acquisition process. This provides a stronger guarantee for the reliable execution of smart contracts.
[0029] 3. Improved system security and reliability. The reputation decay and voting collaboration framework of the present invention greatly improves the security and reliability of the system. It successfully prevents malicious behavior in the system and makes external information more secure and reliable. In actual application scenarios, users and smart contracts can trust external information more, thereby ensuring the stable operation of the system under various conditions.
[0030] 4. Optimized the incentive mechanism. The improvement of the proposal weight algorithm and the introduction of the Cobbs-Douglas reward function model have optimized the incentive mechanism of the system. This improvement provides participants with a fairer and more motivating way to participate, which effectively promotes the healthy operation of the system. In actual use, users and participating nodes are more actively involved in the acquisition of external information of smart contracts through a reasonable incentive mechanism. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The drawings described herein are used to provide further understanding of the present invention and constitute a part of this application. The illustrative examples of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0032] Figure 1 A flowchart of the smart contract proposition submission and voting process based on reputation decay and voting collaboration of the present invention;
[0033] Figure 2This is a flow diagram of the voting reward / punishment / reputation system of the smart contract based on reputation decay and voting collaboration of the present invention.
[0034] Figure 3 is the attenuation factor e in the present invention -βt β value change diagram
[0035] Figure 4 This is the blockchain oracle model based on voting and reputation in the present invention DETAILED DESCRIPTION
[0036] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0037] See also Figure 1 , Figure 2 and Figure 4 As shown, the present invention adopts a method for obtaining external information of smart contracts designed based on the reputation decay and voting blockchain oracle model. The system model includes three participating objects: submitter, voter and authenticator. The model system structure includes five key elements: participant identity and reputation, reputation decay mechanism, external data provision and verification, smart contract execution, and reward and punishment mechanism.
[0038] 1. Participant identity and reputation: System participants are divided into nodes that provide data and voting participants. Each participant has a unique identity and is assigned an initial reputation value. The reputation value decays over time, reflecting the historical performance of the participant. Before voting on a proposition, each voter and verifier (authenticator) must stake their own reputation and credibility. If the voter and verifier (authenticator) vote and verify honestly and correctly, the stake will be returned along with the reward. In the staking stage, let v be the voter and c be the verifier (authenticator). Each voter and verifier (authenticator) needs to provide a corresponding stake, which can form a specific quantitative value, which is considered a form of deposit in the model. Voter deposit range: Deposit v ∈[min sv ,max sv ], where min sv and max sv Parameters defined when the oracle is deployed. Authenticator deposit range: Deposit c ∈(mincv ,max cv ), where min cv >max sv Such a design can ensure that the deposit of the authenticator is always higher than that of the voter (that is, the more the stake, the greater the risk and the higher the reward), laying the foundation for the fairness and incentive mechanism of the system. In the subsequent stages, the weight of each voter and authenticator will be proportional to the deposit and reputation, providing a mathematical basis for ensuring the security and fairness of the system.
[0039] 2. Reputation decay mechanism. The core idea of reputation decay is that over time, the reputation of voters and certifiers should gradually decrease unless they continue to provide accurate data and actively participate in the network. This helps to reduce the reputation weight of long-term inactive or bad behavior voters and certifiers, while encouraging voters and certifiers to maintain high-quality participation. The reputation decay mechanism gradually reduces the reputation value of participants over a certain period of time through a set decay rate. This helps to more accurately reflect the current performance of participants. For each vote submitted by the voter and certifier, the voting weight f is calculated as follows:
[0040]
[0041] Where s represents the stake amount submitted by the voter, r represents the voter's reputation value, and t represents time. The parameter α is a parameter defined when deploying Oracle, which determines the relative contribution of the stake amount and reputation value to the voting weight. The first term e in the formula is -βt is the time decay factor, which indicates that the influence of reputation value will gradually weaken over time. As t increases, this term will gradually approach 0, reflecting that as time goes by, past contributions will gradually decrease; the second term in the formula represents the effect of the stake amount on the voting weight. When α is close to 1, the square root term of the stake amount will be more prominent, which will ensure that a larger stake amount will have a greater impact; when α is close to 0, the stake amount term will dominate, making the voting weight linearly related to the stake amount; the third term r in the formula represents the effect of reputation on the voting weight. The square root term of reputation ensures that voters and certifiers with higher reputation will have a greater impact than those with lower reputation. This setting makes the impact of reputation growth on voting weight gradually weaken, so as to avoid being too biased towards high-reputation users.
[0042] In the present invention, the attenuation factor e -βt Adjusted reputation persistence. Figure 3It can be seen that when β is 0.1, the reputation weakens relatively slowly, making it more durable in time. As β increases to 0.2, the decay rate of reputation gradually accelerates, achieving a moderate persistence; when β reaches 0.5, the model pursues a balance, that is, reputation moderately weakens over time while maintaining credibility; and when β is 1, reputation will weaken more quickly over time, providing faster reputation feedback for users who have been inactive in the system for a long time. The improvement of the present invention can make the reputation adjustment in the blockchain oracle voting system more flexible and dynamic, and can balance sustainability and real-time under different requirements.
[0043] 3. External data provision and verification. Participants can provide external data, and other participants verify the provided data through voting. The voting weights of different participants are taken into account, where the weights change as their reputation value decays. This ensures that participants with higher reputations have greater influence in the system.
[0044] (3.1) External data provision. The submitter submits the credibility of the off-chain data as a voting proposition through interaction with the oracle, and uses his own reputation and credibility as a bounty; this information is added to the list of available voting propositions. Once a proposal is submitted during the voting phase, a group of N voters will be randomly selected to participate in the voting phase. The weight of each voter and validator is proportional to their stake, ensuring a fair reflection of trust and participation in the system. The voting weight calculation formula for voters and validators is as follows:
[0045] Weight total =Weight voter +Weight certifier
[0046] At the same time, considering the openness, transparency and security of blockchain transactions, if the votes are stored in plain text on the chain, malicious and lazy voters may see the votes of other voters and use them for their own interests. To circumvent this problem, the model does not store votes on the chain, but stores summaries (encrypted). After the proposal is submitted, the authentication phase is carried out simultaneously with the voting phase. The authenticator can select the voting proposition for verification (authentication), that is, to verify the credibility of the off-chain data, and provide the verification (authentication) results to the oracle, and comprehensively calculate the corresponding voting propositions in a voting manner to verify (authenticate) the results.
[0047] (3.2) Data Verification. After the proposal is submitted, the authentication phase and the voting phase can be carried out simultaneously. The authenticator can select the voting proposition for verification (authentication), that is, to verify the credibility of the off-chain data, and provide the verification (authentication) results to the oracle, and comprehensively calculate the verification (authentication) results of the corresponding voting proposition by voting. When the authentication phase ends, the voters and authenticators must reveal their voting results by submitting their votes and the key used to calculate the summary to the oracle voting model. To ensure that the revealed voting results are consistent with the votes cast in the voting phase, their summary will be calculated and compared with the summary stored in the oracle, which is stored in the voting and authentication phases.
[0048] 4. Smart contract execution. Smart contracts obtain external data by calling the oracle system’s interface and make decisions based on voting results. The logic of smart contracts is designed to make full use of the credibility information provided by reputation decay and voting mechanisms.
[0049] (4.1) Result disclosure. When all voters and validators reveal their votes, the proposal will be moved from the list of available proposals to the list of closed proposals, and its voting results will be calculated; in this design, a score will be calculated for each voter and validator, and the Cobbs-Douglas reward function will be used to calculate the reward; based on the final voting results, the reputation of all users is updated. Since the votes have been revealed and stored in the smart contract, any user can check the results of the proposal and the voting process.
[0050] (4.2) Result calculation. After the proposition expires, the oracle determines the result by finding the weighted majority of the information reports. Each response tuple has a weight calculated based on the associated pledge and sublinear function. Therefore, the present invention uses RT = {RT, RT1, ..., RT n}, n is the number of voters. f(S i ),f(S i′ ) represent the propositions voted as correct and wrong respectively, then the voter’s result w voters The calculation is as follows:
[0051]
[0052] The result of the authenticator w certifiers The calculation method of is similar to that of w, which is to compare the sum of the weights of TRUE and FALSE votes. As shown in Table 1, the voting result of the proposal is calculated by w voters and w certifiers To calculate. If w voters and w certifiersIf the two certifiers are the same, the proposal result is the same, otherwise, the result is Unknown. If there is no certifier or they disagree, the voter decides the voting result.
[0053] Table 1 Proposition results
[0054]
[0055] Whenever a proposal is closed, the user's reputation will increase if their vote matches the outcome, otherwise it will decrease.
[0056] 5. Reward and punishment mechanism. In order to encourage good behavior and punish bad behavior, a reward and punishment mechanism is introduced. Participants with high reputation values can receive additional rewards after successfully verifying data, while participants with low reputation values may be subject to certain penalties.
[0057] (5.1) Calculate the reward for each proposal and put it into the reward pool. The reward for each proposal of the voter is calculated by function g, which is similar to f and depends on the voter's stake, user reputation r and decay factor β. The calculation formula is as follows:
[0058]
[0059] The reward calculation for each proposal voter is considered, where the reward function g is complexly affected by the stake amount s, user reputation r, and time t. Specifically, the reward decays exponentially over time to reflect the time sensitivity of reputation. In terms of the stake amount, the present invention adopts a quadratic function αs 2 +(1-α)s, where the adjustment of parameter α affects the relative importance of the square term and linear term of the stake amount in the reward calculation. In addition, the reward is related to the user's reputation in a square root relationship to reflect the nonlinear effect of user reputation on the reward.
[0060] (5.2) adopts a unique mechanism to apply the Cobb-Douglas function to the voting process to balance the importance of reputation decay rewards and voting staking. This ensures that authenticators provide reliable verification services while providing them with appropriate economic incentives to improve the reliability of the system. The core idea of this function is to consider both staking fees and reward fees in the reward distribution to ensure that not only those authenticators who provide reliable data are rewarded, but also they are encouraged to actively participate in protocol governance. The function is expressed as follows:
[0061]
[0062] Among them, rewards is the reward obtained by the certifier in a specific period; totalRewards is the total amount in the staking pool and the total fees collected in all rewarded pools; feeRatio = fee of the reward pool / total fees collected by all rewarded reward pools; stakeRatio = fee of the staking pool / total fees of all staked to the staking pool; α is the Cobb-Douglas coefficient.
[0063] Here, the rewards available to a single validator are determined by the contribution of the voter's voting behavior and the rewards obtained after staking. TotalRewards represents the total fees of all validators in a cycle. Among them, the exponents α and (1-α) are important variables. They are called factor shares in the production function: they determine the share of capital (staking) and labor (rewards) in the market for the production of this actual reward fee. These exponents add up to 1: α+(1-α)=1. This is called "scale invariance". This means that if both feeRatio and stakeRatio are increased by a certain percentage, the voter and validator's share in the staking pool will also increase by the same percentage. That is, whether they stake a large amount or a small amount, if they increase their capital (staking ratio) and labor (reward ratio) contributions by 20%, their share in the reward pool will also increase by 20%; if both inputs increase by 35%, the output will also increase by 35%. Therefore, a large stake will not be over-rewarded due to its size, and vice versa. This feature also eliminates the possibility of participants manipulating the system through aggregation or decomposition. Such characteristics improve the fairness and robustness of the system.
[0064] Example 1: Medical and health data sharing platform
[0065] In the field of medical health, the establishment of a medical health data sharing platform is to promote the interconnection of medical information and improve the quality and efficiency of medical services. The use of blockchain technology and smart contracts can ensure the security, privacy protection and credibility of medical data.
[0066] Case description:
[0067] A medical health data sharing platform uses blockchain technology and smart contracts to build a secure, transparent and reliable medical data exchange platform. The following is their implementation case:
[0068] Data collection and storage: Medical and health data includes patients’ medical records, diagnostic reports, test results, etc. These data are encrypted and stored through the blockchain network. After the patient’s authorization, the medical data is securely recorded on the blockchain to ensure the integrity and non-tamperability of the data.
[0069] Data access and authorization: Patients can share their medical data with medical institutions, doctors or research institutions through authorization. The access rights to the data are managed by smart contracts, and only authorized participants can access specific medical data, protecting the privacy and data security of patients.
[0070] Reputation decay and voting mechanism: The platform introduces a reputation decay and voting mechanism to supervise and manage nodes involved in data verification and sharing. Authentication users obtain corresponding voting weights based on their reputation values. Nodes with high reputations have greater trust and influence, ensuring the accuracy and credibility of data.
[0071] Research and Application: Research institutions can obtain authorized medical data on the platform for scientific research and medical applications. Smart contracts can automatically manage data access and use to ensure the legality and compliance of data.
[0072] Conclusion: The case of the medical and health data sharing platform fully utilizes the advantages of blockchain technology and smart contracts to achieve secure sharing and privacy protection of medical information. By establishing a secure and reliable data exchange platform, it promotes the interconnection and interoperability of medical data, improves the quality and efficiency of medical services, and protects patients' privacy and data security. This model has brought innovation and change to the medical and health field and promoted the development and popularization of digital medical services.
[0073] Example 2: Financial transaction smart contract
[0074] The financial sector is an important area of application for smart contracts. Smart contracts can be used to achieve automation, security, and transparency in financial transactions. Establishing smart contracts for financial transactions can simplify transaction processes, reduce costs, and improve transaction efficiency and security.
[0075] Case description:
[0076] A fintech company has built a smart contract platform for financial transactions using blockchain technology and smart contracts. Here are their implementation cases:
[0077] Digital asset trading: The platform supports the trading of digital assets, including cryptocurrencies, digital securities, etc. The two parties to the transaction buy and sell digital assets through smart contracts, which automatically execute the transaction process, including asset transfer, payment settlement, etc., to ensure the safety and reliability of the transaction.
[0078] Smart contract derivatives trading: In addition to digital asset trading, the platform also supports the trading of smart contract derivatives, such as options, futures and other financial derivatives. The two parties to the transaction can sign a derivative contract through a smart contract, which will be automatically executed according to the preset conditions, avoiding the errors and risks that may be caused by human operations.
[0079] Transaction supervision and compliance: The platform has established a complete transaction supervision and compliance mechanism. Smart contracts record all transaction data, and the transaction data is open and transparent and can be queried by anyone. At the same time, smart contracts can automatically perform compliance operations according to regulatory requirements, such as KYC (know your customer) and AML (anti-money laundering), to ensure the compliance of transactions.
[0080] Reputation decay and voting mechanism: Introduce reputation decay and voting mechanism to supervise and manage nodes involved in transaction verification and management. Authentication personnel obtain corresponding voting weights according to their reputation values. Nodes with high reputation have greater trust and influence, ensuring the accuracy and credibility of transactions.
[0081] Conclusion: The case of smart contracts for financial transactions fully utilizes the advantages of blockchain technology and smart contracts to achieve automation, security and transparency of financial transactions. By establishing a secure and reliable trading platform, the efficiency and security of financial transactions are improved, transaction costs and risks are reduced, and new possibilities are provided for the development and innovation of the financial market. This model has brought innovation and change to the financial industry and promoted the development and application of financial technology.
[0082] Example 3: Smart agricultural insurance data on-chain
[0083] In the agricultural sector, smart contracts can be used to implement smart insurance and provide farmers with more efficient and reliable insurance services. Among them, the uploading of agricultural smart insurance data to the blockchain is an important link, which can ensure the transparency, credibility and security of insurance data.
[0084] Case description:
[0085] In an agricultural smart insurance company, they used blockchain technology and smart contracts to realize the on-chain of agricultural insurance data. The company provides planting insurance services to farmers to protect losses when crop harvests are damaged. The following are their implementation cases:
[0086] Data collection and verification: Smart Agricultural Insurance Company works with farms to install sensors and monitoring equipment to collect data on crop growth, including temperature, humidity, rainfall, etc. These data are submitted to the blockchain through smart contracts and verified by multiple certifiers. Authentication includes agricultural experts, third-party regulators, etc., who verify the authenticity and accuracy of the data through a voting mechanism.
[0087] Smart contract execution: When crops are damaged by natural disasters or other force majeure, smart contracts will automatically execute the compensation process according to pre-set insurance terms. These terms include the extent of loss, compensation ratio, etc., aiming to ensure fair and timely compensation.
[0088] Data Verification and Smart Contracts: The smart agricultural insurance platform uses smart contracts to verify and process agricultural data. Smart contracts automatically execute insurance contracts based on preset conditions and rules, and make insurance payments based on changes in agricultural data. For example, when crops are damaged, smart contracts can automatically trigger insurance payments and transfer the payments to farmers without human intervention, which improves the efficiency and speed of insurance. The execution process of smart contracts is transparent and traceable throughout, ensuring the fairness of insurance contracts and the credibility of execution. This automated insurance payment mechanism greatly reduces the management costs of insurance companies and improves the efficiency and quality of insurance services. At the same time, smart contracts can also automate the process of insurance claims, speed up the payment process, reduce operational risks, and improve the service experience.
[0089] Reputation decay and voting mechanism: The agricultural smart insurance platform introduces a reputation decay and voting mechanism to ensure the accuracy and credibility of agricultural data. Nodes participating in data verification and sharing obtain corresponding voting weights according to their reputation values, and nodes with high reputations have greater trust and influence. This mechanism effectively prevents potential malicious behavior and data tampering, and enhances the security and stability of the system. The reputation decay mechanism regularly adjusts the reputation value of the node to reflect its recent behavior and performance to maintain the dynamic balance of the system. The authenticity and integrity of agricultural data are verified through voting to ensure the accuracy and credibility of the data. This mechanism provides a solid foundation for the sustainable development of the agricultural smart insurance platform.
[0090] Summarize:
[0091] The case of agricultural smart insurance data on-chain fully utilizes the advantages of blockchain technology and smart contracts to improve the transparency, credibility and security of insurance data. Through real-time data recording and automatic execution of smart contracts, farmers can obtain more fair and efficient insurance services, effectively deal with risks in agricultural production, and promote the sustainable development of the agricultural industry.
[0092] Example 4: Intelligent supply chain management system
[0093] In the field of supply chain management, the establishment of an intelligent supply chain management system aims to optimize the operational efficiency of the supply chain, reduce costs, and improve product traceability and quality management. Using blockchain technology and smart contracts, real-time recording, transparent traceability of supply chain data can be achieved, and the security and accuracy of data can be ensured.
[0094] Case description:
[0095] A global retail company has established an intelligent supply chain management system that uses blockchain technology and smart contracts to manage and optimize the supply chain. The following is their implementation case:
[0096] Supply chain data recording and traceability: The company records and traces key information in the supply chain, such as raw material procurement, production and processing, logistics and transportation, in real time through the blockchain network. Each step of the operation has corresponding data recorded on the blockchain, ensuring the data cannot be tampered with and is traceable.
[0097] Smart contracts execute orders and payments: Smart contracts are used to automate processes such as order generation and payment settlement. When an order is placed, the smart contract automatically triggers the payment process, executes payment according to the contract terms and delivery status, and writes payment records into the blockchain to ensure the transparency and credibility of the transaction.
[0098] Supply chain monitoring and early warning: Through sensors and IoT technology, key links in the supply chain are monitored in real time, such as cargo transportation status, temperature and humidity and other environmental parameters. When abnormal conditions are detected, the smart contract will automatically trigger the early warning mechanism, notify the relevant responsible parties and take corresponding countermeasures to ensure the stable operation of the supply chain.
[0099] Reputation decay and voting mechanism: Introduce reputation decay and voting mechanism to supervise and manage nodes involved in supply chain verification and management. Authentication personnel obtain corresponding voting weights according to their reputation values. Nodes with high reputation have greater trust and influence, ensuring the accuracy and credibility of data.
[0100] Conclusion: The case of the intelligent supply chain management system fully utilizes the advantages of blockchain technology and smart contracts to achieve real-time recording, transparent traceability and automated management of supply chain data. By establishing a secure and reliable supply chain management platform, the operational efficiency and quality management level of the supply chain are improved, costs and risks are reduced, and more reliable and efficient supply chain services are provided to enterprises. This model has brought innovation and change to the field of supply chain management and promoted the development and popularization of digital supply chains.
[0101] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made to the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for obtaining external information of smart contracts based on reputation decay and voting, characterized by: The smart contract external information verification system used includes three participants: submitters, voters, and authenticators. The system structure includes five key elements: participant identity and reputation, reputation decay mechanism, external data provision and verification, smart contract execution, and reward and punishment mechanism. The participant identity and reputation: the system participants are divided into nodes that provide data and voting participants. Each participant has a unique identity and is assigned an initial reputation value. Reputation decays over time, reflecting the historical performance of participants; The reputation decay mechanism: through a set decay rate, that is, the time decay factor e -βt , causing the reputation of participants to gradually decrease over time unless voters and certifiers continue to provide accurate data and actively participate in the network; helps reduce the reputation weight of voters and certifiers who are inactive or have bad behavior for a long time, while encouraging voters and certifiers to maintain high-quality participation; for each vote submitted by a voter and certifier, the voting weight f is calculated as follows: Where s represents the stake amount submitted by the voter, r represents the voter's reputation value, and t represents time; parameter α is a parameter defined when deploying Oracle, which determines the relative contribution of the stake amount and reputation value to the voting weight; the prover refers to the voter and the authenticator; External data provision and verification: Participants provide external data, and the remaining participants verify the provided data by voting; the voting weights of different participants are taken into account, where the weights change as their reputation values decay; this ensures that participants with higher reputations have greater influence in the system; The smart contract execution: The smart contract obtains external data by calling the interface of the oracle system and makes decisions based on the voting results; the logic of the smart contract is designed to make full use of the credibility information provided by the reputation decay and voting mechanism; The reward and punishment mechanism is as follows: Participants with high reputation values receive additional rewards after successfully verifying data, while participants with low reputation values are punished.
2. The method for obtaining external information of smart contracts based on reputation decay and voting according to claim 1 is characterized in that: The reward and punishment mechanism includes: (1) Calculate the reward for each proposal and put it into the reward pool. The reward for each proposal of the voter is calculated by function g, which is similar to f and depends on the voter's stake, user reputation r and decay factor β. The calculation formula is as follows: Among them, the reward function g is complexly affected by the pledge amount s, user reputation r and time t; (2) The Cobb-Douglas function is applied to the voting process to balance the importance of reputation decay rewards and voting staking; to ensure that authenticators provide credible verification services while providing them with appropriate economic incentives to improve the reliability of the system; the core idea of this function is to consider both staking fees and reward fees in reward distribution to ensure that not only those authenticators who provide reliable data are rewarded, but also they are encouraged to actively participate in protocol governance; the function is expressed as follows: Among them, rewards is the reward obtained by the certifier in a specific period; totalRewards is the total amount in the staking pool and the total fees collected in all rewarded pools; feeRatio = fee of the reward pool / total fees collected by all rewarded reward pools; stakeRatio = fee of the staking pool / total fees of all staked to the staking pool; α is the Cobb-Douglas coefficient.
