A power grid device self-negotiation authentication method and device based on zero-knowledge proof and a medium

The zero-knowledge proof-based self-negotiation authentication method for power grid equipment dynamically determines power grid operation constraints by combining trusted equipment information and power grid operating status, and generates zero-knowledge proof messages for verification. This solves the problem that the access behavior of equipment does not conform to the power grid operating conditions in the power grid equipment access authentication, and improves access security and consistency.

CN123163902APending Publication Date: 2026-11-24GUANGZHOU POWER SUPPLY BUREAU GUANGDONG POWER GRID CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202611471530.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-21
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing power grid equipment access authentication methods are insufficient to determine whether the current access behavior of a device complies with actual power grid operating conditions, and fixed authentication strategies cannot adapt to the processing capabilities of different devices and the security requirements of access scenarios.

Method used

The self-negotiation authentication method for power grid equipment using zero-knowledge proofs dynamically determines power grid operation constraints by acquiring trusted information, capability information, and power grid operation status information of the equipment, and generates zero-knowledge proof messages for verification to ensure that the equipment access complies with the power grid operation constraints.

Benefits of technology

It improves the security and consistency of power grid equipment access authentication, reduces the security risks of access from erroneous operating domains and unauthorized business access, and ensures that authentication results match the actual power grid operating status.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123163902A_ABST
    Figure CN123163902A_ABST
Patent Text Reader

Abstract

The application discloses a power grid device self-negotiation authentication method and device based on zero-knowledge proof and a medium. The method comprises the following steps: in response to an access request of a power grid device, a side authentication node determines a current power grid operation constraint according to device capability information, access request information and power grid operation state information, and determines a target proof strategy based on the power grid operation constraint and the device capability information; a session challenge value is generated based on the target proof strategy and the power grid operation constraint, and is sent to the power grid device, so that the power grid device generates a zero-knowledge proof message based on device trusted information, the power grid operation constraint, the target proof strategy and the session challenge value, and returns the zero-knowledge proof message to the side authentication node; the zero-knowledge proof message is verified based on authentication registration information, the target proof strategy and the power grid operation constraint, and an access session with the power grid device is established after the verification is passed. The application can effectively improve the security of device access.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of security authentication technology, and in particular to a zero-knowledge proof-based self-negotiation authentication method, device and medium for power grid equipment. Background Technology

[0002] With the development of technologies such as distribution automation, smart substations, the Internet of Things for power, and edge computing, an increasing number of power grid devices need to access the power grid business system through authentication nodes on the substation side, feeder side, or edge side for services such as telemetry, remote signaling, setpoint reading and parameter writing, remote control operation, and interlocking control. Existing power grid device access authentication methods typically verify the trustworthiness of the device's identity and the identities of both communicating parties, determining whether the accessing device is legitimate through a pre-configured authentication mechanism. However, in actual power grid operation, the permitted access range and business permissions for the same power grid device may differ across different substations, feeders, bays, and operating modes. Furthermore, changes in maintenance status, dispatch control status, and current electrical operating status can further affect the business operations that the device can currently perform. Therefore, simply verifying the legitimacy of the device's identity is insufficient to determine whether the device's current access behavior complies with actual power grid operating conditions. Simultaneously, different power grid devices vary in terms of secure storage processing capabilities, supported algorithm suites, and proof data processing capabilities. Using a fixed authentication strategy is insufficient to simultaneously adapt to the processing capabilities of different devices and the security requirements of different access scenarios. Summary of the Invention

[0003] To address the above technical issues, this application provides a zero-knowledge proof-based self-negotiation authentication method, apparatus, and medium for power grid equipment. This method enables unified verification of equipment identity trustworthiness and current power grid operation constraints without disclosing the plaintext of sensitive attributes, thereby improving equipment access security.

[0004] This application provides a zero-knowledge proof-based self-negotiation authentication method for power grid devices, applied to edge authentication nodes, including: In response to a registration request from a power grid device, the device's trusted information is obtained, and authentication registration information for the power grid device is established based on the trusted information. The trusted information includes at least commitment information characterizing the device's identity, operating domain, and trusted status. In response to the access request initiated by the power grid equipment, obtain the equipment capability information, access request information, and current power grid operating status information of the power grid equipment; Based on the device capability information, the access request information, and the power grid operation status information, the current power grid operation constraints are determined, and the target proof strategy is determined based on the power grid operation constraints and the device capability information. Based on the target proof strategy and the power grid operation constraints, a session challenge value is generated and sent to the power grid device, so that the power grid device generates a zero-knowledge proof message based on the device trust information, the power grid operation constraints, the target proof strategy and the session challenge value and returns it to the edge authentication node; Based on the authentication registration information, the target proof strategy, and the power grid operation constraints, the zero-knowledge proof message is verified, and an access session with the power grid equipment is established after the verification is successful.

[0005] As an improvement to the above scheme, the authentication registration information includes, but is not limited to: device public key, device identity commitment, device attribute commitment, operating domain mapping commitment, state baseline commitment, device operating domain mapping table, device role identifier and command permission baseline table; the device private key corresponding to the device public key is stored in the secure storage area of ​​the power grid equipment.

[0006] As an improvement to the above solution, the step of responding to the access request initiated by the power grid equipment and obtaining the equipment capability information and access request information of the power grid equipment includes: In response to the access request initiated by the power grid device, obtain the negotiation start message sent by the power grid device to the edge authentication node; The negotiation initiation message includes: device identity commitment, access domain identifier, device capability information, access request information, proof circuit template version list, current firmware state commitment, current electrical state summary, random number, and timestamp; the device identity commitment, the current electrical state summary, the random number, and the timestamp are used to generate the session challenge value; the proof circuit template version list is used to generate the target proof strategy; the device capability information includes the secure storage area processing capacity of the power grid equipment, the supported algorithm suites, and the maximum proof data length.

[0007] As an improvement to the above solution, determining the current power grid operation constraints based on the equipment capability information, the access request information, and the power grid operation status information includes: The corresponding access domain identifier is determined based on the access request information, and the access feeder identifier, station identifier, and bay identifier are determined based on the access domain identifier. Based on the power grid operation status information, obtain the power grid topology status, maintenance status, and dispatch control status; The operating mode identifier is determined based on the power grid topology status; The permitted command categories and permitted data ranges are determined based on the maintenance status and the scheduling control status. Based on the permitted command category, the access request information, and the device capability information, the mandatory proof items and attribute disclosure rules are determined; The current power grid operation constraints are generated based on the access feeder identifier, the station identifier, the bay identifier, the operation mode identifier, the permitted command category, the permitted data range, the mandatory proof items, and the attribute disclosure rules.

[0008] As an improvement to the above scheme, the method for determining the target proof strategy based on the power grid operation constraints and the equipment capability information includes: Based on the power grid operation constraints and the equipment capability information, a combination of proof circuits is selected from a preset list of proof circuit template versions to generate a target proof strategy; The proof circuits in the proof circuit template version list include: identity consistency proof circuit, operating domain consistency proof circuit, electrical state consistency proof circuit, command authority boundary proof circuit, and firmware baseline consistency proof circuit. The identity consistency verification circuit is used to prove that the power grid equipment matches the trusted equipment corresponding to the authentication registration information; The operating domain consistency proof circuit is used to prove that the operating domain corresponding to the power grid equipment matches the current access domain and the power grid topology state. The electrical state consistency proof circuit is used to prove that the current operating state of the power grid equipment meets the state constraints corresponding to the current operating mode. The command permission boundary verification circuit is used to prove that the command category and data object in the access request information do not exceed the allowed command category and allowed data range. The firmware baseline consistency proof circuit is used to prove that the current firmware state commitment of the power grid equipment matches the state baseline commitment in the certification registration information.

