Blockchain-based IoT distributed oracle network system and method
By establishing an IoT distributed oracle network, utilizing IoT devices to collect and sign data in real time, and combining this with a trusted data source evaluation mechanism for smart contracts, the problem of insufficient authenticity of off-chain data in blockchain is solved, and efficient and reliable on-chain uploading of off-chain data is achieved.
Patent Information
- Application Number
- CN202310030324.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-09
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2043-01-09
AI Technical Summary
In existing technologies, there is still room for improvement in the authenticity of blockchain data, especially in distributed oracle networks, where the authenticity of off-chain data cannot be effectively guaranteed.
By combining IoT and blockchain technologies, an IoT distributed oracle network is established, including an IoT data acquisition module, a related data acquisition module, a trusted data storage module, a trusted device identity module, and a trusted data evaluation module. Smart contracts are used to establish a trusted data source evaluation mechanism, calculate dynamic weighting factors, aggregate trusted data, and upload it to the blockchain.
This ensures the authenticity of off-chain data to the greatest extent possible. Real-time data collection and signing via IoT devices, combined with data association processing and dynamic weighting factor calculation, guarantees the accuracy and reliability of on-chain data.
Smart Images

Figure CN116319779B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of blockchain technology, and more specifically, to a blockchain-based IoT distributed oracle network system and method. Background Technology
[0002] The technical characteristics of blockchain can guarantee the immutability of on-chain data and thus ensure its authenticity. However, if the data input into the blockchain is forged, the authenticity of the blockchain ledger will be greatly compromised. Therefore, ensuring the authenticity of the data uploaded to the chain is the key to maximizing the authenticity of on-chain data.
[0003] Patent document CN113065167A discloses a method, apparatus, and electronic device for updating off-chain data authorization oracles. The method includes: an on-chain module selecting and broadcasting a data source that can be uploaded to the chain; an off-chain node collecting data and publishing a transaction based on the information of the data source that can be uploaded to the chain, requesting that the data be written to the on-chain module; and the on-chain module verifying the data and writing it to the chain after successful verification.
[0004] However, the oracle in patent document CN113065167A is a single-point oracle, only involving data collection and on-chain processing, and does not involve a distributed oracle network. Therefore, there is still room for improvement in ensuring the authenticity of its off-chain data. Summary of the Invention
[0005] To address the shortcomings of existing technologies, the purpose of this invention is to provide a blockchain-based IoT distributed oracle network system and method.
[0006] According to the present invention, an IoT distributed oracle network system based on blockchain includes an IoT data acquisition module, an associated data acquisition module, a trusted data storage module, a trusted device identity module, and a trusted data evaluation module.
[0007] The IoT data acquisition module and the associated data acquisition module acquire business data and network data respectively, and after preprocessing, periodically upload them to the oracle network. The trusted data storage module distributes the business data and network data in the cloud. The trusted device identity module generates blockchain account information corresponding to the device identity. The trusted data evaluation module obtains dynamic weighting factors by establishing a trusted data source evaluation mechanism. Finally, the data from different data sources are aggregated to obtain trusted data, and this data is accurately fed to the blockchain network.
[0008] Preferably, the IoT data acquisition module includes multiple IoT devices, and collects relevant business data in real time through the IoT devices, while periodically uploading the business data to the oracle network after signing it.
[0009] The IoT device includes blockchain identity attributes and signature functionality.
[0010] Preferably, the associated data acquisition module acquires network data and associates it with business data, performs normalization processing to obtain associated data, and uploads the associated data to the oracle network.
[0011] The data stored in the trusted data storage module can only be accessed with authorization.
[0012] Preferably, the device identity includes a unique device identifier, the device's public and private keys, and the corresponding blockchain account information;
[0013] The device's public and private keys are randomly generated after the device is powered on for the first time, including a random number and a unique device identification code;
[0014] The device identity establishes an identity account system loosely coupled with the blockchain network, and generates corresponding blockchain account information based on different blockchain networks and network types, along with the account index.
[0015] Preferably, the dynamic weighting factor obtained through the trusted data source evaluation mechanism includes calculating the deviation rate for each data source based on the historical data ultimately adopted by the on-chain contract, and calculating the covariance matrix of each data source. The calculation formula for the dynamic factor weight of the trusted data source evaluation mechanism is as follows:
[0016]
[0017] Among them, W i σ represents the weight of the i-th factor. i σ represents the standard deviation of the i-th factor. p This indicates the level of deviation of the data source from the adopted data, ρ. ij Let represent the covariance between the i-th factor and the j-th factor.
[0018] According to the present invention, a blockchain-based IoT distributed oracle network method includes:
[0019] Data acquisition steps: Business data and network data are acquired and preprocessed separately, and then periodically uploaded to the oracle network. The trusted data storage module distributes and stores the business data and network data in the cloud.
[0020] Data processing steps: The trusted device identity module generates blockchain account information corresponding to the device identity, and the trusted data evaluation module obtains dynamic weighting factors by establishing a trusted data source evaluation mechanism;
[0021] Data feeding steps: Data from different data sources is aggregated to obtain reliable data, and this data is then accurately fed to the blockchain network.
[0022] Preferably, the data acquisition step includes multiple IoT devices, and the corresponding business data is collected in real time through the IoT devices. At the same time, the business data is signed and periodically uploaded to the oracle network.
[0023] The IoT device includes blockchain identity attributes and signature functionality.
[0024] Preferably, the associated data acquisition module acquires network data and associates it with business data, performs normalization processing to obtain associated data, and uploads the associated data to the oracle network.
[0025] The data stored in the trusted data storage module can only be accessed with authorization.
[0026] The distributed oracle network records historical data from different data sources.
[0027] Preferably, the device identity includes a unique device identifier, the device's public and private keys, and the corresponding blockchain account information;
[0028] The device's public and private keys are randomly generated after the device is powered on for the first time, including a random number and a unique device identification code;
[0029] The device identity establishes an identity account system loosely coupled with the blockchain network, and generates corresponding blockchain account information based on different blockchain networks and network types, along with the account index.
[0030] Preferably, the dynamic weighting factor obtained through the trusted data source evaluation mechanism includes calculating the deviation rate for each data source based on the historical data ultimately adopted by the on-chain contract, and calculating the covariance matrix of each data source. The calculation formula for the dynamic factor weight of the trusted data source evaluation mechanism is as follows:
[0031]
[0032] Among them, W i σ represents the weight of the i-th factor. i σ represents the standard deviation of the i-th factor. p This indicates the level of deviation of the data source from the adopted data, ρ. ij Let represent the covariance between the i-th factor and the j-th factor.
[0033] Compared with the prior art, the present invention has the following beneficial effects:
[0034] This invention combines IoT and blockchain technologies. First, IoT devices collect relevant data and perform correlation analysis with data from other data sources, ultimately obtaining dimensionless data from multiple data sources that can characterize a specific business feature. Second, different data sources are used as nodes in an oracle network (an off-chain network with blockchain technology features) to periodically record data from different data sources on the blockchain. Then, a trusted data source evaluation mechanism with business characteristics is established using smart contracts to obtain dynamic weighting factors. Finally, data from different data sources is aggregated to obtain the most accurate and reliable data, which is then precisely fed into the blockchain network. This blockchain-based IoT distributed oracle network maximizes the authenticity of off-chain data. Attached Figure Description
[0035] Other features, objects, and advantages of the present invention will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings:
[0036] Figure 1 This is a schematic diagram of the workflow of the present invention. Detailed Implementation
[0037] The present invention will now be described in detail with reference to specific embodiments. These embodiments will help those skilled in the art to further understand the present invention, but do not limit the invention in any way. It should be noted that those skilled in the art can make several changes and improvements without departing from the concept of the present invention. These all fall within the scope of protection of the present invention.
[0038] Example 1
[0039] According to the present invention, a blockchain-based IoT distributed oracle network system is provided, such as... Figure 1 As shown, it includes an IoT data acquisition module, a related data acquisition module, a trusted data storage module, a trusted device identity module, and a trusted data evaluation module.
[0040] The IoT data acquisition module and the associated data acquisition module acquire business data and network data respectively, and after preprocessing, periodically upload them to the oracle network. The trusted data storage module distributes the business data and network data in the cloud. The trusted device identity module generates blockchain account information corresponding to the device identity. The trusted data evaluation module obtains dynamic weighting factors by establishing a trusted data source evaluation mechanism. Finally, the data from different data sources are aggregated to obtain trusted data, and this data is accurately fed to the blockchain network.
[0041] Specifically, the IoT data acquisition module includes multiple IoT devices, which collect relevant business data in real time and periodically upload the signed business data to the oracle network. The IoT devices include blockchain identity attributes and signing functionality.
[0042] The associated data acquisition module obtains network data and correlates it with business data, performs normalization processing to obtain associated data, and uploads the associated data to the oracle network. In other words, for non-device data, associated business data is acquired, statistical algorithms such as machine learning are used to analyze the correlation between the associated business data and the target business data, and normalization processing is performed. The aforementioned associated data is then signed and periodically uploaded to the oracle network.
[0043] The trusted data storage module distributes the data acquired by the IoT data acquisition module and the associated data acquisition module in the cloud, and the data stored in the trusted data storage module can only be accessed with authorization. The trusted device identity module signs the data collected by the IoT data and associated data modules to ensure the traceability of the data source. The signed data is distributed in the cloud in plaintext or encrypted form, and the fingerprint digest information of the data is stored in the blockchain network.
[0044] In the trusted device identity module, the device's public and private keys are randomly generated upon the device's first power-on, including a random number and a unique device identifier. The device's private key is stored in a secure storage chip to effectively prevent attacks and leaks; the device's public key is uploaded to a public key management platform for unified management, ensuring the effective implementation of subsequent data verification. Device identity includes the device's unique identifier, the device's public and private keys, and corresponding blockchain account information. Specifically, the device identity establishes a loosely coupled identity account system with the blockchain network. It generates a device public-private key pair using a random number and the device's unique identifier, and uses an algorithm derived from the public and private keys to generate corresponding blockchain account information based on different blockchain networks and network types, along with an account index. These blockchain networks include consortium blockchains and public blockchains, and network types include testnets and mainnets.
[0045] The trusted data evaluation module uses smart contract technology to establish a trusted data source evaluation mechanism with business characteristics to obtain dynamic weighting factors, and aggregates data from different data sources to obtain trusted data that is closest to the truth, and then accurately feeds this data to the blockchain network.
[0046] Specifically, the dynamic weighting factor is obtained in the following ways:
[0047] First, data is collected from multiple data sources using IoT devices or network data robots at different collection points, and then the signed data is uploaded to a distributed oracle network. This distributed oracle network records historical data from different data sources.
[0048] Then, based on the historical data ultimately adopted by the on-chain contract, the deviation rate is calculated for each data source, and the covariance matrix of each data source is calculated. The calculation formula for the dynamic factor weight of the trusted data source evaluation mechanism is as follows:
[0049]
[0050] Among them, W i σ represents the weight of the i-th factor. i σ represents the standard deviation of the i-th factor. p This indicates the level of deviation of the data source from the adopted data, ρ. ij Let represent the covariance between the i-th factor and the j-th factor. This formula means that the weight of the i-th factor is equal to the ratio of the standard deviation of that factor to the target historical data, multiplied by the sum of the covariances of that factor and the other factors, multiplied by the sum of the standard deviations of the other factors.
[0051] Finally, the dynamic weight factor of each data source is obtained through the above algorithm, and then the relatively accurate and reliable data provided by the distributed oracle network is obtained through weighted calculation.
[0052] Example 2
[0053] According to the present invention, a blockchain-based IoT distributed oracle network method includes:
[0054] Data acquisition steps: Business data and network data are acquired and preprocessed separately, then periodically uploaded to the oracle network. The trusted data storage module distributes and stores the business data and network data in the cloud. This data acquisition step includes multiple IoT devices, which collect relevant business data in real time and periodically upload it to the oracle network after signing it. The associated data acquisition module acquires network data and associates it with business data, performs normalization processing to obtain associated data, and uploads this associated data to the oracle network. The distributed oracle network records historical data from different data sources.
[0055] Data processing steps: The trusted device identity module generates blockchain account information corresponding to the device identity, and the trusted data evaluation module obtains dynamic weighting factors by establishing a trusted data source evaluation mechanism. The IoT device includes blockchain identity attributes and signature functionality. Data stored in the trusted data storage module can only be accessed with authorization. The device identity includes a unique device identifier, a device public and private key, and corresponding blockchain account information. The device public and private key are randomly generated after the device is first powered on, including a random number and a unique device identifier. The device identity establishes a loosely coupled identity account system with the blockchain network, generating corresponding blockchain account information based on different blockchain networks and network types, along with an account index.
[0056] The dynamic weighting factor obtained through the trusted data source evaluation mechanism includes calculating the deviation rate for each data source based on the historical data ultimately adopted by the on-chain contract, and calculating the covariance matrix of each data source. The calculation formula for the dynamic factor weight of the trusted data source evaluation mechanism is as follows:
[0057]
[0058] Among them, W i σ represents the weight of the i-th factor. i σ represents the standard deviation of the i-th factor. p This indicates the level of deviation of the data source from the adopted data, ρ. ij Let represent the covariance between the i-th factor and the j-th factor.
[0059] Data feeding steps: Data from different data sources is aggregated to obtain reliable data, and this data is then accurately fed to the blockchain network.
[0060] Those skilled in the art will understand that, in addition to implementing the system, apparatus, and their modules provided by this invention in purely computer-readable program code, the same program can be implemented in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, the system, apparatus, and their modules provided by this invention can be considered a hardware component, and the modules included therein for implementing various programs can also be considered structures within the hardware component; alternatively, modules for implementing various functions can be considered both software programs implementing the method and structures within the hardware component.
[0061] Specific embodiments of the present invention have been described above. It should be understood that the present invention is not limited to the specific embodiments described above, and those skilled in the art can make various changes or modifications within the scope of the claims, which do not affect the essence of the present invention. Unless otherwise specified, the embodiments and features described in this application can be arbitrarily combined with each other.
Claims
1. A blockchain-based IoT distributed oracle network system, characterized in that, It includes an IoT data acquisition module, a related data acquisition module, a trusted data storage module, a trusted device identity module, and a trusted data evaluation module; The IoT data acquisition module and the associated data acquisition module acquire business data and network data respectively, and after preprocessing, periodically upload them to the oracle network. The trusted data storage module distributes the business data and network data in the cloud. The trusted device identity module generates blockchain account information corresponding to the device identity. The trusted data evaluation module obtains dynamic weighting factors by establishing a trusted data source evaluation mechanism. Finally, the data from different data sources are aggregated to obtain trusted data, and this data is accurately fed to the blockchain network. The IoT data acquisition module includes multiple IoT devices, and collects relevant business data in real time through the IoT devices. At the same time, the business data is signed and periodically uploaded to the oracle network. The IoT device includes blockchain identity attributes and signature functionality; The device identity includes a unique device identifier, the device's public and private keys, and the corresponding blockchain account information; The device's public and private keys are randomly generated after the device is powered on for the first time, including a random number and a unique device identification code; The device identity establishes an identity account system loosely coupled with the blockchain network, and generates corresponding blockchain account information based on different blockchain networks and network types, along with the account index. The dynamic weighting factor obtained through the trusted data source evaluation mechanism includes calculating the deviation rate for each data source based on the historical data ultimately adopted by the on-chain contract, and calculating the covariance matrix of each data source. The calculation formula for the dynamic factor weight of the trusted data source evaluation mechanism is as follows: Among them, W i σ represents the weight of the i-th factor. i σ represents the standard deviation of the i-th factor. p This indicates the level of deviation of the data source from the adopted data, ρ. ij Let represent the covariance between the i-th factor and the j-th factor.
2. The blockchain-based IoT distributed oracle network system according to claim 1, characterized in that, The associated data acquisition module acquires network data and associates it with business data, performs normalization processing to obtain associated data, and uploads the associated data to the oracle network. The data stored in the trusted data storage module can only be accessed with authorization.
3. A blockchain-based IoT distributed oracle network method, characterized in that, include: Data acquisition steps: Business data and network data are acquired and preprocessed separately, and then periodically uploaded to the oracle network. The trusted data storage module distributes and stores the business data and network data in the cloud. Data processing steps: The trusted device identity module generates blockchain account information corresponding to the device identity, and the trusted data evaluation module obtains dynamic weighting factors by establishing a trusted data source evaluation mechanism; Data feeding steps: Data from different data sources is aggregated to obtain reliable data, and this data is then accurately fed to the blockchain network; The data acquisition step includes multiple IoT devices, which collect relevant business data in real time and periodically upload the signed business data to the oracle network. The IoT device includes blockchain identity attributes and signature functionality; The device identity includes a unique device identifier, the device's public and private keys, and the corresponding blockchain account information; The device's public and private keys are randomly generated after the device is powered on for the first time, including a random number and a unique device identification code; The device identity establishes an identity account system loosely coupled with the blockchain network, and generates corresponding blockchain account information based on different blockchain networks and network types, along with the account index. The dynamic weighting factor obtained through the trusted data source evaluation mechanism includes calculating the deviation rate for each data source based on the historical data ultimately adopted by the on-chain contract, and calculating the covariance matrix of each data source. The calculation formula for the dynamic factor weight of the trusted data source evaluation mechanism is as follows: Among them, W i σ represents the weight of the i-th factor. i σ represents the standard deviation of the i-th factor. p This indicates the level of deviation of the data source from the adopted data, ρ. ij Let represent the covariance between the i-th factor and the j-th factor.
4. The blockchain-based IoT distributed oracle network method according to claim 3, characterized in that, The network data and business data are correlated and normalized to obtain correlated data, which is then uploaded to the oracle network. The data stored in the trusted data storage module can only be accessed with authorization. The distributed oracle network records historical data from different data sources.
Citation Information
Patent Citations
Method and device for updating under-chain data authorization oracle machine and electronic equipment
CN113065167A
Reputation management architecture of block chain oracle machine and data aggregation method thereof
CN114462730A
Trust twinning method based on block chain and related equipment
CN115314513A