Tracing and tracking method and device for energy electric power engineering data and medium

Through the combination of smart contracts, blockchain information and supervisor signatures, the problem of weak cross-chain verification capabilities in energy and power engineering data traceability and tracking is solved, and the timely positioning and traceability of data leakage is achieved, ensuring the data Authenticity and legality of operation.

CN118964488APending Publication Date: 2024-11-15GUANGDONG POWER GRID CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411097608.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

The existing energy and power engineering data traceability and tracking methods have weak cross-chain verification capabilities, which makes it difficult to locate leaked information and traceability after data leakage. There are many roles in the process of data modification and the collaboration mechanism is not unified, resulting in data traceability and authenticity. Difficulty in verification.

Method used

Use smart contracts, blockchain information and supervisor signature to trace and track energy and power engineering data. Through smart contracts, traceability and tracking operations are automatically performed. Blockchain information ensures the authenticity and immutability of data, and supervisor signature ensures the operation. Legality and accountability.

Benefits of technology

It improves the efficiency and accuracy of data traceability, ensures the authenticity, completeness and credibility of traceability results, and can timely and effectively locate data leakage information and trace the entire life cycle of the data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118964488A_ABST
    Figure CN118964488A_ABST
Patent Text Reader

Abstract

The invention discloses a traceability and tracking method and device for energy power engineering data and a medium. The method comprises the following steps: acquiring traceability request information of a user; based on the traceability request information, performing data traceability and tracking on the target data according to the smart contract, the block chain information and the supervisor signature to obtain a traceability result; wherein the smart contract is obtained by deploying a contract with access control on an alliance chain, and the block chain information is obtained by performing on-chain data evidence storage on the target data. According to the energy power engineering data traceability and tracking method and apparatus, and the medium, the traceability request information is taken as a starting point, data traceability is performed on the target data according to the smart contract, the block chain information and the supervisor signature, and the target traceability object in the traceability request information can be used to quickly position in the target data, so that the accuracy of the traceability and tracking of the energy power engineering data is improved. A complete tracing result is obtained in combination with key elements, and the problems that data leakage information is difficult to position and the data tracing ability is weak can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data security technology, and in particular to a method, device and medium for tracing and tracking energy power engineering data. Background Art

[0002] Under the background of network informatization, the interaction scope of energy and power engineering data has expanded and the frequency has increased, which has led to delays in information transmission and reduced data security, thus bringing great challenges and difficulties to data tracing and evidence storage; due to the separation of data ownership and management rights, it is difficult to locate the source of data leakage and determine the responsibility for leakage risks, which has become more and more prominent. Existing data traceability and tracking are mainly achieved through annotation method, reverse query method, two-way pointer tracking method, special query language method and graph theory method. These data traceability and tracking methods have their own characteristics and applicable scenarios. You can choose the appropriate method to trace data according to specific needs and scenarios.

[0003] However, the existing data traceability and tracking methods generally have weak information cross-chain verification capabilities, resulting in weak traceability capabilities for key project data; in addition, the project data modification process involves many roles and the collaboration mechanism is not unified, which makes data traceability and authenticity verification difficult, making it difficult to locate data leakage information after a data leak and resulting in weak data traceability capabilities. Summary of the invention

[0004] The present invention provides a method, device and medium for tracing and tracking energy and power engineering data to solve the problems of difficulty in locating data leakage information and weak data tracing capability.

[0005] In order to solve the above problems, the present invention provides a method for tracing and tracking energy and power engineering data, comprising:

[0006] Get the user's traceability request information;

[0007] Based on the traceability request information, the target data is traced and tracked according to the smart contract, blockchain information and supervisor signature to obtain a traceability result; wherein the smart contract is obtained by deploying a contract with access control on the alliance chain, the blockchain information is obtained by storing the target data on the chain, the supervisor signature is obtained by authorizing the user, and the target data is stored in the energy and power engineering data alliance chain of the data platform.

[0008] In the present invention, the traceability request information, as the starting point of data traceability, can be used as the key to information traceability, quickly respond to and process the traceability needs of users, and ensure the timeliness and effectiveness of data traceability; since the smart contract can automatically perform data traceability and tracking operations according to predefined rules, the efficiency and accuracy of traceability can be improved; by storing the target data on the chain, the authenticity and non-tamperability of the data are ensured, so the reliability of the blockchain information provides strong support for data traceability, so that the traceability results have a high degree of credibility and authority, so by querying the records on the blockchain, the tracking of the entire life cycle of the data can be achieved; the supervisor signature can ensure the authenticity of the data and the legality of the operation, so that each operation can be traced back to the specific person in charge; therefore, combining these elements, the target data can be effectively traced and tracked, and the authenticity, integrity and credibility of the traceability results can be guaranteed.

[0009] Compared with the prior art, the present invention takes the tracing request information as the starting point, and performs data tracing and tracking on the target data according to the smart contract, blockchain information and the signature of the supervisor. The target tracing object in the tracing request information can be used to quickly locate it in the target data, and a complete tracing result can be obtained by combining the smart contract, blockchain information and the signature of the supervisor, so that the data leakage information can be obtained in a timely and effective manner when the data is leaked, or the tracing result of the target data can be obtained directly. Therefore, the problem of difficulty in locating data leakage information and weak data tracing capability can be solved.

[0010] As a preferred solution, before obtaining the user's tracing request information, the method further includes:

[0011] Implementing user login based on the smart contract;

[0012] Authorizing the user according to the public key certificate and the interception data; wherein the public key certificate is generated according to the signature of the supervisor of the user;

[0013] Receive target data of the user.

[0014] This preferred solution enables the current specific user to have the ability to access data and ensure data security by performing user login and authorization operations on the data platform; the target data is stored in the data platform, and the data flow process is fully recorded while completing the data upload, which helps to quickly trace and track the data based on key factors in the future, and obtain data leakage information or traceability results of the target data.

[0015] As a preferred solution, user login is implemented based on smart contracts, specifically:

[0016] Generate a user signature according to a preset private key; wherein the preset private key is obtained by the user registering his identity on the data platform in advance through asymmetric encryption;

[0017] Control the smart contract to verify the user signature through a preset public key;

[0018] If the verification is successful, the user is allowed to complete the login.

[0019] In this preferred solution, if the smart contract successfully verifies the user's signature, it will allow the user to log in to the data platform. The process is automated and does not require third-party intervention. Moreover, due to the decentralized and tamper-proof nature of the consortium chain where the smart contract is located, the entire user login process is secure, transparent and auditable.

[0020] As a preferred solution, the preset private key is obtained by the user registering his identity on the data platform in advance through asymmetric encryption, specifically:

[0021] Generate a first private key by using a random number generator, and initialize parameters in the first private key to obtain initialization parameters;

[0022] Generate a first public key according to the parameter order relationship in the initialization parameters;

[0023] Performing a hash operation on the first public key to obtain a first identification code of the user;