[0009] As an improvement to the above scheme, the generation of session challenge values ​​based on the target proof strategy and the power grid operation constraints includes: Obtain the device identity commitment, the current electrical state summary, the random number, and the timestamp; The grid operation constraints, the target proof strategy, the device identity commitment, the current electrical state summary, the random number, and the timestamp are concatenated in a preset order to obtain a concatenated string. The concatenated string is hashed to generate a session challenge value.

[0010] As an improvement to the above scheme, the step of generating a zero-knowledge proof message based on the device's trusted information, the power grid operation constraints, the target proof strategy, and the session challenge value includes: The proof circuit to be executed is determined based on the target proof strategy; the proof circuit includes, but is not limited to, identity consistency proof circuit, operating domain consistency proof circuit, electrical state consistency proof circuit, and command authority boundary proof circuit. Obtain a summary of the current electrical state, and based on the summary of the current electrical state, the power grid operation constraints, and the device attribute commitments, operating domain mapping commitments, and state baseline commitments in the device trust information, run the proof circuit to be executed to obtain the proof fragment corresponding to each proof circuit; The proof fragments output by each of the proof circuits to be executed are spliced ​​together to obtain the aggregated zero-knowledge proof value; A session binding value is generated based on the session challenge value; Based on the aggregated zero-knowledge proof value and the session binding value, a digital signature is performed using a preset device private key, and finally encapsulated into a zero-knowledge proof message.

[0011] As an improvement to the above solution, after establishing an access session with the power grid equipment, the method further includes: The re-authentication conditions are determined based on the power grid operation status information, the authentication time window, and the access request information; wherein, the re-authentication conditions include at least one of the following: the authentication time window expires, the power grid topology status changes, the maintenance status changes, the dispatch control status changes, and the service operation type corresponding to the access request changes. When the re-authentication conditions are met, the power grid operation constraints, the target proof strategy, and the session challenge value are redefined based on the changed power grid operation status information. The power grid equipment then regenerates the zero-knowledge proof message based on the redefined power grid operation constraints, the target proof strategy, and the session challenge value. The access session's permission status is updated by verifying the regenerated zero-knowledge proof message.

[0012] This application also provides a zero-knowledge proof-based self-negotiation authentication device for power grid equipment, comprising: The network access registration module is used to respond to the registration request of the power grid equipment, obtain the equipment trust information of the power grid equipment, and establish the authentication registration information of the power grid equipment based on the equipment trust information; the equipment trust information includes at least commitment information for characterizing the equipment identity, operating domain and trust status; The information acquisition module is used to respond to the access request initiated by the power grid equipment and acquire the equipment capability information, access request information, and current power grid operation status information of the power grid equipment. The proof strategy module is used to determine the current power grid operation constraints based on the device capability information, the access request information, and the power grid operation status information, and to determine the target proof strategy based on the power grid operation constraints and the device capability information. The zero-knowledge proof module is used to generate a session challenge value based on the target proof strategy and the power grid operation constraints and send it to the power grid device, so that the power grid device generates a zero-knowledge proof message based on the device trust information, the power grid operation constraints, the target proof strategy and the session challenge value and returns it to the edge authentication node; The session access module is used to verify the zero-knowledge proof message based on the authentication registration information, the target proof strategy, and the power grid operation constraints, and to establish an access session with the power grid equipment after the verification is successful.

[0013] This application also provides a computer-readable storage medium storing a computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform the zero-knowledge proof-based power grid equipment self-negotiation authentication method described above.

[0014] Compared to existing technologies, the beneficial effects of the zero-knowledge proof-based self-negotiation authentication method, apparatus, and medium for power grid equipment provided in this application are as follows: By establishing authentication registration information based on the trusted information of the equipment during the power grid equipment registration stage, and dynamically determining the power grid operation constraints by combining the equipment capability information, access request information, and current power grid operation status information when the equipment initiates an access request, the equipment access authentication can simultaneously consider the equipment's trustworthiness, current operating conditions, and current service requests, rather than being limited to static authentication of the equipment's identity; furthermore, by determining the target proof strategy based on the power grid operation constraints and equipment capabilities, and using session challenge values ​​to associate the zero-knowledge proof process with the current authentication context, different devices can adopt proof strategies that match their own processing capabilities and current access scenarios, verifying whether the equipment meets the current power grid operation constraints without requiring the explicit disclosure of sensitive equipment information; after successful verification, an access session is established based on the power grid operation constraints, so that the authentication result can directly constrain the equipment's access and service operations, thereby improving the consistency between power grid equipment access authentication and the actual power grid operation status, and reducing the security risks caused by incorrect operating domain access, unauthorized service access, and mismatch between authentication results and the current operating status. Attached Figure Description

[0015] Figure 1 This is a flowchart illustrating a zero-knowledge proof-based self-negotiation authentication method for power grid equipment provided in an embodiment of this application. Figure 2This is a schematic diagram of the structure of a zero-knowledge proof-based self-negotiation authentication device for power grid equipment provided in an embodiment of this application. Detailed Implementation

[0016] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0017] Please see Figure 1 , Figure 1 This is a flowchart illustrating a zero-knowledge proof-based self-negotiation authentication method for power grid equipment provided in an embodiment of this application. The zero-knowledge proof-based self-negotiation authentication method for power grid equipment is applied to edge authentication nodes and includes: S1: In response to the registration request of the power grid equipment, obtain the equipment trust information of the power grid equipment, and establish the authentication registration information of the power grid equipment based on the equipment trust information; the equipment trust information includes at least commitment information for characterizing the equipment identity, operating domain and trust status; S2: In response to the access request initiated by the power grid equipment, obtain the equipment capability information, access request information, and current power grid operation status information of the power grid equipment; S3: Determine the current power grid operation constraints based on the device capability information, the access request information, and the power grid operation status information, and determine the target proof strategy based on the power grid operation constraints and the device capability information; S4: Based on the target proof strategy and the power grid operation constraints, generate a session challenge value and send it to the power grid device, so that the power grid device generates a zero-knowledge proof message based on the device trust information, the power grid operation constraints, the target proof strategy and the session challenge value and returns it to the edge authentication node; S5: Based on the authentication registration information, the target proof strategy, and the power grid operation constraints, verify the zero-knowledge proof message, and establish an access session with the power grid equipment after successful verification.

[0018] Specifically, this application embodiment is applied to an edge authentication node, used to comprehensively authenticate the identity trustworthiness, operating conditions, and legality of business requests of power grid equipment requesting access to the power grid business system, and to establish an access session corresponding to the power grid equipment based on the current power grid operating status. The power grid equipment can be a distribution terminal, intelligent switch control terminal, protection and control device, feeder automation terminal, substation edge acquisition terminal, or other power IoT terminal with power grid business access capabilities; the edge authentication node can be deployed on the substation side, feeder side, edge gateway side, or dispatch access boundary side, used to authenticate, verify, and configure session permissions for the access behavior of power grid equipment based on the power grid operating status. The storage location for storing authentication registration information can be configured according to the actual deployment method. The authentication registration information can be stored locally on the edge authentication node or in an authentication storage node that has established a secure connection with the edge authentication node, and can be read by the edge authentication node through a secure link.

[0019] Before a power grid device first connects to the power grid business system, the edge authentication node responds to the device's registration request, obtains the device's trusted information, and establishes authentication registration information based on this trusted information. The trusted information includes at least commitment information characterizing the device's identity, operating domain, and trusted state, used to verify the device's static trusted attributes during subsequent authentication processes. By establishing authentication registration information during the registration phase, verification can be completed using pre-registered trusted information during subsequent access authentication processes, without requiring the power grid device to output its private key and complete sensitive device attributes in plaintext.

