Supervisable industrial data element credible sharing method and system
By introducing data regulatory agencies and using blockchain, interstellar file system and zero-knowledge proof technology, the problems of centralization, difficulty in supervision and data security in industrial data element sharing are solved, and the security, reliability and integrity of data sharing are achieved.
Patent Information
- Application Number
- CN202411601517.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-11
- Publication Date
- 2025-02-18
AI Technical Summary
Currently, there are problems such as centralization, difficulty in supervision and data security in the sharing of industrial data elements, and it is impossible to effectively ensure the safety and reliability of data elements in the sharing process.
By introducing data regulators and using blockchain technology, interstellar file system and zero-knowledge proof technology, we can verify the effectiveness and credibility of data elements and ensure the safety and reliability of data sharing activities.
It realizes supervision of the sharing of industrial data elements, ensures data integrity and traceability, and improves data security and reliability.
Smart Images

Figure CN119483977A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of blockchain technology, and more specifically, it particularly relates to a controllable industrial data element trusted sharing method. At the same time, the present invention also relates to a controllable industrial data element trusted sharing system. Background Art
[0002] With the combination of the Internet of Things and industrial manufacturing, industrial-related data elements have exploded, and the sharing and circulation of industrial data elements have broken the data silos. However, industrial data elements contain a lot of content related to privacy and confidentiality.
[0003] In recent years, the digital economy has developed rapidly, the scale and level of digital infrastructure have leaped forward, and digital technology and industrial systems have become increasingly mature, laying a solid foundation for better leveraging the role of data elements. At the same time, there are also problems such as low quality of data supply, poor circulation mechanism, and insufficient release of application potential. The shared circulation of industrial data elements is to give full play to the multiple advantages of super-large-scale market, massive data resources, and rich application scenarios, promote the coordination of data elements with labor, capital and other factors, lead the flow of technology, capital, talents, and materials with data flow, break through the constraints of traditional resource elements, and improve total factor productivity; promote the application of data in multiple scenarios and reuse of multiple subjects, cultivate new products and services based on data elements, realize knowledge diffusion, value multiplication, and open up new space for economic growth; accelerate the integration of multiple data, expand the scale of data and enrich the data types, promote the innovation and upgrading of production tools, give birth to new industries and new models, and cultivate new momentum for economic development.
[0004] With the deepening development of a new round of scientific and technological revolution and industrial transformation, the value of data as a key production factor has become increasingly prominent. Taking advantage of the increasing returns and low-cost reuse of data factors can optimize resource allocation, empower the real economy, develop new quality productivity, and promote profound changes in production and life, economic development, and social governance. It is of great significance to promote high-quality development, promote the safe circulation of data factors, and exert a multiplier effect on data factors.
[0005] However, there are some problems with the existing technology: the current sharing of industrial data elements has problems such as centralization, difficulty in supervision and data security, which makes it impossible to share industrial data elements. In the process of sharing, it is easy to cause data elements to be lost or even attacked. Therefore, we propose a controllable industrial data element trusted sharing method and system. Summary of the invention
[0006] In view of the problems existing in the prior art, the purpose of the present invention is to provide a controllable industrial data element trusted sharing method and system, which ensures the security and reliability of data element sharing activities by introducing a data supervision agency; and verifies the validity and credibility of data elements by using blockchain technology, interplanetary file system and zero-knowledge proof technology.
[0007] To achieve the above object, the present invention provides the following technical solution: a supervised industrial data element trusted sharing method, comprising the following steps:
[0008] S1. The sub-node entity on the blockchain registers: The sub-node entity on the blockchain registers with the regulatory agency, obtains its own identity address address, and generates a public-private key pair pk and sk;
[0009] S2. The digital factory on the blockchain encrypts the data elements: After the digital factory on the blockchain produces the data element summary, the digital factory needs to use the hash function to perform hash calculation on the data element summary data and generate the corresponding ciphertext;
[0010] S3. The digital factory on the blockchain uploads the data element summary to the Interstellar File System: Use zero-knowledge proof technology to encrypt the data element summary w←zkproof(Data), and publish w to the blockchain. A zero-knowledge proof verification contract smart-zk will be deployed on the blockchain to verify w. At the same time, the digital factory uploads the data information to the Interstellar File System IPFS.
[0011] S4. The sub-node entity on the blockchain verifies the data element summary: The sub-node entity on the blockchain verifies the contract smart-zk through zero-knowledge proof, and automatically verifies the zero-knowledge proof w generated by the data element summary. If the returned result is true, it means that the data element summary generated by the digital factory meets the user's needs. The Interstellar File System IPFS will issue the identity address address certificate of the sub-node entity on the blockchain to the digital factory. Otherwise, it means that the needs are not met and data cannot be shared with it.
[0012] S5. Token authorization: After receiving the credentials, the digital factory sends the application materials to the regulatory agency. The regulatory agency verifies the legitimacy of all information and issues an authorization token.
[0013] S6. Data sharing: After the digital factory obtains the authorization token, and uploads the authorization token to the blockchain system, the sub-node entity on the blockchain obtains the corresponding information from the blockchain and then obtains the ciphertext from the Interstellar File System IPFS. The sub-node entity on the blockchain can compare the decrypted data with the hash value of the data element summary to determine the integrity and correctness of the data.
[0014] Specifically, the regulatory agency in S1 receives the local IP address and MAC address sent by the sub-node entity on the blockchain, combines them into a new numerical string, and calculates the new numerical string through a hash function to obtain an identity address on the blockchain;
[0015] The public-private key pair pk and sk is generated by OpenSSL;
[0016] First generate the RSA private key and set the password protection for the private key;
[0017] Then generate the RSA public key. After the private key is generated, extract the public key from the private key.
[0018] Specifically, the interaction steps of the zero-knowledge proof technology in S3 are as follows:
[0019] Claims and Challenges: The subnode entity on the blockchain declares to the digital factory that it knows a certain data element;
[0020] Randomly select a challenge: The digital factory issues a challenge to the sub-node entity on the blockchain, requiring the sub-node entity on the blockchain to show some form of proof;
[0021] Response and verification: The sub-node entity on the blockchain sends the identity address address, public-private key pair pk and sk to the digital factory, and provides them to the verifier. The digital factory determines whether the sub-node entity on the blockchain actually knows the secret information based on the response.
[0022] Specifically, the Interplanetary File System IPFS in the S3 is used as an intermediate to perform zero-knowledge proof technology proof interaction between the sub-node entities on the blockchain and the digital factory;
[0023] The digital factory uploads the data element summary to the Interstellar File System IPFS;
[0024] The sub-node entity on the blockchain verifies the data element summary uploaded by the digital factory to the Interstellar File System IPFS, and verifies the data element summary through the zero-knowledge proof verification contract smart-zk to determine whether the data element summary is the data information it needs;
[0025] When the returned result is true, the Interstellar File System IPFS will issue the identity address address certificate and public-private key pair pk and sk of the child node entity on the blockchain to the digital factory.
[0026] Specifically, the data element summary in S2 is generated by extracting features from the data information through feature extraction. The calculation of feature extraction is as follows:
[0027]
[0028] Among them, TF(x i ,d) reflects the importance of a word in the data information. The more frequently it appears, the higher the TF value, x i represents the word for calculation, and d represents the word x i The number of times it appears in the data information, It is used to measure the prevalence of a word in the entire corpus. The higher the value, the less common the word is in the corpus, expressed as the total number of texts in the corpus, DF(x i ) means that it contains word x i The number of texts;
[0029] If a word appears frequently in the data information that needs to be detected and calculated, but appears less frequently in other texts, the value will be very high, indicating the importance of the word to the data information that needs to be detected and calculated;
[0030] On the contrary, if the word frequency is low or the word appears in many texts, the value will be low, indicating that the word is not important for the data information that needs to be detected and calculated.
[0031] Specifically, the data element summary date in S2 is hashed and the data element summary is converted into ciphertext:
[0032] The data element summary is converted into binary format and the data element summary is filled;
[0033] Use a fixed initial hash value;
[0034] Split the padded data element summary into fixed-size blocks and process each block;
[0035] Apply a compression function to each data block, combining the current hash value with the block's data to generate a new hash value;
[0036] After all blocks are processed, the final hash value is obtained;
[0037] The formula for outputting the hash value is expressed as:
[0038] H=f(H prev ,M),
[0039] Where: H is the current hash value, H prev is the initial hash value, and M is the data block currently being processed.
[0040] Specifically, the steps of encrypting the data element summary using the zero-knowledge proof technology in S3 are as follows:
[0041] Public and private key generation: Generate public and private key pairs pk and sk through a trusted regulatory agency;
[0042] Writing circuits: Modeling the subnode entities on the blockchain, using a circuit representation method that defines the relationship between input and output. The subnode entities on the blockchain prove that they have found the input that makes the circuit output true.
[0043] Generate proof: Using the private key and input data, the child node entity on the blockchain generates a concise proof. A proof is an encrypted statement that the child node entity on the blockchain knows a certain data information without revealing the specific content.
[0044] Generate verification data: The verifier uses the public key and proof data to verify whether the statement of the sub-node entity on the blockchain is valid. If the proof is valid, the sub-node entity on the blockchain has successfully proved the statement.
[0045] Specifically, the regulatory body in S4 is used to generate a concise proof for the subnode entity on the blockchain:
[0046] After receiving the proof sent by the sub-node entity on the blockchain, the Interplanetary File System IPFS sends the proof sent by the sub-node entity on the blockchain to the digital factory;
[0047] The digital factory then transmits the proof sent by the sub-node entity on the blockchain to the regulatory agency. The regulatory agency, as a verifier, uses the public key and proof data to verify whether the statement of the sub-node entity on the blockchain is valid;
[0048] The regulatory agency verifies the legitimacy of all information and issues an authorization token to the digital factory;
[0049] Only digital factories can encrypt and upload data information.
[0050] Specifically, the application materials in S5 include the data element summary of the private key signature, the digital factory identity address, the sub-node entity identity address on the blockchain, the address of the interplanetary file system returning the ciphertext, and the storage address of the data information returned by the interplanetary file system IPFS;
[0051] The authorization token includes the sub-node entity identity address on the blockchain, the ciphertext of the data element summary, and the storage address of the data information returned by the InterPlanetary File System IPFS.
[0052] A regulated trusted sharing system for industrial data elements, including digital factories, regulatory agencies, Interstellar File System IPFS, blockchain, and sub-node entities on the blockchain;
[0053] As a provider of data elements, the digital factory uses its own data safely;
[0054] The regulatory agency, as a trusted third-party regulatory entity, is responsible for full-process supervision;
[0055] The Interplanetary File System (IPFS) is responsible for storing real data information and data element summaries, and for enabling the upload and download of data information;
[0056] The blockchain is responsible for storing transaction information of data elements and supporting smart contracts to implement functions on the chain;
[0057] The subnode entity on the blockchain is the user of data information. The technical effects and advantages of the present invention are:
[0058] In order to solve the problems of centralization, difficulty in supervision and data security in the current sharing of industrial data elements, the present invention introduces a data supervision agency to ensure the safety and reliability of data element sharing activities; and verifies the validity and credibility of data elements by using blockchain technology, interplanetary file system and zero-knowledge proof technology;
[0059] The introduction of regulatory agencies as trusted third parties enables the supervision of data information sharing. In order to ensure the security and confidentiality of data information, zero-knowledge proof technology is used to judge the validity of data without leaking the data itself. At the same time, blockchain technology, hash functions and interplanetary file system characteristics are used to ensure data integrity and traceability.
[0060] Further features and advantages of the present invention will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] Figure 1 It is a schematic flow chart of the method provided by the present invention;
[0062] Figure 2 It is a schematic diagram of the system structure provided by the present invention. DETAILED DESCRIPTION
[0063] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0064] like Figure 1 As shown, a supervised industrial data element trusted sharing method provided by an embodiment of the present invention includes the following steps:
[0065] S1. The sub-node entity on the blockchain registers: The sub-node entity on the blockchain registers with the regulatory agency, obtains its own identity address address, and generates a public-private key pair pk and sk;
[0066] S2. The digital factory on the blockchain encrypts the data elements: After the digital factory on the blockchain produces the data element summary, the digital factory needs to use the hash function to perform hash calculation on the data element summary data and generate the corresponding ciphertext;
[0067] S3. The digital factory on the blockchain uploads the data element summary to the Interstellar File System: Use zero-knowledge proof technology to encrypt the data element summary w←zkproof(Data), and publish w to the blockchain. A zero-knowledge proof verification contract smart-zk will be deployed on the blockchain to verify w. At the same time, the digital factory uploads the data information to the Interstellar File System IPFS.
[0068] S4. The sub-node entity on the blockchain verifies the data element summary: The sub-node entity on the blockchain verifies the contract smart-zk through zero-knowledge proof, and automatically verifies the zero-knowledge proof w generated by the data element summary. If the returned result is true, it means that the data element summary generated by the digital factory meets the user's needs. The Interstellar File System IPFS will issue the identity address address certificate of the sub-node entity on the blockchain to the digital factory. Otherwise, it means that the needs are not met and data cannot be shared with it.
[0069] S5. Token authorization: After receiving the credentials, the digital factory sends the application materials to the regulatory agency. The regulatory agency verifies the legitimacy of all information and issues an authorization token.
[0070] S6. Data sharing: After the digital factory obtains the authorization token, and uploads the authorization token to the blockchain system, the sub-node entity on the blockchain obtains the corresponding information from the blockchain and then obtains the ciphertext from the Interstellar File System IPFS. The sub-node entity on the blockchain can compare the decrypted data with the hash value of the data element summary to determine the integrity and correctness of the data.
[0071] In this embodiment, preferably, the regulatory agency in S1 combines the local IP address and MAC address sent by the sub-node entity on the blockchain into a new numerical string, and calculates the new numerical string through a hash function to obtain an identity address on the blockchain;
[0072] The public and private key pair pk and sk are generated through OpenSSL;
[0073] First generate the RSA private key and set the password protection for the private key;
[0074] Generate the RSA public key again. After the private key is generated, extract the public key from the private key.
[0075] The identity address is formed by combining the local IP address and the MAC address to facilitate the tracking of data information, improve the security of data information, and establish public and private keys to facilitate the authentication of data information.
[0076] In this embodiment, preferably, the interaction steps of the zero-knowledge proof technology in S3 are as follows:
[0077] Claims and Challenges: The subnode entity on the blockchain declares to the digital factory that it knows a certain data element;
[0078] Randomly select a challenge: The digital factory issues a challenge to the sub-node entity on the blockchain, requiring the sub-node entity on the blockchain to show some form of proof;
[0079] Response and verification: The sub-node entity on the blockchain sends the identity address address, public-private key pair pk and sk to the digital factory, and provides them to the verifier. The digital factory determines whether the sub-node entity on the blockchain actually knows the secret information based on the response;
[0080] It should be noted that the zero-knowledge proof technology enables the sub-node entities on the blockchain to identify the data information that needs to be obtained, and improves security through mutual authentication.
[0081] In this embodiment, preferably, the Interplanetary File System IPFS in S3 is used as an intermediate for the interaction of zero-knowledge proof technology between the sub-node entity on the blockchain and the digital factory;
[0082] The digital factory uploads the data element summary to the Interstellar File System IPFS;
[0083] The sub-node entity on the blockchain verifies the data element summary uploaded by the digital factory to the Interstellar File System IPFS, and verifies the data element summary through the zero-knowledge proof verification contract smart-zk to determine whether the data element summary is the data information it needs;
[0084] When the result returned is true, the Interplanetary File System IPFS will issue the identity address address certificate and the public-private key pair pk and sk of the child node entity on the blockchain to the digital factory;
[0085] It should be noted that by using the Interplanetary File System IPFS as an intermediate to implement zero-knowledge proof technology to prove interaction between sub-node entities on the blockchain and the digital factory, sub-node entities on the blockchain can be prevented from directly accessing the digital factory, further improving the security of the interactive proof.
[0086] In this embodiment, preferably, the data element summary in S2 is achieved by extracting features in the data information through feature extraction to generate a data element summary, and the feature extraction is calculated as follows:
[0087]
[0088] Among them, TF(x i ,d) reflects the importance of a word in the data information. The more frequently it appears, the higher the TF value, x i represents the word for calculation, and d represents the word x i The number of times it appears in the data information, It is used to measure the prevalence of a word in the entire corpus. The higher the value, the less common the word is in the corpus, expressed as the total number of texts in the corpus, DF(x i ) means that it contains word x i The number of texts;
[0089] If a word appears frequently in the data information that needs to be detected and calculated, but appears less frequently in other texts, the value will be very high, indicating the importance of the word to the data information that needs to be detected and calculated;
[0090] On the contrary, if the word frequency is low or the word appears in many texts, the value will be low, indicating that the word is not important for the data information that needs to be detected and calculated;
[0091] It should be noted that by extracting the features in the data information and forming a data element summary, it is convenient for the sub-node entities on the blockchain to identify and determine whether it is the data information they need.
[0092] In this embodiment, preferably, the data element summary date in S2 is hashed and the data element summary is generated into ciphertext:
[0093] The data element summary is converted into binary format and the data element summary is filled;
[0094] Use a fixed initial hash value;
[0095] Split the padded data element summary into fixed-size blocks and process each block;
[0096] Apply a compression function to each data block, combining the current hash value with the block's data to generate a new hash value;
[0097] After all blocks are processed, the final hash value is obtained;
[0098] The formula for outputting the hash value is expressed as:
[0099] H=f(H prev ,M),
[0100] Where: H is the current hash value, H prev is the initial hash value, M is the data block currently being processed;
[0101] It should be noted that encrypting the data element summary through hash calculation can prevent the data element summary from being attacked, causing the data element summary to be lost or leaked, and improve the confidentiality of the data element summary.
[0102] In this embodiment, preferably, the steps of encrypting the data element summary by the zero-knowledge proof technology in S3 are as follows:
[0103] Public and private key generation: Generate public and private key pairs pk and sk through a trusted regulatory agency;
[0104] Writing circuits: Modeling the subnode entities on the blockchain, using a circuit representation method that defines the relationship between input and output. The subnode entities on the blockchain prove that they have found the input that makes the circuit output true.
[0105] Generate proof: Using the private key and input data, the child node entity on the blockchain generates a concise proof. A proof is an encrypted statement that the child node entity on the blockchain knows a certain data information without revealing the specific content.
[0106] Generate verification data: The verifier uses the public key and proof data to verify whether the statement of the sub-node entity on the blockchain is valid. If the proof is valid, the sub-node entity on the blockchain has successfully proved the statement;
[0107] It should be noted that the data element summary is encrypted again and converted into w←zkproof(Data). The sub-node entities on the blockchain automatically verify the zero-knowledge proof generated by the data element summary to facilitate identity verification.
[0108] In this embodiment, preferably, the regulatory agency in S4 is used to generate a concise proof for the sub-node entity on the blockchain:
[0109] After receiving the proof sent by the sub-node entity on the blockchain, the Interplanetary File System IPFS sends the proof sent by the sub-node entity on the blockchain to the digital factory;
[0110] The digital factory then transmits the proof sent by the sub-node entity on the blockchain to the regulatory agency. The regulatory agency, as a verifier, uses the public key and proof data to verify whether the statement of the sub-node entity on the blockchain is valid;
[0111] The regulatory agency verifies the legitimacy of all information and issues an authorization token to the digital factory;
[0112] Only digital factories can encrypt and upload data information;
[0113] It should be noted that by having regulators judge the proof of sub-node entities on the blockchain, the credibility of the judgment results can be improved and the security of data information sharing can be improved.
[0114] In this embodiment, preferably, the application materials in S5 include a data element summary signed by a private key, a digital factory identity address, a subnode entity identity address on the blockchain, an address where the interplanetary file system returns ciphertext, and a storage address where the interplanetary file system IPFS returns data information;
[0115] The authorization token includes the sub-node entity identity address on the blockchain, the ciphertext of the data element summary, and the storage address of the data information returned by the InterPlanetary File System IPFS;
[0116] When it is necessary to explain, the application materials must be able to determine the identity of the sub-node entity on the blockchain and prove that the result is correct. The authorization token must have the address of the sub-node entity on the blockchain and the address of the data information to facilitate the sub-node entity on the blockchain to download the data information.
[0117] refer to Figure 2 , a regulated trusted sharing system for industrial data elements, including digital factories, regulatory agencies, Interplanetary File System IPFS, blockchain, and sub-node entities on the blockchain;
[0118] As a provider of data elements, the digital factory uses its own data safely;
[0119] The regulatory agency, as a trusted third-party regulatory entity, is responsible for full-process supervision;
[0120] The Interplanetary File System (IPFS) is responsible for storing real data information and data element summaries, and for enabling the upload and download of data information;
[0121] The blockchain is responsible for storing transaction information of data elements and supports smart contracts to implement functions on the chain;
[0122] The sub-node entities on the blockchain are users of data information.
[0123] The specific operation steps of the present invention are:
[0124] Step 1: The sub-node entity on the blockchain registers: The sub-node entity on the blockchain registers with the regulatory agency, obtains its own identity address address, and generates a public-private key pair pk and sk;
[0125] Step 2: The digital factory on the blockchain encrypts the data elements: After the digital factory on the blockchain produces the data element summary, the digital factory needs to use a hash function to perform hash calculation on the data element summary data and generate the corresponding ciphertext;
[0126] Step 3: The digital factory on the blockchain uploads the data element summary to the Interstellar File System: Use zero-knowledge proof technology to encrypt the data element summary w←zkproof(Data), and publish w to the blockchain. A zero-knowledge proof verification contract smart-zk will be deployed on the blockchain to verify w. At the same time, the digital factory uploads the data information to the Interstellar File System IPFS.
[0127] Step 4. The sub-node entity on the blockchain verifies the data element summary: The sub-node entity on the blockchain verifies the contract smart-zk through zero-knowledge proof, and automatically verifies the zero-knowledge proof w generated by the data element summary. If the returned result is true, it means that the data element summary generated by the digital factory meets the user's needs. The Interstellar File System IPFS will issue the identity address address certificate of the sub-node entity on the blockchain to the digital factory. Otherwise, it means that the needs are not met and data cannot be shared with it.
[0128] Step 5: Token authorization: After receiving the credentials, the digital factory sends the application materials to the regulatory agency. The regulatory agency verifies the legitimacy of all information and issues an authorization token.
[0129] Step 6. Data sharing: After the digital factory obtains the authorization token, and uploads the authorization token to the blockchain system, the sub-node entity on the blockchain obtains the corresponding information from the blockchain and then obtains the ciphertext from the Interstellar File System IPFS. The sub-node entity on the blockchain can compare the decrypted data with the hash value of the data element summary to determine the integrity and correctness of the data.
[0130] Finally, it should be noted that the above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A supervised industrial data element trusted sharing method, characterized in that: The steps include: S1. The sub-node entity on the blockchain registers: The sub-node entity on the blockchain registers with the regulatory agency, obtains its own identity address address, and generates a public-private key pair pk and sk; S2. The digital factory on the blockchain encrypts the data elements: After the digital factory on the blockchain produces the data element summary, the digital factory needs to use the hash function to perform hash calculation on the data element summary data and generate the corresponding ciphertext; S3. The digital factory on the blockchain uploads the data element summary to the Interstellar File System: Use zero-knowledge proof technology to encrypt the data element summary w←zkproofData, and publish w to the blockchain. A zero-knowledge proof verification contract smart-zk will be deployed on the blockchain to verify w. At the same time, the digital factory uploads the data information to the Interstellar File System IPFS. S4. The sub-node entity on the blockchain verifies the data element summary: The sub-node entity on the blockchain verifies the contract smart-zk through zero-knowledge proof, and automatically verifies the zero-knowledge proof w generated by the data element summary. If the returned result is true, it means that the data element summary generated by the digital factory meets the user's needs. The Interstellar File System IPFS will issue the identity address address certificate of the sub-node entity on the blockchain to the digital factory. Otherwise, it means that the needs are not met and data cannot be shared with it. S5. Token authorization: After receiving the credentials, the digital factory sends the application materials to the regulatory agency. The regulatory agency verifies the legitimacy of all information and issues an authorization token. S6. Data sharing: After the digital factory obtains the authorization token, and uploads the authorization token to the blockchain system, the sub-node entity on the blockchain obtains the corresponding information from the blockchain and then obtains the ciphertext from the Interstellar File System IPFS. The sub-node entity on the blockchain can compare the decrypted data with the hash value of the data element summary to determine the integrity and correctness of the data.
2. A supervised industrial data element trusted sharing method according to claim 1, characterized in that: The regulatory agency in S1 receives the local IP address and MAC address sent by the sub-node entity on the blockchain, combines them into a new numerical string, and calculates the new numerical string through a hash function to obtain an identity address on the blockchain; The public-private key pair pk and sk is generated by OpenSSL; First generate the RSA private key and set the password protection for the private key; Then generate the RSA public key. After the private key is generated, extract the public key from the private key.
3. A supervised industrial data element trusted sharing method according to claim 1, characterized in that: The interaction steps of the zero-knowledge proof technology in S3 are as follows: Claims and Challenges: The subnode entity on the blockchain declares to the digital factory that it knows a certain data element; Randomly select a challenge: The digital factory issues a challenge to the sub-node entity on the blockchain, requiring the sub-node entity on the blockchain to show some form of proof; Response and verification: The sub-node entity on the blockchain sends the identity address address, public-private key pair pk and sk to the digital factory, and provides them to the verifier. The digital factory determines whether the sub-node entity on the blockchain actually knows the secret information based on the response.
4. A supervised industrial data element trusted sharing method according to claim 1, characterized in that: The Interplanetary File System IPFS in the S3 is used as an intermediate for the interaction between the sub-node entities on the blockchain and the digital factory through zero-knowledge proof technology. The digital factory uploads the data element summary to the Interstellar File System IPFS; The sub-node entity on the blockchain verifies the data element summary uploaded by the digital factory to the Interstellar File System IPFS, and verifies the data element summary through the zero-knowledge proof verification contract smart-zk to determine whether the data element summary is the data information it needs; When the returned result is true, the Interstellar File System IPFS will issue the identity address address certificate and public-private key pair pk and sk of the child node entity on the blockchain to the digital factory.
5. The method for trustworthy sharing of supervised industrial data elements according to claim 1 is characterized in that: The data element summary in S2 is generated by extracting features from the data information through feature extraction. The calculation of feature extraction is as follows: Among them, TF(x i ,d) reflects the importance of a word in the data information. The more frequently it appears, the higher the TF value, x i represents the word for calculation, and d represents the word x i The number of times it appears in the data information, It is used to measure the prevalence of a word in the entire corpus. The higher the value, the less common the word is in the corpus, expressed as the total number of texts in the corpus, DF(x i ) means that it contains word x i The number of texts; If a word appears frequently in the data information that needs to be detected and calculated, but appears less frequently in other texts, the value will be very high, indicating the importance of the word to the data information that needs to be detected and calculated; On the contrary, if the word frequency is low or the word appears in many texts, the value will be low, indicating that the word is not important for the data information that needs to be detected and calculated.
6. A supervised industrial data element trusted sharing method according to claim 1, characterized in that: The data element summary data in S2 is hashed and the data element summary is converted into ciphertext: The data element summary is converted into binary format and the data element summary is filled; Use a fixed initial hash value; Split the padded data element summary into fixed-size blocks and process each block; Apply a compression function to each data block, combining the current hash value with the block's data to generate a new hash value; After all blocks are processed, the final hash value is obtained; The formula for outputting the hash value is expressed as: H=f(H prev ,M), Where: H is the current hash value, H prev is the initial hash value, and M is the data block currently being processed.
7. A supervised industrial data element trusted sharing method according to claim 1, characterized in that: The steps of encrypting the data element summary using the zero-knowledge proof technology in S3 are as follows: Public and private key generation: Generate public and private key pairs pk and sk through a trusted regulatory agency; Writing circuits: Modeling the subnode entities on the blockchain, using a circuit representation method that defines the relationship between input and output. The subnode entities on the blockchain prove that they have found the input that makes the circuit output true. Generate proof: Using the private key and input data, the subnode entity on the blockchain generates a concise proof. A proof is an encrypted statement that the subnode entity on the blockchain knows a certain data information without revealing the specific content. Generate verification data: The verifier uses the public key and proof data to verify whether the statement of the sub-node entity on the blockchain is valid. If the proof is valid, the sub-node entity on the blockchain has successfully proved the statement.
8. The method for trustworthy sharing of supervised industrial data elements according to claim 1 is characterized in that: The regulator in S4 is used to generate a concise proof for the subnode entity on the blockchain: After receiving the proof sent by the sub-node entity on the blockchain, the Interplanetary File System IPFS sends the proof sent by the sub-node entity on the blockchain to the digital factory; The digital factory then transmits the proof sent by the sub-node entity on the blockchain to the regulatory agency. The regulatory agency, as a verifier, uses the public key and proof data to verify whether the statement of the sub-node entity on the blockchain is valid; The regulatory agency verifies the legitimacy of all information and issues an authorization token to the digital factory; Only digital factories can encrypt and upload data information.
9. A supervised industrial data element trusted sharing method according to claim 1, characterized in that: The application materials in S5 include the data element summary of the private key signature, the digital factory identity address, the sub-node entity identity address on the blockchain, the address of the interplanetary file system returning the ciphertext, and the storage address of the data information returned by the interplanetary file system IPFS; The authorization token includes the sub-node entity identity address on the blockchain, the ciphertext of the data element summary, and the storage address of the data information returned by the InterPlanetary File System IPFS.
10. A supervised industrial data element trusted sharing system, characterized by: The system is used to implement the method described in any one of claims 1 to 9, including a digital factory, a regulatory agency, an interplanetary file system IPFS, a blockchain, and a sub-node entity on the blockchain; As a provider of data elements, the digital factory uses its own data safely; The regulatory agency, as a trusted third-party regulatory entity, is responsible for full-process supervision; The Interplanetary File System (IPFS) is responsible for storing real data information and data element summaries, and for enabling the upload and download of data information; The blockchain is responsible for storing transaction information of data elements and supporting smart contracts to implement functions on the chain; The sub-node entities on the blockchain are users of data information.