Block chain-based credible sharing method for data in industrial internet

By deploying blockchain systems and cross-chain technologies in the industrial Internet, the problem of data fraud and abuse in data sharing among enterprises is solved, the authenticity and right to use of data is guaranteed, and the cooperation efficiency and production collaboration between enterprises is improved. sex.

CN119004498APending Publication Date: 2024-11-22BAOTOU KAIYUAN DIGITAL CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411024145.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

In the industrial Internet, data sharing among enterprises has problems such as data fraud and data abuse, which makes it difficult to guarantee the authenticity and use rights of data, which affects the production synergy and production efficiency between enterprises.

Method used

By deploying a blockchain system on the enterprise Internet of Things platform, using alliance chains and cross-chain technologies to achieve encrypted storage and sharing of data, ensuring the authenticity and right to use data, and using smart contracts and public key cryptography systems for data encryption and decryption. The cross-chain system realizes inter-chain data acquisition, and all operations are recorded in the block and can be traced.

Benefits of technology

It effectively guarantees the authenticity and right to use data, improves data quality, enhances trust and cooperation among enterprises, and improves production efficiency and production synergy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119004498A_ABST
    Figure CN119004498A_ABST
Patent Text Reader

Abstract

The invention provides a block chain-based credible sharing method for data in an industrial internet, which is based on a block chain, an internet of things and a cryptography technology and is applied to the field of the industrial internet. The problems that when a plurality of business associated enterprises access the same industrial internet platform to share data, the data is easy to counterfeit, the privacy protection is poor, and the source cannot be traced are solved. The method specifically comprises the following steps: deploying a block chain on an Internet of Things platform in an enterprise, selectively accessing an Internet of Things equipment node according to a data sharing demand and a working state of the Internet of Things equipment node, automatically chaining and storing collected data through an intelligent contract, encrypting private data by using a specific public key based on a certificateless public key cryptosystem and then chaining the private data, only an enterprise with a corresponding private key can decrypt and check, and the data check authority is clear. A plurality of enterprises form a parallel multi-chain structure in the platform, and data on chains of opposite sides are obtained through a relay-based cross-chain technology, so that credible sharing of the data is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention involves blockchain, Internet of Things, and cryptography technology, and is applied to the field of industrial Internet. It is a solution that uses blockchain technology to enable different enterprises to achieve trusted sharing of industrial data after accessing the same industrial Internet platform. Background Art

[0002] With the vigorous development of industrial Internet technology, this technology has gradually become the key to integrating the digital economy and the real economy. However, due to the imperfect relevant regulatory laws and regulations, and the existence of interest relations between enterprises connected to the same industrial Internet platform, data falsification and data abuse are currently widespread when sharing data between enterprises. Some companies fabricate data and exaggerate their own operating status to gain industry competitive advantages and defraud investment; some companies maliciously plagiarize data and make it their own data with a little modification, making the data useless to other companies. Therefore, restricting data usage rights, ensuring data authenticity, and improving data quality within the industrial Internet are of great significance to the further development of industrial Internet technology and improving enterprise production efficiency and production synergy between enterprises. Summary of the invention

[0003] The object of the present invention is to propose a method for trusted data sharing in the industrial Internet based on blockchain to solve the problems raised in the above background technology. In this solution, different enterprises deploy blockchain systems on their own Internet of Things platforms, formulate data encryption rules, realize automatic chain storage after first-hand data collection and encryption, use cross-chain technology to achieve inter-chain data acquisition, realize data sharing, and based on the full traceability of blockchain technology, all operation behaviors generate transactions and are packaged in blocks for subsequent verification, effectively ensuring the authenticity and usage rights of the data.

[0004] In one aspect, the present invention provides a method for trusted sharing of data in an industrial Internet based on blockchain, the method comprising the following steps:

[0005] S1: Deploy the blockchain system on the enterprise's internal IoT platform;

[0006] S2: Enterprises access the blockchain system through IoT device nodes and save data. Enterprises with related businesses jointly access the same industrial Internet platform to share data through the blockchain system. Preferably, nodes with data sharing requirements and stable working status are selected on the enterprise's internal IoT platform to access the blockchain system, and data is saved in the blockchain distributed ledger through smart contracts. Enterprises with related businesses jointly access the same industrial Internet platform to share data, and multiple enterprises form a parallel multi-chain structure with equal status;