[0020] When a power grid device initiates an access request, the edge authentication node obtains device capability information, access request information, and current power grid operating status information. The device capability information reflects the power grid device's ability to perform proof computations and secure processing; the access request information indicates the requested service operation and data object; and the current power grid operating status information reflects the power grid operating conditions related to the current access scenario. Based on this information, the edge authentication node determines the current power grid operating constraints and further determines the target proof strategy based on the power grid operating constraints and device capability information. Then, the edge authentication node generates a session challenge value based on the target proof strategy and power grid operating constraints and sends it to the power grid device. The power grid device generates a zero-knowledge proof message based on this challenge and returns the zero-knowledge proof message to the edge authentication node. The edge authentication node verifies the zero-knowledge proof message based on authentication registration information, the target proof strategy, and power grid operating constraints. Upon successful verification, the edge authentication node establishes an access session for the power grid device based on the session permission template and the power grid operating constraint package, ensuring that the established access session is consistent with the current power grid operating conditions and the current service request.

[0021] As one optional embodiment, the authentication registration information includes, but is not limited to: device public key, device identity commitment, device attribute commitment, operating domain mapping commitment, state baseline commitment, device operating domain mapping table, device role identifier and command permission baseline table; the device private key corresponding to the device public key is stored in the secure storage area of ​​the power grid equipment.

[0022] Specifically, during the grid equipment registration phase, the grid equipment generates its own public key, private key, identity commitment, attribute commitment, operating domain mapping commitment, and state baseline commitment. The private key is stored in the grid equipment's secure storage area and used for subsequent identity consistency verification and digital signature execution on zero-knowledge proof messages; it is not output in plaintext to edge authentication nodes during the access authentication process. The public key works with the private key to complete the corresponding verification. The identity commitment represents the trusted identity of the grid equipment without directly exposing sensitive identity information such as equipment asset number and serial number. The attribute commitment represents equipment attributes such as model, function category, firmware baseline, role, and operating domain. The operating domain mapping commitment represents the correspondence between the equipment's station, feeder, bay, and allowed access domain. The state baseline commitment represents the equipment's trusted firmware state, trusted configuration state, or secure startup state. In this application, the commitment refers to the commitment value obtained by processing the corresponding data using cryptographic commitment, which is a two-phase interaction protocol involving two parties.

[0023] During the registration process, the edge authentication node writes the device public key, device identity commitment, device attribute commitment, operating domain mapping commitment, and state baseline commitment into the authentication registration information. Simultaneously, it associates and stores the device operating domain mapping table, device role identifier, and command permission baseline table with the corresponding device. The device operating domain mapping table describes the static operating domain relationships of power grid equipment, including the device asset number, its substation identifier, its feeder identifier, its bay identifier, its device function category, its permitted access domain identifier, and its permitted operating mode identifier. The operating domain mapping commitment can be obtained by the power grid equipment performing commitment processing on information such as the device asset number, its substation identifier, its feeder identifier, its bay identifier, and its permitted access domain identifier.

[0024] The command permission baseline table describes the operational permissions corresponding to different device roles. These permissions can include telemetry read permissions, remote signaling read permissions, setpoint read permissions, parameter write permissions, remote control operation permissions, and interlocking control permissions. Different device roles can correspond to different combinations of command permissions. For example, data acquisition devices can correspond to telemetry read permissions and remote signaling read permissions; protection and control devices can correspond to setpoint read permissions and some parameter write permissions; and control devices can correspond to remote control operation permissions and interlocking control permissions when more stringent authentication conditions are met. By writing the command permission baseline table into the power grid authentication registration form, subsequent command permission boundary verification can be directly linked to power grid operational permissions.

[0025] Furthermore, the authentication registration information may also include the device status version number, firmware baseline version number, proof circuit template version number, and revocation status identifier, used for subsequent verification of the device's current status, proof circuit template version, and device revocation status. When the edge authentication node verifies the zero-knowledge proof message, it can determine whether the current device is still in a valid registration state and whether the current firmware status and proof circuit template version meet the authentication requirements based on the above registration information; when the device is already in a revocation state or the relevant version match fails, an authentication rejection result can be generated.

[0026] As one optional embodiment, the step of obtaining the device capability information and access request information of the power grid device in response to the access request initiated by the power grid device includes: In response to the access request initiated by the power grid device, obtain the negotiation start message sent by the power grid device to the edge authentication node; The negotiation initiation message includes: device identity commitment, access domain identifier, device capability information, access request information, proof circuit template version list, current firmware state commitment, current electrical state summary, random number, and timestamp; the device identity commitment, the current electrical state summary, the random number, and the timestamp are used to generate the session challenge value; the proof circuit template version list is used to generate the target proof strategy; the device capability information includes the secure storage area processing capacity of the power grid equipment, the supported algorithm suites, and the maximum proof data length.

[0027] Specifically, when grid equipment needs to access the grid business system, it sends a negotiation initiation message to the edge authentication node. The edge authentication node responds to the access request initiated by the grid equipment by receiving the negotiation initiation message. The negotiation initiation message provides the edge authentication node with the necessary device-side trusted information, capability information, business request information, and current device status information for this authentication process. This enables the edge authentication node to combine the grid operating status to form current grid operating constraints and determine the target proof strategy.

[0028] The negotiation initiation message includes a device identity commitment, access domain identifier, device capability information, access request information, a list of proof circuit template versions, a current firmware status commitment, a current electrical status summary, a random number, and a timestamp. Specifically, the device identity commitment identifies the power grid device corresponding to this access request; the access domain identifier indicates the target operating domain for which the power grid device is requesting access; the device capability information describes the processing capabilities of the device in performing proof calculations; the access request information describes the service operation and corresponding data objects of this access request; the list of proof circuit template versions indicates the proof circuit template versions supported by the power grid device; the current firmware status commitment indicates the firmware status currently running on the power grid device; the current electrical status summary indicates the current electrical operating status of the device; and the random number and timestamp provide randomness and time-related information for this authentication process.

[0029] The equipment capability information includes the secure storage area processing capacity of the power grid equipment, the supported algorithm suites, and the maximum proof data length. Secure storage area processing capacity indicates the ability of the secure storage area to perform private information reading, commitment processing, and proof-related calculations; supported algorithm suites indicate the authentication and proof algorithms the equipment can execute; and the maximum proof data length constrains the scale of proof data the equipment can generate and process. The proof circuit template version list can record the template versions supported by identity consistency proof circuits, operational domain consistency proof circuits, electrical state consistency proof circuits, command authority boundary proof circuits, and firmware baseline consistency proof circuits, respectively.

[0030] The current electrical status summary can be generated by power grid equipment based on the current voltage level identifier, current frequency status identifier, current switch position status identifier, current protection plate status identifier, and the current sampling time window. Specifically, the current voltage level identifier can be determined based on voltage transformer data or substation-side voltage level configuration data; the current frequency status identifier can be determined based on the comparison between the frequency measurement value and a preset frequency range; the current switch position status identifier can be determined based on switch input data; the current protection plate status identifier can be determined based on the plate status collected by the protection device; and the current sampling time window is used to limit the time range for collecting the above status data, thereby enabling the current electrical status summary to reflect the equipment operating status near the time of this certification.

[0031] As one optional embodiment, determining the current power grid operation constraints based on the device capability information, the access request information, and the power grid operation status information includes: The corresponding access domain identifier is determined based on the access request information, and the access feeder identifier, station identifier, and bay identifier are determined based on the access domain identifier. Based on the power grid operation status information, obtain the power grid topology status, maintenance status, and dispatch control status; The operating mode identifier is determined based on the power grid topology status; The permitted command categories and permitted data ranges are determined based on the maintenance status and the scheduling control status. Based on the permitted command category, the access request information, and the device capability information, the mandatory proof items and attribute disclosure rules are determined; The current power grid operation constraints are generated based on the access feeder identifier, the station identifier, the bay identifier, the operation mode identifier, the permitted command category, the permitted data range, the mandatory proof items, and the attribute disclosure rules.

