A Consortium Blockchain-Driven Hierarchical Threshold-Based Key Negotiation Method for Grid Access Authentication

By constructing a distributed authentication network using a hierarchical threshold method driven by consortium blockchains and combining it with a dynamic reputation mechanism, the problem of high dependence on trusted centers in electric vehicle grid access authentication is solved, achieving efficient and secure key negotiation and improving the robustness and security of the system.

CN123074699APending Publication Date: 2026-11-10HUANENG TAICANG POWER GENERATION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611138043.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-29
Publication Date
2026-11-10

AI Technical Summary

Technical Problem

Existing authentication and key negotiation schemes for electric vehicles connecting to the power grid rely heavily on trusted centers, posing a single point of failure risk. Furthermore, they suffer from high computational and communication overhead and low security in untrusted or semi-trusted environments, failing to effectively utilize blockchain technology to construct an efficient and authenticable key negotiation mechanism.

Method used

A hierarchical threshold approach driven by consortium blockchains is adopted. A distributed consortium blockchain network is built through edge servers and cloud servers. The reliability of electric vehicles is evaluated by combining dynamic reputation mechanism. Identity verification and key negotiation are achieved through hierarchical threshold voting, eliminating the dependence on a trusted center and improving the robustness and security of the system.

Benefits of technology

It enables dynamic evaluation of electric vehicle behavior, resists internal attacks, improves system security and robustness, reduces computational and communication overhead, and enhances system concurrency performance and security strength.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123074699A_ABST
    Figure CN123074699A_ABST
Patent Text Reader

Abstract

This invention discloses a consortium blockchain-driven method for key negotiation for grid access authentication based on hierarchical thresholds. The method comprises the following steps: S1. An edge server and a cloud server jointly construct a distributed consortium blockchain network and obtain initialization data for system initialization; S2. A dynamic reputation mechanism is introduced to dynamically evaluate the reputation value of electric vehicles; S3. Electric vehicles and charging stations complete their respective registrations based on the edge server; S4. The electric vehicle sends a message to the charging station to initiate a key negotiation request. The charging station checks the received message, verifies the electric vehicle's identity, and forwards the signed transaction to the blockchain network; S5. The edge server and cloud server collaborate to verify the signed transaction and generate corresponding signature shares; S6. If the signature share meets the system threshold conditions generated during initialization, the electric vehicle and the charging station negotiate a key for grid access authentication.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power grid authentication key negotiation communication technology, and in particular to a consortium blockchain-driven method for access power grid authentication key negotiation based on hierarchical thresholds. Background Technology

[0002] Vehicle-to-grid (V2G) technology (electric vehicle-to-grid power transmission) is a crucial component of the smart grid. The core idea of ​​V2G is to allow a large number of electric vehicles with charging and discharging capabilities to connect to the grid. The energy storage of electric vehicles acts as a buffer against fluctuations in renewable energy generation, maintaining grid stability. EV owners can store energy when electricity prices are low and feed it into the grid when prices are high to generate revenue. V2G provides bidirectional energy and information exchange between EVs and the grid. V2G enables intelligent charging and discharging of EVs, effectively mitigating peak and off-peak conditions. However, the payment or discharge between EVs and the grid is conducted through an open wireless communication network, which is vulnerable to attacks that could compromise EV privacy. After charging or discharging, the charging station (CHT) calculates the electricity cost based on each EV's actual charging / recharging capacity and processes the payment. The CHT aggregates all EV energy transaction information and forwards it to the power service provider (ESP). If an attacker steals the real-time charging / discharging status of EV batteries and their electricity bills, it will lead to privacy breaches, causing many EVs to refuse to participate in V2G. Scholars have applied AKA (Authentication and Key Agreement) technology to V2G networks to ensure data transmission security and user privacy in open wireless communication networks.

[0003] Although existing AKA research schemes based on centralized trusted architectures are relatively mature, their reliance on a trusted center leads to potential single points of failure, and they also suffer from drawbacks such as high security assumptions and low robustness. Research schemes based on distributed trusted architectures have largely solved the problems of robustness, concurrency, and security of research schemes based on centralized trusted architectures. However, existing related research schemes have not considered how to use blockchain technology to construct efficient and verifiable key negotiation mechanisms for electric vehicles accessing the power grid in untrusted and semi-trusted environments, respectively. Furthermore, they themselves suffer from high computational and communication overhead, low security strength, and high security assumptions. Summary of the Invention

