Industrial Internet blockchain trusted computing architecture and method based on computing oracle

By introducing a matching algorithm based on node computing power in the blockchain computing oracle architecture, the problem of insufficient matching of computing oracle and smart contract tasks is solved, and lower computing delay and higher computing efficiency are achieved.

CN114428978BActive Publication Date: 2025-04-11NANJING UNIV OF SCI & TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111471798.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-06
Publication Date
2025-04-11
Estimated Expiration
2041-12-06

AI Technical Summary

Technical Problem

When selecting a computing oracle group, the existing blockchain computing oracle scheme ignores the matching of oracle with different computing capabilities and smart contract computing tasks of different complexity, resulting in huge computing delays and cannot meet the low-latency requirements of the industrial Internet.

Method used

A trusted computing architecture of industrial Internet blockchain based on computing oracles was designed. By introducing a matching algorithm based on node computing capabilities into the off-chain oracle network, it ensures the matching of computing oracle and reduces the computing delay.

Benefits of technology

Through the use of matching algorithms, the success rate and calculation efficiency of computing tasks are improved, the calculation delay is reduced, and the low-latency needs of the industrial Internet are met.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114428978B_ABST
    Figure CN114428978B_ABST
Patent Text Reader

Abstract

The present invention discloses an industrial Internet blockchain trusted computing architecture and method based on computing oracles, the architecture includes an industrial Internet device layer, a blockchain layer and an oracle layer; the industrial Internet device layer includes various heterogeneous industrial Internet devices, and industrial computing tasks are generated in the process of managing these devices; the blockchain layer includes smart contracts, which use smart contract engines as carriers to execute industrial computing tasks; the oracle layer includes computing oracles and on-chain oracles, which are used to improve the computing power of smart contracts. The present invention designs a blockchain computing system based on computing oracles to meet the large computing needs in industrial scenarios; in the incentive mechanism of the off-chain oracle network, a matching algorithm based on node computing power is proposed, and the node computing power is considered in the matching process between the off-chain computing oracles and computing tasks, thereby reducing the total network delay of the computing oracles.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of blockchain technology, and in particular to an industrial Internet blockchain trusted computing architecture and method based on computing oracle. Background Art

[0002] The Industrial Internet connects and controls different resources in industrial scenarios, and has a poor tolerance for latency, requiring a real-time, efficient network architecture and industrial application operation mechanism. However, traditional centralized cloud computing cannot meet this requirement because of network data congestion caused by a large number of nodes uploading data in a unified manner. Therefore, in order to meet the "large connection, low latency" requirements of industrial scenarios, the blockchain architecture with decentralized characteristics has become a reliable choice for Industrial Internet networking.

[0003] Under the blockchain architecture, the industrial Internet is decentralized and connected to achieve point-to-point connections between massive nodes. At the same time, the distributed storage of data solves the problem of "single point failure" and network congestion for data upload and download. In particular, in response to the complex and diverse industrial application needs, the open smart contract platform provides a reliable solution for the deployment of industrial applications in the blockchain-based industrial Internet. Application developers solidify industrial applications in the form of code in the smart contract platform. Once the trigger conditions are met, the industrial application will be automatically executed, and all relevant data of the entire process will be uploaded to the chain. No entity can modify the contract itself and the results of the contract operation. However, there are still two major defects in the current capabilities of smart contracts. First, the computing power of the smart contract itself is limited, and it is difficult to support some complex industrial applications; second, the gas fee generated by renting smart contracts on the face chain is relatively expensive. Therefore, the computing oracle network expands the computing power of smart contracts with its sufficient computing resources and reliable operation mechanism.

[0004] Computational oracle networks are divided into centralized and decentralized types. In centralized computing oracles, a single computing oracle serves the industrial application tasks of smart contracts, which makes it easy for task calculation failures to occur due to single-point downtime and unsuccessful solutions. In decentralized oracles, for a computing task, multiple computing oracles perform calculations simultaneously, and the consensus mechanism is used to ensure the credibility of the calculation results, while also improving the success rate of the computing tasks. However, the existing decentralized computing oracle solutions only select computing oracle groups by random methods, ignoring the matching of oracles with different computing capabilities and smart contract computing tasks of different complexities, resulting in huge computing delays and unable to meet the "low latency" requirements of the industrial Internet. Summary of the invention

