Carbon label encoding verification method and system for power equipment
By generating a dedicated key in the carbon tag and switching to a two-way authentication state, the reliability problem of identity and data verification of carbon tags under offline conditions is solved, enabling independent verification at the power equipment site and reducing the risk of key leakage and data tampering.
Patent Information
- Application Number
- CN202611665076.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-27
- Publication Date
- 2026-11-24
AI Technical Summary
The credibility of existing carbon tags relies on key distribution links and online services, making it difficult to independently verify carbon tag identity and carbon data under on-site offline conditions, which poses risks of key leakage and data tampering.
By generating key derivation parameters based on the root key, the reading and writing end and the verification end generate dedicated keys locally. After the carbon tag is assigned a code, it switches to a secure state that requires two-way authentication, establishing the association between the carbon tag and the device. The verification end performs two-way authentication and verification under offline conditions.
It enables carbon tags to independently verify identity and data credibility under offline conditions, reduces the risk of key leakage, prevents data tampering, and is suitable for verification scenarios where power equipment is widely distributed and in complex environments.
Smart Images

Figure CN123158701A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of label coding and verification technology, and in particular to a method and system for carbon label coding and verification of power equipment. Background Technology
[0002] In the application of carbon tags for power equipment, in order to ensure the credibility and traceability of carbon data of power equipment, radio frequency identification carbon tags are usually used to store encrypted carbon data of power equipment, and reading and writing devices, verification devices and back-end systems work together to complete the coding and verification of carbon tags.
[0003] In existing technologies, carbon tag access keys are typically generated by a backend system or security module and then distributed to the reading device via a communication or distribution link. The reading device then accesses the carbon tag using the key. This access process generally relies on online support from the backend system, and the coded carbon tag can often still be accessed or reconfigured by any reading device. Therefore, the trustworthiness of the carbon tag and its data is entirely anchored to external conditions. The security of the tag key depends on the security of the key distribution link; the key must be transmitted through the link and stored at the other end. If the link or the other end device is compromised, the key will be leaked. The authenticity of the tag identity and data depends on online backend support; on-site verification cannot be completed in a network-off environment. The tag state lacks fixed constraints, and it can still be reconfigured after coding, posing a risk of data tampering and misuse. It is clear that the carbon tag itself lacks the ability to independently verify its authenticity. Once the key distribution link is untrusted or the site is offline, the authenticity of the carbon tag's identity and the integrity of the carbon data cannot be guaranteed.
[0004] However, in the application scenario of carbon tags for power equipment, the carbon data of the power equipment needs to be bound to the specific equipment and updated with the equipment's operating cycle. After the carbon tag is delivered for use, it needs to be reliably verified offline in the field. However, the reliability of the carbon tag in the existing solution depends on the key distribution link and online service. Under the condition of offline in the field and unreliable link, the verification of carbon tag identity and carbon data cannot be completed independently, and the reliability of the carbon tag after coding is difficult to guarantee. Summary of the Invention
[0005] The purpose of this invention is to overcome the shortcomings of existing technologies where the trustworthiness of carbon tags depends on external conditions such as key distribution links and online services, and they lack independent self-verification capabilities, making it difficult to meet the requirements of binding carbon data of power equipment to devices and verifying it offline on-site. This invention provides a method and system for carbon tag coding and verification of power equipment. By issuing key derivation parameters based on the root key only to the reader / writer and verification ends, a dedicated key is generated locally by both ends in conjunction with the unique identifier of the carbon tag. This ensures that the key does not come into contact with the link, avoiding the risk of leakage caused by key transmission through the link and storage at the other end. Furthermore, by controlling the reader / writer to send an exit quick initialization command, it enables… The carbon tag is switched to a secure state requiring two-way authentication and then solidified to prevent the carbon tag from being reconfigured, the data from being tampered with, or misused after coding. At the same time, after writing encrypted carbon data of the power equipment, an association relationship is established between the carbon tag and the equipment and data. After passing two-way authentication, the verification end can perform offline verification by reading the carbon data of the power equipment and the association relationship. Thus, even when the link is untrusted or the site is offline, the reading end and the verification end can still independently verify the authenticity of the carbon tag identity and the integrity of the carbon data, realizing a trusted closed loop for the entire process of carbon tag coding and verification, and ensuring the authenticity and integrity of the carbon tag identity and carbon data of the power equipment.
[0006] The objective of this invention is achieved through the following technical solution: The carbon labeling verification method for electrical equipment includes: Based on the root key, key derivation parameters are generated and sent to the reader / writer. The reader / writer then generates a dedicated key for the carbon tag to be coded based on the key derivation parameters and the unique identifier of the carbon tag to be coded, and writes it into the carbon tag to be coded. Retrieve encrypted carbon data of power equipment, write it into the carbon tag to be coded via the read / write terminal, and establish the association between the carbon tag to be coded and the power equipment and the carbon data of the power equipment; In response to the write completion information from the read / write end, the control end sends an exit fast initialization command to the carbon tag to be coded, so that the carbon tag to be coded switches from the plaintext accessible state to the secure state that requires two-way authentication, thus completing the carbon tag coding. Send key derivation parameters to the verification terminal. The verification terminal generates a dedicated key for the carbon tag based on the key derivation parameters and the unique identifier of the carbon tag on the power equipment, so as to perform two-way authentication with the carbon tag on the power equipment. After two-way authentication is successful, the carbon data of the power equipment is read, and the carbon label is verified in conjunction with the corresponding correlation.
[0007] Furthermore, the generation of key derivation parameters based on the root key includes: Using the root key as input key material, combined with a preset first salt value, the first pseudo-random key is extracted through a hash operation with the key. Using the first pseudo-random key as the key material and the coding task identifier of the current coding task as the context information, the task-derived key is obtained by hash operation. Generate a task random number, and concatenate the task derived key, the assigned task identifier, the task validity period, the task random number and the current key version number in the first preset order to obtain the task assignment parameters sent to the read and write end. Based on the task-derived key and the unique identifier of the carbon tag to be verified, tag verification parameters are generated and sent to the verification end. The tag verification parameters include at least an authorized unique identifier, a verification purpose identifier, and the current key version number. The authorized unique identifier is the unique identifier of the carbon tag to be verified.
[0008] Furthermore, the step of generating a dedicated key for the carbon tag to be coded based on the key derivation parameters and the unique identifier of the carbon tag to be coded via the read / write terminal and writing it into the carbon tag to be coded includes: The reader sends an inventory command to the carbon tag to be coded and receives the unique identifier returned by the carbon tag in response to the inventory command. Obtain the task-derived key from the task coding parameters, and concatenate the task-derived key with the received unique identifier in a second preset order to obtain the dispersion factor data; Using dispersion factor data as input key material, combined with a preset second salt value, the second pseudo-random key is extracted through a hash operation with the key. Using the second pseudo-random key as the key material and the identification purpose tag and the current key version number as context information, the special key of the carbon tag to be coded is obtained by hash operation and written into the carbon tag to be coded.
[0009] Furthermore, the step of generating a dedicated key for the carbon tag through the verification terminal based on the key derivation parameters and the unique identifier of the carbon tag on the power equipment includes: The system sends an inventory command to the carbon tag on the power equipment through the verification terminal and receives the unique identifier returned by the carbon tag in response to the inventory command. When the unique identifier is consistent with the authorized unique identifier and the current operation is for verification purposes, the label verification parameters and the unique identifier are concatenated in the second preset order to obtain the dispersion factor data. Using dispersion factor data as input key material, combined with a preset second salt value, the second pseudo-random key is extracted through a hash operation with the key. Using the second pseudo-random key as the key material and the identification purpose tag and the current key version number as context information, a dedicated key for the carbon tag is obtained through hash operation.
[0010] Furthermore, before sending the key derivation parameters to the reader / writer, the following is also performed: Perform external authentication with the reader / writer and receive a pre-defined whitelist of devices; When the reader / writer is within the preset whitelist of devices and external authentication is successful, the key derivation parameters are sent to the reader / writer. If the reader / writer is not in the preset whitelist of devices or external authentication fails, the coding of the carbon tag to be coded will be terminated and the exception will be recorded.
[0011] Furthermore, after switching the carbon tag to be encoded from a plaintext accessible state to a secure state requiring two-way authentication and completing the carbon tag encoding, the following steps are also performed: In response to a carbon data change signal from power equipment, an update token carrying an update authorization random number and a target data version number is generated and sent to the read / write end. When the signature of the update token is valid and the update authorization random number has not been used at the read / write end, bidirectional authentication is performed with the carbon tag on the power equipment. After successful identification, the current data version number stored in the carbon tag is read. When the target data version number is consecutive to the stored current data version number, the updated carbon data of the power equipment is written to the carbon tag, and the data version number stored in the carbon tag is updated to the target data version number.
[0012] Furthermore, the bidirectional authentication with the carbon tag on the power equipment includes: Send an authentication request carrying a first random number to the carbon tag; The carbon tag calculates and returns an authentication response based on its stored private key and a first random number; Based on the corresponding private key, the authentication response is verified. After successful verification, an authentication response calculated based on the corresponding private key and the authentication response is sent to the carbon tag. The carbon tag verifies the authentication response based on its stored private key. After successful verification, an authentication session is established with the carbon tag, and the carbon data of the power equipment stored in the carbon tag is accessed within the authentication session. If any verification fails, the authentication session will be refused and an authentication failure result will be generated.
[0013] Furthermore, the step of reading carbon data from power equipment and verifying carbon labels in conjunction with corresponding relationships includes: Read the unique identifier of the carbon tag and combine it with the corresponding association to determine the target power equipment identifier and the target power equipment carbon data identifier; Read the carbon data of power equipment stored in the carbon tag, and extract the corresponding current power equipment identifier and current power equipment carbon data identifier from the carbon data of power equipment; Verify whether the target power equipment identifier is consistent with the current power equipment identifier, and whether the target power equipment carbon data identifier is consistent with the current power equipment carbon data identifier; When the power equipment identification and the power equipment carbon data identification are consistent, the carbon label is deemed valid and a verification pass result is generated. When the identification of power equipment or the carbon data identification of power equipment is inconsistent, the carbon label is judged to be abnormal and an abnormal verification result is generated.
[0014] Furthermore, the following actions are also taken: Obtain the coding results of each carbon tag to be coded corresponding to the current coding task. The coding results include at least the unique identifier of each carbon tag to be coded, its association with the power equipment and the carbon data of the power equipment, the coding completion status, the coding time, and the serial number of the corresponding read / write terminal. Generate batch coding receipts based on the coding results of each tag to be coded, and archive the batch coding receipts to form a cloud ledger.
[0015] A carbon label coding verification system for power equipment, used to execute any of the above-mentioned carbon label coding verification methods, including: The security control terminal is used to generate key derivation parameters based on the root key and send the key derivation parameters to the read / write terminal and the verification terminal, retrieve encrypted power equipment carbon data and send it to the read / write terminal, establish the association between carbon tags and power equipment and power equipment carbon data, and send state switching control commands to the read / write terminal in response to the write completion information of the read / write terminal. The read / write terminal is used to generate a dedicated key for the carbon tag to be coded based on the key derivation parameters and the unique identifier of the carbon tag to be coded, and write it into the carbon tag to be coded. It also writes the encrypted power equipment carbon data issued by the security control terminal into the carbon tag and sends an exit fast initialization command to the carbon tag to be coded in response to the state switching control command. The verification end is used to generate a dedicated key for the carbon tag based on the key derivation parameters and the unique identifier of the carbon tag on the power equipment. It performs two-way authentication with the carbon tag. After successful authentication, it reads the carbon data of the power equipment and verifies the carbon tag in combination with the corresponding association.
[0016] The beneficial effects of this invention are: Key derivation parameters are only sent to the reader / writer and verification ends. Each end generates a dedicated key locally within its respective security chip, combining the unique identifier of the carbon tag. The key remains within its corresponding device and does not circulate through communication links throughout the entire process of generation, use, and storage. Even if the key derivation parameters or communication links are intercepted, attackers cannot reconstruct the tag's dedicated key. Furthermore, each carbon tag's dedicated key is independent; leakage of any tag's key only affects that single tag and does not impact other tags. After the carbon tag is encoded, it switches from a plaintext-accessible state to a secure state requiring two-way authentication and is permanently stored. The business data area can then only be accessed through two-way authentication. Counterfeit or unauthorized devices cannot read or rewrite tag data in plaintext. Even if the carbon tag leaves the platform's control environment and remains unattended for an extended period, its data remains tamper-proof and unusable. Furthermore, the verification terminal can read carbon data through two-way authentication and complete the verification by combining the correlation relationship under offline conditions. It can independently complete the verification of carbon label identity and carbon data authenticity at the equipment site without relying on online services and cloud databases, so as to adapt to verification scenarios where power equipment is widely distributed, the on-site environment is complex, and it is difficult to guarantee network connectivity. Attached Figure Description
[0017] Figure 1 This is a flowchart of the present invention. Detailed Implementation
[0018] The present invention will be further described below with reference to the accompanying drawings and embodiments.
[0019] Example: A method for verifying carbon label coding of power equipment, such as... Figure 1 As shown, it includes: Based on the root key, key derivation parameters are generated and sent to the reader / writer. The reader / writer then generates a dedicated key for the carbon tag to be coded based on the key derivation parameters and the unique identifier of the carbon tag to be coded, and writes it into the carbon tag to be coded. Retrieve encrypted carbon data of power equipment, write it into the carbon tag to be coded via the read / write terminal, and establish the association between the carbon tag to be coded and the power equipment and the carbon data of the power equipment; In response to the write completion information from the read / write end, the control end sends an exit fast initialization command to the carbon tag to be coded, so that the carbon tag to be coded switches from the plaintext accessible state to the secure state that requires two-way authentication, thus completing the carbon tag coding. Send key derivation parameters to the verification terminal. The verification terminal generates a dedicated key for the carbon tag based on the key derivation parameters and the unique identifier of the carbon tag on the power equipment, so as to perform two-way authentication with the carbon tag on the power equipment. After two-way authentication is successful, the carbon data of the power equipment is read, and the carbon label is verified in conjunction with the corresponding correlation.
[0020] The carbon tag coding and verification method described in this embodiment is applied to the trusted management scenario of carbon tags for power equipment. In this scenario, the carbon data of power equipment needs to be accurately recorded, identified, and verified to support carbon emission accounting and regulatory verification. The carbon tag is attached to the power equipment via radio frequency and serves as a carrier of equipment identity and carbon data. Coding can be performed to write a dedicated key and encrypted carbon data of the power equipment into the tag, binding the tag to the specific equipment and making the carbon tag a trusted credential for the power equipment and its carbon data. Coding is completed in batches during the centralized production and warehousing process, while verification occurs on-site after the equipment is installed in a decentralized manner. On-site verification often lacks network access, and the tags, exposed for extended periods, face the risk of counterfeiting and tampering. Therefore, the carbon tag is set to be accessible in plaintext at the time of manufacture, facilitating rapid coding. After coding, it switches to a secure state requiring two-way authentication. In this secure state, the data can only be accessed after two-way authentication. Thus, even if the carbon tag is removed from the management environment and the on-site network is unavailable, the trustworthiness of the tag identity and data does not depend on online backend support.
[0021] During the coding process, key derivation parameters are first generated based on the root key and sent to the reader / writer. The reader / writer then establishes radio frequency communication with the carbon tag to be coded, reads the unique identifier of the carbon tag, and performs key generation locally using the key derivation parameters and the unique identifier as input. This results in a dedicated key specific to the carbon tag, which is then written to the carbon tag. Since the dedicated key is generated locally at the reader / writer and directly written to the tag without being transmitted through any communication link and without being stored at the other end of the link, even if the parameters are intercepted, the tag key cannot be recovered.
[0022] After the carbon tag is written with a dedicated key, the encrypted carbon data of the power equipment is then written to the carbon tag via a read / write terminal. At the same time, the unique identifier of the carbon tag, the identifier of the power equipment, and the identifier of the carbon data of the power equipment are associated to establish a relationship, so that each carbon tag can be associated with a specific power equipment and its carbon data, providing a basis for comparison for carbon tag verification.
[0023] After the writing is completed, the reader reports the writing completion information. Then, the reader sends an exit quick initialization command to the carbon tag according to the instructions. After receiving the command, the carbon tag switches from the plaintext accessible state to the secure state that requires two-way authentication. After the switch, the data in the tag can no longer be read or rewritten in plaintext. It can only be accessed after authentication is successful. The coding is now complete.
[0024] After coding is completed and the power equipment is installed on-site, when verifying its identity and carbon data, the key derivation parameters can be sent to the verification terminal. The verification terminal reads the unique identifier of the carbon tag on the power equipment and generates a dedicated key locally that matches the tag's internal structure using the same parameters and identifier. This key is then used for bidirectional authentication with the carbon tag. Only when both parties successfully verify the key can the tag's identity be confirmed as authentic. After successful authentication, the carbon data of the power equipment in the carbon tag is read, and the correlation is checked to verify whether the tag, equipment, and data correspond. If all match, the verification is successful. The entire process is completed locally without connecting to a backend system, thus enabling independent verification of the carbon tag's identity and the authenticity of the carbon data even under offline conditions on-site.
[0025] In particular, if the root key or tag key itself is directly distributed to the reader and the verification end, the key material will inevitably be transmitted through the communication link and stored and used in the device at the other end of the link. Once the link is monitored or the device at the other end is compromised, the key will be leaked.
[0026] Therefore, a key derivation parameter, which does not contain the root key or any tag keys, is generated based on the root key and distributed to both ends as derived material that can be securely transmitted over the link. Combined with the unique identifier of the carbon tag, key derivation is performed locally at the reading / writing and verification ends to obtain the dedicated key corresponding to each carbon tag. Even if the parameter is intercepted, no key can be recovered. The key material does not leave the security boundary of each device throughout the entire process of generation, use, and storage. At the same time, since the derivation result is bound to the unique identifier of the tag, each carbon tag can obtain a unique key. The verification end does not need to store or obtain any tag keys. It can reconstruct the key consistent with the tag in an offline state for authentication based only on the parameter and the identifier read on site. This reduces the risk of key link leakage and ensures the reproducible consistency of keys at both ends.
[0027] The key derivation parameters generated based on the root key include: Using the root key as input key material, combined with a preset first salt value, the first pseudo-random key is extracted through a hash operation with the key. Using the first pseudo-random key as the key material and the coding task identifier of the current coding task as the context information, the task-derived key is obtained by hash operation. Generate a task random number, and concatenate the task derived key, the assigned task identifier, the task validity period, the task random number and the current key version number in the first preset order to obtain the task assignment parameters sent to the read and write end. Based on the task-derived key and the unique identifier of the carbon tag to be verified, tag verification parameters are generated and sent to the verification end. The tag verification parameters include at least an authorized unique identifier, a verification purpose identifier, and the current key version number. The authorized unique identifier is the unique identifier of the carbon tag to be verified.
[0028] The generation of the key derivation parameters is performed when the coding task is established. Using the root key as input key material, combined with a preset first salt value, a first pseudo-random key is extracted through a keyed hash operation. The first salt value is a random number pre-generated and saved before the coding task is established. Adding the first salt value during the extraction operation increases the entropy of the derived input and reduces the risk of pre-computation attacks on the hash operation. Even if partial information of the root key is exposed, it is difficult to deduce the derived key based on the publicly available parameters. The keyed hash operation refers to a method of performing a one-way hash operation on the input data using the key material as the operation key. Specifically, the key material and input data can be combined in a preset manner and then input into a hash function, or existing keyed hash operations can be used. In this embodiment, the root key and the first salt value jointly participate in the keyed hash operation, and the result is used as the first pseudo-random key.
[0029] Using the first pseudo-random key as the key material and the coding task identifier of the current coding task as context information, a task-derived key is obtained through hash operation. The hash operation used to obtain the task-derived key is a one-way hash operation, similar to the extraction operation of the first pseudo-random key. The difference is that it uses the first pseudo-random key as the operation key and the coding task identifier as input data, allowing for expansion to obtain the task-derived key under the constraint of the coding task identifier. After the coding task identifier participates in the expansion, different coding tasks each obtain independent task-derived keys. The keys between tasks are isolated from each other. Even if the derivation parameters issued by any task are leaked, the impact is limited to carbon tags within the scope of that task. Furthermore, since the task identifier is bound to the derivation process, the task-derived key cannot be transferred to other tasks, ensuring its uniqueness.
[0030] Based on this, a task random number is generated, and the task-derived key, the task identifier, the task validity period, the task random number, and the current key version number are concatenated in a first preset order to obtain the task coding parameters sent to the read / write end. The first preset order is a pre-agreed concatenation order, and the read / write end can parse the corresponding task coding parameters in the same order to obtain the corresponding parameter content. Among the parameter content of the task coding parameters, the task-derived key is used to derive the dedicated key of the carbon tag at the read / write end, the task identifier is used to identify the task, the task validity period is used to limit the usage time, the task random number is used to ensure timeliness and prevent parameters from being replayed, and the current key version number is used to mark the version of the key, thereby providing a basis for distinguishing between the old and new version parameters when the key is rotated.
[0031] In addition, using the task-derived key as the key material and combining it with the unique identifier of the carbon tag to be verified, a hash operation is performed to generate tag verification parameters that are sent to the verification end. The hash operation used to generate the tag verification parameters also uses the task-derived key as the operation key and the unique identifier of the carbon tag to be verified as the input data to perform a one-way hash operation. The tag verification parameters include at least an authorized unique identifier, a verification purpose identifier, and a current key version number. The authorized unique identifier is the unique identifier of the carbon tag to be verified.
[0032] In the tag verification parameters, the authorized unique identifier is used to limit the verification scope to a specific carbon tag, the verification purpose identifier is used to indicate the verification purpose and prevent it from being misused for other scenarios such as coding, and the current key version number is used to ensure that the version used by the verification terminal is consistent with that used during coding.
[0033] The tag verification parameters are pre-set to the verification terminal during the coding network phase. The verification terminal can reconstruct a dedicated key that is consistent with the tag based on the information carried by the tag verification parameters and the unique identifier of the carbon tag read on site, thereby completing offline verification without storing or obtaining the tag key.
[0034] The task coding parameters are used by the read / write end to assign codes to a batch of carbon tags, while the tag verification parameters are used by the verification end to verify a specific carbon tag.
[0035] After generating the task coding parameters and tag verification parameters, the reading and writing ends generate a dedicated key for the carbon tag to be coded during the coding phase and write it into the carbon tag. During the verification phase, the verification end generates a dedicated key for the carbon tag. Only key derivation parameters without key materials are sent over the communication link during the coding phase. The dedicated key for the carbon tag to be coded is generated and written locally on the reading and writing ends, avoiding the exposure of key materials and reducing the risk of key leakage. Furthermore, since the derived input includes the read-only unique identifier inherent in the carbon tag, the reading and writing ends can continuously generate unique keys for different carbon tags, adapting to batch coding scenarios. The verification end only pre-sets key derivation parameters without key materials. During verification, it reads the unique identifier of the carbon tag on the power equipment and generates a dedicated key locally that matches the one in the carbon tag. The verification end itself does not store any tag keys; therefore, key leakage is not involved even if the equipment is lost or compromised. When offline in the field, the key can be reconstructed using the locally pre-set parameters and the identifier read on-site, effectively adapting to on-site offline verification scenarios.
[0036] Specifically, the step of generating a dedicated key for the carbon tag to be coded based on the key derivation parameters and the unique identifier of the carbon tag to be coded through the reader / writer and writing it into the carbon tag to be coded includes: The reader sends an inventory command to the carbon tag to be coded and receives the unique identifier returned by the carbon tag in response to the inventory command. Obtain the task-derived key from the task coding parameters, and concatenate the task-derived key with the received unique identifier in a second preset order to obtain the dispersion factor data; Using dispersion factor data as input key material, combined with a preset second salt value, the second pseudo-random key is extracted through a hash operation with the key. Using the second pseudo-random key as the key material and the identification purpose tag and the current key version number as context information, the special key of the carbon tag to be coded is obtained by hash operation and written into the carbon tag to be coded.
[0037] In this embodiment, the reading and writing terminal performs the generation and writing of the carbon tag's dedicated key. The reading and writing terminal first sends an inventory instruction to the carbon tag to be coded. The carbon tag to be coded responds to the inventory instruction and returns its unique identifier. The inventory instruction is used to obtain the identity of the carbon tag within the radio frequency field. Through the interaction of the inventory instruction, the reading and writing terminal does not need to pre-register any information of the tag to be coded, and can directly obtain the unique identifier of each tag at the coding site.
[0038] The read / write end then obtains the task-derived key from the task assignment parameters, and concatenates the task-derived key with the received unique identifier in a second preset order to obtain the dispersion factor data. The second preset order is a pre-agreed concatenation order that is independent of the first preset order. The read / write end can parse the task assignment parameters in the first preset order to obtain the corresponding task-derived key.
[0039] Then, using the dispersion factor data as input key material, combined with a preset second salt value, a second pseudo-random key is extracted through a hash operation with a key. The hash operation with a key is the same as the operation method used to generate the first pseudo-random key. The second salt value is a preset random number, which is independent of the first salt value. It is used to increase the entropy of the local derivation process at the read / write end, so that the local derivation result cannot be pre-calculated or predicted.
[0040] Using a second pseudo-random key as the key material, and with an authentication purpose label and the current key version number as context information, a dedicated key for the carbon tag to be coded is obtained through hash operation and written into the carbon tag. The authentication purpose label indicates that the key serves a two-way authentication purpose and restricts its scope of use. The current key version number is consistent with the key version at the time of coding. After the expanded dedicated key is written into the carbon tag, the carbon tag can hold a key credential bound to its identity and used for two-way authentication.
[0041] Specifically, the step of generating a dedicated key for the carbon tag through the verification terminal based on key derivation parameters and the unique identifier of the carbon tag on the power equipment includes: The system sends an inventory command to the carbon tag on the power equipment through the verification terminal and receives the unique identifier returned by the carbon tag in response to the inventory command. When the unique identifier is consistent with the authorized unique identifier and the current operation is for verification purposes, the label verification parameters and the unique identifier are concatenated in the second preset order to obtain the dispersion factor data. Using dispersion factor data as input key material, combined with a preset second salt value, the second pseudo-random key is extracted through a hash operation with the key. Using the second pseudo-random key as the key material and the identification purpose tag and the current key version number as context information, a dedicated key for the carbon tag is obtained through hash operation.
[0042] During the verification phase, the verification terminal sends an inventory command to the carbon tag on the power equipment. The carbon tag responds to this command by returning its unique identifier. Through this interaction, the verification terminal directly obtains the unique identifier of the carbon tag at the verification site. The verification terminal compares the received unique identifier with the authorized unique identifier in the tag verification parameters and confirms that the current operation is for a verification purpose based on the verification purpose identifier in the tag verification parameters. If the unique identifier matches the authorized unique identifier, it indicates that the carbon tag is within the scope of this authorized verification. If the operation is confirmed to be for a verification purpose, it indicates that the usage scenario of the tag verification parameters matches its set purpose. When both verifications are satisfied, the tag verification parameters and the unique identifier are concatenated in a second preset order to obtain the dispersion factor data.
[0043] The dispersion factor data is used as the input key material, and the second salt value is used as an additional input. The dispersion factor data and the second salt value are combined in a pre-defined manner as the input for a keyed hash operation. A one-way hash calculation is performed using the dispersion factor data as the operation key and the combined data as the operation object. The result is used as the second pseudo-random key. The second salt value is a preset random number, consistent with the second salt value used during derivation at the read / write end, ensuring alignment of the derivation results at both ends.
[0044] Finally, the second pseudo-random key is used as the operation key, and the identification purpose tag and the current key version number are used as input data. After hash operation, the dedicated key of the corresponding carbon tag is obtained. The verification end uses the dedicated key to perform two-way authentication with the carbon tag, and no longer writes the key to the carbon tag.
[0045] Furthermore, the derivation process at the verification end corresponds step-by-step with the derivation process at the read / write end during coding. Both the read / write and verification ends deal with the same carbon tag. The unique identifier obtained during inventory is the read-only attribute inherent in the carbon tag. Both ends read the same identifier. The task coding parameters and tag verification parameters are both generated based on the task-derived key of the same coding task. The key materials are from the same source, and both ends concatenate the source key materials with the same unique identifier in the same second preset order to obtain the same dispersion factor data. Both ends preset the same second salt value. After performing the same keyed hash operation with the same dispersion factor data, the same second pseudo-random key is obtained. Both ends then perform the same hash expansion operation with the same authentication tag and the current key version number as context information to obtain the same dedicated key. Moreover, the hash operation used for expansion at both ends is consistent with the hash operation method used to extract the corresponding pseudo-random key.
[0046] Meanwhile, to prevent counterfeit or unauthorized readers from stealing key derivation parameters, and to ensure the trustworthiness of carbon tag coding by confining the establishment of tag identity and data within a trusted device range, the following steps are performed before sending key derivation parameters to the reader: Perform external authentication with the reader / writer and receive a pre-defined whitelist of devices; When the reader / writer is within the preset whitelist of devices and external authentication is successful, the key derivation parameters are sent to the reader / writer. If the reader / writer is not in the preset whitelist of devices or external authentication fails, the coding of the carbon tag to be coded will be terminated and the exception will be recorded.
[0047] The external authentication specifically verifies the identity of the reader / writer using a pre-configured device key. Specifically, an authentication random number is first sent to the reader / writer. The reader / writer then performs a calculation on this random number using the pre-configured device key and returns the result. This result is compared with the expected result obtained by performing the same calculation on the same authentication random number using the same device key. If they match, authentication is successful; otherwise, authentication fails. Successful authentication indicates that the reader / writer is indeed a registered and legitimate device. Simultaneously, a pre-configured device whitelist is received. This whitelist is a pre-registered list of reader / writers allowed to participate in code assignment, used to determine whether the reader / writer is within the permitted range for code assignment.
[0048] During verification, the current reader / writer is compared with a preset whitelist of devices, and the results of external authentication are also considered. If the reader / writer is on the preset whitelist and external authentication is successful, it indicates that the reader / writer is both within the permitted scope and has been verified as a legitimate device. When both conditions are met, key derivation parameters are sent to the reader / writer, which then continues with the subsequent carbon tag key derivation and writing. However, if the reader / writer is not on the preset whitelist or external authentication fails, it indicates that the reader / writer is not registered within the permitted scope or its identity has not been verified. If either condition is not met, the carbon tag assignment process is terminated, and the verification status of the reader / writer is recorded as an anomaly for traceability.
[0049] After the current read / write end completes two verifications and generates a dedicated key, and writes the dedicated key into the carbon tag, the encrypted carbon data of the power equipment is retrieved. The encrypted carbon data of the power equipment scheduled during the coding phase refers to the initial carbon data that can be determined at the factory stage of the power equipment, that is, information related to the carbon emission attributes of the power equipment, such as the carbon emission management identifier of the power equipment, the carbon emission characteristic parameters set at the factory, and the initial carbon data record, etc. This type of data can be determined at the time of manufacture of the power equipment and does not depend on its actual operation. Moreover, it is obtained in encrypted form during retrieval. The encrypted data does not expose the plaintext content during the writing and storage process. Even if the carbon tag is read illegally, the carbon data in the tag cannot be directly interpreted.
[0050] The retrieved encrypted carbon data of the power equipment is written to the carbon tag to be coded via a read / write terminal. This writing occurs while the carbon tag is in a plaintext accessible state. Simultaneously, a link is established between the carbon tag to be coded and the power equipment and its carbon data. This link uses the unique identifier of the carbon tag as an index, recording the correspondence between the unique identifier of the carbon tag, the identifier of the power equipment, and the identifier of the power equipment's carbon data, ensuring that each carbon tag corresponds to a specific power equipment and its carbon data. Once the link is established, it is saved as a queryable record. During subsequent verification, the verification terminal can read the unique identifier of the carbon tag, determine the corresponding power equipment and its carbon data based on this link, and then compare the read carbon data with the data pointed to by the link to determine whether the carbon tag and its contained carbon data truly correspond, thus completing the verification of the carbon tag.
[0051] After the read / write terminal completes the writing of the dedicated key and the carbon data of the power equipment, it sends back a writing completion message. The writing completion message indicates that the key and data in the tag have been written, and the coding process then enters the state switching stage.
[0052] In response to the write completion information, the control reader sends an exit quick initialization command to the carbon tag to be coded. The exit quick initialization command is a dedicated switching command for the plaintext state set at the factory of the carbon tag. After the carbon tag recognizes the exit quick initialization command, it switches from the plaintext accessible state to the secure state that requires two-way authentication. In the plaintext accessible state, the carbon tag can be directly read and written. In the secure state, the business data in the carbon tag no longer accepts plaintext reading and rewriting. Any access must first pass two-way authentication.
[0053] This state transition is a one-way process, and once established, the secure state is maintained indefinitely. In this state, the carbon tag only responds to access requests that have passed bidirectional authentication. Since the dedicated key and the power equipment's carbon data were written before the transition, the carbon tag possesses complete key and data after the transition and is in a protected access state. At this point, the carbon tag encoding is complete. After being encoded, the carbon tag leaves the encoding process and enters the equipment installation site. Its data remains inaccessible in plaintext, and the tag's identity and data are unaffected by arbitrary reading or modification by devices outside the encoding environment.
[0054] After the carbon tags are assigned, they are shipped with the power equipment and installed on-site. After the equipment is put into operation, the carbon tags and carbon data need to be verified on-site to confirm the identity of the carbon tags and the authenticity of the carbon data, supporting carbon emission accounting and regulatory verification. The verification of carbon tags and carbon data requires reading the internal business data of the carbon tags. Due to the security constraints of its two-way authentication, the corresponding verification terminal must first perform two-way authentication with the carbon tag. Only when the two-way authentication is successful can the business data in the carbon tag be accessed or rewritten, thereby ensuring the security of the corresponding business data and reducing the risk of leakage.
[0055] The bidirectional authentication with the carbon tag on the power equipment includes: Send an authentication request carrying a first random number to the carbon tag; The carbon tag calculates and returns an authentication response based on its stored private key and a first random number; Based on the corresponding private key, the authentication response is verified. After successful verification, an authentication response calculated based on the corresponding private key and the authentication response is sent to the carbon tag. The carbon tag verifies the authentication response based on its stored private key. After successful verification, an authentication session is established with the carbon tag, and the carbon data of the power equipment stored in the carbon tag is accessed within the authentication session. If any verification fails, the authentication session will be refused and an authentication failure result will be generated.
[0056] At the start of the current two-way authentication, the verification end generates a first random number. This first random number is random data generated by the verification end and is regenerated for each authentication, ensuring that each authentication is unique. This first random number is then used as part of the authentication request. The verification end sends the authentication request carrying this first random number to the carbon tag and applies it to the calculation and verification of the authentication response. This ensures that the current authentication carries different random parameters than previous authentications. Even if a previous authentication request and response are intercepted, the intercepted data cannot be replayed in the current two-way authentication because the first random number used in the new two-way authentication is different, thus guaranteeing the timeliness of the authentication.
[0057] After receiving an authentication request, the carbon tag uses its stored special key as the operation key and the first random number as the input data to perform a keyed hash operation, obtain an authentication response, and return it to the verification end. This keyed hash operation is the same as the keyed hash operation used in the generation of the special key, that is, using the key material as the operation key, performing a one-way hash calculation on the input data, obtaining an authentication response, and returning it to the verification end.
[0058] The verification terminal uses the locally generated dedicated key as the operation key and the same first random number as input data to perform the same keyed hash operation to obtain the expected response. This expected response is then compared with the authentication response returned by the carbon tag. If they match, the verification is successful, indicating that the key held by the carbon tag is consistent with that of the verification terminal. After successful verification, the verification terminal uses its dedicated key as the operation key and the authentication response as input data to perform the same keyed hash operation to obtain the authentication reply, which is then sent to the carbon tag.
[0059] The carbon tag uses its stored private key as the operation key and the received authentication response as input data to perform the same keyed hash operation to obtain the expected response. The expected response is compared with the received authentication response. If the two match, the verification is successful, indicating that the key held by the verification end is consistent with the carbon tag. After both parties have successfully verified, an authentication session is established, and the carbon data of the power equipment stored in the carbon tag is accessed within the authentication session. Data access is restricted to the scope of this session.
[0060] If the expected response and the authentication response do not match, or if the expected response and the authentication response do not match, the authentication session will be refused and an authentication failure result will be generated. The carbon data of the power equipment stored in the carbon tag will not be accessed.
[0061] After two-way authentication is successful, the verification end accesses the carbon data of the power equipment written in the carbon tag and performs carbon tag verification in combination with its corresponding relationship.
[0062] The step of reading carbon data from power equipment and verifying carbon labels in conjunction with corresponding relationships includes: Read the unique identifier of the carbon tag and combine it with the corresponding association to determine the target power equipment identifier and the target power equipment carbon data identifier; Read the carbon data of power equipment stored in the carbon tag, and extract the corresponding current power equipment identifier and current power equipment carbon data identifier from the carbon data of power equipment; Verify whether the target power equipment identifier is consistent with the current power equipment identifier, and whether the target power equipment carbon data identifier is consistent with the current power equipment carbon data identifier; When the power equipment identification and the power equipment carbon data identification are consistent, the carbon label is deemed valid and a verification pass result is generated. When the identification of power equipment or the carbon data identification of power equipment is inconsistent, the carbon label is judged to be abnormal and an abnormal verification result is generated.
[0063] During verification, the unique identifier of the carbon tag is read. Using this unique identifier as an index, the target power equipment identifier and the target power equipment carbon data identifier are determined by combining the association relationship. The association relationship is a three-way binding record established during coding, consisting of the carbon tag, the power equipment, and the power equipment carbon data. The target power equipment identifier is the power equipment that the carbon tag should correspond to in the association relationship, and the target power equipment carbon data identifier is the power equipment carbon data that the carbon tag should correspond to in the association relationship.
[0064] Then read the carbon data of the power equipment stored in the carbon tag, and extract the current power equipment identifier and the current power equipment carbon data identifier carried in the carbon data. The current power equipment identifier is the power equipment to which the carbon data belongs, and the current power equipment carbon data identifier is the data ownership declared by the carbon data.
[0065] The system compares the target power equipment identifier with the current power equipment identifier, and also compares the target power equipment carbon data identifier with the current power equipment carbon data identifier, verifying whether the two pairs of identifiers are consistent. When both the power equipment identifier and the power equipment carbon data identifier are consistent, it indicates that the carbon data declaration's attribution matches the expected association record, the binding relationship between the carbon label and its contained carbon data has not been broken, the carbon label is deemed valid, and a verification pass result is generated. When either the power equipment identifier or the power equipment carbon data identifier is inconsistent, it indicates that the carbon data declaration's attribution does not match the expectation, the carbon label or its internal carbon data is abnormal, the carbon label is deemed abnormal, and a verification anomaly result is generated. This verification is completed locally based solely on the association relationship, without relying on online services, and can adapt to on-site offline verification scenarios.
[0066] In addition to the verification of carbon labels and carbon data, the actual carbon emissions data generated after the power equipment is put into operation also need to be written into the carbon label in a controlled manner during the equipment's operation. This updates the carbon data, which, together with the initial carbon data written at the factory, constitutes the carbon data within the label that evolves throughout the equipment's lifecycle, enabling full lifecycle monitoring of the power equipment's carbon data. This carbon data update occurs after the carbon label assignment is completed and the power equipment has been installed and put into operation on-site. The specific process is as follows: In response to a carbon data change signal from power equipment, an update token carrying an update authorization random number and a target data version number is generated and sent to the read / write end. When the signature of the update token is valid and the update authorization random number has not been used at the read / write end, bidirectional authentication is performed with the carbon tag on the power equipment. After successful identification, the current data version number stored in the carbon tag is read. When the target data version number is consecutive to the stored current data version number, the updated carbon data of the power equipment is written to the carbon tag, and the data version number stored in the carbon tag is updated to the target data version number.
[0067] After the power equipment is put into operation, when the carbon data of the power equipment changes, an update token carrying an update authorization random number and a target data version number is generated in response to the carbon data change signal and issued to the read / write terminal. The update token serves as the authorization credential for the current carbon data update operation. The update authorization random number is a one-time random data corresponding to the update token, used to identify the current update operation and prevent the corresponding update token from being reused. The target data version number is the version of the carbon data that should be reached after the update. Furthermore, the update token is protected by a signature, which proves that the token was issued by the authorizing party, and an unauthorized party cannot forge an update token carrying a valid signature.
[0068] After receiving the update token, the reader / writer verifies its signature to confirm that it was indeed issued by the authorizing party. It also checks whether the update authorization random number has been used previously. If it hasn't been used, it indicates a new update authorization; if it has been used, it means the token has already been used for a previous update operation. If the signature verification is successful and the update authorization random number hasn't been used, the reader / writer and the carbon tag on the power equipment perform two-way authentication. The two-way authentication process is consistent with the two-way authentication process between the verification end and the carbon tag on the power equipment. After successful authentication, an authentication session is established, and data updates continue within this session.
[0069] Within the authentication session, the current data version number stored in the carbon tag is read. The target data version number is then compared with this current data version number for continuity. If the target data version number is the next version of the current data version number, and they are consecutive, it indicates that the update proceeds sequentially along the data version sequence. The updated carbon data of the power equipment is written to the carbon tag, and the data version number stored in the carbon tag is updated to the target data version number. However, if the target data version number and the current data version number are not consecutive, the write operation is not performed, and the data and its version number in the carbon tag remain unchanged. This carbon data change can also be adapted to offline environments. Local operation can be achieved simply by pre-setting the update token to the read / write terminal in areas with network connectivity.
[0070] Considering that batch coding involves a large number of carbon tags, in order to improve the management efficiency and accuracy of carbon tags, the following is also performed after coding is completed: Obtain the coding results of each carbon tag to be coded corresponding to the current coding task. The coding results include at least the unique identifier of each carbon tag to be coded, its association with the power equipment and the carbon data of the power equipment, the coding completion status, the coding time, and the serial number of the corresponding read / write terminal. Generate batch coding receipts based on the coding results of each tag to be coded, and archive the batch coding receipts to form a cloud ledger.
[0071] The coding result is generated during the coding process of each carbon tag to be coded, and includes at least the unique identifier of each carbon tag, its association with the power equipment and its carbon data, the coding completion status, the coding time, and the serial number of the corresponding read / write terminal. The unique identifier identifies the carbon tag to which the coding result belongs; the association records the correspondence between the carbon tag and the power equipment and its carbon data; the coding completion status indicates whether the carbon tag has been successfully coded; the coding time records the time point when the coding was completed; and the serial number identifies the read / write terminal that performed the carbon tag coding operation.
[0072] Based on the coding results of each carbon tag to be coded, a batch coding receipt is generated. This batch coding receipt summarizes the coding results of each carbon tag to be coded under the current coding task, forming a complete coding record corresponding to that task. The batch coding receipts are then archived to form a cloud ledger. This cloud ledger centrally stores the batch coding receipts for each coding task, allowing for querying and tracing of the coding results.
[0073] Another aspect of this embodiment also provides a carbon label coding verification system for power equipment, including: The security control terminal is used to generate key derivation parameters based on the root key and send the key derivation parameters to the read / write terminal and the verification terminal, retrieve encrypted power equipment carbon data and send it to the read / write terminal, establish the association between carbon tags and power equipment and power equipment carbon data, and send state switching control commands to the read / write terminal in response to the write completion information of the read / write terminal. The read / write terminal is used to generate a dedicated key for the carbon tag to be coded based on the key derivation parameters and the unique identifier of the carbon tag to be coded, and write it into the carbon tag to be coded. It also writes the encrypted power equipment carbon data issued by the security control terminal into the carbon tag and sends an exit fast initialization command to the carbon tag to be coded in response to the state switching control command. The verification end is used to generate a dedicated key for the carbon tag based on the key derivation parameters and the unique identifier of the carbon tag on the power equipment. It performs two-way authentication with the carbon tag. After successful authentication, it reads the carbon data of the power equipment and verifies the carbon tag in combination with the corresponding association.
[0074] The security control terminal includes a national cryptographic hardware encryption chip, a master control key management module, a log auditing submodule, a human-machine touchscreen, and a first and a second communication interface. The national cryptographic hardware encryption chip serves as a cryptographic root of trust, enabling national cryptographic encryption and decryption operations. It stores the master control root key, which is not exposed to the master control memory, and is used to generate authorization credentials and key derivation parameters. The master control key management module manages the generation and update of the root key. The log auditing submodule records task reception, batch coding, equipment authentication, and anomaly alarm logs, supporting local storage and cloud upload. The first communication interface connects to the carbon tag reader / writer and the verification terminal, performing external authentication and distributing key derivation parameters. The second communication interface interfaces with the cloud business platform, receiving coding tasks and encrypted power equipment carbon data, and uploading coding receipts and audit logs.
[0075] The reader / writer is a carbon tag reader / writer with a built-in security chip and a single-channel radio frequency antenna interface. The security chip is used to perform key distribution operation locally based on the unique identifier of the carbon tag to generate a tag-specific key. The radio frequency antenna is used for wireless coupling communication with the carbon tag to perform tag inventory, key and business data writing, and sending exit quick initialization commands.
[0076] The verification terminal is a handheld verification terminal with a built-in security element and an ultra-high frequency radio frequency module. The security element is used to perform key distribution operation locally, and the radio frequency module is used to read the unique identifier of the carbon tag and perform two-way authentication with the carbon tag. The verification is completed by reading the carbon data of the power equipment stored in the carbon tag under offline conditions.
[0077] The embodiments described above are merely preferred embodiments of the present invention and are not intended to limit the present invention in any way. Other variations and modifications are possible without departing from the technical solutions described in the claims.
Claims
1. A method for verifying carbon label coding of power equipment, characterized in that, include: Based on the root key, key derivation parameters are generated and sent to the reader / writer. The reader / writer then generates a dedicated key for the carbon tag to be coded based on the key derivation parameters and the unique identifier of the carbon tag to be coded, and writes it into the carbon tag to be coded. Retrieve encrypted carbon data of power equipment, write it into the carbon tag to be coded via the read / write terminal, and establish the association between the carbon tag to be coded and the power equipment and the carbon data of the power equipment; In response to the write completion information from the read / write end, the control end sends an exit fast initialization command to the carbon tag to be coded, so that the carbon tag to be coded switches from the plaintext accessible state to the secure state that requires two-way authentication, thus completing the carbon tag coding. Send key derivation parameters to the verification terminal. The verification terminal generates a dedicated key for the carbon tag based on the key derivation parameters and the unique identifier of the carbon tag on the power equipment, so as to perform two-way authentication with the carbon tag on the power equipment. After two-way authentication is successful, the carbon data of the power equipment is read, and the carbon label is verified in conjunction with the corresponding correlation.
2. The carbon label coding and verification method for power equipment according to claim 1, characterized in that, The key derivation parameters generated based on the root key include: Using the root key as input key material, combined with a preset first salt value, the first pseudo-random key is extracted through a hash operation with the key. Using the first pseudo-random key as the key material and the coding task identifier of the current coding task as the context information, the task-derived key is obtained by hash operation. Generate a task random number, and concatenate the task derived key, the assigned task identifier, the task validity period, the task random number and the current key version number in the first preset order to obtain the task assignment parameters sent to the read and write end. Based on the task-derived key and the unique identifier of the carbon tag to be verified, tag verification parameters are generated and sent to the verification end. The tag verification parameters include at least an authorized unique identifier, a verification purpose identifier, and the current key version number. The authorized unique identifier is the unique identifier of the carbon tag to be verified.
3. The carbon label coding and verification method for power equipment according to claim 2, characterized in that, The step of generating a dedicated key for the carbon tag to be coded based on the key derivation parameters and the unique identifier of the carbon tag to be coded via the reader / writer and writing it to the carbon tag to be coded includes: The reader sends an inventory command to the carbon tag to be coded and receives the unique identifier returned by the carbon tag in response to the inventory command. Obtain the task-derived key from the task coding parameters, and concatenate the task-derived key with the received unique identifier in a second preset order to obtain the dispersion factor data; Using dispersion factor data as input key material, combined with a preset second salt value, the second pseudo-random key is extracted through a hash operation with the key. Using the second pseudo-random key as the key material and the identification purpose tag and the current key version number as context information, the special key of the carbon tag to be coded is obtained by hash operation and written into the carbon tag to be coded.
4. The carbon label coding and verification method for power equipment according to claim 2, characterized in that, The process of generating a dedicated key for the carbon tag through the verification terminal based on key derivation parameters and the unique identifier of the carbon tag on the power equipment includes: The system sends an inventory command to the carbon tag on the power equipment through the verification terminal and receives the unique identifier returned by the carbon tag in response to the inventory command. When the unique identifier is consistent with the authorized unique identifier and the current operation is for verification purposes, the label verification parameters and the unique identifier are concatenated in the second preset order to obtain the dispersion factor data. Using dispersion factor data as input key material, combined with a preset second salt value, the second pseudo-random key is extracted through a hash operation with the key. Using the second pseudo-random key as the key material and the identification purpose tag and the current key version number as context information, a dedicated key for the carbon tag is obtained through hash operation.
5. The carbon label coding and verification method for power equipment according to claim 1, characterized in that, Before sending the key derivation parameters to the reader / writer, the following is also executed: Perform external authentication with the reader / writer and receive a pre-defined whitelist of devices; When the reader / writer is within the preset whitelist of devices and external authentication is successful, the key derivation parameters are sent to the reader / writer. If the reader / writer is not in the preset whitelist of devices or external authentication fails, the coding of the carbon tag to be coded will be terminated and the exception will be recorded.
6. The carbon label coding and verification method for power equipment according to claim 1, characterized in that, After switching the carbon tag to be coded from a plaintext accessible state to a secure state requiring two-way authentication and completing the carbon tag coding, the following also happens: In response to a carbon data change signal from power equipment, an update token carrying an update authorization random number and a target data version number is generated and sent to the read / write end. When the signature of the update token is valid and the update authorization random number has not been used at the read / write end, bidirectional authentication is performed with the carbon tag on the power equipment. After successful identification, the current data version number stored in the carbon tag is read. When the target data version number is consecutive to the stored current data version number, the updated carbon data of the power equipment is written to the carbon tag, and the data version number stored in the carbon tag is updated to the target data version number.
7. The carbon label coding and verification method for power equipment according to claim 1 or 6, characterized in that, The bidirectional authentication with carbon tags on power equipment includes: Send an authentication request carrying a first random number to the carbon tag; The carbon tag calculates and returns an authentication response based on its stored private key and a first random number; Based on the corresponding private key, the authentication response is verified. After successful verification, an authentication response calculated based on the corresponding private key and the authentication response is sent to the carbon tag. The carbon tag verifies the authentication response based on its stored private key. After successful verification, an authentication session is established with the carbon tag, and the carbon data of the power equipment stored in the carbon tag is accessed within the authentication session. If any verification fails, the authentication session will be refused and an authentication failure result will be generated.
8. The carbon label coding and verification method for power equipment according to claim 1, characterized in that, The process of reading carbon data from power equipment and verifying carbon labels in conjunction with corresponding relationships includes: Read the unique identifier of the carbon tag and combine it with the corresponding association to determine the target power equipment identifier and the target power equipment carbon data identifier; Read the carbon data of power equipment stored in the carbon tag, and extract the corresponding current power equipment identifier and current power equipment carbon data identifier from the carbon data of power equipment; Verify whether the target power equipment identifier is consistent with the current power equipment identifier, and whether the target power equipment carbon data identifier is consistent with the current power equipment carbon data identifier; When the power equipment identification and the power equipment carbon data identification are consistent, the carbon label is deemed valid and a verification pass result is generated. When the identification of power equipment or the carbon data identification of power equipment is inconsistent, the carbon label is judged to be abnormal and an abnormal verification result is generated.
9. The carbon label coding and verification method for power equipment according to claim 1, characterized in that, Also execute: Obtain the coding results of each carbon tag to be coded corresponding to the current coding task. The coding results include at least the unique identifier of each carbon tag to be coded, its association with the power equipment and the carbon data of the power equipment, the coding completion status, the coding time, and the serial number of the corresponding read / write terminal. Generate batch coding receipts based on the coding results of each tag to be coded, and archive the batch coding receipts to form a cloud ledger.
10. A carbon label coding verification system for power equipment, used to execute the carbon label coding verification method according to any one of claims 1 to 9, characterized in that, include: The security control terminal is used to generate key derivation parameters based on the root key and send the key derivation parameters to the read / write terminal and the verification terminal, retrieve encrypted power equipment carbon data and send it to the read / write terminal, establish the association between carbon tags and power equipment and power equipment carbon data, and send state switching control commands to the read / write terminal in response to the write completion information of the read / write terminal. The read / write terminal is used to generate a dedicated key for the carbon tag to be coded based on the key derivation parameters and the unique identifier of the carbon tag to be coded, and write it into the carbon tag to be coded. It also writes the encrypted power equipment carbon data issued by the security control terminal into the carbon tag and sends an exit fast initialization command to the carbon tag to be coded in response to the state switching control command. The verification end is used to generate a dedicated key for the carbon tag based on the key derivation parameters and the unique identifier of the carbon tag on the power equipment. It performs two-way authentication with the carbon tag. After successful authentication, it reads the carbon data of the power equipment and verifies the carbon tag in combination with the corresponding association.