[0004] The purpose of this invention is to provide a consortium blockchain-driven method for negotiating access grid authentication keys based on hierarchical thresholds, in order to solve the problems mentioned in the background art.

[0005] To achieve the above objectives, the present invention provides the following technical solution: a consortium blockchain-driven method for negotiating access grid authentication keys based on hierarchical thresholds, comprising an authentication system consisting of an edge server, a cloud server, an electric vehicle, and a charging station, the method comprising the following steps: S1, edge servers, and cloud servers jointly construct a distributed consortium blockchain network and obtain initialization data for system initialization; S2, electric vehicles and charging stations complete their respective registrations based on edge servers; S3. By introducing a dynamic reputation mechanism, the reputation value of electric vehicles can be dynamically evaluated, and the reliability of electric vehicles can be verified based on the evaluation results of the reputation value. S4. The verified electric vehicle sends a message to the charging station to initiate a key negotiation request. The charging station checks the message to verify the electric vehicle's identity and forwards the signed transaction to the blockchain network. S5, edge servers and cloud servers collaborate to verify signed transactions, and generate corresponding signature shares after successful verification. S6. Based on the initialization data, determine whether the signature share meets the key negotiation conditions. If it does, the electric vehicle and the charging station negotiate a key for grid access authentication; otherwise, the authentication fails.

[0006] Preferably, the construction of the consortium blockchain network in S1 includes the following sub-steps: S11. The system selects a safe point on the elliptic curve to generate an elliptic curve group with multi-order additive properties in order to obtain initialization data; S12. The system generates system threshold one and system threshold two for judging key negotiation conditions; S13, the edge server, and the cloud server each calculate their respective blockchain addresses and complete their registration to build the consortium blockchain network.

[0007] Preferably, obtaining the initialization data in step S1 includes the following sub-steps: A1. The edge server and cloud server each calculate their own public keys and store them on the blockchain; A2. The edge server and the cloud server generate at least one polynomial based on system threshold one and system threshold two, and obtain their respective collaborative private keys. A3. Edge servers and cloud servers obtain the system public key based on the corresponding public key in the blockchain.

[0008] Preferably, the registration of the electric vehicle and the charging station in step S2 includes the following sub-steps: S21, the electric vehicle and the charging station each calculate their respective blockchain addresses and public keys, and send registration requests to the edge server respectively; S22. The edge server receives the registration request and sends the address signature transaction to the blockchain network based on the corresponding blockchain address to complete the corresponding address registration. S23. Electric vehicles and charging stations each send public key signature transactions to the blockchain network based on their respective public keys to complete public key registration.

[0009] Preferably, the electric vehicle in step S3 includes a feedback electric vehicle and a target electric vehicle, and the dynamic evaluation of the electric vehicle reputation value includes the following steps: S31. The feedback electric vehicle evaluates the messages sent by the target electric vehicle and generates a feedback set; S32. The edge server calculates and updates the reputation value of the target electric vehicle based on the feedback set and uploads it to the blockchain; S33. The edge server compares the uploaded reputation value with the preset reputation threshold. If it is lower than the preset reputation threshold, the target electric vehicle is blacklisted and its true identity is broadcast. Otherwise, normal key negotiation is performed.

[0010] Preferably, the message evaluation in step S31 includes the following steps: S311. Feedback Electric Vehicle: Assess the reliability of the target electric vehicle based on its original reputation value. S312, The feedback electric vehicle evaluates the message sent by the target electric vehicle and provides a credibility score for the message for the reliability assessment of the target electric vehicle.

[0011] Preferably, the calculation and update of the reputation value in step S32 includes the following steps: S321. Based on the reputation value of the target electric vehicle, the feedback messages are divided into three reputation interval groups; S322. The system assigns different evaluation weights to each credit interval group; S323. Calculate the weighted credibility assessment of the target electric vehicle based on the evaluation weights; S324. Dynamically update the reputation value of the target electric vehicle based on weighted credibility assessment.

[0012] Preferably, the key negotiation request in step S4 includes the following steps: S41. The electric vehicle computes the negotiation request for public key one and obtains the current timestamp one and signature; S42. The electric vehicle sends a negotiation request message containing a timestamp and a signature to the charging station; S43. The charging station checks whether the negotiation request message is valid. If the negotiation request message is valid, it calculates the negotiation request public key 2 and the current timestamp 2, and sends the signed transaction to the blockchain.