[0005] The purpose of the present invention is to provide an industrial Internet blockchain trusted computing architecture and method based on computing oracle to meet the large computing needs in industrial scenarios and reduce computing delays.

[0006] The technical solution to achieve the purpose of the present invention is: an industrial Internet blockchain trusted computing architecture based on computing oracle, including an industrial Internet device layer, a blockchain layer and an oracle layer, wherein:

[0007] The industrial Internet device layer includes various heterogeneous industrial Internet devices. In the process of managing these devices, industrial computing tasks are generated;

[0008] The blockchain layer, including smart contracts, uses the smart contract engine as a carrier to perform industrial computing tasks;

[0009] The oracle layer, including computational oracles and on-chain oracles, is used to improve the computing power of smart contracts.

[0010] A method for operating the industrial Internet blockchain trusted computing architecture based on a computing oracle as described above comprises the following steps:

[0011] Step 1: The industrial Internet smart device registers to become a legitimate off-chain computing oracle. The on-chain oracle system issues a unique account, and the smart device pays the set token as collateral;

[0012] Step 2: The smart contract obtains data from the chain and triggers the contract calculation task;

[0013] Step 3: When the computing power on the chain cannot meet the demand, the smart contract sends a request to the on-chain oracle system to call the "message" of the proxy oracle; the request includes the computing task, and the smart contract freezes the service fee in the account; the proxy oracle records the computing task in its own event log;

[0014] Step 4: The off-chain computing oracle network subscribes to the event log of the on-chain proxy oracle. After the proxy oracle records the computing task, the off-chain computing oracle network immediately receives the computing task request.

[0015] Step 5: The data center provides feedback to the proxy oracle based on the task request;

[0016] Step 6: Establish an off-chain oracle incentive mechanism. After receiving the request, the off-chain computing oracle network selects a computing oracle to perform the computing task through an incentive mechanism based on a matching algorithm. Establish an off-chain oracle consensus mechanism. After the computing task is completed, each node reaches a consensus on the result of the computing task and feeds the consensus result back to the on-chain proxy oracle system.

[0017] Step 7: The on-chain oracle system receives the calculation results of the off-chain oracle system through the proxy oracle, and translates them into a file readable by the smart contract and sends them to the smart contract;

[0018] Step 8. The proxy oracle sends the service quality of the off-chain oracle network to the monitoring oracle and records the service quality on the chain; at the same time, the payment oracle converts the service fee frozen by the smart contract into a withdrawable state, and the off-chain oracle providing the service withdraws the service fee.

[0019] Compared with the prior art, the present invention has the following significant advantages: (1) Considering the computing scenarios in the industrial Internet, a blockchain computing system based on computing oracles is designed to meet the large computing needs in industrial scenarios; (2) In the incentive mechanism of the off-chain oracle network, a matching algorithm based on node computing power is proposed, and the node computing power is taken into account in the matching process between the off-chain computing oracle and the computing task, thereby ultimately reducing the computing delay. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 This is a design flow chart of the industrial Internet blockchain trusted computing architecture based on computing oracle in the present invention.

[0021] Figure 2 This is the industrial Internet architecture diagram.

[0022] Figure 3 Calculation oracle mechanism workflow diagram

[0023] Figure 4 The flowchart of the matching algorithm is shown in Figure 2.

[0024] Figure 5 Schematic diagram of delay change curve calculated under different matching algorithms. DETAILED DESCRIPTION

[0025] This invention considers the computing scenarios in the industrial Internet and designs a blockchain computing system based on computing oracles to solve the problem of insufficient computing power of traditional blockchains and meet the large computing needs in industrial scenarios. At the same time, in the incentive mechanism of the off-chain oracle network, a matching algorithm based on node computing power is proposed, and the node computing power is considered in the matching process between the off-chain computing oracles and computing tasks, ultimately reducing the computing delay.

[0026] The present invention provides an industrial Internet blockchain trusted computing architecture based on a computing oracle, comprising an industrial Internet device layer, a blockchain layer and an oracle layer, wherein:

[0027] The industrial Internet device layer includes various heterogeneous industrial Internet devices. In the process of managing these devices, industrial computing tasks are generated;

[0028] The blockchain layer, including smart contracts, uses the smart contract engine as a carrier to perform industrial computing tasks;