[0032] Specifically, after receiving the negotiation start message, the edge authentication node determines the access domain identifier corresponding to this request based on the access request information, and then determines the access feeder identifier, substation identifier, and bay identifier based on the access domain identifier. Furthermore, the edge authentication node obtains the power grid topology status, maintenance status, and dispatch control status based on the current power grid operating status information, and determines the operating mode identifier based on the power grid topology status, thereby obtaining the actual power grid operating conditions corresponding to the current access domain.

[0033] The power grid topology status can be generated based on feeder connection relationships, bus operation modes, bay activation / deactivation status, and switch activation / deactivation status. Maintenance status includes equipment maintenance status, bay maintenance status, feeder maintenance status, and substation maintenance status. Dispatch control status includes local control status, remote control status, dispatch interlocking status, and emergency response status. Edge authentication nodes can first determine the access feeder identifier, substation identifier, and bay identifier based on the access domain identifier, then determine the current operation mode identifier based on the power grid topology status, and adjust the permission boundaries corresponding to the current access request in conjunction with the maintenance status and dispatch control status.

[0034] Furthermore, the edge authentication node determines the permitted command categories and permitted data ranges based on the maintenance status and scheduling control status. The permitted command categories limit the permitted business operations in the current access scenario, while the permitted data range limits the permitted data read and write ranges in the current access scenario. When the maintenance scope corresponding to the maintenance status covers the access domain identifier, the edge authentication node can delete the permitted command categories corresponding to remote control operation permissions and parameter write permissions, while setting the runtime domain consistency proof and firmware baseline consistency proof as mandatory proof items. When the scheduling control status is in a scheduling lockout state or an emergency response state, the edge authentication node can further adjust the permitted command categories and permitted data ranges, and set the command permission boundary proof as a mandatory proof item, thus changing the authentication requirements according to the current scheduling control status. For example, in the scheduling lockout state, the permitted command categories can retain only telemetry read permissions and remote signaling read permissions; in the emergency response state, the permitted command categories can retain specific remote control operation permissions, but simultaneously require the current firmware state commitment to be consistent with the state baseline commitment, and require the current electrical state summary to be consistent with the operating mode identifier.

[0035] The edge authentication node further determines mandatory proof items and attribute disclosure rules based on the permitted command category, access request information, and device capability information. Attribute disclosure rules include required disclosure attributes, committed verification attributes, and prohibited disclosure attributes. The edge authentication node can generate an attribute disclosure mask based on the permitted command category, permitted data range, and authentication time window to limit the scope of attribute disclosure in subsequent zero-knowledge proof messages, ensuring that grid equipment only discloses attributes necessary to complete the current authentication, while committed verification attributes are verified using zero-knowledge proofs.

[0036] After generating the above information, the edge authentication node produces the current power grid operation constraints based on the access feeder identifier, station identifier, bay identifier, operating mode identifier, permitted command category, permitted data range, mandatory proof items, and attribute disclosure rules. Furthermore, the power grid operation constraints may further include the access domain identifier and authentication time window. The resulting power grid operation constraints correspond to the current power grid operating status, equipment registration information, and the current access request, allowing the same power grid equipment to obtain different authentication constraints in different stations, feeders, bays, operating modes, maintenance states, or dispatch control states.

[0037] In determining power grid operation constraints, edge authentication nodes can also match the power grid topology status with the equipment operation domain mapping table. Based on the substation identifier, feeder identifier, bay identifier, and allowed access domain identifier, an operation domain mapping path is formed. The current access domain identifier is then matched against this path. Simultaneously, the consistency between feeder connection relationships, bay activation / deactivation status, and switch on / off status and the operation domain mapping path is verified. If the current access domain identifier does not match the operation domain mapping path, the access request can be directly rejected, or the access request can be set as an abnormal request requiring re-authentication, thus preventing legitimate devices from establishing access sessions in incorrect operation domains.

[0038] In a specific scenario, the power grid equipment is a feeder automation terminal. Its substation is identified as a specific switching station, its feeder as the first feeder under that switching station, and its bay as the third bay of the first feeder. The allowed access domain is the edge authentication domain of that switching station. If the power grid equipment initiates a telemetry read request in the access domain corresponding to the same substation, feeder, and bay, the edge authentication node can write the telemetry read permission, tele-signaling read permission, and corresponding data read range into the power grid operation constraints. If the power grid equipment initiates a parameter write request in another feeder access domain, even if the equipment identity verification is successful, the edge authentication node will refuse to establish an access session because the access domain identifier and the operation domain mapping path are inconsistent.

[0039] As one optional embodiment, the determination of the target proof strategy based on the power grid operation constraints and the equipment capability information includes: Based on the power grid operation constraints and the equipment capability information, a combination of proof circuits is selected from a preset list of proof circuit template versions to generate a target proof strategy; The proof circuits in the proof circuit template version list include: identity consistency proof circuit, operating domain consistency proof circuit, electrical state consistency proof circuit, command authority boundary proof circuit, and firmware baseline consistency proof circuit. The identity consistency verification circuit is used to prove that the power grid equipment matches the trusted equipment corresponding to the authentication registration information; The operating domain consistency proof circuit is used to prove that the operating domain corresponding to the power grid equipment matches the current access domain and the power grid topology state. The electrical state consistency proof circuit is used to prove that the current operating state of the power grid equipment meets the state constraints corresponding to the current operating mode. The command permission boundary verification circuit is used to prove that the command category and data object in the access request information do not exceed the allowed command category and allowed data range. The firmware baseline consistency proof circuit is used to prove that the current firmware state commitment of the power grid equipment matches the state baseline commitment in the certification registration information.

[0040] Specifically, the edge authentication node can first determine the proof circuit required for the current authentication based on the permitted command categories and mandatory proof items in the power grid operation constraints, and then determine the combination of proof circuits that the device can execute by combining the device capability information and the proof circuit template version list, thereby forming the target proof strategy.

[0041] The proof circuits in the proof circuit template version list include identity consistency proof circuits, operating domain consistency proof circuits, electrical state consistency proof circuits, command permission boundary proof circuits, and firmware baseline consistency proof circuits. Specifically, the identity consistency proof circuit proves that the power grid device matches the trusted device corresponding to the authentication registration information, i.e., it proves that the device currently participating in the authentication can provide trusted proof information corresponding to its registered identity; the operating domain consistency proof circuit proves that the operating domain corresponding to the power grid device matches the current access domain and power grid topology state; the electrical state consistency proof circuit proves that the current operating state of the power grid device meets the state constraints corresponding to the current operating mode; the command permission boundary proof circuit proves that the command category and data object in the access request information do not exceed the allowed command category and allowed data range; and the firmware baseline consistency proof circuit proves that the current firmware state commitment of the power grid device matches the state baseline commitment in the authentication registration information.

[0042] Depending on the current power grid operation constraints, the combination of proof circuits in the target proof strategy can vary. When the permitted command category only involves telemetry reading or remote signaling reading, it can include at least an identity consistency proof circuit, an operational domain consistency proof circuit, and an electrical state consistency proof circuit. When the permitted command category involves parameter writing, remote control operation, or interlocking control, it can further include a command authority boundary proof circuit and a firmware baseline consistency proof circuit. When the maintenance status covers the access domain identifier, the operational domain consistency proof circuit and the firmware baseline consistency proof circuit can be set as mandatory proof items.

[0043] Furthermore, each candidate proof strategy can also include an attribute disclosure mask corresponding to the proof circuit, an algorithm suite, verification strength, and a session permission template. Upon receiving a candidate proof strategy, the device can perform local matching, first excluding unsupported proof circuit template versions and algorithm suites, then excluding candidate proof strategies exceeding the processing capacity of the secure storage area and those requiring the disclosure of prohibited attributes, and finally selecting the candidate proof strategy containing mandatory proof items and having the smallest attribute disclosure range from the remaining candidate proof strategies as the target proof strategy. This approach balances the processing capabilities of different power grid devices, the authentication strength of the current operating scenario, and the minimum disclosure requirements for sensitive attributes.