[0024] The first public key is made public, the first private key is retained, and the identity registration of the user is realized by sending the first identification code of the user to the blockchain network of the data platform;

[0025] The private key subunit is used to use the retained first private key as the preset private key.

[0026] This preferred solution performs a hash operation on the generated first public key to obtain a hash value of a fixed length as the user's first identification code. Since this identification code is unique, it can be used to identify the user. In addition, by making the public key public, other users or systems can use it to communicate with the user holding the private key, and by saving the private key, unauthorized users can be prevented from accessing and using it. The first identification code is sent to the blockchain network, so that the identification code is permanently and tamper-proof recorded on the blockchain, thereby completing the user's identity registration, so that the user can access it in the blockchain network.

[0027] As a preferred solution, the user is authorized according to the public key certificate and the monitoring data, specifically:

[0028] Generate the public key certificate according to the supervisor signature of the user;

[0029] Monitoring the communication process between the user and the IoT device to obtain communication information;

[0030] If the communication information is consistent with the information when broadcasting the blockchain address, the user is authorized based on the generation of the public key certificate.

[0031] This preferred solution uses blockchain technology as the basis for data generation, so that the source, flow and change process of the data can be tracked and verified, which increases the transparency and credibility of data traceability, allowing users to use the data with greater confidence.

[0032] As a preferred solution, the blockchain information is obtained by storing the target data on the chain, specifically:

[0033] The relevant certification materials signed with official agencies and enterprises and institutions at all levels in the target data are stored on the chain to obtain the first information;

[0034] Evaluate the project quality and engineering progress in the target data according to the relevant certification materials to obtain an evaluation result, and perform a chain-based storage operation on the evaluation result to obtain second information;

[0035] The timestamp of the project revision and the information of the person in charge of the revision in the target data are stored on the chain to obtain the third information;

[0036] The blockchain information is composed of the first information, the second information and the third information.

[0037] This preferred solution uses the on-chain evidence storage operation to record the relevant certification materials signed with official agencies and enterprises and institutions at all levels on the blockchain. Due to the tamper-proof nature of the blockchain, these certification materials cannot be modified or deleted after recording, thereby ensuring their authenticity and integrity. The relevant certification materials are an important basis for evaluating project quality and engineering progress. By storing these certification materials on the chain, the evaluation process becomes more transparent and traceable. In addition, the timestamp of the project revision and the information of the main person in charge of the revision are stored on the chain, which can clearly record all changes and modifications of the project throughout its life cycle. This on-chain evidence storage operation method can ensure the authenticity and integrity of relevant data, improve the transparency of the assessment of project quality and engineering progress, ensure the traceability of the project revision history, enhance the efficiency and accuracy of data traceability, and meet regulatory compliance requirements.

[0038] As a preferred solution, based on the traceability request information, data traceability and tracking are performed according to the smart contract, blockchain information and the supervisor signature to obtain the traceability results, specifically:

[0039] Generate a second private key using a random number generator;

[0040] Perform a hash operation on the second private key to obtain a second public key;

[0041] Sign the selected information in the second public key using the second private key and the signature algorithm to generate an anti-counterfeiting identification code;

[0042] On the basis of the anti-counterfeiting identification code, the target data is traced and tracked according to the traceability request information, the smart contract, the blockchain information and the supervisor's signature to obtain the traceability result.

[0043] The anti-counterfeiting identification code of this preferred solution is used as a key verification element in the process of data traceability and tracking; the smart contract defines the rules and processes for data traceability and tracking, such as the verification logic of each link such as the source, storage, and transmission of data; the blockchain, as a distributed ledger, records the historical records of data, including information on each link such as data creation, modification, and transmission. By querying the records on the blockchain, the source and flow of data can be tracked; the signature of the supervisor can ensure the authenticity of the data and the legality of the operation, so that each operation can be traced back to the specific person responsible; combining these elements, the data can be effectively traced and tracked to ensure the authenticity, integrity, and credibility of the traceability results.

[0044] The present invention also provides a source tracing and tracking device for energy and power engineering data, which is applicable to a data platform and includes an information module and a tracing module;

[0045] Wherein, the information module is used to obtain the user's tracing request information;

[0046] The traceability module is used to trace and track the target data based on the traceability request information, according to the smart contract, blockchain information and the supervisor's signature, to obtain a traceability result; wherein the smart contract is obtained by deploying a contract with access control on the alliance chain, the blockchain information is obtained by storing the target data on the chain, the supervisor's signature is obtained by authorizing the user, and the target data is stored in the energy and power engineering data alliance chain of the data platform.

[0047] As a preferred solution, before the data module, it also includes a login module, an authorization module and a receiving module;

[0048] Wherein, the login module is used to implement user login based on the smart contract;

[0049] The authorization module is used to authorize the user according to the public key certificate and the monitoring data; wherein the public key certificate is generated according to the signature of the supervisor of the user;

[0050] The receiving module is used to receive the target data of the user.

[0051] As a preferred solution, the login module includes a signature unit, a verification unit and a login unit;

[0052] The signature unit is used to generate a user signature according to a preset private key; wherein the preset private key is obtained by the user registering his identity on the data platform in advance through an asymmetric encryption method;

[0053] The verification unit is used to control the smart contract to verify the user signature through a preset public key;

[0054] The login unit is used to enable the user to complete the login if the verification is successful.

[0055] As a preferred solution, the signature unit includes an initial subunit, an order subunit, a hash subunit, a registration subunit and a private key subunit;

[0056] The initial subunit is used to generate a first private key through a random number generator, and initialize the parameters in the first private key to obtain initialization parameters;

[0057] The order subunit is used to generate a first public key according to the parameter order relationship in the initialization parameter;

[0058] The hash subunit is used to perform a hash operation on the first public key to obtain a first identification code of the user;

[0059] The registration subunit is used to make the first public key public, retain the first private key, and implement the identity registration of the user by sending the first identification code of the user to the blockchain network of the data platform;

[0060] The private key subunit is used to use the retained first private key as the preset private key.

[0061] As a preferred solution, the authorization module includes a certification unit, a monitoring unit and an authorization unit;

[0062] Wherein, the certificate unit is used to generate the public key certificate according to the supervisor signature of the user;

[0063] The monitoring unit is used to monitor the communication process between the user and the IoT device to obtain communication information;

[0064] The authorization unit is used to authorize the user on the basis of generating the public key certificate if the communication information is consistent with the information when broadcasting the blockchain address.

[0065] As a preferred solution, the traceability module includes a first material unit, a second material unit, a third material unit and a comprehensive unit;

[0066] The first material unit is used to store relevant certification materials signed with official agencies and enterprises and institutions at all levels in the target data on a chain to obtain first information;

[0067] The second material unit is used to evaluate the project quality and engineering progress in the target data according to the relevant certification materials to obtain an evaluation result, and to store the evaluation result on the chain to obtain second information;