[0007] S3: For private data, the data provider uses the public key of the data demander to encrypt the data before storing it on the chain. The data demander uses its own private key to decrypt the ciphertext data to obtain the plaintext data. Preferably, for private data, the data provider uses the public key of the data demander with the permission to view the data to encrypt the data before storing it on the chain. Only the data demander can decrypt the ciphertext data with its own private key to obtain the plaintext data, and other companies have no right to view it.

[0008] S4: Deploy a cross-chain system on the industrial Internet platform. The cross-chain system includes a relay layer and an event capture and processing layer. Relay-based cross-chain technology is used between enterprises to achieve cross-chain data sharing.

[0009] Furthermore, the above scheme includes the following steps and contents:

[0010] The S1 includes: the blockchain category deployed on the enterprise's internal IoT platform is a consortium chain. As a type of blockchain category, the consortium chain has a node access permission control function. Based on the consortium chain, access conditions are set for the on-chain nodes to manage the node permissions on the chain.

[0011] The S2 includes: when selecting nodes from the Internet of Things platform to access the blockchain system, first, according to the specific business linkage needs between enterprises, the range of nodes that need to share data on the industrial Internet platform is delineated, and then the daily work of each node in the nodes that meet the conditions is counted, including the statistical working time, data packet forwarding volume, delay rate, and failure rate data. If the node is a sensor information collection node, the temperature, humidity, light, and pressure data collected by it are compared with the deviation of the normal threshold set in the collection work scene and the average value of the data collected by other devices in the device layer. Edge computing technology is used to build a prediction model using artificial intelligence and machine learning algorithms. Based on the daily work data of the node, nodes with stable working status and not easy to crash are selected to access the blockchain system. The specific number of nodes depends on business needs. The nodes of the enterprise Internet of Things platform accessing the blockchain system change at any time according to specific business needs and the node's own status. The nodes on the chain use the Byzantine Fault Tolerance PBFT (Practical Byzantine Fault Tolerance) consensus mechanism, which ensures that even if there is a node downtime, as long as the number of normal nodes is greater than two-thirds of the total number of nodes, a consensus can be quickly reached in the network. The IoT device nodes collect data and upload it directly to the blockchain through smart contracts, saving the data in blocks.

[0012] The S3 includes: generating a unique public-private key pair for each enterprise connected to the industrial Internet based on a certificateless public key cryptography system, where the public key is public on the network, and the private key is strictly controlled by the enterprise itself and is not disclosed to the outside. For privacy data, after being encrypted with the public key of a specific enterprise, it can only be decrypted using the private key of the enterprise, thereby controlling data usage rights. In the encryption method, the complete private key of the enterprise is generated by combining the parts generated by the key center KGC and the enterprise itself. The enterprise public key is generated based on the independent ID of the enterprise. The key center KGC does not store the complete private key of the enterprise, and there is no problem of the private key of the enterprise being leaked or stolen due to the attack on the key center KGC. The specific key generation and data encryption and decryption method steps are as follows:

[0013] S31: System initialization: Select a large prime number p and a generator q, select two secure hash functions H1 and H2, and select a secure pseudo-random function PSK. The parameters p, q, H1, H2, and PSK are made public in the system and available to all enterprises in the system.

[0014] S32: Key center KGC key generation: KGC selects a random number μ as a secret value and calculates and generates the KGC system public key P KGC :

[0015] P KGC =q μ mod p,

[0016] KGC publishes its system public key P KGC and related public parameters;

[0017] S33: Enterprise key generation: The enterprise itself generates part of the private key X i , KGC generates a partial private key G i :

[0018] G i =μ·H1(ID i )mod p,

[0019] G i Sent to the enterprise through a secure channel, the enterprise uses the partial private key G generated by KGC i and the self-generated partial private key X i Calculate and synthesize the complete enterprise private key SK i :

[0020] SK i =(X i ,G i ),

[0021] Enterprises based on their own unique ID i Calculate and generate the public key P i , Pi Publish in the system:

[0022]

[0023] Calculate the enterprise authentication key PK i Each time data is sent, the enterprise sending the data will send its own authentication key PK i Packed in data:

[0024] PK i =PSK(H2(ID i )||P i );

[0025] S34: When encrypting information, data provider enterprise A selects a temporary key s for data demander enterprise B, where s is a random number in the range [1, p-1]. The use of temporary keys ensures the independence and security of each communication. Data provider enterprise A selects a temporary key s based on s and the public key P of data demander enterprise B. B Calculate the data sharing key S B :

[0026] S B =(P B ) s mod p,

[0027] Data provider company A uses the shared key S B Encrypt data M and get ciphertext C:

[0028]

[0029] Generate the encryption result CT, including the ciphertext C and the temporary key part:

[0030] CT=(C,q s mod p);