[0044] Furthermore, after the device determines the target proof strategy, it can also call the secure storage area to verify the access domain identifier, authentication time window, mandatory proof items, and attribute disclosure mask in the power grid operation constraints. Upon successful verification, a constraint package is generated to accept the commitment, binding the power grid operation constraints to the target proof strategy before proceeding to the subsequent proof stage. This prevents the target proof strategy from bypassing the mandatory proof items in the power grid operation constraints and also reduces the risk of intermediate nodes unauthorizedly modifying attribute disclosure rules or session permission templates.

[0045] As one optional embodiment, generating a session challenge value based on the target proof strategy and the power grid operation constraints includes: Obtain the device identity commitment, the current electrical state summary, the random number, and the timestamp; The grid operation constraints, the target proof strategy, the device identity commitment, the current electrical state summary, the random number, and the timestamp are concatenated in a preset order to obtain a concatenated string. The concatenated string is hashed to generate a session challenge value.

[0046] Specifically, after determining the target proof strategy, the edge authentication node generates a session challenge value based on the target proof strategy and power grid operation constraints. First, it obtains the device identity commitment, current electrical state digest, random number, and timestamp, and acquires information corresponding to the current power grid operation constraints and the target proof strategy. Then, it concatenates the power grid operation constraints, target proof strategy, device identity commitment, current electrical state digest, random number, and timestamp in a preset order to obtain a concatenated string, and performs a hash calculation on this concatenated string to generate the session challenge value.

[0047] After generating the session challenge value, the edge authentication node can send the session challenge value to the power grid equipment, and at the same time save the input parameters used to generate the session challenge value in the local session cache so as to perform session association verification when verifying zero-knowledge proof messages later.

[0048] In this embodiment, the session challenge value is used to bind the subsequently generated zero-knowledge proof message to the specific access process, making the current proof process correspond to the current access domain, current power grid operation constraints, current target proof strategy, and current electrical state summary. Because information such as random numbers, timestamps, or operational constraints changes at different authentication times, even if an attacker obtains zero-knowledge proof messages from historical authentication processes, they cannot directly use the historical proof results for authentication processes corresponding to other operating domains, other operating states, or other target proof strategies, thereby reducing the risk of historical proof messages being replayed.

[0049] As one optional embodiment, generating a zero-knowledge proof message based on the device trust information, the power grid operation constraints, the target proof strategy, and the session challenge value includes: The proof circuit to be executed is determined based on the target proof strategy; the proof circuit includes, but is not limited to, identity consistency proof circuit, operating domain consistency proof circuit, electrical state consistency proof circuit, and command authority boundary proof circuit. Obtain a summary of the current electrical state, and based on the summary of the current electrical state, the power grid operation constraints, and the device attribute commitments, operating domain mapping commitments, and state baseline commitments in the device trust information, run the proof circuit to be executed to obtain the proof fragment corresponding to each proof circuit; The proof fragments output by each of the proof circuits to be executed are spliced ​​together to obtain the aggregated zero-knowledge proof value; A session binding value is generated based on the session challenge value; Based on the aggregated zero-knowledge proof value and the session binding value, a digital signature is performed using a preset device private key, and finally encapsulated into a zero-knowledge proof message.

[0050] Specifically, after receiving the session challenge value sent by the edge authentication node, the power grid equipment first determines the proof circuits to be executed based on the target proof policy. These proof circuits may include identity consistency proof circuits, operational domain consistency proof circuits, electrical state consistency proof circuits, command and permission boundary proof circuits, and selectively include firmware baseline consistency proof circuits according to the target proof policy. The power grid equipment determines the set of proof circuits to be executed this time based on the policy identifier corresponding to the target proof policy, and determines the corresponding proof inputs based on each proof circuit to be executed.

[0051] Furthermore, the power grid equipment obtains the trusted device information and current state information required for the execution proof, including the device private key, device attribute commitment, operating domain mapping commitment, state baseline commitment, current firmware state commitment, and current electrical state summary, and obtains the current access request information and power grid operation constraints. The device private key is read from the secure storage area and used only for local proof calculation and subsequent message signing, and is not output to the edge authentication node in plaintext; the device attribute commitment is used to prove that the corresponding device attributes meet the requirements of the target proof strategy; the operating domain mapping commitment is used to prove the relationship between the device operating domain and the current access domain and power grid topology; the state baseline commitment is used to prove that the current device state meets the trusted baseline requirements when needed.

[0052] After obtaining the relevant proof inputs, the power grid equipment runs each proof circuit to be executed and obtains the corresponding proof fragments. Specifically, the identity consistency proof circuit proves that the current power grid equipment matches the trusted equipment corresponding to the authentication and registration information; the operating domain consistency proof circuit proves that the equipment's operating domain matches the current access domain and the power grid topology state, which can prove that the allowed access domain identifier in the operating domain mapping table includes the current access domain, and prove that the operating domain mapping path is consistent with the current power grid topology state; the electrical state consistency proof circuit proves that the current electrical state summary is consistent with the state constraints corresponding to the current operating mode; the command permission boundary proof circuit proves that the command category in the access request information belongs to the allowed command category, and that the requested data object belongs to the allowed data range; and when the target proof strategy includes a firmware baseline consistency proof circuit, it further proves the consistency relationship between the current firmware state commitment and the state baseline commitment.

[0053] After each proof circuit completes its calculation, it outputs a proof fragment. The power grid equipment combines or splices these fragments in a preset order to obtain an aggregated zero-knowledge proof value. Then, the power grid equipment generates a session binding value based on the session challenge value to associate the aggregated zero-knowledge proof value with the session challenge value corresponding to the current session, power grid operation constraints, and the target proof strategy, thereby binding the zero-knowledge proof result to the current authentication context. After generating the aggregated zero-knowledge proof value and the session binding value, the power grid equipment encapsulates the relevant information to form a zero-knowledge proof message.

[0054] The zero-knowledge proof message may include a header, a proof policy field, a public input field, a commitment field, a zero-knowledge proof field, and a session binding field. The header records the device identity commitment and the policy number corresponding to the target proof policy; the proof policy field records the proof circuit used; the public input field records the access domain identifier, the power grid operation constraint summary, the current electrical state summary, and the session challenge value; the commitment field records the operation domain consistency commitment, the electrical state consistency commitment, and the command permission boundary commitment; the zero-knowledge proof field records the aggregated zero-knowledge proof value; and the session binding field records the session binding value.

[0055] Furthermore, the power grid equipment can use a preset device private key to perform a digital signature on the encapsulated message body, and combine the signature result with the message body to form the final zero-knowledge proof message.

[0056] As one optional embodiment, after establishing an access session with the power grid equipment, the method further includes: The re-authentication conditions are determined based on the power grid operation status information, the authentication time window, and the access request information; wherein, the re-authentication conditions include at least one of the following: the authentication time window expires, the power grid topology status changes, the maintenance status changes, the dispatch control status changes, and the service operation type corresponding to the access request changes. When the re-authentication conditions are met, the power grid operation constraints, the target proof strategy, and the session challenge value are redefined based on the changed power grid operation status information. The power grid equipment then regenerates the zero-knowledge proof message based on the redefined power grid operation constraints, the target proof strategy, and the session challenge value. The access session's permission status is updated by verifying the regenerated zero-knowledge proof message.