[0029] The oracle layer, including computational oracles and on-chain oracles, is used to improve the computing power of smart contracts.

[0030] Furthermore, the heterogeneous industrial Internet devices are divided into the following three categories:

[0031] (1) Traditional equipment: It can only generate raw industrial data and does not have the ability to transmit and receive data. In addition, the computing power and storage capacity of traditional equipment are lower than those of smart equipment.

[0032] (2) Smart devices: Smart devices can become blockchain nodes or oracle nodes and have the ability to independently transmit and receive data;

[0033] (3) Data Center: As a centralized off-chain trusted node, the data center is a data hosting facility that can store various types of industrial data.

[0034] Furthermore, the blockchain layer is composed of nodes on the chain, including smart contracts, on-chain oracles and other on-chain nodes; the blockchain layer adopts a private chain, and in the decentralized blockchain network of the industrial Internet, each smart device is regarded as a legal blockchain node with an independent account; at the same time, the industrial applications on the platform use smart contracts as carriers, and all computing logic is implemented based on smart contracts; smart contracts are deployed in advance based on multi-party agreements, and the calculation results are uploaded to the chain to achieve tamper-proof and traceability.

[0035] Furthermore, the oracle layer is composed of an off-chain oracle network and an on-chain oracle system;

[0036] The off-chain oracle network is composed of computing oracles with sufficient computing resources. As long as the smart device is successfully registered in the on-chain oracle system, it can become an off-chain computing oracle node. The off-chain computing oracle helps the on-chain smart contracts to perform computing tasks.

[0037] When the computing resources on the blockchain cannot meet the demand, the smart contract sends a request to the oracle system on the chain. After receiving the request, the oracle system on the chain assists in the calculation through the computing oracle off the chain to jointly complete the computing task. In this process, the oracle system on the chain manages the interaction between the on-chain smart contract and the off-chain computing oracle.

[0038] Furthermore, the oracle system on the chain includes a registration oracle, a monitoring oracle, a payment oracle and a proxy oracle, wherein:

[0039] (1) Registering an oracle: For an off-chain smart device to become an oracle, in addition to pledging and locking a portion of tokens as a deposit, it is also necessary to register the deposit address and payment address. The registration process is completed by the registered oracle;

[0040] (2) Monitoring Oracles: The monitoring contract of the on-chain oracle system is responsible for recording the service quality of the off-chain oracle network, including the response delay of the device, the response rate and accuracy of the calculation results, the list of malicious nodes, and unprocessed query requests;

[0041] (3) Payment Oracle: To become an oracle node, off-chain smart devices need to register and pledge tokens during the registration process; the payment oracle acts as a third party in the token transaction process to ensure that the on-chain smart contract pays the off-chain oracle that serves it; the payment oracle temporarily holds the service fee paid by the on-chain smart contract until the off-chain oracle that provides the service withdraws the income;

[0042] (4) Proxy Oracle: The proxy oracle provides services for the smart contracts on the chain. When the smart contract on the chain cannot meet the computing needs, it sends a request to the proxy oracle. The proxy oracle provides a unified on-chain interface for the smart contract. When the off-chain computing oracle system completes the calculation, the proxy oracle uses the result in the callback function to asynchronously call back the calculation result to the smart contract.

[0043] The present invention provides a method for operating the industrial Internet blockchain trusted computing architecture based on a computing oracle as described above, comprising the following steps:

[0044] Step 1: The industrial Internet smart device registers to become a legitimate off-chain computing oracle. The on-chain oracle system issues a unique account, and the smart device pays the set token as collateral;

[0045] Step 2: The smart contract obtains data from the chain and triggers the contract calculation task;

[0046] Step 3: When the computing power on the chain cannot meet the demand, the smart contract sends a request to the on-chain oracle system to call the "message" of the proxy oracle; the request includes the computing task, and the smart contract freezes the service fee in the account; the proxy oracle records the computing task in its own event log;

[0047] Step 4: The off-chain computing oracle network subscribes to the event log of the on-chain proxy oracle. After the proxy oracle records the computing task, the off-chain computing oracle network immediately receives the computing task request.

[0048] Step 5: The data center provides feedback to the proxy oracle based on the task request;