[0013] Preferably, the verification of the signed transaction in step S5 includes the following sub-steps: S51. The charging station checks whether timestamp 1, timestamp 2 and the electric vehicle's reputation value meet the conditions. If at least one condition is not met, the verification fails and the electric vehicle's key negotiation request is rejected. Otherwise, the verification passes. S52. The charging station checks the validity of the signed transaction, the electric vehicle's public key, and the signature. If all are valid, the verification passes; otherwise, the verification fails. S53. If both steps S51 and S52 above are successful, the edge server and cloud server will generate corresponding signature shares for the signature transaction.

[0014] Preferably, step S6, key negotiation, includes the following sub-steps: S61, The signature transaction obtains the signature share of the edge server and the cloud server respectively; S62. If the signature share of the edge server and the cloud server is not less than the system threshold two, and the signature share of the cloud server is not less than the system threshold one, then the electric vehicle and the charging pile will calculate the key; otherwise, the authentication will fail.

[0015] The beneficial effects of this invention are: 1. This invention designs a dynamic reputation update framework. An edge server, acting as a data collection entity, receives feasibility assessment scores from feedback electric vehicles regarding a target electric vehicle. The edge server dynamically updates the reputation value of the electric vehicle based on the feedback data. This framework enables dynamic evaluation of electric vehicle behavior, effectively resisting attacks launched by internal adversaries.

[0016] 2. This invention employs a message authentication scheme based on the concept of hierarchical threshold voting. This scheme utilizes a distributed consortium blockchain network constructed using CS (cloud server) and ES (edge ​​server) for authentication. This not only eliminates the dependence on a trusted center, achieving complete decentralization, but also eliminates the dependence on a master key through the concept of hierarchical threshold voting. Even if one server fails, the system's security will not be affected.

[0017] 3. This invention employs a detailed analytical model to evaluate the performance of the scheme, such as blockchain overhead, processing latency of block-related operations, computational and communication overhead, and reputation value status. Furthermore, the security of this cryptographic protocol is evaluated through formal security analysis and it is resistant to various types of attacks, exhibiting stronger security compared to other related schemes. Attached Figure Description

[0018] Figure 1 This is a system model diagram of the present invention; Figure 2 This is a processing delay diagram of various operations on the blockchain during the key negotiation process in one embodiment of the present invention; Figure 3 This is a graph showing the relationship between the increase or decrease in the reputation value of an electric vehicle and various factors in one embodiment of the present invention. Detailed Implementation

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

[0020] Please see Figures 1 to 3 This invention proposes a consortium blockchain-driven, hierarchical threshold-based key negotiation method for access grid authentication. Specifically, to address the issue of internal attacks, a multi-factor reputation mechanism is first proposed. This mechanism systematically combines the historical communication records of electric vehicles (EVs) with their current V2G status to achieve dynamic reputation assessment. Once an EV's reputation value falls below a preset reputation threshold, it can no longer participate in V2G network communication. Based on this, an AKA scheme driven by blockchain and smart contracts is constructed using threshold and hierarchical concepts. Specifically, a consortium blockchain authentication network is built through the collaboration of cloud servers (CS) and edge servers (ES) with different privileges. Signatures generated by different CSs or ESs will have different weights; therefore, as long as the threshold is met, an AKA request will be considered legitimate and verified through any valid combination of CSs and ESs. This design offers three main benefits. First, it allows some CSs and ESs to operate offline. Second, it improves the concurrency performance of distributed authentication services. Third, the system's security and robustness are also improved because the authentication authority does not need to be completely trusted.

[0021] like Figure 1As shown, this embodiment is based on a layered AKA method driven by a blockchain in a V2G network with cloud-edge collaboration. It mainly includes the following participating entities: the system initiator, electric vehicles (EVs), charging stations (CHTs), cloud servers (CSs), and edge servers (ESs). The system initiator is primarily responsible for selecting various parameters during system initialization, selecting network entities, and managing the blockchain. The edge server (ES) is a semi-trusted entity deployed at the network edge, responsible for message authentication, reputation management, and providing registration services. The cloud server (CS) is a semi-trusted entity deployed in the cloud; it works in conjunction with the edge server (ES) to authenticate collected messages by performing various operations and send the authentication results to the blockchain network. EVs have dynamically updated reputation values ​​and send charging / discharging requests to charging stations (CHTs). Charging stations (CHTs) have discharging functions and serve as the interface between EVs and power service providers. Each power service provider has multiple CHTs, and each CHT can simultaneously charge and discharge multiple EVs.

