A production data monitoring method, device, blockchain node and storage medium

The method uses a blockchain node to secure production data by performing hash operations and storing data in a blockchain ledger, addressing tampering issues and enhancing data integrity and trust in environmental monitoring.

CN112749232BActive Publication Date: 2024-12-31北京佳华智联科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011643823.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-30
Publication Date
2024-12-31
Estimated Expiration
2040-12-30

AI Technical Summary

Technical Problem

The security of production data management in environmental monitoring is compromised due to potential malicious tampering during network transmission and storage on regulatory platforms.

Method used

A production data monitoring method utilizing a blockchain node that performs hash operations on collected data, compares hash values, and stores data in a blockchain ledger to ensure integrity, combined with evidence data synchronization and difference percentage calculations to detect tampering.

Benefits of technology

Enhances the security of production data management by effectively detecting and preventing malicious tampering during network transmission and storage, ensuring data integrity and trust between regulators and enterprises.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112749232B_ABST
    Figure CN112749232B_ABST
Patent Text Reader

Abstract

The present application provides a production data monitoring method, device, blockchain node and storage medium, the method comprising: receiving a storage request, parsing the storage data and a first hash value in the storage request, the storage data is the production data collected by the collection device, and the first hash value is obtained by the collection device performing a hash operation on the storage data; performing a hash operation on the storage data to obtain a second hash value; if the first hash value is the same as the second hash value, storing the storage data in the blockchain ledger of the blockchain node, and synchronizing the blockchain ledger to the remaining blockchain nodes in the blockchain network. In the above implementation process, the problem of insufficient security in the management of production data is effectively improved by combining hash value comparison with the blockchain ledger, thereby increasing the security of the management of production data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical fields of environmental monitoring and blockchain, and specifically, to a production data monitoring method, device, blockchain node and storage medium. Background Art

[0002] In the current environmental monitoring work, the regulatory units monitor the production data generated in the production process of enterprises in accordance with the law. The regulatory units compulsorily install collection equipment in the production environment of the enterprises, collect the production data generated in the production process through the collection equipment, upload and store the production data on the regulatory platform, and then use the production data on the regulatory platform as the basis for the punishment of the enterprises; among them, production data, for example: the waste water, waste gas and waste materials discharged by the enterprises in the production process. However, in practice, it is found that the production data may be maliciously tampered by the enterprises, regulators or attackers during the network transmission process and after being stored on the regulatory platform. In other words, the security of managing production data in the current environmental monitoring work is not enough. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a production data monitoring method, device, blockchain node and storage medium, which are used to improve the problem of insufficient security in the management of production data.

[0004] The embodiment of the present application provides a production data monitoring method, which is applied to a blockchain node in a blockchain network, including: receiving a proof request, and parsing out the proof data and a first hash value in the proof request, wherein the proof data is the production data collected by a collection device, and the first hash value is obtained by the collection device performing a hash operation on the proof data; performing a hash operation on the proof data to obtain a second hash value; if the first hash value is the same as the second hash value, then storing the proof data in the blockchain ledger of the blockchain node, and synchronizing the blockchain ledger to the remaining blockchain nodes in the blockchain network. In the above implementation process, by combining hash value comparison with blockchain ledger, the problem of production data being difficult to detect after being maliciously tampered with during network transmission and after being stored on the regulatory platform is effectively improved, thereby increasing the security of production data management.

[0005] Optionally, in the embodiment of the present application, after synchronizing the blockchain account book to the remaining blockchain nodes in the blockchain network, it also includes: obtaining production data, and obtaining evidence data from the synchronized blockchain account book; calculating the difference percentage between the production data and the evidence data. In the above implementation process, by obtaining the evidence data from the synchronized blockchain account book and calculating the difference percentage between the production data and the evidence data, it is possible to quickly know whether the production data has been tampered with during the network transmission process, thereby increasing the security of the management of production data.

[0006] Optionally, in an embodiment of the present application, obtaining production data includes: receiving production data sent by a collection device; or receiving production data sent by a report server, where the production data is collected by the collection device and sent to the report server. In the above implementation process, by directly receiving the production data sent by the collection device, or obtaining the production data from the report server, the flexibility of obtaining data is increased.