[0049] Step 6: Establish an off-chain oracle incentive mechanism. After receiving the request, the off-chain computing oracle network selects a computing oracle to perform the computing task through an incentive mechanism based on a matching algorithm. Establish an off-chain oracle consensus mechanism. After the computing task is completed, each node reaches a consensus on the result of the computing task and feeds the consensus result back to the on-chain proxy oracle system.

[0050] Step 7: The on-chain oracle system receives the calculation results of the off-chain oracle system through the proxy oracle, and translates them into a file readable by the smart contract and sends them to the smart contract;

[0051] Step 8. The proxy oracle sends the service quality of the off-chain oracle network to the monitoring oracle and records the service quality on the chain; at the same time, the payment oracle converts the service fee frozen by the smart contract into a withdrawable state, and the off-chain oracle providing the service withdraws the service fee.

[0052] Furthermore, the off-chain oracle consensus mechanism described in step 6 refers to the mechanism by which the off-chain computing oracles reach a consensus on the computing results; after completing the calculation, the off-chain oracle group participating in the computing task obtains multiple results and obtains the results agreed upon by the majority of nodes through the consensus mechanism. Specifically:

[0053] When two-thirds of the computing oracles in the computing group have completed the calculation, the result agreed upon by the majority of these nodes will be selected as the final result; the final result will be sent to the on-chain smart contract, including the consensus result and a verification document. This verification document allows the smart contract to verify the correctness of the result in just one step.

[0054] Furthermore, the matching algorithm described in step 6 is as follows:

[0055] 1) The proxy oracle on the chain records the task-related information into its own event log, including the content of the computing task requested by the smart contract, the number of oracles required for each computing task, and the reward provided by the smart contract; the computing oracle network off the chain subscribes to the event log to obtain the task-related information;

[0056] 2) Each unmatched computation oracle sends a request to the smart contract that offers it the maximum reward, where the reward offered is inversely proportional to the expected computation latency of the computation oracle;

[0057] 3) Match the G computing oracle nodes with the smallest expected computing delay with the computing task. These G computing oracle nodes together constitute the computing group of this computing task;

[0058] 4) When each task is matched with enough computational oracles, the matching process ends;

[0059] 5) The computing oracle in the computing group calculates the assigned tasks, and the calculation results agreed by more than a set percentage of members in the group are sent to the smart contract as the final calculation results.

[0060] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0061] Example

[0062] Combination Figure 1 The design process of the industrial Internet blockchain trusted computing architecture based on the computing oracle of the present invention is as follows:

[0063] Phase 1: First, design a blockchain computing system based on computing oracles. By building an off-chain oracle network and an on-chain oracle system, we can achieve trusted off-chain collaborative computing and support the computing needs of industrial applications in the industrial Internet blockchain.

[0064] The computing system includes three levels: industrial Internet device layer, blockchain layer and oracle layer. The industrial Internet device layer includes various heterogeneous industrial Internet devices. In the process of managing these devices, a large number of industrial computing tasks will be generated. These computing tasks are executed by the smart contract engine in the blockchain layer. The oracle layer is responsible for helping smart contracts improve computing capabilities. The specific architecture is as follows: Figure 2 shown.

[0065] Phase II: Design the Industrial Internet Device Layer, which consists of various heterogeneous Industrial Internet devices. The computing power of these devices is very limited and they can be roughly divided into three categories:

[0066] (1) Traditional equipment. Traditional equipment can only generate raw industrial data, but does not have the ability to transmit and receive data. In addition, its computing and storage capabilities are extremely limited.

[0067] (2) Smart devices. Smart devices can become blockchain nodes or oracle nodes. They have the ability to independently transmit and receive data and have abundant storage and computing resources.

[0068] (3) Data Center. As a centralized off-chain trusted node, the data center is a data hosting facility that can store various types of industrial data.

[0069] The third stage: designing the blockchain layer, which is composed of nodes on the chain, including smart contracts, on-chain oracles and other nodes on the chain. The blockchain system designed by the present invention adopts a private chain, so in the decentralized blockchain network of the industrial Internet, each smart device can be regarded as a legal blockchain node with an independent account. At the same time, the industrial applications on the platform use smart contracts as carriers, and all computing logic is implemented based on smart contracts. Smart contracts are deployed in advance based on multi-party agreements, and the calculation results are put on the chain to achieve tamper-proof and traceability, ensuring the credibility of the calculation. However, the limited computing power of smart contracts cannot meet the computing needs of industrial applications on the blockchain. Therefore, the present invention proposes a distributed computing oracle mechanism, including an off-chain oracle network and an on-chain oracle system, to improve the computing power of smart contracts.

