A system and method for tracing power material detection information
Through blockchain technology, the power material detection information traceability system is built, which solves the problem of errors and forgery of power material detection information, realizes the immutability and traceability of data, and ensures the authenticity of power material detection information and the power grid. Security.
Patent Information
- Application Number
- CN202111344363.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-15
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2041-11-15
AI Technical Summary
The power material testing base uses manual recording of information, which leads to the easy loss and error of data records, and small enterprises forge inspection information, making it difficult to obtain evidence and trace the bidding of power material.
Use blockchain technology to build a traceability system for power material detection information, including the data layer, network layer, consensus layer and contract layer. Through point-to-point mechanism, consensus mechanism and block finality mechanism, we ensure the immutability and traceability of data. Use the system identification ID and the human identification ID to match to realize the traceability of power supplies.
Effectively prevent data tampering and forgery, ensure the authenticity and reliability of power material inspection information, improve the evidence collection and traceability capabilities of power material tendering, and enhance the safety of power grid.
Smart Images

Figure CN114092047B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electric power material detection, and in particular to an electric power material detection information traceability system and method. Background Art
[0002] Power material testing refers to the testing of power equipment and materials supplied to the State Grid Corporation through on-site witnessing, random testing and third-party testing. The main purpose of conducting power grid material quality testing is to ensure that the quality of equipment and materials entering the power grid meets the standard requirements and to prevent unqualified materials from entering the production and operation links and endangering the safety of the power grid.
[0003] At present, the level of informatization of power material testing bases is generally low, and the test results are mainly recorded manually. Data records are missing or wrong due to human negligence occasionally, which often causes irreversible impacts. In addition, when power grid companies purchase power materials, there is a phenomenon that small enterprises forge test reports to meet bidding requirements, which makes it difficult to obtain evidence for power material bidding, and unqualified products are easily sold to the power grid. Summary of the invention
[0004] The present application provides a system and method for tracing power material inspection information to solve the technical problems in the prior art that power material inspection bases manually record power material inspection information, data records are prone to loss and errors, and small businesses forge power material inspection information, making it difficult to obtain evidence and trace power material bidding.
[0005] The first aspect of the present application discloses a power material detection information traceability system, which is based on blockchain technology and includes a data layer, a network layer, a consensus layer, a contract layer and an application layer;
[0006] The data layer is used to store the full life cycle information of electric power materials, the nodes include an electric power material detection base node and a plurality of common nodes, the electric power material full life cycle information includes electric power material detection information and electric power material life cycle information, and the electric power material detection information is stored in the electric power material detection base node;
[0007] The network layer includes a point-to-point mechanism, which means that any node can process the received full life cycle information of the electric power material, and generate the electric power material life cycle information while receiving the full life cycle information of the electric power material;
[0008] The consensus layer includes a consensus mechanism for preventing transaction fraud and preventing nodes from intentionally tampering with the full life cycle information of the power materials;
[0009] The contract layer includes a block finality mechanism, which is used in the block generation process to prevent nodes from intentionally tampering with the full life cycle information of the power materials;
[0010] The application layer includes a web page for enabling the node to access the power material detection information traceability system;
[0011] The power material detection information traceability system runs the following procedures for tracing power materials:
[0012] Obtaining the power material detection information in the data layer, and verifying and encrypting the power material detection information through the contract layer to generate a genesis block;
[0013] The common nodes generate the electric power material life cycle information through the application layer, the network layer and the consensus layer and store it in the data layer, and then verify and encrypt the electric power material life cycle information through the contract layer to generate other blocks, and the other blocks refer to the blocks after the genesis block;
[0014] According to the genesis block and the other blocks, the full life cycle information of the electric power materials is obtained, wherein the full life cycle information of the electric power materials includes a system identification ID, and any of the system identification IDs corresponds to a group of electric power materials;
[0015] Obtain the human identification ID of any electric power material and match it with the full life cycle information of the electric power material to complete the traceability of any electric power material.
[0016] Optionally, the electric power material life cycle information includes raw material information, production information, processing information, logistics information and transaction information.
[0017] Optionally, the common node includes an accounting node and a verification node, the accounting node is used to make a data record request to the blockchain, and the verification node is used to confirm whether the electric power material life cycle information is authentic.
[0018] Optionally, in the block generation process, the generation of any block includes a first stage, a second stage and a third stage;
[0019] The first stage refers to determining the accounting node and the verification node;
[0020] The second stage refers to the nodes in any block confirming the power material life cycle information in any block and being responsible for the authenticity of any block;
[0021] The third stage refers to adding a timestamp to any of the blocks and connecting them to the main chain of the blockchain.
[0022] Optionally, the first stage, the second stage and the third stage all require 2 / 3 of the nodes in any block to reach a consensus.
[0023] Optionally, a timestamp is added between the genesis block and the other blocks to prevent malicious tampering.
[0024] Optionally, the consensus layer also includes an authoritative proof mechanism, which is used for the nodes to maintain and update the full life cycle information of the electric power materials in accordance with the authoritative proof mechanism. The authoritative proof mechanism means that the nodes are verified by real-name system, and the nodes that deliberately tamper with the data are removed from the electric power material detection information traceability system.
[0025] Optionally, the full life cycle information of the electric power material is stored in the block in the form of a Merkle tree.
[0026] Optionally, the entire life cycle information of the electric power material is hashed and stored in a block.
[0027] The second aspect of the present application discloses a method for tracing power material detection information, which is executed by the power material detection information traceability system disclosed in the first aspect of the present application, and the power material detection information traceability method includes:
[0028] Obtaining the power material detection information in the data layer, and verifying and encrypting the power material detection information through the contract layer to generate a genesis block;
[0029] The common nodes generate the electric power material life cycle information through the application layer, the network layer and the consensus layer and store it in the data layer, and then verify and encrypt the electric power material life cycle information through the contract layer to generate other blocks, and the other blocks refer to the blocks after the genesis block;
[0030] According to the genesis block and the other blocks, the full life cycle information of the electric power material is obtained, wherein the full life cycle information of the electric power material includes a one-to-one correspondence between the electric power material and the system identification ID;
[0031] Obtain the human identification ID of any electric power material and match it with the full life cycle information of the electric power material to complete the traceability of any electric power material.
[0032] The present application relates to the technical field of electric power material detection, and discloses a system and method for traceability of electric power material detection information. The system is based on blockchain technology, including a data layer, a network layer, a consensus layer, a contract layer, and an application layer. For tracing electric power materials, the electric power material detection information is first obtained, verified and encrypted to generate a genesis block, and then the electric power material life cycle information is obtained, verified and encrypted to generate other blocks, wherein during the block generation process, the block finality mechanism in the contract layer prevents the information from being maliciously tampered with. Finally, based on the genesis block and the other blocks, the full life cycle information of the electric power material can be traced. The design of the system identification ID and the human identification ID enables the physical offline electric power material to match the online system identification ID, making it convenient for offline staff to directly obtain online data. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0034] Figure 1 A schematic diagram of the structure of a power material detection information traceability system disclosed in an embodiment of the present application;
[0035] Figure 2 A schematic diagram of the structure of the network layer in a power material detection information traceability system disclosed in an embodiment of the present application;
[0036] Figure 3 A schematic diagram of a workflow of a power material detection information traceability system program operation disclosed in an embodiment of the present application;
[0037] Figure 4 A schematic diagram of a human ID identification system in a power material detection information traceability system disclosed in an embodiment of the present application;
[0038] Figure 5 This is a schematic diagram of a system identification ID in a power material detection information traceability system disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0040] In order to solve the technical problems in the prior art that electric power material testing bases manually record electric power material testing information, data records are prone to loss and errors, and there are small businesses that forge electric power material testing information, resulting in difficulty in obtaining evidence and tracing electric power material bidding, the present application discloses a system and method for traceability of electric power material testing information through the following embodiments.
[0041] The first embodiment of the present application discloses a power material detection information traceability system, which is based on blockchain technology. Figure 1 The electric power material detection information traceability system includes a data layer, a network layer, a consensus layer, a contract layer and an application layer.
[0042] Blockchain is a term in the field of information technology. In essence, it is a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Specifically for the quality inspection of power materials, each piece of data automatically uploaded to the chain will contain a one-way abbreviation of the previous piece of data uploaded to the chain, thereby generating an undecryptable block, thereby ensuring that after a piece of data is changed, all subsequent data will not recognize the change, ensuring security.
[0043] The data layer is used to store the full life cycle information of electric power materials. The nodes include an electric power material detection base node and multiple ordinary nodes. The full life cycle information of electric power materials includes electric power material detection information and electric power material life cycle information. The electric power material detection information is stored in the electric power material detection base node.
[0044] In some embodiments of the present application, the electric power material life cycle information includes raw material information, production information, processing information, logistics information and transaction information.
[0045] Specifically, the data layer is essentially a distributed ledger, that is, nodes in the system (power material testing bases and suppliers, etc.) have the power to store and query data. The data layer is used to store relevant information about the entire life cycle of power materials. This information is stored in blocks in a Merkle tree structure and hash encryption is used to prevent data tampering.
[0046] See also Figure 2 The network layer includes a point-to-point mechanism, which means that any of the nodes can process the received full life cycle information of the electric power materials, and the electric power material life cycle information will be generated while receiving the full life cycle information of the electric power materials.
[0047] Specifically, the network layer is the basis for building the traceability system of the power material detection information. This system is built based on blockchain technology, thereby realizing the traceability and non-tamperability of the detection data. This embodiment builds a blockchain network based on the Hyperledger Fabric open source framework, which can meet the network requirements required by this embodiment. For power material detection, its purpose is to detect non-compliant power materials and maintain the security of the power grid. From this point of view, the power material detection base nodes operated by the power material detection base are trustworthy in maintaining the authenticity of information. At the same time, in order to motivate ordinary nodes to participate in system maintenance and data storage, corresponding economic incentive mechanisms need to be used. The so-called economic incentive mechanism refers to the issuance of cash rewards to nodes that contribute to the network. The economic incentive mechanism can be appropriately adjusted by the detection base. In addition to the basic cash rewards issued by the detection base, the transaction fees paid by the verification proposer (such as customers) can also be issued according to the participation of each node, thereby encouraging more nodes in the system to participate in the security verification of the blockchain, and also attracting more manufacturers and suppliers to participate in the system.
[0048] The network layer mainly includes peer-to-peer mechanism, data transmission mechanism and data verification mechanism. Peer-to-peer mechanism means that each distributed node in the system can process the received information as a separate individual, and these nodes will generate information while receiving information. According to the function, the nodes can be divided into power material inspection base nodes, accounting nodes and verification nodes. Power material supply enterprises confirm the power material inspection base nodes through regional divisions, and the corresponding power material inspection bases operate the corresponding power material inspection base nodes. Due to the responsibility system of the power material inspection base, the power material inspection base nodes are trustworthy in maintaining the authenticity of transactions. At the same time, participants can register as an ordinary node in the system as an enterprise. Through such a blockchain network, the authenticity and traceability of data can be achieved.
[0049] The consensus layer includes a consensus mechanism for preventing transaction fraud and preventing nodes from intentionally tampering with the full life cycle information of the electric power materials.
[0050] Furthermore, the consensus layer also includes an authoritative proof mechanism, which is used for the nodes to maintain and update the information of the entire life cycle of the electric power materials in accordance with the authoritative proof mechanism. The authoritative proof mechanism means that the nodes are verified by real-name system, and the nodes that deliberately tamper with the data are removed from the electric power material detection information traceability system.
[0051] Specifically, the consensus layer is mainly used to prevent the system from fraudulent transactions and intentional malicious behavior of nodes. The consensus layer mainly refers to the consensus algorithm and consensus mechanism set by the system. In this system, all nodes follow the Proof of Authority (POA) mechanism to maintain and update system data. Proof of Authority is a reputation-based consistency algorithm. Nodes in the system must first undergo real-name verification. Nodes that commit malicious acts will be kicked out of the system, and the reputation of the participant represented by the node (such as a manufacturer) will be affected. It will be very difficult to enter the system again. Any participant can propose and modify the contract, but it must be agreed by the majority of participants before it can take effect.
[0052] Compared with the proof-of-work mechanism and the proof-of-stake mechanism, the authority proof mechanism used in this embodiment can effectively solve the computing power and storage problems. The biggest feature of the authority proof mechanism is the more centralized node design. Its accounting right is not determined by the size of computing power or the size of equity, but by a random function that randomly selects real-name nodes to finalize. Authorized nodes are called validators, who are responsible for the generation and verification of new blocks in exchange for system rewards. Since there is no need to waste computing power on solving problems, the system speed using the authority proof mechanism will be greatly improved, so this mechanism is more suitable for the traceability system of the power material supply chain.
[0053] The contract layer includes a block finality mechanism, which is used in the block generation process to prevent nodes from intentionally tampering with the full life cycle information of the electric power materials.
[0054] In some embodiments of the present application, the ordinary node includes an accounting node and a verification node. The accounting node is used to make a data record request to the blockchain, and the verification node is used to confirm whether the electric power material life cycle information is authentic.
[0055] In some embodiments of the present application, in the block generation process, the generation of any block includes a first stage, a second stage and a third stage.
[0056] The first stage refers to determining the accounting node and the verification node.
[0057] The second stage refers to the nodes in any block confirming the life cycle information of the electric power materials in any block and being responsible for the authenticity of any block.
[0058] The third stage refers to adding a timestamp to any of the blocks and connecting them to the main chain of the blockchain.
[0059] In some embodiments of the present application, the first stage, the second stage, and the third stage all require 2 / 3 of the nodes in any block to reach a consensus.
[0060] Specifically, the contract layer is to prevent the information of the entire life cycle of power materials from being maliciously tampered with, and the block finality mechanism is declared in the smart contract introduced in the system. In order to ensure that the data is authentic, reliable and authoritative, this mechanism is different from the consensus and cannot be changed once it is established. The block finality mechanism divides the block generation process into three stages, and each stage requires 2 / 3 of the nodes to reach a consensus. The first stage is to select accounting nodes and verification nodes. Accounting nodes have accounting rights, that is, only nodes with accounting rights can make data record requests to the blockchain, and verification nodes have the right to verify whether the information is true. The second stage is that the member nodes automatically assigned to participate in the process in the network confirm the information in the block and are responsible for the authenticity of the block. The third stage is that the new block is timestamped and connected to the main chain. Due to the use of distributed ledgers, malicious nodes only change their own recorded data and will not affect the overall system. At the same time, by using timestamp technology and hash encryption, the data in the block on the main chain will not be tampered with, thereby achieving the purpose of data tampering prevention.
[0061] The right to record accounts is not determined by the size of computing power or equity, but by the random selection of real-name nodes by a random function. Accounting nodes and verification nodes can exchange for system rewards through economic incentive mechanisms.
[0062] The application layer includes a web page for enabling the node to access the power material detection information traceability system.
[0063] Specifically, the application layer is the application scenario and case of the system. The application layer of this system is implemented using a web page. In the actual usage scenario, each real-name registered account is a node in the virtual system. The node uses the application layer to access the blockchain system and participate in system maintenance, data processing and storage. By using the system, each participant can query the information of the entire life cycle of power materials in real time to achieve the corresponding traceability effect. By utilizing the hash encryption algorithm and authoritative proof mechanism in the system, the distributed data storage mechanism of the application layer can ensure the quality, safety and reliability of the product.
[0064] See also Figure 3 As shown in the workflow diagram, the power material detection information traceability system runs the following program steps for tracing power materials:
[0065] Step S101, obtaining the power material detection information in the data layer, and verifying and encrypting the power material detection information through the contract layer to generate a genesis block.
[0066] Specifically, the system must first package and process the relevant information of the power material testing base, verify and hash the information in the manner agreed upon by the smart contract, and finally upload it to the chain to become the genesis block. Subsequently, the raw material information, production information, processing information, logistics information, transaction information and other related information of the power materials are encrypted in the same way and packaged and stored in other blocks (blocks after the genesis block), and timestamps are added between blocks to prevent malicious tampering. Information is stored in the block in the form of a Merkle tree. At the same time, users become nodes in the system by registering and participate in the maintenance of the system, and their information is also stored in the block. In this way, mutual endorsement between blocks can be achieved, which ensures the immutability of data while also improving traceability.
[0067] In step S102, ordinary nodes generate the electric power material life cycle information and store it in the data layer through the application layer, network layer and consensus layer, and then verify and encrypt the electric power material life cycle information through the contract layer to generate other blocks, which are blocks after the genesis block.
[0068] In some embodiments of the present application, the full life cycle information of the electric power material is stored in the block in the form of a Merkle tree.
[0069] In some embodiments of the present application, the full life cycle information of the electric power material is hashed and stored in a block.
[0070] Furthermore, a timestamp is added between the genesis block and the other blocks to prevent malicious tampering.
[0071] Step S103, according to the genesis block and the other blocks, the full life cycle information of the electric power materials is obtained, and the full life cycle information of the electric power materials includes a system identification ID, and any of the system identification IDs corresponds to a group of electric power materials.
[0072] Step S104, obtaining the human identification ID of any electric material, and matching it with the full life cycle information of the electric material, to complete the traceability of any electric material.
[0073] See also Figure 4 and Figure 5 , the ID of electric power materials can be divided into a human identification ID in reality and a system identification ID that can be recognized by the system. Among them, since the human identification ID and the system identification ID are different from each other, they are convenient for human identification and system identification respectively. The network built on the blockchain in this embodiment can provide the function of matching the human identification ID with the system identification ID, and the ID is automatically recorded into the chain when it is generated. For example, each device will record the human identification ID and the system identification ID in the network, which refer to the same in the network and have equal effects.
[0074] Among them, the design of the artificial identification ID adopts the manufacturer code (letters), the inspection batch code (letters), the power material category code (letters), and the random identification code (six-digit random number / letter). The artificial identification ID of power materials is unique and will not change with the changes in the production and transaction information of power materials.
[0075] The design of the system identification code for power materials is more complex. The first nine digits are the information code of the manufacturer, the middle 17 digits are the information code of the power material, the 30th to 38th digits are the detection information code, and the last 10 digits are the time code of the most recent change information of the power material. For power materials, the first 38 digits of its system identification ID represent the relevant information of the production and the first detection of the material. This part of the code will not change, but the last 10 digits of the system identification ID will change with the change of each detection or installation time of the power material, so that offline staff can conduct traceability query on the power material.
[0076] At present, most blockchains are used in online systems, and there are few studies on how to combine online and offline. In this embodiment, electric power materials have a matching system identification ID from detection to use. In order to match the physical and system identification IDs of offline electric power materials, offline electric power materials are set with artificial identification IDs, such as QR codes. Offline staff can use system applications to scan the QR codes on electric power materials, query the system identification ID through the corresponding application, understand the circulation of the products and the information of the last owner, and observe whether the information matches the online system identification ID information, thereby solving the problem of online data corresponding to offline products.
[0077] This application can directly connect the information of the entire life cycle of power materials with the equipment, record the collected data on the chain, trace the test data to a certain extent as needed, strengthen the trust between power grid companies, power material suppliers and third-party testing agencies, and ensure the safe and smooth operation of power grid projects.
[0078] The above embodiment of the present application discloses a system for tracing power material detection information, which is based on blockchain technology and includes a data layer, a network layer, a consensus layer, a contract layer, and an application layer. For tracing power materials, the power material detection information traceability system first obtains the power material detection information, verifies and encrypts to generate a genesis block, and then obtains the power material life cycle information, verifies and encrypts to generate other blocks, wherein during the block generation process, the block finality mechanism in the contract layer prevents the information from being maliciously tampered with. Finally, based on the genesis block and the other blocks, the full life cycle information of the power material can be traced. The design of the system identification ID and the human identification ID enables the physical offline power material to match the online system identification ID, making it convenient for offline staff to directly obtain online data.
[0079] The following is a method embodiment provided in the embodiments of the present application, which is executed by the electric power material detection information traceability system in the system embodiment of the present application. For the content not disclosed in detail in the method embodiment of the present application, please refer to the system embodiment of the present application.
[0080] The second embodiment of the present application discloses a method for tracing power material detection information, which is executed by the power material detection information traceability system disclosed in the first embodiment of the present application, and the power material detection information traceability method includes:
[0081] The power material detection information in the data layer is obtained, and the power material detection information is verified and encrypted through the contract layer to generate a genesis block.
[0082] Ordinary nodes generate the electric power material life cycle information and store it in the data layer through the application layer, network layer and consensus layer, and then verify and encrypt the electric power material life cycle information through the contract layer to generate other blocks, which are blocks after the genesis block.
[0083] According to the genesis block and the other blocks, the full life cycle information of the electric power material is obtained, and the full life cycle information of the electric power material includes a one-to-one corresponding electric power material and a system identification ID.
[0084] Obtain the human identification ID of any electric power material and match it with the full life cycle information of the electric power material to complete the traceability of any electric power material.
[0085] The present application is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0086] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0087] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0088] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit its protection scope. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the field should understand that after reading the present invention, those skilled in the art can still make various changes, modifications or equivalent substitutions to the specific implementation methods of the invention, but these changes, modifications or equivalent substitutions are all within the protection scope of the pending claims of the invention.
Claims
1. A power material detection information traceability system, the power material detection information traceability system is based on blockchain technology, the power material detection information traceability system includes a data layer, a network layer, a consensus layer, a contract layer and an application layer, characterized in that: The data layer is used to store the full life cycle information of electric power materials, the nodes include the electric power material detection base node and multiple common nodes, the electric power material full life cycle information includes electric power material detection information and electric power material life cycle information, the electric power material detection information is stored in the electric power material detection base node; The network layer includes a point-to-point mechanism, which means that any node processes the received full life cycle information of the electric power material, and generates the electric power material life cycle information while receiving the full life cycle information of the electric power material; The consensus layer includes a consensus mechanism for preventing transaction fraud and preventing nodes from intentionally tampering with the full life cycle information of the power materials; The contract layer includes a block finality mechanism, which is used in the block generation process to prevent nodes from intentionally tampering with the full life cycle information of the power materials; The application layer includes a web page for enabling the node to access the power material detection information traceability system; The power material life cycle information includes raw material information, production information, processing information, logistics information and transaction information; The common nodes include accounting nodes and verification nodes, wherein the accounting nodes are used to make data record requests to the blockchain, and the verification nodes are used to confirm whether the power material life cycle information is true; In the block generation process, the generation of any block includes the first stage, the second stage and the third stage; The first stage refers to determining the accounting node and the verification node; The second stage refers to the nodes in any block confirming the power material life cycle information in any block and being responsible for the authenticity of any block; The third stage refers to adding a timestamp to any of the blocks and connecting them to the main chain of the blockchain; The power material detection information traceability system runs the following procedures for tracing power materials: Obtaining the power material detection information in the data layer, and verifying and encrypting the power material detection information through the contract layer to generate a genesis block; Ordinary nodes generate the power material life cycle information through the application layer, network layer and consensus layer and store it in the data layer, and then verify and encrypt the power material life cycle information through the contract layer to generate other blocks. The other blocks refer to the blocks after the genesis block; According to the genesis block and the other blocks, the full life cycle information of the electric power materials is obtained, wherein the full life cycle information of the electric power materials includes a system identification ID, and any of the system identification IDs corresponds to a group of electric power materials; Obtain the human identification ID of any electric power material and match it with the full life cycle information of the electric power material to complete the traceability of any electric power material.
2. The power material detection information traceability system according to claim 1 is characterized in that: The first stage, the second stage and the third stage all require 2 / 3 of the nodes in any block to reach a consensus.
3. The power material detection information traceability system according to claim 1 is characterized in that: A timestamp is added between the genesis block and the other blocks to prevent malicious tampering.
4. The power material detection information traceability system according to claim 1 is characterized in that: The consensus layer also includes an authoritative proof mechanism, which is used for the nodes to maintain and update the full life cycle information of the power materials in accordance with the authoritative proof mechanism. The authoritative proof mechanism means that the nodes are verified by real-name system, and the nodes that deliberately tamper with the data are removed from the power material detection information traceability system.
5. The power material detection information traceability system according to claim 1 is characterized in that: The full life cycle information of the electric power materials is stored in the block in the form of a Merkle tree.
6. The power material detection information traceability system according to claim 1 is characterized in that: The entire life cycle information of the electric power material is hashed and stored in the block.
7. A method for tracing power material detection information, characterized in that: The electric power material detection information traceability method is executed by the electric power material detection information traceability system according to any one of claims 1 to 6, and the electric power material detection information traceability method includes: Obtaining the power material detection information in the data layer, and verifying and encrypting the power material detection information through the contract layer to generate a genesis block; The common nodes generate the electric power material life cycle information through the application layer, the network layer and the consensus layer and store it in the data layer, and then verify and encrypt the electric power material life cycle information through the contract layer to generate other blocks, and the other blocks refer to the blocks after the genesis block; According to the genesis block and the other blocks, the full life cycle information of the electric power material is obtained, wherein the full life cycle information of the electric power material includes a one-to-one correspondence between the electric power material and the system identification ID; Obtain the human identification ID of any electric power material and match it with the full life cycle information of the electric power material to complete the traceability of any electric power material.