[0031] S35: When decrypting the information, the data demander enterprise B obtains the data CT, including the ciphertext C and the temporary key part. The data demander enterprise B uses its own private key SK B Calculate the shared key S' B :

[0032]

[0033] Use the shared key S' B Decrypt the ciphertext C and obtain the plaintext M':

[0034]

[0035] Data demander enterprise B calculates the authentication key PK of data provider enterprise AA , and compare it with the authentication key PK packaged in the data. If the comparison is consistent, the authenticity of the identity of the data provider enterprise A is guaranteed.

[0036] In S4: the relay layer is composed of a cross-chain gateway and a relay chain. The cross-chain gateway implements addressing, routing jumps, request forwarding, blockchain registration, and monitoring the status of each blockchain. It obtains and forwards the monitored cross-chain requests in real time, saves relevant transaction records, and provides verification for cross-chain transactions. The relay chain saves the block header data of the blockchain of the connected cross-chain system, and uses the SPV (Simple Payment Verification) algorithm to verify the existence and credibility of each cross-chain transaction using all the saved block header information. The relay chain is jointly maintained by all connected blockchains; the event capture processing layer uses CEP (Complex Event Processing) technology to monitor and capture various data collected and uploaded by node devices on the blockchain of each enterprise connected to the cross-chain system in the industrial Internet platform in real time, quickly detect and identify predetermined events, and use EPL (Event Processing) in the CEP engine. CEP engine uses event processing language (Event Processing Language) to define the triggering conditions and processing rules of related data. EPL is a language that can describe complex events. EPL language is parsed into an internal language that the CEP engine can understand. For example, when the inventory quantity, order status, and production progress change, according to the pre-established trigger conditions, the smart contract is automatically called to perform cross-chain data interaction operations when the captured data meets the conditions. Through the cross-chain system, the data is forwarded from the enterprise chain of the data provider to the enterprise chain of the data demander, realizing data sharing and interaction between enterprise blockchains within the platform.

[0037] Furthermore, when the enterprise user actively initiates cross-chain data acquisition based on the cross-chain system, S4 includes the following steps:

[0038] S41: Data provider enterprise A initiates a cross-chain transaction on its own source chain. After the transaction is successfully executed, the pre-deployed cross-chain smart contract on the chain is activated. The contract contains the target chain information of data demander enterprise B and the data operation instructions to be executed;

[0039] S42: When the cross-chain system receives a cross-chain request, it first uses the block header verification mechanism to confirm the legitimacy of the transaction on the source chain, and then parses the target chain information and the data operation instructions that need to be executed from the request;

[0040] S43: Based on the information obtained from the analysis, the cross-chain system addresses and locates the target chain, reads the relevant data, and uses the block header verification mechanism again to ensure the real existence of these data on the target chain. The target chain records the generated transaction and packages it into a block.

[0041] S44: After verification, the cross-chain system integrates and packages the data and verification results and sends them back to the source chain. After receiving this information, the source chain performs a final verification. If the verification is passed, the cross-chain data reading operation is completed.

[0042] Furthermore, in the above steps, the cross-chain data acquisition operation is atomic. The cross-chain operation is completed only when all steps are successfully executed. If any step fails, the state is rolled back to the original state. There is no intermediate state, and the final consistency of the states of all parties is maintained.

[0043] Furthermore, in the above steps, data is collected by IoT devices and shared among enterprises, all relying on blockchain technology. All data operations generate transactions and save them in corresponding blocks for subsequent query and verification.

[0044] Another aspect of the present invention provides a blockchain-based industrial Internet data trusted sharing system, the system comprising:

[0045] The blockchain system is deployed on the enterprise's internal IoT platform to access the enterprise's IoT device nodes and save data;

[0046] Smart contract module, which saves data in the blockchain distributed ledger through smart contracts;

[0047] Encryption module: For private data, the data provider uses the data demander's enterprise public key to encrypt the data before storing it on the chain. The data demander uses the enterprise's own private key to decrypt the data ciphertext and obtain the data plaintext;

[0048] The cross-chain system is deployed on the industrial Internet platform, including the relay layer and the event capture and processing layer. Enterprises can share cross-chain data through relay-based cross-chain technology.

[0049] Transaction generation module: all data operations generate transactions and save them in the corresponding blocks for subsequent query and verification.

[0050] Furthermore, the system forms a parallel multi-chain structure with equal status among multiple enterprises to achieve data sharing.

[0051] Furthermore, for privacy data, only companies with permission to view the data can decrypt the ciphertext data using their own private keys to obtain the plaintext data, and other companies have no right to view it.