[0057] Specifically, after receiving a zero-knowledge proof message, the edge authentication node reads the authentication registration information and verifies the message according to the target proof strategy and current grid operation constraints. The edge authentication node can first verify the digital signature of the zero-knowledge proof message to confirm its source and integrity; then it parses the message to obtain proof strategy information, aggregated zero-knowledge proof values, session binding values, and proof commitments related to the operating domain, electrical state, and command permissions. After parsing, the edge authentication node verifies whether the device identity commitment matches the device identity commitment in the authentication registration information and whether the aggregated zero-knowledge proof value satisfies the proof relationship corresponding to the target proof strategy; it also verifies whether the session binding value corresponds to the generated session challenge value, and whether the operating domain consistency commitment, electrical state consistency commitment, and command permission boundary commitment satisfy the current grid operation constraints. When the target proof strategy includes a firmware baseline consistency proof circuit, it is also necessary to verify the consistency relationship between the current firmware state commitment and the state baseline commitment in the authentication registration information. Optionally, the edge authentication node can check the revocation status identifier, device status version number, firmware baseline version number, and proof circuit template version number in the authentication registration information, and directly generate an authentication rejection result when the device has been revoked or the version matching fails.

[0058] When identity consistency, operational domain consistency, electrical state consistency, command permission boundaries, and other proofs required by the target proof strategy are all verified successfully, and the device revocation status is valid, the zero-knowledge proof verification is deemed successful. The edge authentication node establishes an access session corresponding to the power grid device based on the power grid operation constraints and the session permission template in the target proof strategy. The access session can include allowed command categories, data read range, data write range, session validity period, authentication time window, whether re-authentication is required, and prohibited command categories, thus allowing the authentication result to directly affect subsequent power grid service access and control operations.

[0059] After establishing an access session, the edge authentication node continues to determine re-authentication conditions based on the current power grid operating status information, authentication time window, and access request information. These re-authentication conditions include at least one of the following: authentication time window expiration, power grid topology status change, maintenance status change, dispatch control status change, and a change in the service operation type corresponding to the access request. When the re-authentication conditions are met, the edge authentication node can retain the completed device authentication results and, based on the changed power grid operating status information, re-determine the power grid operating constraints, target proof strategy, and session challenge value. This re-determined information is then sent to the power grid equipment, causing the equipment to regenerate a zero-knowledge proof message. The edge authentication node verifies the regenerated zero-knowledge proof message and updates the access session's permission status upon successful verification.

[0060] Furthermore, during the initial authentication process, before the edge authentication node has generated a session challenge value but has not yet completed the verification of the zero-knowledge proof message, if a change is detected in the power grid topology status, maintenance status, dispatch control status, or current electrical status summary, the current session challenge value can be terminated directly. Based on the changed status, the power grid operation constraints and target proof strategy can be redefined, and a new session challenge value can be generated. This allows the power grid equipment to regenerate the zero-knowledge proof message, thereby preventing the authentication process from continuing to complete the authentication based on the failed operating conditions.

[0061] For example, when a feeder switches from normal operation to maintenance status during the establishment of an access session, the edge authentication node detects the change in maintenance status. Consequently, some permission conditions in the original power grid operation constraints no longer apply to the current operation. At this point, the edge authentication node can regenerate the power grid operation constraints, delete the allowed command categories corresponding to parameter write permissions or remote control operation permissions, and redetermine the target proof strategy and session challenge value based on the new operation conditions. This causes the power grid equipment to re-execute the corresponding operation domain consistency proof, firmware baseline consistency proof, or command permission boundary proof. Only after successful verification is the access session's permission status updated. Thus, the access session can dynamically adjust with changes in the power grid operation status and the risks of service requests, achieving continuous consistency between the authentication result and the actual power grid operation conditions.

[0062] To verify the technical effectiveness of this embodiment, a simulation test environment was constructed. The test environment includes one edge authentication node, 20 power grid equipment simulation terminals, a power grid authentication registration form, and a set of simulated power grid topology state data. The 20 power grid equipment simulation terminals are configured with different device role identifiers, device operating domain mapping tables, and command permission baseline tables, including data acquisition devices, protection and control devices, and control devices. Test scenarios include normal operation scenarios, interval maintenance scenarios, feeder maintenance scenarios, dispatch interlocking scenarios, and emergency response scenarios.

[0063] Existing technologies already include solutions for access authentication of power grid terminal layer devices. For example, the existing document CN112468490B discloses an authentication method for power grid terminal layer device access. This method includes completing access authentication between power IoT devices and edge agent devices based on a self-verifying public key, completing identity authentication based on a two-way identity authentication mechanism using the SIP application layer protocol, and performing data authentication on both parties that have completed identity authentication based on the BEM data authentication mechanism. Its authentication process also involves authentication request, challenge, response, and verification processes. This solution can improve the identity credibility and access security of power IoT terminal layer devices to a certain extent. Using this existing power grid terminal layer device access authentication method as a comparative example, it mainly completes device identity authentication, two-way authentication, and data authentication.

[0064] This embodiment employs a power grid operation constraint package, a combination of multiple proof circuits, a self-negotiation target proof strategy, and command permission boundary verification. The test data above are statistical results obtained under the same number of devices, the same number of access requests, and the same proportion of abnormal scenarios. The test results are used to illustrate the technical effectiveness of this embodiment relative to the comparative example in a simulation environment. The test results are shown in the table below. The test data above shows that, while slightly increasing the average authentication latency, this embodiment significantly reduces the false pass rate of legitimate devices in the erroneous access domain, the false pass rate of parameter write requests in maintenance mode, the false pass rate of remote control operation requests in scheduling lockout mode, and the false pass rate of devices with abnormal firmware status executing high-risk control commands involving remote control operation permissions or parameter write permissions. Simultaneously, this embodiment reduces the number of device attribute fields that need to be disclosed in plaintext during the authentication process, enabling unified verification of device identity, device operating domain, current electrical status, and command permission boundaries with less disclosure of sensitive attributes.

[0065] This application's embodiments construct authentication registration information corresponding to trusted device information and dynamically determine grid operation constraints by combining device capability information, access request information, and current grid operation status information. This enables the authentication process of grid devices to match the current grid topology status, maintenance status, dispatch control status, and current device operation status. Furthermore, based on grid operation constraints and device capabilities, a target proof strategy is determined, allowing grid devices with different processing capabilities to adopt proof methods adapted to the current access scenario. Zero-knowledge proof messages are used to jointly verify device identity, operating domain, current operating status, and the permission boundaries corresponding to the access request. This verifies device trustworthiness and the legality of the current access behavior without requiring plaintext disclosure of device private keys and sensitive attributes, thereby improving the accuracy and security of grid device access authentication. Simultaneously, by binding session challenge values ​​to the current authentication context and re-determining grid operation constraints and target proof strategies and performing re-authentication when the grid operation status or access request changes, established access sessions can dynamically adjust permissions according to changes in grid operation conditions. This reduces the risks of accessing from incorrect operating domains, unauthorized operations under maintenance or lockout states, and inconsistencies between authentication results and actual operating states.

[0066] Specifically, through commitments to operational domain consistency, electrical state consistency, and command permission boundaries, edge authentication nodes can complete operational domain, electrical state, and permission boundary verification without obtaining the complete plaintext of sensitive attributes. Dynamic restrictions on allowed command categories and data write ranges are implemented through maintenance, dispatch interlocking, and emergency response states, reducing the risk of accidentally executing high-risk control commands involving remote control operation permissions or parameter write permissions during maintenance or interlocking. A session re-proof mechanism allows for updating operational constraints and re-proofing of established sessions when the grid topology state, maintenance state, dispatch control state, or current electrical state changes, thereby improving the consistency between grid equipment access authentication and real-time operational status.

[0067] Accordingly, this application also provides a zero-knowledge proof-based self-negotiation authentication device for power grid equipment, which can implement all the processes of the zero-knowledge proof-based self-negotiation authentication method for power grid equipment in the above embodiments.