[0007] Optionally, in an embodiment of the present application, after synchronizing the blockchain ledger to the remaining blockchain nodes in the blockchain network, it further includes: sending a successful evidence storage response to the collection device so that the collection device sends the production data collected in the next cycle. In the above implementation process, the blockchain node sends a successful evidence storage response to the collection device so that the collection device sends the production data collected in the next cycle, so that the blockchain node can receive the production data collected in the next cycle, thereby speeding up the processing of production data.

[0008] Optionally, in an embodiment of the present application, receiving an evidence request and parsing out the evidence data and the first hash value in the evidence request includes: receiving an evidence request sent by a collection device, the evidence request being obtained by encrypting the evidence data and the first hash value using a national secret algorithm; decrypting the evidence request using a national secret algorithm to obtain the evidence data and the first hash value. In the above implementation process, by encrypting the evidence data and the first hash value using a national secret algorithm, and decrypting the evidence request using a national secret algorithm, it is avoided that the evidence data and the first hash value are easily known and cracked by an attacker, which effectively increases the difficulty of knowing the plain text of the evidence data and the first hash value, thereby increasing the security of managing production data.

[0009] Optionally, in an embodiment of the present application, receiving an evidence request and parsing out the evidence data and the first hash value in the evidence request include: receiving an evidence request sent by an encrypted transmission device, the evidence request is obtained by the encrypted transmission device using a national secret algorithm implemented in hardware to encrypt the evidence data and the first hash value, and the evidence data and the first hash value are sent by the acquisition device to the encrypted transmission device; decrypting the evidence request using the national secret algorithm to obtain the evidence data and the first hash value. In the above implementation process, by encrypting the evidence data and the first hash value using a national secret algorithm implemented in hardware, it is more difficult for an attacker to learn the specific encryption algorithm type, thereby increasing the difficulty of learning the plain text of the evidence data and the first hash value that can be easily obtained by an attacker, thereby increasing the security of managing production data.

[0010] The embodiment of the present application also provides a production data monitoring method, which is applied to an encrypted transmission device, including: receiving evidence data and a first hash value sent by a collection device, the evidence data is the production data collected by the collection device, and the first hash value is obtained by the collection device performing a hash operation on the evidence data; encrypting the evidence data and the first hash value to obtain an evidence request; sending the evidence request to a blockchain node in the blockchain network, so that the blockchain node decrypts the evidence request, and after determining that the first hash value is the same as the second hash value obtained by the operation, the decrypted evidence data is stored in the blockchain ledger of the blockchain node. In the above implementation process, by combining hash value comparison and blockchain ledger, the problem of production data being difficult to detect after being maliciously tampered with during network transmission and after being stored on the regulatory platform is effectively improved, thereby increasing the security of production data management.

[0011] The embodiment of the present application also provides a production data monitoring device, which is applied to a blockchain node in a blockchain network, including: an evidence data receiving module, which is used to receive an evidence request and parse out the evidence data and a first hash value in the evidence request, wherein the evidence data is production data collected by a collection device, and the first hash value is obtained by the collection device performing a hash operation on the evidence data; a data hash operation module, which is used to perform a hash operation on the evidence data to obtain a second hash value; and an evidence data storage module, which is used to store the evidence data in the blockchain ledger of the blockchain node if the first hash value is the same as the second hash value, and synchronize the blockchain ledger to the remaining blockchain nodes in the blockchain network.

[0012] Optionally, in an embodiment of the present application, the production data monitoring device further includes: a production data acquisition module, used to acquire production data and acquire evidence data from the synchronized blockchain ledger; and a data difference calculation module, used to calculate the percentage of difference between the production data and the evidence data.

[0013] Optionally, in an embodiment of the present application, the production data acquisition module is specifically used to: receive production data sent by a collection device; or receive production data sent by a report server, where the production data is collected by the collection device and sent to the report server.

[0014] Optionally, in the embodiment of the present application, the production data monitoring device may further include: an evidence storage response sending module, which is used to send an evidence storage success response to the collection device, so that the collection device sends the production data collected in the next cycle.

[0015] Optionally, in an embodiment of the present application, the evidence data receiving module includes: a first request receiving module, used to receive an evidence request sent by a collection device, the evidence request is obtained by encrypting the evidence data and a first hash value using a national secret algorithm; a first request decryption module, used to decrypt the evidence request using a national secret algorithm to obtain the evidence data and the first hash value.