[0052] Furthermore, the cross-chain data acquisition operation in the system is atomic, and is considered complete only when all steps are successfully executed. If any step fails, the state is rolled back to the original state to maintain the ultimate consistency of the states of all parties.

[0053] Furthermore, when deploying the blockchain system, the system uses artificial intelligence and machine learning algorithms to build a prediction model, and selects stable nodes to access the blockchain system based on the node working status information.

[0054] Furthermore, the IoT device nodes collect data and upload it directly to the blockchain through smart contracts. The nodes on the chain use the PBFT consensus mechanism to save the data in the block.

[0055] Furthermore, enterprises connected to the same industrial Internet platform can actively or automatically initiate cross-chain interaction requests to complete cross-chain data interaction through relay-based cross-chain technology, and directly realize inter-chain data acquisition on the industrial Internet blockchain platform without any off-chain operations.

[0056] According to the above content, the present invention has the following advantages and beneficial effects:

[0057] 1. Deploy the blockchain system on the enterprise IoT platform, upload the data collected by IoT devices and store them in the block. Based on the decentralized storage characteristics of blockchain, the data is distributed and stored on multiple nodes in the network. Even if some nodes are attacked or damaged, the data of the entire network is still safe, effectively preventing the data from being attacked and destroyed.

[0058] 2. Based on business needs, artificial intelligence and machine learning algorithms are used to build prediction models, and stable nodes are selected to access the blockchain system based on the node working status information to ensure high system availability. IoT device nodes collect data and upload it directly to the blockchain through smart contracts. The nodes on the chain use the PBFT consensus mechanism to store the data in blocks. Based on the openness, transparency and immutability of blockchain technology, the authenticity and validity of the data on the chain are fully guaranteed.

[0059] 3. For specific data, an encryption link is added before uploading to the chain. Based on the certificateless public key cryptography system, the data is encrypted using the public key of a specific user, and can only be decrypted using the private key of the user. The public and private key pairs are fully controlled by the user himself, thereby limiting the data usage rights. This measure effectively solves the data management, trust, security and privacy issues when sharing data within the Industrial Internet. For non-specific data, the node device directly uploads the data to the chain for data sharing within the Industrial Internet after collection.

[0060] 4. Enterprises connected to the same industrial Internet platform can actively or automatically initiate cross-chain interaction requests to complete cross-chain data interaction through relay-based cross-chain technology, and directly obtain inter-chain data on the industrial Internet blockchain platform without any off-chain operations. Based on the immutability of blockchain, all data acquisition records are generated as transactions and stored in the block, making behavior and data traceable, thereby ensuring data quality and improving enterprise production efficiency and inter-enterprise production synergy. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] Figure 1 A schematic diagram of a trusted data sharing architecture within the industrial Internet of the present invention;

[0062] Figure 2 A schematic diagram of a trusted data sharing data processing flow in the industrial Internet according to the present invention;

[0063] Figure 3 This is a schematic diagram of the cross-chain operation process of trusted data sharing within the industrial Internet of the present invention. DETAILED DESCRIPTION

[0064] The following uses the intelligent supply chain of new energy vehicles in the industrial Internet as an example to illustrate the implementation process of the present invention. In this supply chain, there are upstream raw material manufacturers, midstream automobile manufacturers, and downstream automobile distributors. According to a method for trusted data sharing in the industrial Internet based on blockchain, the method includes the following steps:

[0065] S1: Deploy the blockchain system on the enterprise's internal IoT platform;

[0066] S2: Select nodes with data sharing needs and stable working status on the enterprise's internal IoT platform to access the blockchain system, and save the data in the blockchain distributed ledger through smart contracts; enterprises with related businesses jointly access the same industrial Internet platform for data sharing, and multiple enterprises form a parallel multi-chain structure with equal status;

[0067] S3: For private data, the data provider uses the public key of the data demander with the permission to view the data to encrypt the data before storing it on the chain. Only the data demander can decrypt the ciphertext of the data with its own private key to obtain the plaintext of the data. Other companies have no right to view it.

[0068] S4: Deploy a cross-chain system on the industrial Internet platform. The cross-chain system consists of a relay layer and an event capture and processing layer. Relay-based cross-chain technology is used between enterprises to achieve cross-chain data sharing.

[0069] In the above steps, data is collected by IoT devices and shared among enterprises, all relying on blockchain technology. All data operations generate transactions and save them in the corresponding blocks for subsequent query and verification.