[0068] Please see Figure 2 , Figure 2 This is a schematic diagram of a zero-knowledge proof-based self-negotiation authentication device for power grid equipment provided in an embodiment of this application. The zero-knowledge proof-based self-negotiation authentication device for power grid equipment includes: The network access registration module 201 is used to respond to the registration request of the power grid equipment, obtain the equipment trust information of the power grid equipment, and establish the authentication registration information of the power grid equipment based on the equipment trust information; the equipment trust information includes at least commitment information for characterizing the equipment identity, operating domain and trust status; The information acquisition module 202 is used to respond to the access request initiated by the power grid equipment to acquire the equipment capability information, access request information, and current power grid operation status information of the power grid equipment; The proof strategy module 203 is used to determine the current power grid operation constraints based on the device capability information, the access request information and the power grid operation status information, and to determine the target proof strategy based on the power grid operation constraints and the device capability information. The zero-knowledge proof module 204 is used to generate a session challenge value based on the target proof strategy and the power grid operation constraints and send it to the power grid device, so that the power grid device generates a zero-knowledge proof message based on the device trust information, the power grid operation constraints, the target proof strategy and the session challenge value and returns it to the edge authentication node; The session access module 205 is used to verify the zero-knowledge proof message based on the authentication registration information, the target proof strategy and the power grid operation constraints, and to establish an access session with the power grid equipment after the verification is successful.

[0069] Preferably, the authentication registration information includes, but is not limited to: device public key, device identity commitment, device attribute commitment, operating domain mapping commitment, status baseline commitment, device operating domain mapping table, device role identifier and command permission baseline table; the device private key corresponding to the device public key is stored in the secure storage area of ​​the power grid equipment.

[0070] Preferably, the step of obtaining the device capability information and access request information of the power grid device in response to the access request initiated by the power grid device includes: In response to the access request initiated by the power grid device, obtain the negotiation start message sent by the power grid device to the edge authentication node; The negotiation initiation message includes: device identity commitment, access domain identifier, device capability information, access request information, proof circuit template version list, current firmware state commitment, current electrical state summary, random number, and timestamp; the device identity commitment, the current electrical state summary, the random number, and the timestamp are used to generate the session challenge value; the proof circuit template version list is used to generate the target proof strategy; the device capability information includes the secure storage area processing capacity of the power grid equipment, the supported algorithm suites, and the maximum proof data length.

[0071] Preferably, determining the current power grid operation constraints based on the device capability information, the access request information, and the power grid operation status information includes: The corresponding access domain identifier is determined based on the access request information, and the access feeder identifier, station identifier, and bay identifier are determined based on the access domain identifier. Based on the power grid operation status information, obtain the power grid topology status, maintenance status, and dispatch control status; The operating mode identifier is determined based on the power grid topology status; The permitted command categories and permitted data ranges are determined based on the maintenance status and the scheduling control status. Based on the permitted command category, the access request information, and the device capability information, the mandatory proof items and attribute disclosure rules are determined; The current power grid operation constraints are generated based on the access feeder identifier, the station identifier, the bay identifier, the operation mode identifier, the permitted command category, the permitted data range, the mandatory proof items, and the attribute disclosure rules.

[0072] Preferably, the step of determining the target proof strategy based on the power grid operation constraints and the equipment capability information includes: Based on the power grid operation constraints and the equipment capability information, a combination of proof circuits is selected from a preset list of proof circuit template versions to generate a target proof strategy; The proof circuits in the proof circuit template version list include: identity consistency proof circuit, operating domain consistency proof circuit, electrical state consistency proof circuit, command authority boundary proof circuit, and firmware baseline consistency proof circuit. The identity consistency verification circuit is used to prove that the power grid equipment matches the trusted equipment corresponding to the authentication registration information; The operating domain consistency proof circuit is used to prove that the operating domain corresponding to the power grid equipment matches the current access domain and the power grid topology state. The electrical state consistency proof circuit is used to prove that the current operating state of the power grid equipment meets the state constraints corresponding to the current operating mode. The command permission boundary verification circuit is used to prove that the command category and data object in the access request information do not exceed the allowed command category and allowed data range. The firmware baseline consistency proof circuit is used to prove that the current firmware state commitment of the power grid equipment matches the state baseline commitment in the certification registration information.

[0073] Preferably, generating a session challenge value based on the target proof strategy and the power grid operation constraints includes: Obtain the device identity commitment, the current electrical state summary, the random number, and the timestamp; The grid operation constraints, the target proof strategy, the device identity commitment, the current electrical state summary, the random number, and the timestamp are concatenated in a preset order to obtain a concatenated string. The concatenated string is hashed to generate a session challenge value.

[0074] Preferably, generating a zero-knowledge proof message based on the device trust information, the power grid operation constraints, the target proof strategy, and the session challenge value includes: The proof circuit to be executed is determined based on the target proof strategy; the proof circuit includes, but is not limited to, identity consistency proof circuit, operating domain consistency proof circuit, electrical state consistency proof circuit, and command authority boundary proof circuit. Obtain a summary of the current electrical state, and based on the summary of the current electrical state, the power grid operation constraints, and the device attribute commitments, operating domain mapping commitments, and state baseline commitments in the device trust information, run the proof circuit to be executed to obtain the proof fragment corresponding to each proof circuit; The proof fragments output by each of the proof circuits to be executed are spliced ​​together to obtain the aggregated zero-knowledge proof value; A session binding value is generated based on the session challenge value; Based on the aggregated zero-knowledge proof value and the session binding value, a digital signature is performed using a preset device private key, and finally encapsulated into a zero-knowledge proof message.

[0075] Preferably, the zero-knowledge proof-based power grid equipment self-negotiation authentication device is further used for: The re-authentication conditions are determined based on the power grid operation status information, the authentication time window, and the access request information; wherein, the re-authentication conditions include at least one of the following: the authentication time window expires, the power grid topology status changes, the maintenance status changes, the dispatch control status changes, and the service operation type corresponding to the access request changes. When the re-authentication conditions are met, the power grid operation constraints, the target proof strategy, and the session challenge value are redefined based on the changed power grid operation status information. The power grid equipment then regenerates the zero-knowledge proof message based on the redefined power grid operation constraints, the target proof strategy, and the session challenge value. The access session's permission status is updated by verifying the regenerated zero-knowledge proof message.

[0076] In specific implementation, the working principle, control process and technical effects of the zero-knowledge proof power grid equipment self-negotiation authentication device provided in this application embodiment are the same as the zero-knowledge proof power grid equipment self-negotiation authentication method in the above embodiment, and will not be repeated here.

[0077] This application also provides a computer-readable storage medium, which includes a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform the zero-knowledge proof power grid equipment self-negotiation authentication method described in any of the above embodiments.

[0078] This application provides a zero-knowledge proof-based self-negotiation authentication method, apparatus, and medium for power grid equipment. The advantages are as follows: By establishing authentication registration information based on device trust information during the power grid equipment registration phase, and dynamically determining power grid operation constraints by combining device capability information, access request information, and current power grid operating status information when the device initiates an access request, device access authentication can simultaneously consider device trustworthiness, current operating conditions, and current service requests, rather than being limited to static authentication of device identity. Furthermore, a target proof strategy is determined based on power grid operating constraints and device capabilities, and the zero-knowledge proof process is associated with the current authentication context using session challenge values. This allows different devices to adopt proof strategies that match their processing capabilities and current access scenarios, verifying whether the device meets the current power grid operating constraints without requiring the explicit disclosure of sensitive device information. After successful verification, an access session is established based on the power grid operating constraints, enabling the authentication result to directly constrain the device's access and service operations. This improves the consistency between power grid equipment access authentication and the actual power grid operating status, reducing security risks caused by incorrect operating domain access, unauthorized service access, and mismatch between authentication results and the current operating status.

[0079] The above description is the preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications are also considered to be within the scope of protection of this application.

Claims