[0022] The specific steps of this embodiment are as follows: Step (1): System initialization. The system initiator completes the initialization of relevant entities. Edge servers and cloud servers jointly construct a distributed consortium blockchain network, obtain basic system parameters and related functions, and the public and collaborative private keys of edge servers and cloud servers. and system public key ; Step (1.1): The system initiator selects a safe elliptic curve. .from Select a point To generate with Additive Elliptic Curve Group This facilitates the subsequent acquisition of initialization data; Step (1.2): The system initiator generates system threshold 1 t1 and system threshold 2 t2 for verifying the number of signature shares during the key negotiation phase. The specific values ​​depend on the balance between system robustness and performance. Step (1.3): The blockchain entity edge server ES and the cloud server CS generate random numbers respectively. And calculate their respective blockchain addresses Blockchain address The registration request, containing address information, is sent in encrypted form to the Registration Authority (RA). The RA then uses the server registration algorithm to complete the registration of the edge server (ES) and the cloud server (CS), thus enabling the construction of the consortium blockchain. Step (1.4): Generate random numbers on the cloud server CS. And calculate the corresponding public key. The cloud server CS calls the public key registration algorithm to store the public key on the blockchain; Step (1.5): The edge server ES generates random numbers. And calculate the corresponding public key. The edge server ES calls the public key registration algorithm to store the public key on the blockchain; Step (1.6): CS generates two polynomials. and The orders of the two polynomials are respectively and ( ); Step (1.7): ES generates a polynomial The order is ; Step (1.8): Each blockchain node possesses its own polynomial function. Blockchain nodes obtain their respective collaborative private keys through a secret sharing scheme. The specific plan is as follows: Step (1.8.1): Each cloud server (CS) obtains its own secret sharing set based on the generator polynomial. And the encrypted signed secret share is shared with other edge servers (ES) and cloud servers (CS) through a secret sharing method. ,in Serial number corresponding to other servers ; Step (1.8.2): Each edge server (ES) obtains its own secret sharing set based on the generator polynomial. And share the encrypted signed secret share with other edge servers ES via secret sharing. ,in Corresponding serial number to other edge servers Elasticsearch ; Step (1.8.3): Based on the secret sharing scheme, each cloud server CS obtains two collaborative private keys as shown in (1) and (2). , The edge server ES obtains a collaborative private key, such as (3). ; (1) (2) (3) Step (1.9): Edge server ES and cloud server CS obtain the system public key based on on-chain information. .

[0023] Step (2), for electric vehicles and charging station Register electric vehicles Generate blockchain address and public key Charging station Generate blockchain address and public key The edge server executes the smart contract to complete the electric vehicle and charging station Address registration, electric vehicles and charging station Each smart contract is executed to complete its respective public key registration; Step (2.1), Electric Vehicle Select two random numbers And calculate the corresponding blockchain address based on the random number. and public key The electric vehicle sends a registration request to the edge server Elasticsearch (ES). After receiving the registration request, the edge server ES checks the electric vehicle's reputation value. If the reputation value is greater than the reputation interval threshold, the edge server ES sends the signed transaction address. The blockchain triggers the address registration algorithm to complete the car's address registration; Step (2.2), Electric Vehicle Send public key signed transaction Upon reaching the blockchain network, the public key registration algorithm is triggered to complete the public key registration of the car, and the car registration is complete; Step (2.3), charging station Select two random numbers And calculate the corresponding blockchain address based on the random number. and public key Charging station A registration request is sent to the edge server Elasticsearch (ES). After receiving the registration request, the edge server ES sends a signature transaction for the address. The charging station is completed by triggering the address registration algorithm on the blockchain network. Register the address; Step (2.4), charging station Signed transactions that send public keys Upon reaching the blockchain network, the public key registration algorithm is triggered to complete the charging station registration. Public key registration, charging station Registration complete.