[0016] Optionally, in an embodiment of the present application, the evidence data receiving module includes: a first request receiving module, used to receive an evidence request sent by an encrypted transmission device, the evidence request is obtained by the encrypted transmission device using a national secret algorithm implemented in hardware to encrypt the evidence data and a first hash value, and the evidence data and the first hash value are sent by the collection device to the encrypted transmission device; a second request decryption module, used to decrypt the evidence request using the national secret algorithm to obtain the evidence data and the first hash value.

[0017] The embodiment of the present application also provides a production data monitoring device, which is applied to an encrypted transmission device, including: an evidence hash receiving module, which is used to receive evidence data and a first hash value sent by a collection device, the evidence data is the production data collected by the collection device, and the first hash value is obtained by the collection device performing a hash operation on the evidence data; an evidence request obtaining module, which is used to encrypt the evidence data and the first hash value to obtain an evidence request; an evidence request sending module, which is used to send an evidence request to a blockchain node in a blockchain network, so that the blockchain node decrypts the evidence request, and after determining that the first hash value is the same as the second hash value obtained by the operation, stores the decrypted evidence data in the blockchain ledger of the blockchain node.

[0018] An embodiment of the present application also provides a blockchain node, including: a processor and a memory, the memory storing machine-readable instructions executable by the processor, and the machine-readable instructions performing the method described above when executed by the processor.

[0019] An embodiment of the present application further provides a storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method described above is executed. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0021] Figure 1 A flow chart of a production data monitoring method provided by an embodiment of the present application is shown;

[0022] Figure 2 A schematic diagram of a calculation process of a difference percentage between production data and stored evidence data provided in an embodiment of the present application is shown;

[0023] Figure 3 A schematic diagram of the communication process between a collection device, an encryption transmission device and a blockchain node provided in an embodiment of the present application is shown;

[0024] Figure 4 A schematic diagram of the structure of a production data monitoring device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0025] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0026] Before introducing the production data monitoring method provided in the embodiment of the present application, some concepts involved in the embodiment of the present application are first introduced:

[0027] Blockchain is a series of text records that are connected and protected by cryptography. The series of text records here are also called blocks. Each block contains the encrypted hash of the previous block, the corresponding timestamp and transaction data. The transaction data here is usually represented by the hash value calculated by the Merkle tree algorithm. This design makes the block content difficult to tamper with.

[0028] Blockchain network refers to the network composed of all node devices in the blockchain; blockchain node refers to an electronic device in the blockchain network that has the function of executing computer programs, which can be a device terminal or a server.

[0029] A shared ledger, also known as a blockchain ledger, distributed ledger or decentralized ledger, means that each blockchain node in the blockchain network stores its own ledger. Some people also refer to the distributed ledger as the ledger in the blockchain network. Distributed ledger technology is a technology for copying, sharing and synchronizing electronic data on a network consisting of multiple sites or multiple institutions.

[0030] The Secure Hash Algorithm (SHA) is a family of cryptographic hash functions and is a FIPS-certified secure hash algorithm. SHA is an algorithm that can calculate a fixed-length string (also known as a message digest) corresponding to a digital message.

[0031] It should be noted that the production data monitoring method provided in the embodiment of the present application can be executed by a blockchain node, where the blockchain node refers to a device terminal or server with the function of executing a computer program, such as an x86 server and a non-x86 server. The non-x86 server includes mainframes, minicomputers and UNIX servers.

[0032] Before introducing the production data monitoring method provided in the embodiment of the present application, the application scenarios to which the production data monitoring method is applicable are first introduced. The application scenarios here include but are not limited to: using the production data monitoring method to effectively monitor the production data of an enterprise or factory during the production process. The production data here includes but is not limited to: the quality and quantity of products produced, etc., as well as waste water, waste gas and waste residue discharged during the production process, etc., thereby increasing the security of production data management and strengthening the level of trust between the regulator and the regulated party.

[0033] See also Figure 1 The flowchart of the production data monitoring method provided by the embodiment of the present application is shown; the production data monitoring method can be applied to the blockchain node in the blockchain network, that is, the method can be executed by the blockchain node; the main idea of ​​the production data monitoring method is to effectively improve the problem of production data being difficult to detect after being maliciously tampered with during network transmission and after being stored on the regulatory platform through the combination of hash value comparison and blockchain ledger, thereby increasing the security of production data management; the above-mentioned production data monitoring method may include:

[0034] Step S110: The blockchain node receives the evidence storage request and parses the evidence data and the first hash value in the evidence storage request.