[0070] The fourth stage: designing the oracle layer, which consists of an off-chain oracle network and an on-chain oracle system. The off-chain oracle network consists of a large number of computing oracles with sufficient computing resources. It is worth noting that as long as the smart device is successfully registered in the on-chain oracle system, it can also become an off-chain computing oracle node. These off-chain computing oracles can help the on-chain smart contracts to perform computing tasks and make up for the lack of computing power on the chain. For example, in the smart contract for resource scheduling in the industrial Internet, due to the high complexity of the scheduling task and the large amount of calculation, the computing resources on the blockchain cannot meet the demand. At this time, the smart contract sends a request to the on-chain oracle system. After receiving the request, the on-chain oracle system assists the calculation through the off-chain computing oracle to complete the computing task together. In this process, the on-chain oracle system manages the interaction between the on-chain smart contract and the off-chain computing oracle. In the present invention, there are four types of oracles in the on-chain oracle system: registration oracle, monitoring oracle, payment oracle and proxy oracle.

[0071] (1) Registered Oracle: For an off-chain smart device to become an oracle, in addition to pledging 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 registered oracle.

[0072] (2) Monitoring Oracle: The monitoring contract of the on-chain oracle system is responsible for recording the service quality of the off-chain oracle network, such as the response delay of the device, the response rate and accuracy of the calculation results, the list of malicious nodes, and the unprocessed query requests.

[0073] (3) Payment Oracle: As mentioned above, off-chain smart devices need to register to become oracle nodes, and tokens need to be pledged during the registration process. The payment oracle acts as a third party in the token transaction process, ensuring that the on-chain smart contract pays the off-chain oracle that serves it. The payment oracle temporarily holds the service fees paid by the on-chain smart contract until the off-chain oracle that provides the service withdraws its income.

[0074] (4) Proxy Oracle: Proxy Oracle mainly provides services for smart contracts on the chain. When the smart contract on the chain cannot meet the computing requirements, it sends a request to the proxy oracle, which provides a unified on-chain interface for the smart contract. When the off-chain computing oracle system completes the calculation, the proxy oracle uses the result in the callback function to asynchronously call back the calculation result to the smart contract.

[0075] The industrial Internet blockchain system based on computing oracle is implemented as follows:

[0076] Step 1: Propose the workflow of the designed industrial Internet blockchain computing system, such as Figure 3 As shown:

[0077] 1) First, the industrial Internet smart device registers to become a legal off-chain computing oracle. The system issues a unique account to it, and the smart device pays a certain amount of tokens as collateral.

[0078] 2) Smart contracts obtain data from the chain and trigger contract computing tasks.

[0079] 3) When the computing power on the chain cannot meet the demand, the smart contract sends a request to the on-chain oracle system. The specific implementation method is to call the "message" of the proxy oracle. The request includes the computing task, and the smart contract freezes the service fee in the account. The proxy oracle records the computing task in its own event log.

[0080] 4) The off-chain computing oracle network subscribes to the event log of the on-chain proxy oracle. Therefore, after the proxy oracle records the computing task, the off-chain computing oracle network immediately receives the computing task request.

[0081] 5) The data center provides feedback to the proxy oracle based on the task request.

[0082] 6) After receiving the request, the off-chain computing oracle network selects a computing oracle to perform the computing task through the matching algorithm proposed by the present invention. After the computing task is completed, each node reaches a consensus on the result of the computing task and feeds the consensus result back to the on-chain proxy oracle system.

[0083] 7) The on-chain oracle system receives the calculation results of the off-chain oracle system through the proxy oracle, translates them into a file readable by the smart contract, and sends them to the smart contract.

[0084] 8) The proxy oracle sends the service quality of the off-chain oracle network to the monitoring oracle and records it on the chain. At the same time, the payment oracle converts the service fee frozen by the smart contract into a state that can be withdrawn, and the off-chain oracle that provides the service can withdraw it.

[0085] The above is the basic operating process of the system oracle mechanism. Based on the basic process, the system has carried out corresponding detailed design according to specific service requirements.

[0086] Step 2: Design an off-chain oracle consensus mechanism