[0024] Step (3) Introduce a dynamic reputation mechanism to achieve dynamic evaluation of user reputation scores. This includes three modules: feedback collection, reputation evaluation, and reputation update. Step (3.1): For the message sent by the target electric vehicle, the participating vehicles evaluate the target message; the specific evaluation process is as follows: Step (3.1.1): The feedback vehicle assesses the credibility of the target electric vehicle based on the original reputation value of the sender (target electric vehicle); Step (3.1.2): Feedback from the vehicle to the received message based on the current traffic environment. Conduct an assessment and provide a message Provide credibility assessment score ; Step (3.1.3): The vehicle sends a message containing its own information to the feedback collection server (ES). timestamp and the corresponding credibility assessment score All vehicles participating in the feedback evaluation constitute the feedback set; Step (3.2): Based on the evaluation information of the electric vehicle messages from the feedback set, the edge server ES calculates the reputation value of the electric vehicle; the calculation process is as follows: Step (3.2.1): Based on the reputation score of the feedback vehicle, divide the feedback messages into three reputation interval groups. For example, [60-75], [75-90], [90-100], where the number of feedback vehicles in each reputation interval group is... The system assigns different evaluation weights to each group. ; Step (3.2.2): Calculate the weighted credibility assessment score of the target electric vehicle using formula (4). ,in (all∈[0,1]) represents the credibility assessment score given by the car from feedback from different reputation groups; (4) Step (3.2.3): Evaluate the score based on weighted credibility. The size is used to calculate the reputation of electric vehicles. If This indicates that the message sent by the target electric vehicle is recognized by most vehicles; therefore, its reputation value is rewarded using formula (5). Conversely, if This indicates that the message sent by the target electric vehicle was questioned by most vehicles, therefore, its reputation value is penalized using equation (6). Here It is the system's preset reputation threshold, and its value can be set and adjusted according to the security requirements of the V2G-based system; (5) (6) Step (3.3): The edge server ES uploads the updated reputation score to the blockchain. If the reputation score of the target electric vehicle is lower than the reputation interval threshold, the edge server ES will blacklist it and broadcast the electric vehicle's true identity.

[0025] Step (4), Key Negotiation Request Phase, Electric Vehicle By sending a message to charging station Initiate key negotiation request, charging station Inspection message electric vehicles Forward signature transactions after authentication To the blockchain network; Step (4.1), Electric Vehicle Choose a random number And calculate the public key of the negotiation request. Electric vehicles Get current timestamp 1 and calculate the signature. ; Step (4.2), Electric Vehicle Send a negotiation request message containing timestamp 1 and signature information. to charging station ; Step (4.3), charging station Received message Next, check the timestamp and reputation value. If the negotiation request message is valid, the charging station... Select random number And calculate the public key of the negotiation request. At the same time, get the current timestamp 2 ; Step (4.4), charging station Send Signature Transaction To blockchain; Step (5), the request verification phase, involves the blockchain node edge server (ES) and cloud server (CS) collaborating to verify the signed transaction. Verification is performed, and corresponding signature shares are generated based on the verification results. ; Step (5.1): Blockchain nodes (i.e., edge servers and cloud servers) receive the signed transaction. Next, the signed transaction is verified; the verification process is as follows: Step (5.1.1): Blockchain nodes check the message timestamp and electric vehicle. Reputation value. If or or electric vehicles If the reputation value falls below the reputation interval threshold, the server terminates the negotiation process. Represents the current timestamp. This represents the maximum reasonable time interval; Step (5.1.2): Blockchain nodes use a signature algorithm to check the signed transaction. The effectiveness; Step (5.1.3): The blockchain node checks the public key of the corresponding electric vehicle. Whether it is valid; if the public key is not registered on the blockchain, reject the message and terminate the AKA request. Step (5.1.4): The blockchain node checks the signature using equation (7). The validity of the AKA request is determined by the equality of the blockchain node. If the equation does not hold, it means the request message has been tampered with and has failed authentication. In this case, the blockchain node rejects the message and terminates the AKA request. Otherwise, the AKA message authentication process passes. (7) Step (5.2): After message authentication, the blockchain nodes sign the transaction respectively. Generate the signature share as shown in equation (8); the specific process is as follows: Step (5.2.1): The cloud server CS is for signing transactions. Generate two signature shares , and send signed transactions To blockchain; Step (5.2.2): The edge server ES performs the signing transaction. Generate a signature share , and send signed transactions In the blockchain, each signature share corresponds to a tag value. This is used to distinguish signatures from different collaborative private keys during subsequent authentication processes.

[0026] (8) Step (6), Key Negotiation Phase, Signature Transaction The number of signatures obtained meets the system threshold condition set during the initialization phase. Electric vehicle and charging station The key used for subsequent communication was successfully negotiated through the equation.