[0035] The evidence request is to let the blockchain node store the evidence data in the evidence request in the blockchain account book (i.e., the shared account book in the blockchain network). The evidence request may include: evidence data and a first hash value; wherein, the evidence data is the production data of the enterprise collected by the collection device during the production process, and the first hash value is obtained by the collection device performing a hash operation on the evidence data. Of course, in the specific practice process, the above-mentioned evidence request may also include more field information, such as: collection device identification (ID), timestamp, random number, etc.; wherein, the collection device identification here is used to distinguish the evidence data sent by different collection devices, and the timestamp and random number here are used to prevent replay attacks.

[0036] There are many implementation methods of the above step S110, including but not limited to the following:

[0037] In the first implementation mode, the collection device directly encrypts and sends the evidence storage request, and the blockchain node decrypts the evidence storage request. This implementation mode may specifically include:

[0038] Step S111: The collection device performs hash calculation on the collected evidence data to obtain a first hash value, and uses a national secret algorithm to encrypt the evidence data and the first hash value to obtain an evidence request, and then sends the evidence request to the blockchain node.

[0039] The national secret algorithm, also known as the national secret cryptographic algorithm, refers to the encryption and decryption algorithm implemented using the national secret cryptographic soft algorithm standard; the national secret algorithm includes: SM2 algorithm, SM3 algorithm and SM4 algorithm; among them, SM2 algorithm is an asymmetric encryption algorithm, SM3 algorithm is a hash function, and SM4 algorithm is a symmetric encryption algorithm.

[0040] An implementation example of the above-mentioned step S111 is as follows: a sniffer software may be running on the collection device, and the collection device may use the running sniffer software to automatically discover and collect production data in the enterprise production system. The production data here is the evidence data that needs to be stored in the blockchain ledger. Then, the hash function in the SM3 algorithm is used to perform hash calculation on the evidence data to obtain a first hash value, and the national secret algorithm is used to encrypt the evidence data and the first hash value to obtain an evidence request, and the evidence request is sent to the blockchain node through the Transport Layer Security (TLS) protocol or the Secure Sockets Layer (SSL) protocol.

[0041] The specific process of using the national secret algorithm to encrypt the evidence data and the first hash value to obtain the evidence request is as follows: first, the blockchain node and the collection device exchange certificates and public keys generated by the SM2 algorithm; then, the blockchain node and the collection device mutually authenticate the certificates and public keys, and then negotiate the key used by the SM4 algorithm; finally, the collection node can use the negotiated key to encrypt the evidence data and the first hash value according to the SM4 algorithm to obtain the evidence request.

[0042] Step S112: The blockchain node receives the evidence storage request sent by the collection device, and decrypts the evidence storage request using the national encryption algorithm to obtain the evidence data and the first hash value.

[0043] An implementation example of the above step S112 is as follows: a blockchain node in the blockchain network receives a storage request sent by a collection device through a TLS protocol or an SSL protocol; then, after receiving the storage request, the blockchain node uses the key obtained through the above negotiation, and decrypts the storage request according to the SM4 algorithm in the national encryption algorithm to obtain the decrypted storage data and the first hash value.

[0044] In the second implementation mode, the collection device sends the production data to the encryption transmission device, the encryption transmission device encrypts and sends the evidence request, and the blockchain node decrypts the evidence request. This implementation mode may specifically include:

[0045] Step S113: The collection device performs hash calculation on the collected evidence data to obtain a first hash value, and sends the evidence data and the first hash value to the encryption transmission device.

[0046] The encryption transmission device refers to a device that encrypts and transmits the evidence data and the first hash value. The encryption transmission device can communicate with the collection device through a universal serial bus (USB) interface.

[0047] Among them, the implementation principle and implementation method of step S113 are similar to the implementation principle and implementation method of step S111. The difference is that the sending object and the sending data are different. Step S111 is to send an existence request to the blockchain node, while step S113 is to send the evidence data and the first hash value to the encrypted transmission device; therefore, the implementation method and implementation principle of this step will not be explained here. If there is any unclear point, please refer to the description of step S111.

[0048] Step S114: The encrypted transmission device receives the evidence data and the first hash value sent by the collection device, and uses the national encryption algorithm implemented in hardware to encrypt the evidence data and the first hash value, obtains the evidence request, and sends the evidence request to the blockchain node.