[0087] In the off-chain computing oracle network designed by the present invention, the consensus mechanism refers to the mechanism by which the off-chain computing oracles reach a consensus on the calculation results. In the above workflow, after completing the calculation, the off-chain oracle group participating in the calculation task obtains multiple results, and obtains the results agreed by the majority of nodes through the consensus mechanism. Specifically, when two-thirds of the computing oracles in the computing group complete the calculation, the result agreed by the majority of these nodes is selected as the final result. The final result will be sent to the on-chain smart contract, and the content sent includes the consensus result and a verification file. This verification file can help the smart contract verify the correctness of the result in just one step. Specifically, the verification method of the smart contract can be zero-knowledge verification, etc.

[0088] Step 3: Design off-chain oracle incentive mechanism

[0089] In the computing oracle system designed by the present invention, the incentive mechanism incentivizes off-chain nodes (intelligent devices in the industrial Internet) to provide reliable services in exchange for economic returns, thereby starting the off-chain computing language machine network. In the entire incentive mechanism system, the benefits of smart contracts are the latency of computing tasks, the correctness of computing results, and the minimization of overhead, and the benefit of participating in computing task oracles is to maximize benefits. The incentive mechanism needs to take both parties into comprehensive consideration so that there is no conflict of interest between nodes, ensure that each node obtains positive benefits, and prevent the situation where nodes stop serving due to negative benefits. At the same time, a reasonable incentive mechanism can also guarantee fairness between off-chain computing nodes, that is, "more work, more pay", and rewards are distributed according to contributions to resist the occurrence of market manipulation.

[0090] Specifically, the incentive mechanism is designed to score the services of off-chain nodes in order to incentivize participating nodes to provide better, low-latency computing resources. Computing oracle working groups with abnormal positive-negative score ratios or too high negative scores will be eliminated. In terms of reward distribution, the incentive mechanism of the traditional oracle network allocates the same reward to each oracle node participating in the service. However, in reality, the contribution of each service node is not the same. Under the mechanism of evenly distributing rewards, the income of some oracles may even be negative. Therefore, the traditional oracle incentive mechanism cannot guarantee the rationality of individual distribution and needs to be improved with respect to fairness. The present invention proposes a matching algorithm based on node computing power. At the same time, the rationality of individual reward distribution and the adaptability of incentives are achieved. Combined with Figure 4 ,The proposed matching algorithm is executed in the following steps:

[0091] 1) The proxy oracle on the chain records the task-related information in its own event log, including the content of the computing task requested by the smart contract, the number of oracles required for each computing task, and the reward provided by the smart contract. The computing oracle network off the chain subscribes to the event log to obtain this information;

[0092] 2) Each unmatched computation oracle sends a request to the smart contract that offers it the maximum reward, where the reward offered is inversely proportional to the expected computation latency of the computation oracle;

[0093] 3) The system matches the G computing oracle nodes with the smallest expected computing delay with the computing task, and these computing oracle nodes together form the computing group of this computing task;

[0094] 4) When each task is matched with enough computational oracles, the matching process ends;

[0095] 5) The computing oracle in the computing group calculates the assigned tasks, and the calculation results agreed upon by the majority of members in the group will be sent to the smart contract as the final calculation results.

[0096] In the designed matching mechanism, the smart contract performs its computing tasks with less latency, so the performance is better than the random selection in the traditional consensus mechanism.

[0097] The present invention verifies its performance through simulation, and the simulation results are as follows: Figure 5As shown. In the simulation, in three different scenarios corresponding to 4, 5, and 6 computing tasks, the total delay time under different selection algorithms is compared with the increase of computing oracles. After using the matching mechanism, each computing task is matched to six computing oracles as its computing group. As can be seen from the figure, first, under the matching algorithm proposed in this paper, the total delay is smaller than that under the random selection mechanism. Secondly, under the matching algorithm proposed in this paper, the total delay decreases with the increase in the number of computing oracles. This is because as the number of computing oracles increases, more computing oracles with stronger computing power appear in the collective, and the overall computing power of the computing oracles matched to the computing tasks is stronger, which ultimately reduces the computing time.

[0098] In summary, the simulation results show that the matching algorithm proposed by the present invention for the industrial Internet computing oracle system has lower computing latency than the traditional random matching algorithm.

Claims