[0027] Step (6.1), Signature Transaction The signature shares obtained from the edge server ES and the cloud server CS respectively reached the threshold set by the system, electric vehicles and charging station The session key can be successfully negotiated through the equation.

[0028] Step (6.1.1), Electric Vehicle and charging station The share verification algorithm is invoked to determine whether the signature share has reached the system's preset value. This is done when the signature transaction reaches at least two system thresholds. A number of signature shares from blockchain nodes, of which at least one is a system threshold. When a signature comes from the cloud server CS, the AKA request is authenticated by the blockchain node; Step (6.1.2), Electric Vehicle and charging station The session key is calculated using equation (9). .

[0029] (9) To facilitate understanding of the technical solution in this embodiment, the meanings of the relevant variables are explained first, as detailed in Table 1.

[0030] Table 1 In one specific embodiment, this embodiment runs on a Windows operating system, and the host is equipped with an Intel i7-12700K CPU and 16 GB of RAM. The computational overhead of each operation in this method is shown in Table 2: Table 2 In Table 2, Representative operation, Represents runtime. Represents a hash. m represents scalar multiplication operations related to elliptic curves. ca represents point addition operations related to elliptic curves, and Exp represents modular exponentiation. Based on the above operations, the computational and communication overhead results of the practical application of the technical solution of this invention are shown in Table 3. This result clearly demonstrates that the computational overhead of the technical method of this invention is very lightweight, exhibiting significant advantages compared to existing methods.

[0031] Table 3 To evaluate blockchain overhead, gas costs and processing latency were analyzed in depth to ensure the proposed method has efficient and practical performance in V2G network environments. A simulated blockchain network using Ganche was created, smart contracts were written in Solidity, and deployed and tested using the Truffle framework. In the simulation experiment, a scenario was simulated where 100 electric vehicles sent different types of transactions, triggering various operations of the smart contract. Receipts for each transaction were accurately captured using Web3 callback functions, and the gas consumption and processing latency for each transaction were recorded in detail. Table 4 shows the gas costs for each operation. Figure 2 These represent the processing latency for public key registration, share registration, and electric vehicle registration on the blockchain, respectively. Simulation results fully demonstrate that the proposed method performs well in handling latency. The gas cost is also reasonable and economical.

[0032] At the same time, the reputation value of the present invention was analyzed. Figure 3 The figures represent the relationships between the increase or decrease in the reputation value of electric vehicles and their initial value, the vehicle density D in their environment, and the credibility score Sc obtained from electric vehicle messages, respectively. This result clearly demonstrates that dynamically updating the reputation value of electric vehicle entities can effectively limit the rapid accumulation and abuse of reputation values. This ensures the stability and effectiveness of the reputation value system and contributes to building a fair and trustworthy environment for V2G networks.

[0033] Table 4 The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions or improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A consortium blockchain-driven method for tiered threshold-based access grid authentication key negotiation, comprising an authentication system consisting of an edge server, a cloud server, an electric vehicle, and a charging station, characterized in that, The method includes the following steps: S1, edge servers, and cloud servers jointly construct a distributed consortium blockchain network and obtain initialization data for system initialization; S2, electric vehicles and charging stations complete their respective registrations based on edge servers; S3. By introducing a dynamic reputation mechanism, the reputation value of electric vehicles can be dynamically evaluated, and the reliability of electric vehicles can be verified based on the evaluation results of the reputation value. S4. The verified electric vehicle sends a message to the charging station to initiate a key negotiation request. The charging station checks the message to verify the electric vehicle's identity and forwards the signed transaction to the blockchain network. S5, edge servers and cloud servers collaborate to verify signed transactions, and generate corresponding signature shares after successful verification. S6. Based on the initialization data, determine whether the signature share meets the key negotiation conditions. If it does, the electric vehicle and the charging station negotiate a key for grid access authentication; otherwise, the authentication fails.

2. The consortium blockchain-driven method for access grid authentication key negotiation based on hierarchical thresholds according to claim 1, wherein the construction of the consortium blockchain network in S1 includes the following sub-steps: S11. The system selects a safe point on the elliptic curve to generate an elliptic curve group with multi-order additive properties in order to obtain initialization data; S12. The system generates system threshold one and system threshold two for judging key negotiation conditions; S13, the edge server, and the cloud server each calculate their respective blockchain addresses and complete their registration to build the consortium blockchain network.