[0070] In this embodiment, in step S1, the new energy vehicle intelligent supply chain includes three companies, namely, a raw material manufacturer, an automobile manufacturer, and an automobile distributor. The three companies respectively build blockchain systems on their own Internet of Things platforms. The built blockchain type is a consortium chain. The consortium chain has a node access authority control function, and the enterprise administrator can freely control the Internet of Things device nodes on the chain and off the chain according to actual conditions.

[0071] In this embodiment, in step S2, enterprises in the supply chain need to upload their own operational data from the IoT device layer to the enterprise alliance chain for storage. For example, the IoT sensor devices in the raw material manufacturer collect real-time production-related data such as production standards, production models, production processes, and production quantities of raw materials; the automobile manufacturer records the manufacturing progress, parts inventory, and shipments within the rated time of each sub-brand vehicle under its own brand in real time; the automobile distributor records the sales and inventory of each brand and model of vehicles in real time. Based on the node permission control function of the alliance chain, the types and quantities of nodes on the chain can be adjusted in real time according to the shared data needs, which can achieve high system availability and help reduce the pressure of data storage on the chain. For example, when a raw material manufacturer wants to share production data with an automobile manufacturer, according to specific data requirements, the relevant data collection node group is selected at the IoT device node layer of the raw material manufacturer, and edge computing technology is used in the node group to build a prediction model using artificial intelligence and machine learning algorithms. The prediction model is based on the data generated by the daily work of the node, including working hours, data packet forwarding volume, delay rate, and failure rate data. The sensor data collection node comprehensively counts the temperature, humidity, light, and pressure data collected during the working hours and compares the deviation of the normal threshold set in the collection work scenario and the average value of the data collected by other devices in the device layer. The prediction model calculates the nodes with stable working status and not easy to crash, and connects them to the enterprise alliance chain system, and uploads and stores the data in the block. The PBFT consensus mechanism is adopted on the chain, which can achieve fast and efficient consensus on the chain. When the demand for shared data changes, the nodes on the chain can be replaced at any time, and the overall flexibility and high availability are high.

[0072] In this embodiment, in step S3, when one of the enterprises in the supply chain shares data in the industrial Internet platform, the data on the chain is only required to be viewable by limited enterprises. However, due to the openness and transparency of the data on the chain in the blockchain technology, special encryption processing is required before the specific private data is uploaded to the chain. The data processing flow diagram is shown in the figure below. Figure 2Assume that the automobile manufacturer needs to share this year's automobile manufacturing data with automobile distributors in the supply chain, and does not want the raw material manufacturers in the supply chain to know this data. In this case, the data is encrypted using a certificateless public key cryptography system before being uploaded to the chain, and the encryption result is generated and then uploaded to the chain for storage. The specific process of enterprise key generation and data encryption and decryption is as follows:

[0073] (1) System initialization: Select a large prime number p and a generator q, select two secure hash functions H1 and H2, and select a secure pseudo-random function PSK. The parameters p, q, H1, H2, and PSK are made public in the platform and available to all enterprises in the platform.

[0074] (2) Key generation by the key center KGC: KGC selects a random number μ as the secret value and calculates and generates the KGC system public key P KGC :

[0075] P KGC =q μ mod p,

[0076] KGC publishes its system public key P KGC and related public parameters;

[0077] (3) Enterprise key generation: The enterprise itself generates part of the private key X i , KGC generates a partial private key G i :

[0078] G i =μ·H1(ID i )mod p,

[0079] G i Sent to the enterprise through a secure channel, the enterprise uses the partial private key G generated by KGC i and the self-generated partial private key X i Calculate and synthesize the complete enterprise private key SK i :

[0080] SK i =(X i ,G i ),

[0081] Enterprises based on their own unique ID i Calculate and generate the public key P i , P i Publish in the system:

[0082]

[0083] Calculate the enterprise authentication key PK iEach time data is sent, the enterprise sending the data will send its own authentication key PK i Packed in data:

[0084] PK i =PSK(H2(ID i )||P i );

[0085] (4) In this scenario, when encrypting data, automobile manufacturer A selects a temporary key s for automobile distributor B, where s is a random number in the range [1, p-1]. The use of temporary keys ensures the independence and security of each communication. Automobile manufacturer A uses s and automobile distributor B’s public key P to encrypt data. B Calculate the data sharing key S B :

[0086] S B =(P B ) s mod p,

[0087] Automobile manufacturer A uses the shared key S B Encrypt this year's automobile manufacturing data M and get the ciphertext C:

[0088]

[0089] Generate the encryption result CT, including the ciphertext C and the temporary key part:

[0090] CT=(C,q s mod p);

[0091] (5) When automobile distributor B obtains data CT and needs to decrypt it, it uses its own private key SK B Calculate the shared key S' B :

[0092]

[0093] Use the shared key S' B Decrypt the ciphertext C and obtain the plaintext data M':

[0094] M'=Dec S ' B (C);

[0095] Car distributor B calculates the authentication key PK of car manufacturer A A , and compare it with the authentication key PK packaged in the data. If the comparison is consistent, the authenticity of the identity of the automobile manufacturer enterprise A is guaranteed.

[0096] In this embodiment, the alliance chains of various enterprises in the supply chain belong to a parallel structure within the industrial Internet platform, with equal status and no subordinate relationship with each other.

[0097] In this embodiment, due to the technical characteristics and structural limitations of blockchain, there is physical isolation between different blockchains, making it difficult to interact with data. To solve this problem, this solution deploys a cross-chain system on the industrial Internet platform. Enterprises use the cross-chain system to achieve cross-chain data sharing between chains using relay-based cross-chain technology. The overall architecture is as follows: Figure 1 As shown. The cross-chain system includes a relay layer and an event capture processing layer. The relay layer is composed of a cross-chain gateway and a relay chain. The cross-chain gateway implements addressing, routing jumps, request forwarding, alliance chain registration, and monitoring the status of each enterprise alliance chain. It obtains and forwards the monitored cross-chain requests in real time, saves relevant transaction records, and provides verification for cross-chain transactions. The relay chain saves the block header data of the alliance chain of the connected cross-chain system, and uses the SPV (Simple Payment Verification) algorithm to verify the existence and credibility of each cross-chain transaction using all the saved block header information. The relay chain is jointly maintained by all connected alliance chains; the event capture processing layer uses CEP (Complex Event Processing) technology to monitor and capture in real time the various data collected and uploaded by the node devices on the alliance chain of each enterprise connected to the cross-chain system in the industrial Internet platform, quickly detect and identify scheduled events, and use EPL (EventProcessing) in the CEP engine. CEP engine uses event processing language (Event Processing Language) to define the triggering conditions and processing rules of relevant data. EPL is a language that can describe complex events. EPL language is parsed into an internal language that CEP engine can understand. For example, when the inventory quantity, order status, and production progress change, according to the pre-defined trigger conditions, when the captured data meets the conditions, the smart contract is automatically called to perform cross-chain data interaction operations. Through the cross-chain system, the data is forwarded from the enterprise chain of the data provider to the enterprise chain of the data demander, so as to realize data sharing and interaction between the enterprise alliance chains within the platform. In this case, it includes but is not limited to the following situations: Automatic replenishment: When the inventory of a part of an automobile manufacturer is lower than a certain threshold and the order volume increases, the detection rules of the above conditions are defined in the CEP engine. After the event is detected, the smart contract is called to automatically perform cross-chain data interaction. The event data is forwarded to the alliance chain of the raw material manufacturer through the relay layer, triggering the on-chain smart contract to initiate the replenishment process.

[0098] In this case, when the enterprise user actively initiates cross-chain data acquisition based on the cross-chain system, the following steps are included. The cross-chain process is as follows: Figure 3 As shown:

[0099] (1) Data provider Enterprise A initiates a cross-chain transaction on its own source chain. After the transaction is successfully executed, the pre-deployed cross-chain smart contract on the chain is activated. The contract contains the target chain information of data demander Enterprise B and the data operation instructions to be executed;

[0100] (2) When the cross-chain system receives a cross-chain request, it first uses the block header verification mechanism to confirm the legitimacy of the transaction on the source chain, and then parses the target chain information and the data operation instructions that need to be executed from the request;

[0101] (3) Based on the information obtained from the analysis, the cross-chain system addresses and locates the target chain, reads the relevant data, and uses the block header verification mechanism again to ensure that the data actually exists on the target chain. The target chain records the generated transaction and packages it into a block;

[0102] (4) After verification, the cross-chain system integrates and packages the data and verification results and sends them back to the source chain. After receiving this information, the source chain conducts final verification. If the verification is passed, the cross-chain data reading operation ends;

[0103] (5) The cross-chain data acquisition operation is atomic. The cross-chain operation is completed only when all steps are successfully executed. If any step fails, the state is rolled back to the original state. There is no intermediate state, and the final consistency of the states of all parties is maintained.