1. An industrial Internet blockchain trusted computing architecture system based on computing oracle, characterized in that: It includes the industrial Internet device layer, blockchain layer and oracle layer, among which: The industrial Internet device layer includes various heterogeneous industrial Internet devices. In the process of managing these devices, industrial computing tasks are generated; The blockchain layer, including smart contracts, uses the smart contract engine as a carrier to perform industrial computing tasks; The oracle layer, including computational oracles and on-chain oracles, improves the computational power of smart contracts by: Industrial Internet smart devices register as legal off-chain computing oracles. The on-chain oracle system issues a unique account, and smart devices pay with set tokens as collateral. Smart contracts obtain data from the chain and trigger contract computing tasks; When the computing power on the chain cannot meet the demand, the smart contract sends a request to the on-chain oracle system and calls the "message" of the proxy oracle; the request includes the computing task, and the smart contract freezes the service fee in the account; the proxy oracle records the computing task in its own event log; The off-chain computing oracle network subscribes to the event log of the on-chain proxy oracle. After the proxy oracle records the computing task, the off-chain computing oracle network immediately receives the computing task request. The data center provides feedback to the proxy oracle based on the task request; Establish an off-chain oracle incentive mechanism. After receiving a request, the off-chain computing oracle network selects a computing oracle to perform the computing task through an incentive mechanism based on a matching algorithm. Establish an off-chain oracle consensus mechanism. After the computing task is completed, each node reaches a consensus on the result of the computing task and feeds the consensus result back to the on-chain proxy oracle system. The on-chain oracle system receives the calculation results of the off-chain oracle system through the proxy oracle, translates them into a file readable by the smart contract, and sends them to the smart contract; The proxy oracle sends the service quality of the off-chain oracle network to the monitoring oracle and records the service quality on the chain; at the same time, the payment oracle converts the service fee frozen in the smart contract into a withdrawable state, and the off-chain oracle providing the service withdraws the service fee.

2. The industrial Internet blockchain trusted computing architecture system based on computing oracle according to claim 1 is characterized in that: The heterogeneous industrial Internet devices are divided into the following three categories: (1) Traditional equipment: It can only generate raw industrial data and does not have the ability to transmit and receive data. In addition, the computing power and storage capacity of traditional equipment are lower than those of smart equipment. (2) Smart devices: Smart devices can become blockchain nodes or oracle nodes and have the ability to independently transmit and receive data; (3) Data Center: As a centralized off-chain trusted node, the data center is a data hosting facility that can store various types of industrial data.

3. The industrial Internet blockchain trusted computing architecture system based on computing oracle according to claim 1 is characterized in that: The blockchain layer is composed of nodes on the chain, including smart contracts, on-chain oracles and other on-chain nodes; the blockchain layer adopts a private chain. In the decentralized blockchain network of the industrial Internet, each smart device is regarded as a legal blockchain node with an independent account; at the same time, the industrial applications on the platform use smart contracts as carriers, and all computing logic is implemented based on smart contracts; smart contracts are deployed in advance based on multi-party agreements, and the calculation results are uploaded to the chain to achieve tamper-proof and traceability.

4. The industrial Internet blockchain trusted computing architecture system based on computing oracle according to claim 1 is characterized in that: The oracle layer consists of an off-chain oracle network and an on-chain oracle system; The off-chain oracle network is composed of computing oracles with sufficient computing resources. As long as the smart device is successfully registered in the on-chain oracle system, it can become an off-chain computing oracle node. The off-chain computing oracle helps the on-chain smart contracts to perform computing tasks. When the computing resources on the blockchain cannot meet the demand, the smart contract sends a request to the oracle system on the chain. After receiving the request, the oracle system on the chain assists in the calculation through the computing oracle off the chain to jointly complete the computing task. In this process, the oracle system on the chain manages the interaction between the on-chain smart contract and the off-chain computing oracle.