3. The method for negotiating access grid authentication keys driven by a consortium blockchain based on hierarchical thresholds according to claim 2, wherein obtaining initialization data in S1 includes the following sub-steps: A1. The edge server and cloud server each calculate their own public keys and store them on the blockchain; A2. The edge server and cloud server obtain their respective collaborative private keys based on system threshold one and system threshold two, respectively. A3. Edge servers and cloud servers obtain the system public key based on the corresponding public key in the blockchain.

4. The method for negotiating access grid authentication keys based on hierarchical thresholds driven by a consortium blockchain according to claim 1, wherein the registration of electric vehicles and charging stations in step S2 includes the following sub-steps: S21, the electric vehicle and the charging station each calculate their respective blockchain addresses and public keys, and send registration requests to the edge server respectively; S22. The edge server receives the registration request and sends the address signature transaction to the blockchain network based on the corresponding blockchain address to complete the corresponding address registration. S23. Electric vehicles and charging stations each send public key signature transactions to the blockchain network based on their respective public keys to complete public key registration.

5. The method for negotiating access grid authentication keys based on hierarchical thresholds driven by a consortium blockchain according to claim 1, wherein the electric vehicle in step S3 includes a feedback electric vehicle and a target electric vehicle, and the dynamic evaluation of the electric vehicle's reputation value includes the following steps: S31. The feedback electric vehicle evaluates the messages sent by the target electric vehicle and generates a feedback set; S32. The edge server calculates and updates the reputation value of the target electric vehicle based on the feedback set and uploads it to the blockchain; S33. The edge server compares the uploaded reputation value with the preset reputation threshold. If it is lower than the preset reputation threshold, the target electric vehicle is blacklisted and the true identity of the electric vehicle is broadcast. Otherwise, the key negotiation proceeds normally.

6. The consortium blockchain-driven method for access grid authentication key negotiation based on hierarchical thresholds according to claim 5, wherein step S31 message evaluation includes the following steps: S311. Feedback Electric Vehicle: Assess the reliability of the target electric vehicle based on its original reputation value. S312, The feedback electric vehicle evaluates the message sent by the target electric vehicle and provides a credibility score for the message for the reliability assessment of the target electric vehicle.

7. The consortium blockchain-driven method for negotiating access grid authentication keys based on hierarchical thresholds according to claim 5, wherein step S32, calculating and updating the reputation value, includes the following steps: S321. Based on the reputation value of the target electric vehicle, the feedback messages are divided into three reputation interval groups; S322. The system assigns different evaluation weights to each credit interval group; S323. Calculate the weighted credibility assessment of the target electric vehicle based on the evaluation weights; S324. Dynamically update the reputation value of the target electric vehicle based on weighted credibility assessment.

8. The method for key negotiation for grid access authentication driven by a consortium blockchain based on hierarchical thresholds according to claim 1, wherein the key negotiation request in step S4 includes the following steps: S41. The electric vehicle computes the negotiation request for public key one and obtains the current timestamp one and signature; S42. The electric vehicle sends a negotiation request message containing a timestamp and a signature to the charging station; S43. The charging station checks whether the negotiation request message is valid. If the negotiation request message is valid, it calculates the negotiation request public key 2 and the current timestamp 2, and sends the signed transaction to the blockchain.

9. The consortium blockchain-driven method for access grid authentication key negotiation based on hierarchical thresholds according to claim 8, wherein the verification of the signature transaction in step S5 includes the following sub-steps: S51. The charging station checks whether timestamp 1, timestamp 2 and the electric vehicle's reputation value meet the conditions. If at least one condition is not met, the verification fails and the electric vehicle's key negotiation request is rejected. Otherwise, the verification passes. S52. The charging station checks the validity of the signed transaction, the electric vehicle's public key, and the signature. If all are valid, the verification passes; otherwise, the verification fails. S53. If both steps S51 and S52 above are successful, the edge server and cloud server will generate corresponding signature shares for the signature transaction.

10. The method for key negotiation of access grid authentication based on hierarchical threshold driven by a consortium blockchain according to claim 2, wherein step S6 key negotiation includes the following sub-steps: S61, The signature transaction obtains the signature share of the edge server and the cloud server respectively; S62. If the signature share of the edge server and the cloud server is not less than the system threshold two, and the signature share of the cloud server is not less than the system threshold one, then the electric vehicle and the charging pile will calculate the key; otherwise, the authentication will fail.