[0104] In this embodiment, all operations on data in this case are carried out based on blockchain technology. This includes the Internet of Things devices collecting data on the chain, encrypting data before uploading to the chain, and using cross-chain technology to obtain data between chains after uploading to the chain. All operations generate transactions and package them in blocks. Based on the immutability of blockchain technology, first-hand data and behavior are traceable. There is no room for human tampering, ensuring that the data is authentic and tamper-free, and ensuring data quality, so that upstream and downstream companies can share risks and benefits after realizing information sharing, thereby improving the competitiveness of the entire supply chain and the ability to respond to market changes.

Claims

1. A blockchain-based method for trusted data sharing in the industrial Internet, characterized in that: The method comprises the following steps: S1: Deploy the blockchain system on the enterprise's internal IoT platform; S2: Enterprises access the blockchain system through IoT device nodes and save data. Enterprises with related businesses access the same industrial Internet platform to share data through the blockchain system. S3: For private data, the data provider uses the data demander's corporate public key to encrypt the data before storing it on the chain. The data demander uses the company's own private key to decrypt the ciphertext data and obtain the plaintext data. S4: Deploy a cross-chain system on the industrial Internet platform. The cross-chain system includes a relay layer and an event capture and processing layer. Relay-based cross-chain technology is used between enterprises to achieve cross-chain data sharing.

2. A method for trusted sharing of data in an industrial Internet based on blockchain as claimed in claim 1, characterized in that: In step S1, the blockchain category deployed on the enterprise's internal IoT platform is a consortium chain. Based on the consortium chain, access conditions are set for the on-chain nodes to manage and control the permissions of the on-chain nodes.

3. A method for trusted sharing of data in an industrial Internet based on blockchain as claimed in claim 1, characterized in that: In step S2, nodes with data sharing needs and stable working status are selected on the internal Internet of Things platform of the enterprise to access the blockchain system, and the data is stored in the blockchain distributed ledger through smart contracts. Enterprises with related businesses jointly access the same industrial Internet platform for data sharing, and multiple enterprises form a parallel multi-chain structure with equal status; when selecting nodes from the Internet of Things platform to access the blockchain system, first, based on the specific business linkage needs between enterprises, the scope of nodes that need to share data on the industrial Internet platform is delineated, and then the daily work status of each node is counted among the nodes that meet the conditions, including statistical working hours, data packet forwarding volume, delay rate, and failure rate data. If the node is a sensor data acquisition node, the collected temperature, humidity, light, and pressure data are compared with the deviation from the normal threshold set in the collection work scenario and the average value of the collected data of other devices at the device layer. Edge computing technology is used, and artificial intelligence and machine learning algorithms are used to build a prediction model. Based on the daily work data of the nodes, nodes with stable working status and not prone to crash are screened out to access the blockchain system. The specific number of nodes depends on business needs.

4. A blockchain-based industrial Internet data trust sharing method as described in claim 1 or 3, characterized in that: For privacy data, the data provider company uses the public key of the data demander company with the permission to view the data to encrypt the data before storing it on the chain; the nodes of the enterprise's internal IoT platform connected to the blockchain system may change at any time according to specific business needs and the node's own status. Based on the use of edge computing technology and the prediction model built by artificial intelligence and machine learning algorithms, nodes with stable working status and not prone to crash are given priority to access the blockchain system. The IoT device nodes collect data and upload it directly to the blockchain through smart contracts. The nodes on the chain use the PBFT consensus mechanism to save the data in blocks.

5. The method for trusted sharing of data in the industrial Internet based on blockchain as claimed in claim 1, characterized in that: In step S3, an exclusive public-private key pair is generated for each enterprise connected to the industrial Internet based on the certificateless public key cryptography system, in which the public key is made public on the network, and the private key is strictly controlled by the enterprise itself and is not disclosed to the outside. For privacy data, after being encrypted with the public key of a specific enterprise, it can only be decrypted with the private key of that enterprise, thereby controlling data usage rights.