[0049] The implementation method of the above step S114 is, for example: the above encryption transmission device can also be connected to an encryption chip. After receiving the evidence data and the first hash value sent by the acquisition device, the encryption transmission device can also use the encryption chip to implement the national secret algorithm implemented in hardware to encrypt the evidence data and the first hash value, obtain the evidence request, and send the evidence request to the blockchain node; wherein the encryption chip refers to a physical chip of the national secret algorithm implemented in hardware. Optionally, in the specific practice, the encryption transmission device can also communicate with a fingerprint authentication device through a USB interface. The fingerprint authentication device is used to perform fingerprint authentication before the encryption transmission device and the acquisition device establish communication. After the fingerprint authentication is passed, the encryption transmission device and the acquisition device can establish communication.

[0050] Step S115: The blockchain node receives the evidence request sent by the encrypted transmission device, and decrypts the evidence request using the national encryption algorithm to obtain the evidence data and the first hash value.

[0051] Among them, the implementation principle and implementation method of step S115 are similar to the implementation principle and implementation method of step S110. Therefore, the implementation method and implementation principle of this step will not be explained here. If there are any unclear points, please refer to the description of step S110.

[0052] After step S110, step S120 is executed: the blockchain node performs a hash operation on the stored evidence data to obtain a second hash value.

[0053] An implementation example of the above step S120 is: the blockchain node uses a hash function to perform a hash operation on the stored data to obtain a second hash value; wherein the hash function here includes but is not limited to: the hash function in SM3 of the national secret algorithm, MD5, SHA-256 / 224 and SHA-512 / 384 algorithms.

[0054] After step S120, step S130 is executed: if the first hash value is the same as the second hash value, the blockchain node stores the evidence data in the blockchain ledger of the blockchain node, and synchronizes the blockchain ledger to the remaining blockchain nodes in the blockchain network.

[0055] An implementation example of the above-mentioned step S130 is as follows: if the first hash value is the same as the second hash value, the blockchain node stores the evidence data in the blockchain ledger of the blockchain node, and synchronizes the blockchain ledger to the remaining blockchain nodes in the blockchain network; it can be understood that if the first hash value is different from the second hash value, it means that the evidence data has been tampered with during the network transmission process. At this time, the collection device can be required to resend the evidence request including the evidence data and the first hash value. At the same time, an early warning prompt message can also be generated and output to prompt the administrator that the system is under attack, etc.

[0056] Optionally, after the evidence data is stored in the blockchain ledger of the blockchain node, a response can also be sent to the collection device to indicate whether the evidence data has been stored successfully. For example, the blockchain node determines whether the evidence data is stored in the blockchain ledger of the blockchain node, and synchronizes the blockchain ledger to the remaining blockchain nodes in the blockchain network; if so, the blockchain node sends a successful evidence response to the collection device, so that the collection device sends the production data collected in the next cycle; if not, the blockchain node sends a failed evidence response to the collection device, so that the collection device resends the production data collected in the current cycle.

[0057] In the above implementation process, after receiving the evidence request for storing the production data, the first hash value calculated during the collection is compared with the second hash value obtained by the blockchain node operation, thereby effectively improving the problem that the production data is difficult to detect after being tampered with during network transmission. At the same time, by storing the evidence data in the evidence request in the blockchain ledger and utilizing the tamper-proof feature of the blockchain ledger, the problem that the production data is difficult to detect after being tampered with after storage is prevented. In other words, by combining hash value comparison and blockchain ledger, the problem that the production data is difficult to detect after being maliciously tampered with during network transmission and after being stored on the regulatory platform is effectively improved, thereby increasing the security of production data management.

[0058] See also Figure 2 A schematic diagram of a calculation process of a difference percentage between production data and stored data provided in an embodiment of the present application is shown; optionally, after synchronizing the blockchain ledger to the remaining blockchain nodes in the blockchain network, the blockchain node may also calculate whether there is a difference between the production data and the stored data, and the calculation process of the difference percentage between the production data and the stored data includes:

[0059] Step S210: The blockchain node obtains production data and obtains evidence data from the synchronized blockchain ledger.

[0060] There are many implementation methods of the above step S210, including but not limited to the following:

[0061] The first implementation mode is to directly receive the production data sent by the collection device. For example, the collection device collects and sends the production data to the blockchain node in real time, and then the blockchain node receives the production data sent by the collection device; at the same time, the blockchain node can also synchronize the blockchain account book (i.e., the shared account book in the blockchain network) from the blockchain network, and then obtain the evidence data from the synchronized blockchain account book. The second implementation mode is to forward the production data sent by the collection device to the blockchain node by the report server. For example, the collection device collects the production data in real time and sends the collected production data to the report server. After receiving the production data sent by the collection device, the report server first stores the production data in the file system, and then sends the production data stored in the file system to the blockchain node; that is, the production data is collected by the collection device and sent to the report server, and then forwarded to the blockchain node by the report server; at the same time, the blockchain node can also synchronize the blockchain account book from the blockchain network, and then obtain the evidence data from the synchronized blockchain account book.

[0062] During the specific implementation process, the above-mentioned report server can also provide report services, such as: viewing, querying, downloading and exporting report files from the enterprise production data system in the form of charts according to fields such as preset time intervals and preset report items, wherein the above-mentioned preset time intervals and preset report items can be set according to specific circumstances, for example: retrieving data within one day or one month.

[0063] After step S210, step S220 is executed: the blockchain node calculates the difference percentage between the production data and the stored data.

[0064] The implementation method of the above step S220 is, for example: the blockchain node calculates the difference percentage between the production data received from the acquisition device or the encrypted transmission device and the evidence data obtained from the blockchain account book, and filters the difference percentage according to the preset time interval and the preset report item and other fields, obtains the filtered difference data, and exports the difference data as a monitoring report. In the specific implementation process, the data in the monitoring report can also be retrieved according to the preset time interval and the preset report item and other fields, or the data extracted from the blockchain account book according to the preset time interval and the preset report item and other fields can be retrieved; wherein the above preset time interval and the preset report item can be set according to the specific situation, for example: retrieving data within one day or one month.

[0065] Optionally, in the specific implementation process, a graphical report can also be output according to the difference percentage. For example, the difference percentage is compared with the preset ratio. If the difference percentage is greater than 10%, a red code is output; if the difference percentage is between 5% and 10%, a yellow code is output; if the difference percentage is less than 5%, a green code is output. Three results can be output in this way: red code, yellow code or green code; among which, red code indicates serious exceeding of the standard, yellow code indicates exceeding of the standard, and green code indicates within the control range; of course, the preset ratio here can be set according to the specific situation, for example, set to 5% or 10%, etc.

[0066] In the above implementation process, by obtaining the evidence data from the synchronized blockchain ledger and calculating the percentage of difference between the production data and the evidence data, it is possible to quickly determine whether the production data has been tampered with during network transmission, thereby increasing the security of production data management.

[0067] See also Figure 3 The schematic diagram of the communication process between the collection device, the encryption transmission device and the blockchain node provided in the embodiment of the present application is shown; the specific communication process between the collection device, the encryption transmission device and the blockchain node may include:

[0068] Step S310: The collection device performs hash calculation on the evidence data to obtain a first hash value, and sends the evidence data and the first hash value to the encryption transmission device.

[0069] Step S320: The encryption transmission device receives the evidence data and the first hash value sent by the collection device, and encrypts the evidence data and the first hash value using a national encryption algorithm implemented in hardware to obtain an evidence request, and then sends the evidence request to the blockchain node in the blockchain network.

[0070] Step S330: The blockchain node receives the evidence request sent by the encrypted transmission device, and decrypts the evidence request using the national encryption algorithm to obtain the evidence data and the first hash value.

[0071] Among them, the implementation principle and implementation method of step S310 to step S330 are similar to the implementation principle and implementation method of step S113 to step S115. Therefore, the implementation method and implementation principle of this step will not be explained here. If there are any unclear points, please refer to the description of step S113 to step S115.

[0072] Step S340: The blockchain node performs a hash operation on the stored evidence data to obtain a second hash value.

[0073] Step S350: The blockchain node determines whether the first hash value is the same as the second hash value. If the first hash value is the same as the second hash value obtained by the operation, the decrypted evidence data is stored in the blockchain ledger of the blockchain node, and the blockchain ledger is synchronized to the remaining blockchain nodes in the blockchain network.

[0074] Among them, the implementation principle and implementation method of step S340 to step S350 are similar to the implementation principle and implementation method of step S120 to step S130. Therefore, the implementation method and implementation principle of this step will not be explained here. If there are any unclear points, please refer to the description of step S120 to step S130.

[0075] In the above implementation process, by combining hash value comparison and blockchain ledger, the problem of production data being difficult to detect after being maliciously tampered with during network transmission and after being stored on the regulatory platform is effectively improved, thereby increasing the security of production data management.