[0068] The third material unit is used to store the timestamp of the project revision and the information of the person in charge of the revision on the chain to obtain the third information;

[0069] The integration unit is used to form the blockchain information from the first information, the second information and the third information.

[0070] As a preferred solution, the tracing module includes a random unit, a public key unit, an anti-counterfeiting unit and a tracking unit;

[0071] Wherein, the random unit is used to generate a second private key through a random number generator;

[0072] The public key unit is used to perform a hash operation according to the second private key to obtain a second public key;

[0073] The anti-counterfeiting unit is used to sign the selected information in the second public key using the second private key and the signature algorithm to generate an anti-counterfeiting identification code;

[0074] The tracking unit is used to trace and track the target data based on the anti-counterfeiting identification code, according to the traceability request information, the smart contract, the blockchain information and the supervisor signature, to obtain the traceability result.

[0075] The present invention also provides a storage medium, on which a computer program is stored. The computer program is called and executed by a computer to implement the above-mentioned method for tracing and tracking energy and power engineering data. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] Figure 1 It is a flow chart of a method for tracing and tracking energy and power engineering data provided in an embodiment of the present application;

[0077] Figure 2 This is a schematic diagram of on-chain data storage provided by an embodiment of the present application;

[0078] Figure 3 This is a schematic diagram of the on-chain and off-chain asymmetric encryption process provided by an embodiment of the present application;

[0079] Figure 4 It is a structural schematic diagram of a traceability and tracking device for energy and power engineering data provided in an embodiment of the present application. DETAILED DESCRIPTION

[0080] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0081] In the description of the present application, it should be understood that the terms "first", "second" and "third" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first", "second" and "third" may explicitly or implicitly include one or more of the features. In the description of the present application, unless otherwise specified, "several" means two or more.

[0082] The energy and power engineering data traceability and tracking method provided in the embodiment of the present application is mainly used in situations where it is necessary to locate data leakage information after data leakage and to perform accurate data traceability.

[0083] Embodiment 1:

[0084] See also Figure 1 The embodiment of the present invention provides a method for tracing and tracking energy and power engineering data, which is applicable to a data platform, including S1 to S2; and the embodiment of the present application further includes step S0 before step S1, and the specific implementation steps are as follows:

[0085] S0. Implement user login based on smart contracts; authorize users based on public key certificates and monitoring data; wherein the public key certificate is generated based on the user's supervisor signature; receive the user's target data.

[0086] Step S0 of the embodiment of the present application includes S0.1 to S0.6; wherein S0.1 is a process of user registration, S0.2 is a process of deploying a smart contract, S0.3 is a process of user login, S0.4 is a process of information broadcasting, S0.5 is a process of user authorization, and S0.6 is a process of uploading target data to a data platform, specifically:

[0087] S0.1. Register through TA (trust agent or trust institution) to obtain user information and timestamp information;

[0088] Mobile user {U1,...,U i} Based on the user information and timestamp information, the first private key r is generated by a random number generator i , i = 1, ..., n; and the first private key r i Initialize the parameters in and get the initialization parameters param{G,p,q};

[0089] Assume that the parameter G in the initialization parameter param{G,p,q} is a cyclic additive group with a prime order of q, let P∈G be a generator of the G group, and N is the order of P, then we get the first public key pk i ; Among them, pk i =G ri modp;

[0090] For the first public key pk i Perform hash operation to obtain the user's first identification code UID (User Identifier, UID);

[0091] The first public key pk i Public in certificate format, retaining the first private key i The user's identity registration is realized by sending the user's first identification code UID to the blockchain network of the data platform; and the operation is recorded on the blockchain, including information such as the first identification code UID, timestamp and operation type;

[0092] The first private key r i As the default private key.

[0093] Embodiment S0.1 of the present application performs a hash operation on the generated first public key to obtain a hash value of a fixed length as the user's first identification code. Since this identification code is unique, it can be used to identify the user's identity. In addition, by making the public key public, other users or systems can use it to communicate with the user holding the private key, and saving the private key can prevent unauthorized users from accessing and using it. The first identification code is sent to the blockchain network, so that the identification code is permanently and tamper-proof recorded on the blockchain, thereby completing the user's identity registration, so that the user can access it in the blockchain network.

[0094] It should be noted that the data platform in the embodiment of the present application may be Hyperledger Fabric (distributed billing platform);

[0095] Moreover, the relationship between Hyperledger Fabric, blockchain, consortium chain and smart contracts is: Hyperledger Fabric provides platform and technical support, blockchain is a network form for cross-organizational collaboration, and smart contracts are tools for managing business logic and data on blockchain;

[0096] The consortium chain is a specific implementation form of blockchain technology. It inherits the core characteristics of the blockchain to a certain extent, such as immutability and consensus mechanism, but at the same time it has its own unique properties, such as partial decentralization, controllability and data non-disclosure.

[0097] S0.2. Deploy smart contracts for access control on the consortium chain; set the initial parameters of the smart contract, including trusted public keys, access permission rules, etc.;

[0098] Make the smart contract responsible for managing the user's public key and authorization information.

[0099] It should be noted that there are two types of smart contracts, namely: {read, write}; calling the read contract only allows users to view energy and power engineering data after logging in, and cannot download and transmit data; calling the write contract allows users to query, download and transmit energy and power engineering data.

[0100] In addition, both the read contract and the write contract need to be access controlled; the read contract needs to verify the user through the identity information and timestamp information when the user registered, and confirm whether the information belongs to the organization recognized by the alliance chain by checking the user's login IP; the write contract needs to add its own public key certificate information on this basis before authorization. In addition, the format of the public key certificate is C(U i )={User id ,institution,pk i ,stamp i}.

[0101] S0.3. Obtain the user's login request;

[0102] Based on the login request, according to the first private key r i (i.e. preset private key) to generate user signature;

[0103] Control smart contracts through the first public key pk i Verify user signature;

[0104] If the verification is successful, it proves that the user has the first public key pk i The corresponding first private key r i , the user is considered authenticated, allowing the user to complete the login;

[0105] Based on the smart contract, according to the user's identity information and permission rules, check whether the user has the authority to perform the requested operation; if the user passes the permission check, the control smart contract records the access and allows the user to perform the requested operation (such as data reading, writing, etc.).

[0106] S0.4. Broadcasting the blockchain address through the smart contract enables the user to establish communication with the IoT device that receives the broadcast blockchain address;

[0107] Before sending a message, the user's IP address is hashed to obtain a hash value; the hash value, the user's access timestamp information, and the first public key pk i Perform combination to obtain combination information;

[0108] Sign the combined information using the user's private key to generate a digital signature; send the digital signature to the IoT device;

[0109] Based on IoT devices, the smart contract verifies whether the hashed user IP address is the same as the IP generated after calling the smart contract. If they are consistent, a legal message is generated and stored in the blockchain; among them, the legal message includes the user's IP address and the timestamp information of the access.