1. A zero-knowledge proof-based self-negotiation authentication method for power grid equipment, characterized in that, Applied to edge authentication nodes, including: In response to a registration request from a power grid device, the device's trusted information is obtained, and authentication registration information for the power grid device is established based on the trusted information. The trusted information includes at least commitment information characterizing the device's identity, operating domain, and trusted status. In response to the access request initiated by the power grid equipment, obtain the equipment capability information, access request information, and current power grid operating status information of the power grid equipment; Based on the device capability information, the access request information, and the power grid operation status information, the current power grid operation constraints are determined, and the target proof strategy is determined based on the power grid operation constraints and the device capability information. Based on the target proof strategy and the power grid operation constraints, a session challenge value is generated and sent to the power grid device, so that the power grid device generates a zero-knowledge proof message based on the device trust information, the power grid operation constraints, the target proof strategy and the session challenge value and returns it to the edge authentication node; Based on the authentication registration information, the target proof strategy, and the power grid operation constraints, the zero-knowledge proof message is verified, and an access session with the power grid equipment is established after the verification is successful.

2. The zero-knowledge proof-based self-negotiation authentication method for power grid equipment as described in claim 1, characterized in that, The authentication and registration information includes, but is not limited to: device public key, device identity commitment, device attribute commitment, operating domain mapping commitment, status baseline commitment, device operating domain mapping table, device role identifier and command permission baseline table; the device private key corresponding to the device public key is stored in the secure storage area of ​​the power grid equipment.

3. The zero-knowledge proof-based self-negotiation authentication method for power grid equipment as described in claim 1, characterized in that, The step of responding to the access request initiated by the power grid equipment by obtaining the equipment capability information and access request information of the power grid equipment includes: In response to the access request initiated by the power grid device, obtain the negotiation start message sent by the power grid device to the edge authentication node; The negotiation initiation message includes: device identity commitment, access domain identifier, device capability information, access request information, proof circuit template version list, current firmware state commitment, current electrical state summary, random number, and timestamp; the device identity commitment, the current electrical state summary, the random number, and the timestamp are used to generate the session challenge value; the proof circuit template version list is used to generate the target proof strategy; the device capability information includes the secure storage area processing capacity of the power grid equipment, the supported algorithm suites, and the maximum proof data length.

4. The zero-knowledge proof-based self-negotiation authentication method for power grid equipment as described in claim 1, characterized in that, The step of determining the current power grid operation constraints based on the equipment capability information, the access request information, and the power grid operation status information includes: The corresponding access domain identifier is determined based on the access request information, and the access feeder identifier, station identifier, and bay identifier are determined based on the access domain identifier. Based on the power grid operation status information, obtain the power grid topology status, maintenance status, and dispatch control status; The operating mode identifier is determined based on the power grid topology status; The permitted command categories and permitted data ranges are determined based on the maintenance status and the scheduling control status. Based on the permitted command category, the access request information, and the device capability information, the mandatory proof items and attribute disclosure rules are determined; The current power grid operation constraints are generated based on the access feeder identifier, the station identifier, the bay identifier, the operation mode identifier, the permitted command category, the permitted data range, the mandatory proof items, and the attribute disclosure rules.

5. The zero-knowledge proof-based self-negotiation authentication method for power grid equipment as described in claim 1, characterized in that, The target proof strategy determined based on the power grid operation constraints and the equipment capability information includes: Based on the power grid operation constraints and the equipment capability information, a combination of proof circuits is selected from a preset list of proof circuit template versions to generate a target proof strategy; The proof circuits in the proof circuit template version list include: identity consistency proof circuit, operating domain consistency proof circuit, electrical state consistency proof circuit, command authority boundary proof circuit, and firmware baseline consistency proof circuit. The identity consistency verification circuit is used to prove that the power grid equipment matches the trusted equipment corresponding to the authentication registration information; The operating domain consistency proof circuit is used to prove that the operating domain corresponding to the power grid equipment matches the current access domain and the power grid topology state. The electrical state consistency proof circuit is used to prove that the current operating state of the power grid equipment meets the state constraints corresponding to the current operating mode. The command permission boundary verification circuit is used to prove that the command category and data object in the access request information do not exceed the allowed command category and allowed data range. The firmware baseline consistency proof circuit is used to prove that the current firmware state commitment of the power grid equipment matches the state baseline commitment in the certification registration information.

6. The zero-knowledge proof-based self-negotiation authentication method for power grid equipment as described in claim 3, characterized in that, The generation of session challenge values ​​based on the target proof strategy and the power grid operation constraints includes: Obtain the device identity commitment, the current electrical state summary, the random number, and the timestamp; The grid operation constraints, the target proof strategy, the device identity commitment, the current electrical state summary, the random number, and the timestamp are concatenated in a preset order to obtain a concatenated string. The concatenated string is hashed to generate a session challenge value.

7. The zero-knowledge proof-based self-negotiation authentication method for power grid equipment as described in claim 1, characterized in that, The process of generating a zero-knowledge proof message based on the device's trusted information, the power grid operation constraints, the target proof strategy, and the session challenge value includes: The proof circuit to be executed is determined based on the target proof strategy; the proof circuit includes, but is not limited to, identity consistency proof circuit, operating domain consistency proof circuit, electrical state consistency proof circuit, and command authority boundary proof circuit. Obtain a summary of the current electrical state, and based on the summary of the current electrical state, the power grid operation constraints, and the device attribute commitments, operating domain mapping commitments, and state baseline commitments in the device trust information, run the proof circuit to be executed to obtain the proof fragment corresponding to each proof circuit; The proof fragments output by each of the proof circuits to be executed are spliced ​​together to obtain the aggregated zero-knowledge proof value; A session binding value is generated based on the session challenge value; Based on the aggregated zero-knowledge proof value and the session binding value, a digital signature is performed using a preset device private key, and finally encapsulated into a zero-knowledge proof message.

8. The zero-knowledge proof-based self-negotiation authentication method for power grid equipment as described in claim 1, characterized in that, After establishing an access session with the power grid equipment, the method further includes: The re-authentication conditions are determined based on the power grid operation status information, the authentication time window, and the access request information; wherein, the re-authentication conditions include at least one of the following: the authentication time window expires, the power grid topology status changes, the maintenance status changes, the dispatch control status changes, and the service operation type corresponding to the access request changes. When the re-authentication conditions are met, the power grid operation constraints, the target proof strategy, and the session challenge value are redefined based on the changed power grid operation status information. The power grid equipment then regenerates the zero-knowledge proof message based on the redefined power grid operation constraints, the target proof strategy, and the session challenge value. The access session's permission status is updated by verifying the regenerated zero-knowledge proof message.

9. A zero-knowledge proof-based self-negotiation authentication device for power grid equipment, characterized in that, A power grid equipment self-negotiation authentication method for performing zero-knowledge proofs as described in any one of claims 1 to 8, comprising: The network access registration module is used to respond to the registration request of the power grid equipment, obtain the equipment trust information of the power grid equipment, and establish the authentication registration information of the power grid equipment based on the equipment trust information; the equipment trust information includes at least commitment information for characterizing the equipment identity, operating domain and trust status; The information acquisition module is used to respond to the access request initiated by the power grid equipment and acquire the equipment capability information, access request information, and current power grid operation status information of the power grid equipment. The proof strategy module is used to determine the current power grid operation constraints based on the device capability information, the access request information, and the power grid operation status information, and to determine the target proof strategy based on the power grid operation constraints and the device capability information. The zero-knowledge proof module is used to generate a session challenge value based on the target proof strategy and the power grid operation constraints and send it to the power grid device, so that the power grid device generates a zero-knowledge proof message based on the device trust information, the power grid operation constraints, the target proof strategy and the session challenge value and returns it to the edge authentication node; The session access module is used to verify the zero-knowledge proof message based on the authentication registration information, the target proof strategy, and the power grid operation constraints, and to establish an access session with the power grid equipment after the verification is successful.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein when the device containing the computer-readable storage medium executes the computer program, it implements the zero-knowledge proof-based power grid equipment self-negotiation authentication method as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • An authentication method for accessing power grid terminal layer equipment.

    CN112468490B