[0076] See also Figure 4 The structural diagram of the production data monitoring device provided in the embodiment of the present application is shown. The embodiment of the present application provides a production data monitoring device 400, which is applied to a blockchain node in a blockchain network, including:

[0077] The evidence data receiving module 410 is used to receive an evidence request and parse out the evidence data and the first hash value in the evidence request. The evidence data is the production data collected by the collection device, and the first hash value is obtained by the collection device performing a hash operation on the evidence data.

[0078] The data hash operation module 420 is used to perform a hash operation on the stored evidence data to obtain a second hash value.

[0079] The evidence data storage module 430 is used to store the evidence data in the blockchain ledger of the blockchain node if the first hash value is the same as the second hash value, and synchronize the blockchain ledger to the remaining blockchain nodes in the blockchain network.

[0080] Optionally, in the embodiment of the present application, the production data monitoring device further includes:

[0081] The production data acquisition module is used to obtain production data and obtain evidence data from the synchronized blockchain ledger.

[0082] The data difference calculation module is used to calculate the difference percentage between the production data and the stored data.

[0083] Optionally, in the embodiment of the present application, the production data acquisition module is specifically used to:

[0084] Receive production data sent by a collection device; or receive production data sent by a report server, where the production data is collected by the collection device and sent to the report server.

[0085] Optionally, in the embodiment of the present application, the production data monitoring device may further include:

[0086] The evidence storage response sending module is used to send a successful evidence storage response to the collection device so that the collection device can send the production data collected in the next cycle.

[0087] Optionally, in an embodiment of the present application, the evidence data receiving module includes:

[0088] The first request receiving module is used to receive the evidence storage request sent by the collection device, and the evidence storage request is obtained by encrypting the evidence data and the first hash value using the national secret algorithm.

[0089] The first request decryption module is used to decrypt the evidence request using the national encryption algorithm to obtain the evidence data and the first hash value.

[0090] Optionally, in an embodiment of the present application, the evidence data receiving module includes:

[0091] The first request receiving module is used to receive an evidence request sent by an encrypted transmission device. The evidence request is obtained by the encrypted transmission device by encrypting the evidence data and the first hash value using a national secret algorithm implemented in hardware. The evidence data and the first hash value are sent by the collection device to the encrypted transmission device.

[0092] The second request decryption module is used to decrypt the evidence request using the national secret algorithm to obtain the evidence data and the first hash value.

[0093] The embodiment of the present application provides a production data monitoring device, which is applied to an encrypted transmission device, including:

[0094] The evidence hash receiving module is used to receive the evidence data and the first hash value sent by the collection device, the evidence data is the production data collected by the collection device, and the first hash value is obtained by the collection device performing a hash operation on the evidence data.

[0095] The evidence request obtaining module is used to encrypt the evidence data and the first hash value to obtain the evidence request.

[0096] The evidence request sending module is used to send an evidence request to a blockchain node in the blockchain network so that the blockchain node decrypts the evidence request and, after determining that the first hash value is the same as the second hash value obtained by the operation, stores the decrypted evidence data in the blockchain ledger of the blockchain node.

[0097] It should be understood that the device corresponds to the above-mentioned production data monitoring method embodiment and can execute the various steps involved in the above-mentioned method embodiment. The specific functions of the device can be found in the above description. To avoid repetition, the detailed description is appropriately omitted here. The device includes at least one software function module that can be stored in a memory in the form of software or firmware or solidified in the operating system (OS) of the device.

[0098] A blockchain node provided in an embodiment of the present application includes: a processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the machine-readable instructions are executed by the processor, the execution is performed as described above. Figure 1 and Figure 2 The method shown.

[0099] The present application also provides a storage medium on which a computer program is stored. The computer program is executed by a processor as described above. Figure 1 , Figure 2 and Figure 3 The method shown.

[0100] Among them, the storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable red-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, disk or optical disk.

[0101] In several embodiments provided by the embodiments of the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are only schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to the multiple embodiments of the embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a part of the module, program segment or code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also be different from the order of occurrence marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which is mainly determined by the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented using a dedicated hardware-based system that performs a specified function or action, or can be implemented using a combination of dedicated hardware and computer instructions.

[0102] In addition, the functional modules of the various embodiments in the embodiments of the present application can be integrated together to form an independent part, or each module can exist separately, or two or more modules can be integrated to form an independent part.

[0103] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.