[0110] S0.5. Apply for a public key certificate from CA (certificate authority) through TA, and generate a public key certificate based on the user's supervisor signature;

[0111] Enable the IoT device to connect to the deployed smart contract through the client, and monitor the communication process between the user and the IoT device to obtain communication information; the communication information includes the user address, timestamp and public key information;

[0112] If the communication information is consistent with the information when broadcasting the blockchain address, the user is authorized based on the generation of the public key certificate;

[0113] If the communication information is inconsistent with the information when broadcasting the blockchain address, the current user's access request will be rejected.

[0114] Embodiment S0.5 of the present application uses blockchain technology as the basis for data generation, so that the source, flow and change process of the data can be tracked and verified, which increases the transparency and credibility of data traceability, allowing users to use the data with greater confidence.

[0115] S0.6. Upload the user's target data to the energy and power engineering data alliance chain of the data platform, and store the data on the chain, as well as perform real-time storage and fair operations; the user can be a power grid project department, and the target data can be a contract or related certification materials signed by the power grid project department and official agencies, enterprises and institutions at all levels. The data is stored on the chain platform (i.e., the data platform) for the purpose of storing evidence on the chain to prevent any party from reneging or tampering with the contract content;

[0116] To apply the embodiments of this application, please refer to Figure 2 , Figure 2 : is a schematic diagram of on-chain data storage provided by an embodiment of the present application, which shows the process of on-chain data storage when uploading target data to the data platform, specifically:

[0117] (1) The Power Grid Project Office will store the contracts or relevant certification materials signed with various units into the data platform; and the first information can be obtained thereby.

[0118] (2) Conduct periodic physical inspections according to the requirements signed by both parties in the contract / certificate materials, and evaluate the quality and progress of the project, including scoring, taking photos and surveying data, videos, etc., and storing them on the chain for the purpose of resolving subsequent illegal claims and arbitration; and second information can be obtained from this. Add the power grid project office as a node to the energy and power engineering data alliance chain; authorize the information to the review agency (such as the court) for review.

[0119] (3) The timestamp of each project revision and the information of the person in charge of the revision need to be uploaded to the chain to make the progress public and to correspond with the real-time evidence collection of official agencies, so as to provide version assistance for subsequent data tracing; and third-party information can be obtained from this;

[0120] The blockchain information is composed of the first information, the second information and the third information.

[0121] The specific methods for real-time storage and fair operation are:

[0122] The power grid project office first joins the blockchain platform (data platform) after identity verification.

[0123] After identity verification is passed, the data is uploaded to the blockchain according to the standardization system as required, and a unique blockchain code is calculated and stored in the blockchain, so that the energy and power engineering data can be notarized in real time, providing a legal basis for subsequent authenticity verification and dispute resolution;

[0124] The review agency is added as a node in the blockchain to trace the files on the blockchain in real time, and a unique anti-counterfeiting code generated by an encryption algorithm (asymmetric encryption) is used to ensure the auditability of the file content on the chain.

[0125] Embodiment S0.6 of the present application is recorded on the blockchain through the chain storage operation, and the relevant certification materials signed with official agencies and enterprises and institutions at all levels are recorded on the blockchain. Due to the tamper-proof nature of the blockchain, these certification materials cannot be modified or deleted after recording, thereby ensuring their authenticity and integrity. The relevant certification materials are an important basis for evaluating project quality and engineering progress. By storing these certification materials on the chain, the evaluation process becomes more transparent and traceable. And the timestamp of the project revision and the information of the main person in charge of the revision are stored on the chain, which can clearly record all changes and modifications of the project throughout the life cycle. This chain storage operation mode can ensure the authenticity and integrity of the relevant data, improve the transparency of the assessment of project quality and engineering progress, ensure the traceability of the project revision history, strengthen the efficiency and accuracy of data tracing, and meet regulatory compliance requirements.

[0126] From a holistic perspective, the embodiment S0 of the present application enables the current specific user to have the ability to access data and ensure the security of the data by performing user login and authorization operations on the data platform; the target data is stored in the data platform, and the data flow process is completely recorded while completing the data upload, which is helpful for subsequent rapid data tracing and tracking based on key elements, and obtaining data leakage information or tracing results of the target data.

[0127] S1. Obtain the user's traceability request information.

[0128] Step S1 of the embodiment of the present application is specifically as follows:

[0129] Obtain the user's traceability request information; wherein, the traceability request information refers to the traceability request instruction issued by the user to the data platform, including the specific data traceability object.

[0130] S2. Based on the traceability request information, the target data is traced and tracked according to the smart contract, blockchain information and supervisor signature to obtain the traceability result; wherein, the smart contract is obtained by deploying a contract with access control on the alliance chain, the blockchain information is obtained by storing the target data on the chain, the supervisor signature is obtained by authorizing the user, and the target data is stored in the energy and power engineering data alliance chain of the data platform.

[0131] Step S2 of the embodiment of the present application is specifically as follows:

[0132] The review agency generates the second private key λ through a random number generator law ;

[0133] According to the second private key λ law Perform hash operation to obtain the second public key pk law ;

[0134] Use the second private key λ law and signature algorithm for the second public key pk law Sign the selected information in and generate an anti-forgery identification code AFID (Anti-Forgery Identifier, AFID);

[0135] If data leakage or abnormal operation occurs, the target data will be traced and tracked based on the anti-counterfeiting identification code AFID, according to the traceability request information, smart contract, blockchain information and supervisor signature, and the traceability results will be obtained;

[0136] Among them, smart contracts, blockchain information and supervisor signatures are the tools used and the information obtained when uploading the user's target data to the data platform.

[0137] In addition, after uploading the user's target data to the data platform, the identification code can be used for auditing, and the review agency can perform traceability and verification, specifically:

[0138] (1) Auditing using identification codes:

[0139] Record viewing operations: When any user views a file on the chain, the viewing operation needs to be recorded through a smart contract. This record includes information such as the viewer's identification code (UID), viewing time, and the hash value of the viewed file. The smart contract will package these records and save them on the blockchain to form an unalterable viewing log.

[0140] Record modification operations: When a user modifies a file on the chain, the modification operation also needs to be recorded through a smart contract. The record includes the modifier's identification code (UID), modification time, hash values ​​of the files before and after modification, and other information. The modification operation is recorded on the chain to form an unalterable modification log.

[0141] (2) Traceability and verification by the review agency:

[0142] View and verify logs: The review agency can access the log records on the chain through the anti-counterfeiting identification code (AFID) and smart contracts. Since the data on the chain cannot be tampered with, the review agency can use the anti-counterfeiting identification code (AFID) to verify the authenticity of each record. For example, by comparing the identification code (UID) and AFID in the view and modify operation, confirm whether the operation is legal.