5. The industrial Internet blockchain trusted computing architecture system based on computing oracle according to claim 4 is characterized in that: The oracle system on the chain includes registration oracle, monitoring oracle, payment oracle and proxy oracle, among which: (1) Registering an oracle: For an off-chain smart device to become an oracle, in addition to pledging and locking a portion of tokens as a deposit, it is also necessary to register the deposit address and payment address. The registration process is completed by the registered oracle; (2) Monitoring Oracles: The monitoring contract of the on-chain oracle system is responsible for recording the service quality of the off-chain oracle network, including the response delay of the device, the response rate and accuracy of the calculation results, the list of malicious nodes, and unprocessed query requests; (3) Payment Oracle: To become an oracle node, off-chain smart devices need to register and pledge tokens during the registration process; the payment oracle acts as a third party in the token transaction process to ensure that the on-chain smart contract pays the off-chain oracle that serves it; the payment oracle temporarily holds the service fee paid by the on-chain smart contract until the off-chain oracle that provides the service withdraws the income; (4) Proxy Oracle: The proxy oracle provides services for the smart contracts on the chain. When the smart contract on the chain cannot meet the computing needs, it sends a request to the proxy oracle. The proxy oracle provides a unified on-chain interface for the smart contract. When the off-chain computing oracle system completes the calculation, the proxy oracle uses the result in the callback function to asynchronously call back the calculation result to the smart contract.

6. A method for operating an industrial Internet blockchain trusted computing architecture system based on a computing oracle as claimed in any one of claims 1 to 5, characterized in that: The following steps are involved: Step 1: The industrial Internet smart device registers to become a legitimate off-chain computing oracle. The on-chain oracle system issues a unique account, and the smart device pays the set token as collateral; Step 2: The smart contract obtains data from the chain and triggers the contract calculation task; Step 3: When the computing power on the chain cannot meet the demand, the smart contract sends a request to the on-chain oracle system and calls the "message" of the proxy oracle; the request includes the computing task, and the smart contract freezes the service fee in the account; the proxy oracle records the computing task in its own event log; Step 4: The off-chain computing oracle network subscribes to the event log of the on-chain proxy oracle. After the proxy oracle records the computing task, the off-chain computing oracle network immediately receives the computing task request. Step 5: The data center provides feedback to the proxy oracle based on the task request; Step 6: Establish an off-chain oracle incentive mechanism. After receiving the request, the off-chain computing oracle network selects a computing oracle to perform the computing task through an incentive mechanism based on a matching algorithm. Establish an off-chain oracle consensus mechanism. After the computing task is completed, each node reaches a consensus on the result of the computing task and feeds the consensus result back to the on-chain proxy oracle system. Step 7: The on-chain oracle system receives the calculation results of the off-chain oracle system through the proxy oracle, and translates them into a file readable by the smart contract and sends them to the smart contract; Step 8. The proxy oracle sends the service quality of the off-chain oracle network to the monitoring oracle and records the service quality on the chain; at the same time, the payment oracle converts the service fee frozen by the smart contract into a withdrawable state, and the off-chain oracle providing the service withdraws the service fee.

7. The method according to claim 6, characterized in that The off-chain oracle consensus mechanism described in step 6 refers to the mechanism by which off-chain computing oracles reach consensus on the calculation results. After completing the calculation, the off-chain oracle group participating in the calculation task obtains multiple results and obtains the results agreed upon by the majority of nodes through the consensus mechanism. Specifically: When two-thirds of the computing oracles in the computing group have completed the calculation, the result agreed upon by the majority of these nodes will be selected as the final result; the final result will be sent to the on-chain smart contract, including the consensus result and a verification document. This verification document allows the smart contract to verify the correctness of the result in just one step.

8. The method according to claim 6, characterized in that The matching algorithm described in step 6 is as follows: 1) The proxy oracle on the chain records the task-related information into its own event log, including the content of the computing task requested by the smart contract, the number of oracles required for each computing task, and the reward provided by the smart contract; the computing oracle network off the chain subscribes to the event log to obtain the task-related information; 2) Each unmatched computation oracle sends a request to the smart contract that offers it the maximum reward, where the reward offered is inversely proportional to the expected computation latency of the computation oracle; 3) Minimize the expected computing delay G The computing oracle nodes are matched with computing tasks. G The computing oracle nodes together form the computing group for this computing task; 4) When each task is matched with enough computational oracles, the matching process ends; 5) The computing oracle in the computing group calculates the assigned tasks, and the calculation results agreed by more than a set percentage of members in the group are sent to the smart contract as the final calculation results.

Citation Information

Patent Citations

  • On-chain and off-chain data sharing scheme based on distributed oracle machine and homomorphic encryption

    CN112016105A

  • Under-chain data acquisition method and device applied to block chain system

    CN112948900A