[0104] The above description is only an optional implementation manner of the embodiments of the present application, but the protection scope of the embodiments of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the embodiments of the present application, which should be covered within the protection scope of the embodiments of the present application.

Claims

1. A production data monitoring method, characterized in that: Blockchain nodes used in blockchain networks include: Receive a storage request, and use a national secret algorithm to parse out the storage data and the first Hash value in the storage request, wherein the storage request is obtained by encrypting the storage data and the first Hash value using the national secret algorithm, the storage data is production data collected by a collection device, and the first Hash value is obtained by performing a hash operation on the storage data by the collection device; Performing a hash operation on the stored evidence data to obtain a second hash value; If the first hash value is the same as the second hash value, storing the evidence data in the blockchain ledger of the blockchain node, and synchronizing the blockchain ledger to the remaining blockchain nodes in the blockchain network; Among them, after synchronizing the blockchain ledger to the remaining blockchain nodes in the blockchain network, it also includes: obtaining the production data, and obtaining the evidence data from the synchronized blockchain ledger; calculating the difference percentage between the production data and the evidence data, and filtering the difference percentage according to a preset time interval and a preset report item field to obtain the filtered difference data, and then exporting the filtered difference data as a monitoring report.

2. The method according to claim 1, characterized in that The obtaining of the production data comprises: Receiving the production data sent by the acquisition device; Alternatively, the production data sent by the report server is received, and the production data is collected by the collection device and sent to the report server.

3. The method according to claim 1, characterized in that After synchronizing the blockchain ledger to the remaining blockchain nodes in the blockchain network, the method further includes: A successful evidence storage response is sent to the collection device so that the collection device sends the production data collected in the next cycle.

4. The method according to any one of claims 1 to 3, characterized in that: The receiving the evidence storage request and parsing the evidence storage data and the first hash value in the evidence storage request includes: Receiving the evidence storage request sent by the encryption transmission device, where the evidence storage request is obtained by the encryption transmission device using a national secret algorithm implemented in hardware to encrypt the evidence data and the first Hash value, and the evidence data and the first Hash value are sent by the collection device to the encryption transmission device; The evidence storage request is decrypted using the national secret algorithm to obtain the evidence storage data and the first hash value.

5. A production data monitoring method, characterized in that: Applied to encrypted transmission equipment, including: Receiving evidence data and a first hash value sent by a collection device, wherein the evidence data is production data collected by the collection device, and the first hash value is obtained by the collection device performing a hash operation on the evidence data; Encrypt the evidence data and the first hash value using a national secret algorithm to obtain an evidence request; Sending the evidence storage request to a blockchain node in the blockchain network, so that the blockchain node uses the national secret algorithm to decrypt the evidence storage request, and after determining that the first hash value is the same as the second hash value obtained by the operation, storing the decrypted evidence data in the blockchain ledger of the blockchain node; Among them, after synchronizing the blockchain ledger to the remaining blockchain nodes in the blockchain network, it also includes: obtaining the production data, and obtaining the evidence data from the synchronized blockchain ledger; calculating the difference percentage between the production data and the evidence data, and filtering the difference percentage according to a preset time interval and a preset report item field to obtain the filtered difference data, and then exporting the filtered difference data as a monitoring report.

6. A production data monitoring device, characterized in that: Blockchain nodes used in blockchain networks include: an evidence data receiving module, used to receive an evidence request, and parse out evidence data and a first hash value in the evidence request using a national secret algorithm, wherein the evidence request is obtained by encrypting the evidence data and the first hash value using the national secret algorithm, the evidence data is production data collected by a collection device, and the first hash value is obtained by performing a hash operation on the evidence data by the collection device; A data hash operation module, used to perform a hash operation on the stored evidence data to obtain a second hash value; an evidence data storage module, configured to store the evidence data in a blockchain ledger of the blockchain node if the first hash value is the same as the second hash value, and synchronize the blockchain ledger to other blockchain nodes in the blockchain network; Among them, after synchronizing the blockchain ledger to the remaining blockchain nodes in the blockchain network, it also includes: obtaining the production data, and obtaining the evidence data from the synchronized blockchain ledger; calculating the difference percentage between the production data and the evidence data, and filtering the difference percentage according to a preset time interval and a preset report item field to obtain the filtered difference data, and then exporting the filtered difference data as a monitoring report.

7. A blockchain node, characterized in that: include: A processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the machine-readable instructions are executed by the processor, the method according to any one of claims 1 to 5 is performed.

8. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 5 is executed.