[0143] Generate audit report: The anti-counterfeiting identification code (AFID) generated by the review agency can be used to sign the audit report to ensure the anti-counterfeiting and uniqueness of the audit report. The audit report contains a detailed record of all viewing and modification operations and is stamped with the anti-counterfeiting identification code signature of the review agency to ensure the legitimacy and authority of the report.

[0144] To apply the embodiments of this application, please refer to Figure 3 , Figure 3 Schematic diagram of the on-chain and off-chain asymmetric encryption process provided by an embodiment of the present application, showing the process of performing the on-chain and off-chain asymmetric encryption process; Figure 3 The first part is the process of the mobile user sending the generated first identification code UID to the blockchain network, and the second part is the process of the review agency checking the block {pk1,...,pk i When files on the chain are traced, the anti-counterfeiting identification code AFID is used to ensure that the files on the chain are auditable when they are viewed or modified.

[0145] It should be noted that the traceability authority described in this embodiment needs to be reapplied after the user goes offline.

[0146] The anti-counterfeiting identification code of Example S2 of the present application is used as a key verification element in the process of data tracing and tracking; the smart contract defines the rules and processes for data tracing and tracking, such as the verification logic of each link such as the source, storage, and transmission of data; the blockchain, as a distributed ledger, records the historical records of data, including information on each link such as the creation, modification, and transmission of data. By querying the records on the blockchain, the source and flow of data can be tracked; the signature of the supervisor can ensure the authenticity of the data and the legality of the operation, so that each operation can be traced back to the specific person responsible; combining these elements, the data can be effectively traced and tracked to ensure the authenticity, integrity, and credibility of the tracing results;

[0147] In addition, the immutability and transparency of blockchain can ensure that all data operations are recorded on the chain, and any tampering will be discovered; digital signatures and encryption technology can ensure the authenticity of data and the legality of operations, so that each operation can be traced back to the specific responsible person; smart contracts can automatically execute and record operations through predefined rules and logic to ensure the compliance and transparency of the process; therefore, these technical means together constitute the entire data traceability system, ensuring that every step of the data operation throughout the life cycle can be recorded, traced and verified. The combined use of these steps not only improves the security of data, but also enhances the ability of data traceability.

[0148] Overall, the embodiments of the present application have the following beneficial effects:

[0149] In this application, the traceability request information, as the starting point of data traceability, can be the key to information traceability, quickly respond to and process the traceability needs of users, and ensure the timeliness and effectiveness of data traceability; since the smart contract can automatically perform data traceability and tracking operations according to predefined rules, the efficiency and accuracy of traceability can be improved; by storing the target data on the chain, the authenticity and immutability of the data are ensured, so the reliability of blockchain information provides strong support for data traceability, making the traceability results highly credible and authoritative, so by querying the records on the blockchain, the tracking of the entire life cycle of the data can be achieved; the supervisor's signature can ensure the authenticity of the data and the legality of the operation, so that each operation can be traced back to the specific person in charge; so these elements combined can effectively trace and track the target data, and ensure the authenticity, integrity and credibility of the traceability results;

[0150] In addition, for user registration, public and private keys are generated to ensure identity uniqueness and immutability; for user login, access control is performed through smart contracts, which are divided into read-only and read-write contracts, corresponding to the permissions for data viewing and data transmission respectively; for data broadcasting, after the user's identity authentication is passed, the blockchain address is broadcast, and the message signature verification in the communication can ensure the authenticity of the message source and content; for user authorization, the IoT device verifies the received user information to ensure the legitimacy and consistency of the access request. These steps ensure the immutability and traceability of the data, and each data access and operation is accurately recorded and verified, thus realizing the function of data traceability.

[0151] Embodiment 2:

[0152] See also Figure 4 , an embodiment of the present invention provides a traceability and tracking device for energy and power engineering data, which is applicable to a data platform and includes an information module 10 and a traceability module 20;

[0153] Among them, the information module 10 is used to obtain the user's traceability request information;

[0154] The tracing module 20 is used to trace and track the target data based on the tracing request information, according to the smart contract, blockchain information and the supervisor's signature, to obtain the tracing result; wherein, the smart contract is obtained by deploying a contract with access control on the alliance chain, the blockchain information is obtained by storing the target data on the chain, the supervisor's signature is obtained by authorizing the user, and the target data is stored in the energy and power engineering data alliance chain of the data platform.

[0155] In addition, the embodiment of the present application also includes a preprocessing module 00 before the information module 10, which is used to implement user login based on a smart contract; authorize the user according to the public key certificate and monitoring data; wherein the public key certificate is generated based on the user's supervisor signature; and receive the user's target data.

[0156] In one embodiment, the pre-processing module 00 includes an initial sub-unit, an order sub-unit, a hash sub-unit, a registration sub-unit, a private key sub-unit, a deployment unit, a signature unit, a verification unit, a login unit, a broadcast unit, a certificate unit, a monitoring unit, an authorization unit, and an upload unit;

[0157] Among them, the initial subunit, order subunit, hash subunit, registration subunit and private key subunit are the process of user registration, the deployment unit is the process of deploying smart contracts, the signature unit, verification unit and login unit are the process of user login, the broadcast unit is the process of information broadcasting, the certificate unit, monitoring unit and authorization unit are the process of user authorization, and the upload unit is the process of uploading target data to the data platform, specifically:

[0158] The initial subunit is used to register with a TA (trust agent or trust authority) to obtain user information and timestamp information;

[0159] Initial subunit, also used for mobile user terminal {U1,...,U i} Based on the user information and timestamp information, the first private key r is generated by a random number generator i , i = 1, ..., n; and the first private key r i Initialize the parameters in and get the initialization parameters param{G,p,q};

[0160] The order subunit is used to assume that the parameter G in the initialization parameter param{G,p,q} is a cyclic additive group with a prime order of q. Let P∈G be a generator of the G group and N be the order of P. Then the first public key pk is obtained. i ; Among them, pk i =G ri modp;

[0161] Hash subunit, used to hash the first public key pk i Perform hash operation to obtain the user's first identification code UID (User Identifier, UID);

[0162] The registration subunit is used to register the first public key pk i Public in certificate format, retaining the first private key iThe user's identity registration is realized by sending the user's first identification code UID to the blockchain network of the data platform; and the operation is recorded on the blockchain, including information such as the first identification code UID, timestamp and operation type;

[0163] The private key subunit is used to store the first private key r i As the default private key.

[0164] The initial subunit, order subunit, hash subunit, registration subunit and private key subunit of the embodiment of the present application perform a hash operation on the generated first public key to obtain a hash value of a fixed length as the user's first identification code. Since this identification code is unique, it can be used to identify the user's identity. In addition, making the public key public can enable other users or systems to use it to communicate with the user holding the private key, and saving the private key can prevent unauthorized users from accessing and using it. The first identification code is sent to the blockchain network, so that the identification code is permanently and tamper-proof recorded on the blockchain, thereby completing the user's identity registration, allowing the user to access it in the blockchain network.

[0165] It should be noted that the data platform in the embodiment of the present application may be Hyperledger Fabric (distributed billing platform);

[0166] Moreover, the relationship between Hyperledger Fabric, blockchain, consortium chain and smart contracts is: Hyperledger Fabric provides platform and technical support, blockchain is a network form for cross-organizational collaboration, and smart contracts are tools for managing business logic and data on blockchain;

[0167] The consortium chain is a specific implementation form of blockchain technology. It inherits the core characteristics of the blockchain to a certain extent, such as immutability and consensus mechanism, but at the same time it has its own unique properties, such as partial decentralization, controllability and data non-disclosure.

[0168] Deployment unit, used to deploy smart contracts for access control on the consortium chain; set the initial parameters of the smart contract, including trusted public keys, access permission rules, etc.;

[0169] The deployment unit is also used to enable the smart contract to manage the user's public key and authorization information.

[0170] It should be noted that there are two types of smart contracts, namely: {read, write}; calling the read contract only allows users to view energy and power engineering data after logging in, and cannot download and transmit data; calling the write contract allows users to query, download and transmit energy and power engineering data.

[0171] In addition, both the read contract and the write contract need to be access controlled; the read contract needs to verify the user through the identity information and timestamp information when the user registered, and confirm whether the information belongs to the organization recognized by the alliance chain by checking the user's login IP; the write contract needs to add its own public key certificate information on this basis before authorization. In addition, the format of the public key certificate is C(U i )={User id ,institution,pk i ,stamp i}.

[0172] Signature unit, used to obtain the user's login request;

[0173] The signature unit is also used to, based on the login request, i (i.e. preset private key) to generate user signature;

[0174] Verification unit, used to control the smart contract through the first public key pk i Verify user signature;

[0175] The login unit is used to prove that the user has the first public key pk if the verification is successful. i The corresponding first private key r i , the user is considered authenticated, allowing the user to complete the login;

[0176] The login unit is also used to check whether the user has the authority to perform the requested operation based on the smart contract, according to the user's identity information and permission rules; if the user passes the permission check, the control smart contract records the access and allows the user to perform the requested operation (such as data reading, writing, etc.).

[0177] A broadcast unit, used to broadcast a blockchain address through a smart contract, so that a user can establish communication with an IoT device that receives the broadcast blockchain address;

[0178] The broadcast unit is also used to hash the user's IP address to obtain a hash value before sending a communication message; the hash value, the user's access timestamp information and the first public key pk i Perform combination to obtain combination information;

[0179] The broadcast unit is further used to sign the combined information using the user's private key to generate a digital signature; and send the digital signature to the IoT device;

[0180] The broadcast unit is also used to verify whether the hashed user IP address is the same as the IP generated after calling the smart contract based on the Internet of Things device. If they are consistent, a legal message is generated and stored in the blockchain; among them, the legal message includes the user's IP address and the timestamp information of the access.

[0181] The certificate unit is used to apply for a public key certificate from a CA (certificate authority) through the TA and generate a public key certificate based on the user's supervisor signature;

[0182] A monitoring unit is used to enable the IoT device to connect to the deployed smart contract through the client, and monitor the communication process between the user and the IoT device to obtain communication information; wherein the communication information includes the user address, timestamp and public key information;

[0183] An authorization unit is used to authorize the user on the basis of generating a public key certificate if the communication information is consistent with the information when broadcasting the blockchain address;

[0184] The authorization unit is also used to reject the access request of the current user if the communication information is inconsistent with the information when broadcasting the blockchain address.

[0185] The certificate unit, monitoring unit and authorization unit of the embodiment of the present application use blockchain technology as the basis for data generation, so that the source, flow and change process of the data can be tracked and verified, which increases the transparency and credibility of data traceability, allowing users to use the data more confidently.

[0186] The upload unit is used to upload the user's target data to the energy and power engineering data alliance chain of the data platform, and to store the data on the chain, as well as to perform real-time storage and fair operations; the user can be a power grid project department, and the target data can be a contract or related certification materials signed by the power grid project department and official agencies, enterprises and institutions at all levels. The data is stored in the chain platform (i.e., the data platform) for the purpose of storing evidence on the chain to prevent any party from reneging or tampering with the contract content;

[0187] To apply the embodiments of this application, please refer to Figure 2 , Figure 2 : is a schematic diagram of on-chain data storage provided by an embodiment of the present application, which shows the process of on-chain data storage when uploading target data to the data platform, specifically:

[0188] (1) The Power Grid Project Office will store the contracts or relevant certification materials signed with various units into the data platform; and the first information can be obtained thereby.

[0189] (2) Conduct periodic physical inspections according to the requirements signed by both parties in the contract / certificate materials, and evaluate the quality and progress of the project, including scoring, taking photos and surveying data, videos, etc., and storing them on the chain for the purpose of resolving subsequent illegal claims and arbitration; and second information can be obtained from this. Add the power grid project office as a node to the energy and power engineering data alliance chain; authorize the information to the review agency (such as the court) for review.

[0190] (3) The timestamp of each project revision and the information of the person in charge of the revision need to be uploaded to the chain to make the progress public and to correspond with the real-time evidence collection of official agencies, so as to provide version assistance for subsequent data tracing; and third-party information can be obtained in this way;

[0191] The blockchain information is composed of the first information, the second information and the third information.

[0192] The specific methods for real-time storage and fair operation are:

[0193] The power grid project office first joins the blockchain platform (data platform) after identity verification.

[0194] After identity verification is passed, the data is uploaded to the blockchain according to the standardization system as required, and a unique blockchain code is calculated and stored in the blockchain, so that it can be notarized in real time for energy and power engineering data, providing a legal basis for subsequent authenticity verification and dispute resolution;

[0195] The review agency is added as a node in the blockchain to trace the files on the blockchain in real time, and a unique anti-counterfeiting code generated by an encryption algorithm (asymmetric encryption) is used to ensure the auditability of the file content on the chain.

[0196] The upload unit of the embodiment of the present application is recorded on the blockchain through the chain storage operation, and the relevant certification materials signed with official agencies and enterprises and institutions at all levels are recorded on the blockchain. Due to the tamper-proof nature of the blockchain, these certification materials cannot be modified or deleted after recording, thereby ensuring their authenticity and integrity. The relevant certification materials are an important basis for evaluating project quality and engineering progress. By storing these certification materials on the chain, the evaluation process becomes more transparent and traceable. And the timestamp of the project revision and the information of the main person in charge of the revision are stored on the chain, which can clearly record all changes and modifications of the project throughout its life cycle. This chain storage operation method can ensure the authenticity and integrity of the relevant data, improve the transparency of the assessment of project quality and engineering progress, ensure the traceability of the project revision history, strengthen the efficiency and accuracy of data traceability, and meet regulatory compliance requirements.

[0197] Overall, the preprocessing module 00 of the embodiment of the present application enables the current specific user to have the ability to access data and ensure the security of the data by performing user login and authorization operations on the data platform; the target data is stored in the data platform, and the data flow process is completely recorded while completing the data upload, which is helpful for subsequent rapid data tracing and tracking based on key elements, and obtaining data leakage information or tracing results of target data.

[0198] In one embodiment, the information module 10 is specifically:

[0199] Obtain the user's traceability request information; wherein, the traceability request information refers to the traceability request instruction issued by the user to the data platform, including the specific data traceability object.

[0200] In one embodiment, the tracing module 20 includes a random unit, a public key unit, an anti-counterfeiting unit, and a tracking unit;

[0201] Among them, the random unit is used for the review agency to generate the second private key λ through a random number generator law ;

[0202] A public key unit, used to generate a public key according to the second private key λ law Perform hash operation to obtain the second public key pk law ;

[0203] Anti-counterfeiting unit, used to use the second private key λ law and signature algorithm for the second public key pk law Sign the selected information in to generate an anti-counterfeiting identification code AFID (Anti-Forgery Identifier, AFID) (Anti-Forgery Identifier, AFID);

[0204] The tracking unit is used to trace the target data based on the tracing request information, smart contract, blockchain information and supervisor signature in case of data leakage or abnormal operation, and obtain the tracing results;

[0205] Among them, smart contracts, blockchain information and supervisor signatures are the tools used and the information obtained when uploading the user's target data to the data platform.

[0206] In addition, after uploading the user's target data to the data platform, the identification code can be used for auditing, and the review agency can perform traceability and verification, specifically:

[0207] (1) Auditing using identification codes:

[0208] Record viewing operations: When any user views a file on the chain, the viewing operation needs to be recorded through a smart contract. This record includes information such as the viewer's identification code (UID), viewing time, and the hash value of the viewed file. The smart contract will package these records and save them on the blockchain to form an unalterable viewing log.

[0209] Record modification operations: When a user modifies a file on the chain, the modification operation also needs to be recorded through a smart contract. The record includes the modifier's identification code (UID), modification time, hash values ​​of the files before and after modification, and other information. The modification operation is recorded on the chain to form an unalterable modification log.

[0210] (2) Traceability and verification by the review agency:

[0211] View and verify logs: The review agency can access the log records on the chain through the anti-counterfeiting identification code (AFID) and smart contracts. Since the data on the chain cannot be tampered with, the review agency can use the anti-counterfeiting identification code (AFID) to verify the authenticity of each record. For example, by comparing the identification code (UID) and AFID in the view and modify operation, confirm whether the operation is legal.

[0212] Generate audit report: The anti-counterfeiting identification code (AFID) generated by the review agency can be used to sign the audit report to ensure the anti-counterfeiting and uniqueness of the audit report. The audit report contains a detailed record of all viewing and modification operations and is stamped with the anti-counterfeiting identification code signature of the review agency to ensure the legitimacy and authority of the report.

[0213] To apply the embodiments of this application, please refer to Figure 3 , Figure 3 Schematic diagram of the on-chain and off-chain asymmetric encryption process provided by an embodiment of the present application, showing the process of performing the on-chain and off-chain asymmetric encryption process; Figure 3 The first part is the process of the mobile user sending the generated first identification code UID to the blockchain network, and the second part is the process of the review agency checking the block {pk1,...,pk i When files on the chain are traced, the anti-counterfeiting identification code AFID is used to ensure that the files on the chain are auditable when they are viewed or modified.

[0214] It should be noted that the traceability authority described in this embodiment needs to be reapplied after the user goes offline.

[0215] The anti-counterfeiting identification code of the traceability module 20 of the embodiment of the present application is used as a key verification element in the process of data traceability and tracking; the smart contract defines the rules and processes for data traceability and tracking, such as the verification logic of each link such as the source, storage, and transmission of data; the blockchain, as a distributed ledger, records the historical records of data, including information on each link such as the creation, modification, and transmission of data. By querying the records on the blockchain, the source and flow of data can be tracked; the signature of the supervisor can ensure the authenticity of the data and the legality of the operation, so that each operation can be traced back to the specific person responsible; combining these elements, the data can be effectively traced and tracked to ensure the authenticity, integrity, and credibility of the traceability results;

[0216] In addition, the immutability and transparency of blockchain can ensure that all data operations are recorded on the chain, and any tampering will be discovered; digital signatures and encryption technology can ensure the authenticity of data and the legality of operations, so that each operation can be traced back to the specific responsible person; smart contracts can automatically execute and record operations through predefined rules and logic to ensure the compliance and transparency of the process; therefore, these technical means together constitute the entire data traceability system, ensuring that every step of the data operation throughout the life cycle can be recorded, traced and verified. The combined use of these steps not only improves the security of data, but also enhances the ability of data traceability.

[0217] Overall, the embodiments of the present application have the following beneficial effects:

[0218] In this application, the traceability request information, as the starting point of data traceability, can be the key to information traceability, quickly respond to and process the traceability needs of users, and ensure the timeliness and effectiveness of data traceability; since the smart contract can automatically perform data traceability and tracking operations according to predefined rules, the efficiency and accuracy of traceability can be improved; by storing the target data on the chain, the authenticity and immutability of the data are ensured, so the reliability of blockchain information provides strong support for data traceability, making the traceability results highly credible and authoritative, so by querying the records on the blockchain, the tracking of the entire life cycle of the data can be achieved; the supervisor's signature can ensure the authenticity of the data and the legality of the operation, so that each operation can be traced back to the specific person in charge; so these elements combined can effectively trace and track the target data, and ensure the authenticity, integrity and credibility of the traceability results;

[0219] In addition, for user registration, public and private keys are generated to ensure identity uniqueness and immutability; for user login, access control is performed through smart contracts, which are divided into read-only and read-write contracts, corresponding to the permissions for data viewing and data transmission respectively; for data broadcasting, after the user's identity authentication is passed, the blockchain address is broadcast, and the message signature verification in the communication can ensure the authenticity of the message source and content; for user authorization, the IoT device verifies the received user information to ensure the legitimacy and consistency of the access request. These steps ensure the immutability and traceability of the data, and each data access and operation is accurately recorded and verified, thus realizing the function of data traceability.

[0220] Embodiment three:

[0221] The embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the energy power engineering data traceability and tracking method;

[0222] Wherein, the traceability and tracking method of energy and power engineering data, if implemented in the form of a software functional unit and used as an independent product, can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0223] The above are preferred embodiments of the present invention. It should be noted that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A method for tracing and tracking energy and power engineering data, characterized in that: Applicable to data platforms, including: Get the user's traceability request information; Based on the traceability request information, the target data is traced and tracked according to the smart contract, blockchain information and supervisor signature to obtain a traceability result; wherein the smart contract is obtained by deploying a contract with access control on the alliance chain, the blockchain information is obtained by storing the target data on the chain, the supervisor signature is obtained by authorizing the user, and the target data is stored in the energy and power engineering data alliance chain of the data platform.

2. A method for tracing and tracking energy and power engineering data as claimed in claim 1, characterized in that: Before obtaining the user's tracing request information, the method further includes: Implementing user login based on the smart contract; Authorizing the user according to the public key certificate and the interception data; wherein the public key certificate is generated according to the signature of the supervisor of the user; Receive target data of the user.

3. A method for tracing and tracking energy and power engineering data as claimed in claim 2, characterized in that: User login is implemented based on smart contracts, specifically: Generate a user signature according to a preset private key; wherein the preset private key is obtained by the user registering his identity on the data platform in advance through asymmetric encryption; Control the smart contract to verify the user signature through a preset public key; If the verification is successful, the user is allowed to complete the login.

4. A method for tracing and tracking energy and power engineering data as claimed in claim 3, characterized in that: The preset private key is obtained by the user through identity registration on the data platform in advance through asymmetric encryption, specifically: Generate a first private key by using a random number generator, and initialize parameters in the first private key to obtain initialization parameters; Generate a first public key according to the parameter order relationship in the initialization parameters; Performing a hash operation on the first public key to obtain a first identification code of the user; The first public key is made public, the first private key is retained, and the identity registration of the user is realized by sending the first identification code of the user to the blockchain network of the data platform; The retained first private key is used as the preset private key.

5. The method for tracing and tracking energy and power engineering data according to claim 2, characterized in that: Authorize the user according to the public key certificate and the monitoring data, specifically: Generate the public key certificate according to the supervisor signature of the user; Monitoring the communication process between the user and the IoT device to obtain communication information; If the communication information is consistent with the information when broadcasting the blockchain address, the user is authorized based on the generation of the public key certificate.

6. The method for tracing and tracking energy and power engineering data according to claim 1, characterized in that: The blockchain information is obtained by storing the target data on the chain, specifically: The relevant certification materials signed with official agencies and enterprises and institutions at all levels in the target data are stored on the chain to obtain the first information; Evaluate the project quality and engineering progress in the target data according to the relevant certification materials to obtain an evaluation result, and perform a chain-based storage operation on the evaluation result to obtain second information; The timestamp of the project revision and the information of the person in charge of the revision in the target data are stored on the chain to obtain the third information; The blockchain information is composed of the first information, the second information and the third information.

7. The method for tracing and tracking energy and power engineering data according to claim 1, characterized in that: Based on the traceability request information, data traceability and tracking are performed according to the smart contract, blockchain information and the supervisor signature to obtain the traceability results, which are specifically: Generate a second private key using a random number generator; Perform a hash operation on the second private key to obtain a second public key; Sign the selected information in the second public key using the second private key and the signature algorithm to generate an anti-counterfeiting identification code; On the basis of the anti-counterfeiting identification code, the target data is traced and tracked according to the traceability request information, the smart contract, the blockchain information and the supervisor's signature to obtain the traceability result.

8. A device for tracing and tracking energy and power engineering data, characterized in that: Applicable to data platform, including information module and traceability module; Wherein, the information module is used to obtain the user's tracing request information; The traceability module is used to trace and track the target data based on the traceability request information, according to the smart contract, blockchain information and the supervisor's signature, to obtain a traceability result; wherein the smart contract is obtained by deploying a contract with access control on the alliance chain, the blockchain information is obtained by storing the target data on the chain, the supervisor's signature is obtained by authorizing the user, and the target data is stored in the energy and power engineering data alliance chain of the data platform.

9. The energy and power engineering data tracing and tracking device according to claim 8, characterized in that: Before the data module, it also includes a login module, an authorization module and a receiving module; Wherein, the login module is used to implement user login based on the smart contract; The authorization module is used to authorize the user according to the public key certificate and the monitoring data; wherein the public key certificate is generated according to the signature of the supervisor of the user; The receiving module is used to receive the target data of the user.

10. The energy and power engineering data tracing and tracking device according to claim 9, characterized in that: The login module includes a signature unit, a verification unit and a login unit; The signature unit is used to generate a user signature according to a preset private key; wherein the preset private key is obtained by the user registering his identity on the data platform in advance through an asymmetric encryption method; The verification unit is used to control the smart contract to verify the user signature through a preset public key; The login unit is used to enable the user to complete the login if the verification is successful.

11. The energy and power engineering data traceability and tracking device according to claim 10, characterized in that: The signature unit includes an initial subunit, an order subunit, a hash subunit, a registration subunit and a private key subunit; The initial subunit is used to generate a first private key through a random number generator, and initialize the parameters in the first private key to obtain initialization parameters; The order subunit is used to generate a first public key according to the parameter order relationship in the initialization parameter; The hash subunit is used to perform a hash operation on the first public key to obtain a first identification code of the user; The registration subunit is used to make the first public key public, retain the first private key, and implement the identity registration of the user by sending the first identification code of the user to the blockchain network of the data platform; The private key subunit is used to use the retained first private key as the preset private key.

12. The energy and power engineering data tracing and tracking device according to claim 9, characterized in that: The authorization module includes a certification unit, a monitoring unit and an authorization unit; Wherein, the certificate unit is used to generate the public key certificate according to the supervisor signature of the user; The monitoring unit is used to monitor the communication process between the user and the IoT device to obtain communication information; The authorization unit is used to authorize the user on the basis of generating the public key certificate if the communication information is consistent with the information when broadcasting the blockchain address.

13. The energy and power engineering data tracing and tracking device according to claim 8, characterized in that: The traceability module includes a first material unit, a second material unit, a third material unit and a comprehensive unit; The first material unit is used to store relevant certification materials signed with official agencies and enterprises and institutions at all levels in the target data on a chain to obtain first information; The second material unit is used to evaluate the project quality and engineering progress in the target data according to the relevant certification materials to obtain an evaluation result, and to store the evaluation result on the chain to obtain second information; The third material unit is used to store the timestamp of the project revision and the information of the person in charge of the revision on the chain to obtain the third information; The integration unit is used to form the blockchain information from the first information, the second information and the third information.

14. The device for tracing and tracking energy and power engineering data according to claim 8, characterized in that: The tracing module includes a random unit, a public key unit, an anti-counterfeiting unit and a tracking unit; Wherein, the random unit is used to generate a second private key through a random number generator; The public key unit is used to perform a hash operation according to the second private key to obtain a second public key; The anti-counterfeiting unit is used to sign the selected information in the second public key using the second private key and the signature algorithm to generate an anti-counterfeiting identification code; The tracking unit is used to trace and track the target data based on the anti-counterfeiting identification code, according to the traceability request information, the smart contract, the blockchain information and the supervisor signature, to obtain the traceability result.

15. A storage medium, characterized in that: The storage medium stores a computer program, which is called and executed by a computer to implement a method for tracing and tracking energy and power engineering data as described in any one of claims 1 to 7 above.