6. A method for trusted sharing of data in the industrial Internet based on blockchain as claimed in claim 5, characterized in that: In the encryption method, the complete private key of the enterprise is generated by combining the parts generated by the key center KGC and the enterprise itself. The enterprise public key is generated based on the enterprise independent ID. The key center KGC does not store the complete private key of the enterprise. There is no problem of the enterprise private key being leaked or stolen due to the attack on the key center KGC. The specific key generation and data encryption and decryption method steps are as follows: System initialization: select a large prime number p and a generator q, select two secure hash functions H1 and H2, and select a secure pseudo-random function PSK. Parameters p, q, H1, H2, and PSK are made public in the system as public parameters and can be known by all enterprises in the system. Key center KGC key generation: KGC selects a random number μ as a secret value and calculates and generates the KGC system public key P KGC : P KGC =q μ modp, KGC publishes its system public key P KGC and related public parameters; Enterprise key generation: The enterprise itself generates part of the private key Xi, and KGC generates part of the private key Gi: Gi=μ·H1(IDi)mod p, Gi is sent to the enterprise through a secure channel. The enterprise uses the partial private key Gi generated by KGC and the partial private key Xi generated by itself to calculate the complete enterprise private key SKi: SKi=(Xi,Gi), The enterprise calculates and generates the public key Pi based on its unique IDi, and Pi is announced in the system: Calculate the enterprise authentication key PKi. Each time data is sent, the enterprise sending the data will package its own authentication key PKi in the data: PKi=PSK(H2(IDi)||Pi); When encrypting information, data provider enterprise A selects a temporary key s for data demander enterprise B, where s is a random number in the range [1, p-1]. The use of temporary keys ensures the independence and security of each communication. Data provider enterprise A uses s and the public key P of data demander enterprise B to encrypt information. B Calculate the data sharing key S B : S B =(P B )s mod p, Data provider company A uses the shared key S B Encrypt data M and get ciphertext C: Generate the encryption result CT, including the ciphertext C and the temporary key part: CT = (C, qs mod p); When decrypting information, the data demander enterprise B obtains the data CT, including the ciphertext C and the temporary key part. The data demander enterprise B uses its own private key SK B Calculate the shared key S' B : Use the shared key S' B Decrypt the ciphertext C and obtain the plaintext M': Data demander enterprise B calculates the authentication key PK of data provider enterprise A A , and compare it with the authentication key PK packaged in the data. If the comparison is consistent, the authenticity of the identity of the data provider enterprise A is guaranteed.

7. The method for trusted sharing of data in the industrial Internet based on blockchain as claimed in claim 1, characterized in that: In step S4, the relay layer is composed of a cross-chain gateway and a relay chain. The cross-chain gateway implements addressing, routing jumps, request forwarding, blockchain registration, and monitoring the status of each blockchain. It obtains and forwards the monitored cross-chain requests in real time, saves relevant transaction records, and provides verification for cross-chain transactions. The relay chain saves the block header data of the blockchain of the connected cross-chain system, and uses the SPV algorithm to verify the existence and credibility of each cross-chain transaction. The relay chain is jointly maintained by all connected blockchains.

8. The method for trusted data sharing in the industrial Internet based on blockchain as claimed in claim 1, characterized in that: In step S4, the event capture processing layer uses CEP technology to monitor and capture in real time the various data collected and uploaded by node devices on each enterprise blockchain connected to the cross-chain system within the industrial Internet platform. The EPL technology is used in the CEP engine to define the trigger conditions and processing rules for related data, such as inventory quantity, order status, and production progress changes. According to the pre-established trigger conditions, when the captured data meets the conditions, the smart contract is automatically called to perform cross-chain data interaction operations. The data is forwarded from the data provider's enterprise chain to the data demander's enterprise chain through the cross-chain system, realizing data sharing and interaction between enterprise blockchains within the platform.

9. The method for trusted sharing of data in the industrial Internet based on blockchain as claimed in claim 1, characterized in that: When the enterprise user actively initiates cross-chain data acquisition based on the cross-chain system, step S4 includes the following steps: Data provider company A initiates a cross-chain transaction on its own source chain. After the transaction is successfully executed, the pre-deployed cross-chain smart contract on the chain is activated. The contract contains the target chain information of data demander company B and the data operation instructions to be executed; When the cross-chain system receives a cross-chain request, it first uses the block header verification mechanism to confirm the legitimacy of the transaction on the source chain, and then parses the target chain information and the data operation instructions that need to be executed from the request; Based on the parsed information, the cross-chain system addresses and locates the target chain, reads the relevant data, and uses the block header verification mechanism again to ensure that the data actually exists on the target chain. The target chain records the generated transaction and packages it into a block. After verification, the cross-chain system integrates and packages the data and verification results and sends them back to the source chain. After receiving this information, the source chain performs a final verification. If the verification is passed, the cross-chain data reading operation is completed.

10. A method for trusted sharing of data in the industrial Internet based on blockchain as claimed in claim 9, characterized in that: The cross-chain data acquisition operation is atomic. The cross-chain operation is completed only when all steps are successfully executed. If any step fails, the state is rolled back to the original state. There is no intermediate state, and the final consistency of the states of all parties is maintained.

Citation Information

Cited By

  • Enterprise data sharing optimization method based on local area network

    CN119854294A