Data oracle architecture system and operation method for assisting industrial blockchain smart contracts
Through the distributed oracle network and auction theory incentive mechanism, the problem of single point failure of data oracles and imperfect reward distribution in the industrial Internet is solved, trusted data acquisition of smart contracts and off-chain data space expansion are achieved, ensuring data security. Transmission reliability and oracle honesty.
Patent Information
- Application Number
- CN202111472017.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-06
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-12-06
AI Technical Summary
Existing data oracle technology has the problems of single point failure risk and imperfect reward distribution mechanism in industrial Internet scenarios, resulting in a lack of credibility and efficiency in data interaction.
Design a data oracle architecture system based on a distributed oracle network, using registration oracle contracts, monitoring oracle contracts, payment oracle contracts and agency oracle contracts, combined with the incentive mechanism of auction theory to ensure the integrity of the oracles and data transmission reliability.
It realizes that in the industrial Internet big data scenario, smart contracts can reliably obtain off-chain data, expands the off-chain data space, and ensures the individual rationality of the oracle and the incentive compatibility of the system through the incentive mechanism.
Smart Images

Figure CN114338667B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of blockchain technology, and in particular relates to a data oracle architecture system and an operation method for assisting industrial blockchain smart contracts. Background Art
[0002] At present, the fourth industrial revolution is rising in the world, and my country's manufacturing industry is in the stage of transformation and upgrading. As the infrastructure supporting the industrial revolution, the industrial Internet supports the interconnection of resources in industrial scenarios and builds industrial production and service systems. At present, the construction of the industrial Internet mainly faces the following problems: the traditional centralized architecture cannot manage a huge number of industrial Internet devices; data between different systems in industrial scenarios are not interoperable, forming data islands; data interaction between different entities lacks confidence, and data authenticity is difficult to verify. In order to solve these problems, blockchain is becoming a reliable choice for the construction architecture of the industrial Internet.
[0003] Blockchain uses a decentralized architecture to network industrial nodes and achieve interconnection. At the same time, it uses a consensus mechanism to solve the trust problem between different entities in industrial scenarios. On this basis, different industrial systems and entities implement trusted computing on the blockchain in the form of smart contracts, and their execution process can be verified to make the computing process credible. However, the operation of smart contracts actually requires real-time interaction with external information. To ensure data credibility, on-chain resources cannot interact directly with the outside world. Data oracle is a reliable solution for realizing the interaction between smart contracts and off-chain data. It writes information into the chain and becomes a bridge connecting the industrial Internet blockchain system and the outside world.
[0004] Data oracles act as information intermediaries in the interaction between smart contracts and off-chain. Smart contracts send requests to oracles, which obtain external data through off-chain APIs and then send the data to smart contracts. Existing data oracle technology is not yet mature, and the existing implementation schemes are different, mainly divided into centralized oracles and decentralized oracles. Centralized oracles only have a single oracle serving smart contracts, which can easily lead to a single point of data monopoly. Existing decentralized oracle schemes are still not perfect in terms of reward distribution mechanism and consensus mechanism. Summary of the invention
[0005] The purpose of the present invention is to provide a data oracle architecture system and operation method for assisting industrial blockchain smart contracts, establish an industrial Internet blockchain system supported by a data oracle, and design an incentive mechanism based on auction theory to provide perfect guarantees for on-chain smart contracts to obtain and use off-chain industrial data in industrial big data scenarios.
[0006] The technical solution to achieve the purpose of the present invention is: a data oracle architecture system that assists industrial blockchain smart contracts, using a distributed oracle network to bridge the off-chain environment and smart contracts, and expand the off-chain data space of smart contracts, as follows:
[0007] The data oracle architecture system includes an on-chain oracle system and a decentralized off-chain data oracle network. The on-chain oracle system includes a registration oracle contract, a monitoring oracle contract, a payment oracle contract, and a proxy oracle contract.
[0008] The off-chain data oracle network is composed of oracles with sufficient storage resources, and smart devices can also become oracle nodes after successfully registering in the oracle contract; according to the off-chain data requirements of non-oracle contracts, the data oracle will collect the required data from the off-chain environment and send it to the non-oracle contracts on the chain; the on-chain oracle contract is used to manage transactions between the oracle and non-oracle contracts.
[0009] A method for operating a data oracle architecture system for assisting industrial blockchain smart contracts, wherein the oracle operates in a request-response mode, first receiving a service request from a non-oracle contract, and then providing a corresponding service. The workflow of the data oracle system is as follows:
[0010] (1) The smart device registers as a legitimate data oracle through an independent account;
[0011] (2) When requesting on-chain data, non-oracle contracts obtain data directly from the blockchain;
[0012] (3) When requesting off-chain data, the non-oracle contract first sends a message containing the required data type to the proxy oracle contract and locks the service fee in the payment oracle contract; then, the proxy oracle contract records the data type required by the non-oracle contract in its own event log;
[0013] (4) The data oracle and data center subscribe to the event log of the proxy oracle contract to obtain data requests from non-oracle contracts;
[0014] (5) If the data is stored locally, the data center directly transmits the required data to the proxy oracle contract;
[0015] (6) If the required data is stored in other off-chain data sources, the oracle network selects some oracles to obtain the required data based on the consensus mechanism;
[0016] (7) The selected data oracle calls the interface of the off-chain data source to collect the required data;
[0017] (8) The selected data oracle will reach a consensus based on the collected data and then send the data to the proxy oracle contract;
[0018] (9) The proxy oracle contract converts the data into a form readable by the non-oracle node and sends it to the non-oracle contract;
[0019] (10) The proxy oracle contract sends information related to the oracle service quality to the monitoring oracle contract and the payment oracle contract. The monitoring oracle contract evaluates and records the oracle service data, and the payment oracle contract changes the service fee from a locked state to a state available to the completed service contract.
[0020] Compared with the prior art, the present invention has the following significant advantages: (1) It designs a data oracle incentive mechanism based on auction theory to ensure the honesty and reliability of the oracle participants in the system. Simulation results show that the present invention can enable the data oracle system to meet individual rationality and incentive compatibility; (2) It ensures that the on-chain smart contract can reliably obtain off-chain industrial data and expand the off-chain data space for the big data scenario of the industrial Internet. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 Build a flow chart for the data oracle system.
[0022] Figure 2 The following is the workflow diagram of the data oracle system.
[0023] Figure 3 This is the simulation result diagram of the incentive mechanism. DETAILED DESCRIPTION
[0024] The present invention provides a data oracle architecture system for assisting industrial blockchain smart contracts, which uses a distributed oracle network to bridge the off-chain environment and smart contracts and expand the off-chain data space of smart contracts, as follows:
[0025] The data oracle architecture system includes an on-chain oracle system and a decentralized off-chain data oracle network. The on-chain oracle system includes a registration oracle contract, a monitoring oracle contract, a payment oracle contract, and a proxy oracle contract.
[0026] The off-chain data oracle network is composed of oracles with sufficient storage resources, and smart devices can also become oracle nodes after successfully registering in the oracle contract; according to the off-chain data requirements of non-oracle contracts, the data oracle will collect the required data from the off-chain environment and send it to the non-oracle contracts on the chain; the on-chain oracle contract is used to manage transactions between the oracle and non-oracle contracts.
[0027] Furthermore, the on-chain oracle system includes a registration oracle contract, a monitoring oracle contract, a payment oracle contract, and a proxy oracle contract, as follows:
[0028] Register the oracle contract: To become an oracle, the off-chain smart device must pledge and lock a portion of tokens as a deposit, and register the deposit address and payment address. This registration process is completed by the registered oracle contract.
[0029] Proxy Oracle Contract: The proxy oracle contract is an information transmission intermediary between the non-oracle contract and the off-chain oracle. It not only provides a full-duplex communication interface for the non-oracle contract to send service requests and receive service results, but also provides a full-duplex interface for the off-chain oracle to obtain service requests and return service results.
[0030] Monitoring oracle contracts: Monitoring oracle contracts are used to record the service quality of the oracle, including service response delay, correctness and responsiveness of reported results, malicious oracle lists, and unprocessed service requests;
[0031] Payment Oracle Contract: The Payment Oracle Contract acts as a third party, allowing the non-oracle contract to complete the payment of fees to the oracle party that provided the service; the Payment Oracle Contract temporarily reserves the service fee of the non-oracle contract until the oracle that completed the service submits a cancellation request.
[0032] The present invention also provides an operation method of the data oracle architecture system for assisting the industrial blockchain smart contract as described above. The oracle operates in a request-response mode, first receiving a service request from a non-oracle contract, and then providing a corresponding service. The workflow of the data oracle system is as follows:
[0033] (1) The smart device registers as a legitimate data oracle through an independent account;
[0034] (2) When requesting on-chain data, non-oracle contracts obtain data directly from the blockchain;
[0035] (3) When requesting off-chain data, the non-oracle contract first sends a message containing the required data type to the proxy oracle contract and locks the service fee in the payment oracle contract; then, the proxy oracle contract records the data type required by the non-oracle contract in its own event log;
[0036] (4) The data oracle and data center subscribe to the event log of the proxy oracle contract to obtain data requests from non-oracle contracts;
[0037] (5) If the data is stored locally, the data center directly transmits the required data to the proxy oracle contract;
[0038] (6) If the required data is stored in other off-chain data sources, the oracle network selects some oracles to obtain the required data based on the consensus mechanism;
[0039] (7) The selected data oracle calls the interface of the off-chain data source to collect the required data;
[0040] (8) The selected data oracle will reach a consensus based on the collected data and then send the data to the proxy oracle contract;
[0041] (9) The proxy oracle contract converts the data into a form readable by the non-oracle node and sends it to the non-oracle contract;
[0042] (10) The proxy oracle contract sends information related to the oracle service quality to the monitoring oracle contract and the payment oracle contract. The monitoring oracle contract evaluates and records the oracle service data, and the payment oracle contract changes the service fee from a locked state to a state available to the completed service contract.
[0043] Furthermore, the consensus mechanism adopts the Byzantine fault-tolerant consensus mechanism, which is as follows:
[0044] All available oracles will be divided into multiple data transmission groups, and only one group will be randomly selected in each round to collect the required data; in addition, all oracles in the key data transmission group will reach a consensus on the collected data through a threshold signature scheme, and consensus will be reached when the number of honest oracles exceeds the threshold.
[0045] Furthermore, the data oracle operation incentive mechanism is used to ensure that the oracle system meets individual rationality and incentive compatibility during operation, as follows:
[0046] 1) The proxy oracle contract records the data types required by the non-oracle contract and the number of data oracles required for the data transmission task in the event log N , the maximum reward that can be allocated to each data oracle, and the data oracle obtains the above messages by subscribing to the log;
[0047] 2) When the estimated cost of the oracle data transmission is lower than the maximum reward applied for, the oracle network will randomly select a group of oracles from these oracles to perform the data transmission task. The number of oracles selected is greater than N ;
[0048] 3) The oracles in the task execution group will bid for the task, and the bid price is the minimum reward required to complete the task;
[0049] 4) The system sorts the bids in ascending order and selects the bid with the lowest bid. N Oracles are used to perform data transmission tasks, and each oracle givesN +1 bonus for the lowest bid.
[0050] Furthermore, in step 4), the reward obtained by each data oracle is no less than the estimated cost, ensuring the individual rationality of each oracle.
[0051] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments. Example
[0052] Considering the huge demand for real-time data in industrial Internet scenarios, it is very necessary to design a reasonable data oracle system for the industrial Internet under the blockchain architecture. This paper will explain the industrial Internet blockchain system supported by data oracle and the data oracle incentive mechanism based on auction theory.
[0053] Combination Figure 1 , the present invention first designs an industrial Internet blockchain system supported by an oracle, in which a distributed oracle network is deployed, and the entire system includes three levels: industrial Internet device layer, blockchain layer and oracle layer. The industrial Internet device layer includes various heterogeneous industrial Internet devices, which will generate a large amount of industrial and network data, and the key parts of them will be stored in the blockchain layer, that is, "key data on the chain". In the blockchain layer, the smart contract engine is used to develop industrial applications. The oracle layer helps smart contracts improve the interactivity with off-chain data, that is, it serves as a bridge to connect off-chain data with on-chain applications. The following will focus on these three hierarchical structures of the system.
[0054] Industrial Internet device layer. This layer consists of various heterogeneous industrial Internet devices, which generate a large amount of industrial data, which are defined as three categories here:
[0055] (1) Traditional equipment. Traditional equipment can only generate raw industrial data and cannot transmit or obtain data. In addition, the computing and storage capabilities of such equipment are extremely limited.
[0056] (2) Smart devices. Such devices can be blockchain nodes or oracle nodes in the network, with the ability to transmit and receive data and sufficient storage and computing resources.
[0057] (3) Data center. This type of device is a centralized and trusted storage device off-chain that can store industrial data of various types and formats.
[0058] Blockchain layer. The system designed by this patent adopts a private chain, so in the decentralized blockchain network of the industrial Internet, each smart device can be regarded as a legitimate blockchain node with an independent account. First, we use the blockchain as a distributed database to store the data generated by industrial equipment. Due to limited storage resources, only the key data of the equipment (such as registration information, location information, and working status, etc.) will be stored in the blockchain for management and maintenance. The key data in the blockchain can be called "on-chain data", and the data not stored on the blockchain is called "off-chain data". Secondly, we use an open smart contract engine as an industrial application development platform. In fact, industrial applications require a lot of memory space and computing resources, but smart contracts cannot interact directly with the off-chain environment, and their computing power is very limited, which will hinder the creation and deployment of industrial applications in the blockchain network. Therefore, the present invention proposes a distributed oracle network to bridge the off-chain environment and smart contracts, and expand the off-chain data space of smart contracts.
[0059] Oracle layer. The entire oracle layer consists of an off-chain oracle network and an on-chain oracle system. For simplicity, the "oracle contract" in the following text refers to an on-chain oracle smart contract, and the "non-oracle contract" refers to a traditional smart contract. The off-chain oracle network consists of a large number of oracles with sufficient storage resources, and smart devices can also become oracle nodes after successfully registering in the oracle contract. This patent considers the data service attributes of the oracle, hereinafter referred to as the data oracle. According to the off-chain data requirements of the non-oracle contract, the data oracle will collect the required data from the off-chain environment and send it to the on-chain non-oracle contract. For example, the predictive maintenance application of equipment failure based on smart contracts in the industrial Internet requires not only on-chain data (registration, location and working status information, etc.), but also off-chain data (temperature, humidity and ambient pressure, etc.). When the application is running, the non-oracle contract sends an off-chain data request to the data oracle, and the data oracle forwards the collected data to the on-chain contract after receiving the request. Correspondingly, the on-chain oracle contract is used to manage transactions between the oracle and the non-oracle contract. This patent divides the on-chain oracle system into four categories.
[0060] Register the Oracle Contract: For an off-chain smart device to become an oracle, in addition to mortgaging and locking a portion of tokens as a deposit, it is also necessary to register the deposit address and payment address. This registration process is completed by the Register Oracle Contract.
[0061] Proxy oracle contract: The proxy oracle contract is an information transmission intermediary between the non-oracle contract and the off-chain oracle. It not only provides a full-duplex communication interface for the non-oracle contract to send service requests and receive service results, but also provides a full-duplex interface for the off-chain oracle to obtain service requests and return service results.
[0062] Monitoring oracle contract: The monitoring oracle contract is used to record the oracle's quality of service (QoS), such as service response delay, correctness and responsiveness of reported results, list of malicious oracles and unprocessed service requests.
[0063] Payment Oracle Contract: The Payment Oracle Contract acts as a third party to ensure that the non-oracle contract completes the payment of the fee to the oracle that provided the service. This contract will temporarily hold the service fee of the non-oracle contract until the oracle that completed the service submits a cancellation request.
[0064] 1. Oracle System Workflow
[0065] In this system, the oracle operates in a request-response mode, first receiving service requests from non-oracle contracts and then providing corresponding services. Figure 2 As shown in the figure, the workflow of the data oracle system is as follows:
[0066] (1) The smart device registers as a legitimate data oracle through an independent account;
[0067] (2) When requesting on-chain data, non-oracle contracts can obtain data directly from the blockchain;
[0068] (3) When requesting off-chain data, the non-oracle contract first sends a message containing the required data type to the proxy oracle contract and locks the service fee in the payment oracle contract. The proxy oracle contract then records the data type required by the non-oracle contract in its own event log;
[0069] (4) Data oracles and data centers subscribe to the event log of the proxy oracle contract to obtain data requests from non-oracle contracts;
[0070] (5) If the data is stored locally, the data center directly transmits the required data to the proxy oracle contract;
[0071] (6) If the required data is stored in other off-chain data sources (such as the Internet, asset devices, etc.), the oracle network will select some oracles to obtain this data based on the consensus mechanism;
[0072] (7) The selected data oracle will call the interface of the off-chain data source to collect the required data;
[0073] (8) These selected data oracles will reach a consensus based on the collected data and then send the data to the proxy oracle contract;
[0074] (9) The proxy oracle contract converts the data into a form readable by the non-oracle node and sends it to the non-oracle contract;
[0075] (10) The proxy oracle contract sends information related to the oracle service quality to the monitoring oracle contract and the payment oracle contract. The monitoring oracle contract evaluates and records the oracle service data. The payment oracle contract changes the service fee from a locked state to a state available for the completed service contract.
[0076] 2. Oracle Consensus and Incentive Mechanism
[0077] The oracle consensus mechanism in this system determines the verifiability, availability and correctness of the data oracle when transmitting data. At the same time, this patent proposes an incentive mechanism to encourage oracle participants with the goals of efficiency, incentive compatibility and personal rationality.
[0078] (1) Consensus Mechanism
[0079] Since both the oracle and the blockchain network are Byzantine networks, the consensus mechanism of the oracle network can be designed with reference to the blockchain network. For example, according to the proof-of-work mechanism, all data oracles will compete to solve a complex mathematical calculation problem. The oracle that solves the problem first can transmit the data to the non-oracle contract, but solving complex mathematical calculation problems will consume a lot of computing resources. At present, the Byzantine fault-tolerant consensus mechanism used in the decentralized oracle service network combines random verification functions and threshold signature schemes, which has been proven to be an energy-saving and efficient solution. In this mechanism, all available oracles will be divided into multiple data transmission groups, and only one group will be randomly selected in each round to collect the required data. In addition, all oracles in the key data transmission group reach a consensus on the collected data through a threshold signature scheme, and consensus can be reached when the number of honest oracles exceeds the threshold.
[0080] (2) Incentive Mechanism
[0081] The incentive mechanism encourages oracles to participate in task execution with the goal of individual rationality and incentive compatibility, but the original data oracle incentive mechanism in the decentralized oracle service network cannot guarantee individual rationality. Due to the principle of equal reward distribution, some data oracles may not receive rewards corresponding to their workload and suffer some negative effects. At the same time, in order to achieve the goal of incentive compatibility, this system needs to add a reward and punishment mechanism to reward oracle service providers who provide real data, and punish oracle service providers who provide wrong data through deposits and blacklists, and prohibit participants from harming other participants for their own interests.
[0082] This patent designs an incentive mechanism based on auction theory to simultaneously satisfy the individual rationality and incentive compatibility of data oracles. The specific steps of the incentive mechanism process are as follows:
[0083] 1) The proxy oracle contract records the data types required by the non-oracle contract in the event log, and the number of data oracles required for the data transmission task N and the maximum reward that can be allocated to each data oracle, which can obtain the above messages by subscribing to the log;
[0084] 2) When the estimated cost of the oracle data transmission is lower than the maximum reward it applied for, the oracle network will randomly select a group of oracles from these oracles to perform the data transmission task, and the number of oracles is greater than N ;
[0085] 3) The oracles in the above task execution group will bid for the task, bidding the minimum reward required to complete the task;
[0086] 4) The system sorts the bids in ascending order and selects the bid with the lowest bid. N Oracles are used to perform data transmission tasks, and each oracle gives N +1 bonus for the lowest bid.
[0087] In step 4), the reward received by each data oracle will not be less than the estimated cost, which will ensure the individual rationality of each oracle. And if the auction process is authentic and trustworthy, the incentive mechanism satisfies incentive compatibility. In an authentic and trustworthy auction process, honest oracles (i.e., bids and costs are equal) will be able to maximize the benefits obtained, while data oracles that bid dishonestly will not be able to increase their benefits. This patent verifies the honesty of data oracles under the incentive mechanism based on auction theory through simulation, such as Figure 3 shown.
[0088] 80 data oracles are deployed in the simulation, and there is a non-oracle contract that needs N=4 oracles to perform the data transmission task, and the maximum reward paid to each oracle is 18. According to step 2), a task combination containing 8 data oracles is randomly selected (represented by oracles 1, 2, ..., 8). Assume that the service costs of these 8 oracles are 2, 4, 5, 8, 9, 10, 14, and 16 respectively. If all oracles bid honestly, that is, the bid is equal to the cost, then oracles 1~4 will form a key data transmission task group and perform the task. After completing the task, they will receive a reward of 9 (that is, the 5th lowest bid), and their final benefits are 7, 5, 4, and 1 respectively. It can be seen that the positive returns of these 4 oracles verify that the incentive mechanism based on auction theory can satisfy individual rationality. The following discusses possible dishonesty in the bidding process. First, from Figure 3 It can be seen from the figure that when oracles 1 to 4 change their bid prices within the range of [0,9], the oracles can still obtain a reward of 9 in an honest manner. If the bid price of the oracles exceeds 9, they will fail in the bidding and will not receive any benefits. Figure 3 It can be seen that Oracle 6 will obtain negative benefits in the case of dishonesty. For example, when its bid price is [0,8], the Oracle will obtain negative benefits of -2. Therefore, any Oracle cannot increase its own benefits in the case of dishonesty, so this mechanism can ensure the honesty of the data oracle. In summary, the incentive mechanism proposed in this patent will be able to meet the individual rationality and incentive compatibility of the oracle.
Claims
1. A data oracle architecture system for assisting industrial blockchain smart contracts, characterized in that: A distributed oracle network is used to bridge the off-chain environment and smart contracts, expanding the off-chain data space of smart contracts, as follows: The data oracle architecture system includes an on-chain oracle system and a decentralized off-chain data oracle network. The on-chain oracle system includes a registration oracle contract, a monitoring oracle contract, a payment oracle contract, and a proxy oracle contract. The off-chain data oracle network consists of oracles with sufficient storage resources, and smart devices can also become oracle nodes after successfully registering in the oracle contract; according to the off-chain data requirements of non-oracle contracts, the data oracle will collect the required data from the off-chain environment and send it to the on-chain non-oracle contracts; the on-chain oracle contract is used to manage transactions between the oracle and non-oracle contracts; The workflow of the data oracle system is as follows: (1) The smart device registers as a legitimate data oracle through an independent account; (2) When requesting on-chain data, non-oracle contracts obtain data directly from the blockchain; (3) When requesting off-chain data, the non-oracle contract first sends a message containing the required data type to the proxy oracle contract and locks the service fee in the payment oracle contract; then, the proxy oracle contract records the data type required by the non-oracle contract in its own event log; (4) The data oracle and data center subscribe to the event log of the proxy oracle contract to obtain data requests from non-oracle contracts; (5) If the data is stored locally, the data center directly transmits the required data to the proxy oracle contract; (6) If the required data is stored in other off-chain data sources, the oracle network selects some oracles to obtain the required data based on the consensus mechanism; (7) The selected data oracle calls the interface of the off-chain data source to collect the required data; (8) The selected data oracle will reach a consensus based on the collected data and then send the data to the proxy oracle contract; (9) The proxy oracle contract converts the data into a form readable by the non-oracle node and sends it to the non-oracle contract; (10) The proxy oracle contract sends information related to the oracle service quality to the monitoring oracle contract and the payment oracle contract. The monitoring oracle contract evaluates and records the oracle service data, and the payment oracle contract changes the service fee from a locked state to a state available to the completed service contract.
2. The data oracle architecture system for assisting industrial blockchain smart contracts according to claim 1 is characterized in that: The on-chain oracle system includes a registration oracle contract, a monitoring oracle contract, a payment oracle contract, and a proxy oracle contract, as follows: Register the oracle contract: To become an oracle, the off-chain smart device must pledge and lock a portion of tokens as a deposit, and register the deposit address and payment address. This registration process is completed by the registered oracle contract. Proxy Oracle Contract: The proxy oracle contract is an information transmission intermediary between the non-oracle contract and the off-chain oracle. It not only provides a full-duplex communication interface for the non-oracle contract to send service requests and receive service results, but also provides a full-duplex interface for the off-chain oracle to obtain service requests and return service results. Monitoring oracle contracts: Monitoring oracle contracts are used to record the service quality of the oracle, including service response delay, correctness and responsiveness of reported results, malicious oracle lists, and unprocessed service requests; Payment Oracle Contract: The Payment Oracle Contract acts as a third party, allowing the non-oracle contract to complete the payment of fees to the oracle party that provided the service; the Payment Oracle Contract temporarily reserves the service fee of the non-oracle contract until the oracle that completed the service submits a cancellation request.
3. A method for operating a data oracle architecture system for assisting industrial blockchain smart contracts as claimed in claim 1 or 2, characterized in that: The oracle runs in a request-response mode, first receiving service requests from non-oracle contracts and then providing corresponding services. The workflow of the data oracle system is as follows: (1) The smart device registers as a legitimate data oracle through an independent account; (2) When requesting on-chain data, non-oracle contracts obtain data directly from the blockchain; (3) When requesting off-chain data, the non-oracle contract first sends a message containing the required data type to the proxy oracle contract and locks the service fee in the payment oracle contract; then, the proxy oracle contract records the data type required by the non-oracle contract in its own event log; (4) The data oracle and data center subscribe to the event log of the proxy oracle contract to obtain data requests from non-oracle contracts; (5) If the data is stored locally, the data center directly transmits the required data to the proxy oracle contract; (6) If the required data is stored in other off-chain data sources, the oracle network selects some oracles to obtain the required data based on the consensus mechanism; (7) The selected data oracle calls the interface of the off-chain data source to collect the required data; (8) The selected data oracle will reach a consensus based on the collected data and then send the data to the proxy oracle contract; (9) The proxy oracle contract converts the data into a form readable by the non-oracle node and sends it to the non-oracle contract; (10) The proxy oracle contract sends information related to the oracle service quality to the monitoring oracle contract and the payment oracle contract. The monitoring oracle contract evaluates and records the oracle service data, and the payment oracle contract changes the service fee from a locked state to a state available to the completed service contract.
4. The method according to claim 3, characterized in that The consensus mechanism adopts the Byzantine fault-tolerant consensus mechanism, which is as follows: All available oracles will be divided into multiple data transmission groups, and only one group will be randomly selected in each round to collect the required data; in addition, all oracles in the key data transmission group will reach a consensus on the collected data through a threshold signature scheme, and consensus will be reached when the number of honest oracles exceeds the threshold.
5. The method according to claim 3, characterized in that: The data oracle operation incentive mechanism is used to ensure that the oracle system meets individual rationality and incentive compatibility during operation. The details are as follows: 1) The proxy oracle contract records the data types required by the non-oracle contract and the number of data oracles required for the data transmission task in the event log N , the maximum reward that can be allocated to each data oracle, and the data oracle obtains the above messages by subscribing to the log; 2) When the estimated cost of the oracle data transmission is lower than the maximum reward applied for, the oracle network will randomly select a group of oracles from these oracles to perform the data transmission task. The number of oracles selected is greater than N ; 3) The oracles in the task execution group will bid for the task, and the bid price is the minimum reward required to complete the task; 4) The system sorts the bids in ascending order and selects the bid with the lowest bid. N Oracles are used to perform data transmission tasks, and each oracle gives N +1 bonus for the lowest bid.
6. The method according to claim 5, characterized in that In 4), the reward received by each data oracle is no less than the estimated cost, ensuring the individual rationality of each oracle.
