Vehicle-mounted ad hoc network identity authentication method and system based on block chain
Through the blockchain-based on-board ad hoc network identity authentication method, the vehicle identity authentication is performed using dynamic accumulator and member witness values, which solves the problems of poor privacy protection and authentication delay in the Internet of Vehicles, and achieves efficient and secure identity authentication.
Patent Information
- Application Number
- CN202311863414.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2025-07-08
AI Technical Summary
The existing vehicle identity authentication methods have problems such as poor privacy protection, heavy storage load and high authentication delay in the Internet of Vehicles, making it difficult to achieve efficient and secure identity authentication.
The on-board autonomous network identity authentication method based on blockchain is adopted, and the vehicle information is verified through the registration agency, a call public key list is generated and the accumulator is added, the value of the accumulator is updated, and the update message is sent to the blockchain. The blockchain calculates and broadcasts the new member witness value and the accumulator value to realize dynamic identity authentication.
It improves the security and efficiency of identity authentication, reduces authentication delay, ensures privacy protection, and completes the legality verification of vehicle identity in the preprocessing stage, reducing blockchain overhead.
Smart Images

Figure CN120282138A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle networking, and in particular, to a blockchain-based identity authentication method and system for vehicle ad hoc networks. Background Art
[0002] Vehicle networking technology has become a key focus for national and high-tech enterprises in R & D. However, with the intelligence and networking of vehicles, corresponding security issues have emerged continuously. In the past five years, the global automotive industry has suffered losses of more than $500 billion due to network attacks. Therefore, when a vehicle accesses a vehicle ad hoc network, identity authentication must be carried out to avoid external attacks such as impersonation, tampering, and message link tracking, as well as to identify the identities of internal malicious vehicles, ensuring traffic safety. However, existing identity authentication methods have problems such as poor privacy protection, heavy storage load, and high authentication delay. Summary of the Invention
[0003] The technical problem to be solved by the present invention is to provide a blockchain-based identity authentication method and system for vehicle ad hoc networks, which can achieve efficient and secure identity authentication.
[0004] To solve the above technical problem, the technical solution adopted by the present invention is as follows:
[0005] A blockchain-based identity authentication method for vehicle ad hoc networks, comprising the steps of:
[0006] A registration institution receives a registration request from a vehicle to be added, and the registration request includes vehicle information of the vehicle to be added;
[0007] The registration institution verifies the legality of the vehicle information to obtain a verification result;
[0008] If the verification result is successful, the registration institution obtains the public key of the vehicle to be added, generates a call public key list corresponding to the vehicle to be added, and adds the public key and the call public key list to an accumulator, updating the value of the accumulator;
[0009] The registration institution generates an update message based on the updated value of the accumulator, the value of the accumulator before the update, and the vehicle information, and sends the update message to the blockchain;
[0010] The blockchain calculates a new member witness value based on the update message, and broadcasts the new member witness value and the updated value of the accumulator to all vehicles.
[0011] To solve the above technical problem, another technical solution adopted by the present invention is as follows:
[0012] A vehicle ad-hoc network identity authentication system based on blockchain, comprising a registration authority and a blockchain. The registration authority includes a first memory, a first processor, and a first computer program stored on the first memory and executable on the first processor. The blockchain includes a second memory, a second processor, and a second computer program stored on the second memory and executable on the second processor. When the first processor executes the first computer program, the following steps are implemented:
[0013] Receive a registration request of a vehicle to be joined, where the registration request includes vehicle information of the vehicle to be joined;
[0014] Verify the legality of the vehicle information to obtain a verification result;
[0015] If the verification result is successful, obtain the public key of the vehicle to be joined, generate a call public key list corresponding to the vehicle to be joined, and add the public key and the call public key list to an accumulator, and update the value of the accumulator;
[0016] Generate an update message according to the value of the updated accumulator, the value of the accumulator before update, and the vehicle information, and send the update message to the blockchain;
[0017] When the second processor executes the second computer program, the following steps are implemented:
[0018] Calculate a new membership witness value according to the update message, and broadcast the new membership witness value and the value of the updated accumulator to all vehicles.
[0019] The beneficial effects of the present invention are as follows: The registration authority verifies the legality of the vehicle information according to the registration request. If the verification result is successful, obtain the public key of the vehicle to be joined, generate a call public key list corresponding to the vehicle to be joined, and add the two to the accumulator, update the value of the accumulator, and then generate an update message with the value of the updated accumulator, the value of the accumulator before update, and the vehicle information and send it to the blockchain. The blockchain calculates and broadcasts a new membership witness value and the value of the updated accumulator to all vehicles according to the update message. By introducing a dynamic accumulator, the security and efficiency of identity authentication are improved, and the legality verification of vehicle identities is completed in the preprocessing stage, reducing the authentication delay of vehicles. At the same time, vehicles only need to save the membership witness value and the value of the accumulator, and can complete the two-way authentication of subsequent communications while protecting privacy, and taking into account the blockchain overhead, thus realizing efficient and secure identity authentication. Description of the Drawings
[0020] Figure 1 It is a step flow chart of a vehicle ad-hoc network identity authentication method based on blockchain according to an embodiment of the present invention;
[0021] Figure 2 Schematic diagram of the structure of a vehicle ad hoc network identity authentication system based on blockchain according to an embodiment of the present invention;
[0022] Figure 3 Schematic diagram of the communication of each entity in the vehicle ad hoc network identity authentication method based on blockchain according to an embodiment of the present invention. Specific implementation manners
[0023] To describe in detail the technical content, achieved objectives and effects of the present invention, the following is described in conjunction with the embodiments and with reference to the accompanying drawings.
[0024] Please refer to Figure 1 , a vehicle ad hoc network identity authentication method based on blockchain, comprising the steps of:
[0025] The registration authority receives a registration request of a vehicle to be joined, and the registration request includes the vehicle information of the vehicle to be joined;
[0026] The registration authority verifies the legality of the vehicle information according to the registration request to obtain a verification result;
[0027] If the verification result is successful, the registration authority obtains the public key of the vehicle to be joined, generates a call public key list corresponding to the vehicle to be joined, and adds the public key and the call public key list to an accumulator, and updates the value of the accumulator;
[0028] The registration authority generates an update message according to the value of the updated accumulator, the value of the accumulator before the update, and the vehicle information, and sends the update message to the blockchain;
[0029] The blockchain calculates a new member witness value according to the update message, and broadcasts the new member witness value and the value of the updated accumulator to all vehicles.
[0030] As can be seen from the above description, the beneficial effects of the present invention are as follows: The registration agency verifies the legality of the vehicle information. If the verification result is successful, it obtains the public key of the vehicle to be added, generates a call public key list corresponding to the vehicle to be added, and adds both to the accumulator, updates the value of the accumulator, and then generates an update message with the updated accumulator value, the accumulator value before the update, and the vehicle information and sends it to the blockchain. The blockchain calculates and broadcasts a new member witness value and the updated accumulator value to all vehicles according to the update message. By introducing a dynamic accumulator, the security and efficiency of identity authentication are improved, and the legality verification of vehicle identities is completed in the preprocessing stage, reducing the authentication delay of vehicles. At the same time, vehicles only need to save the member witness value and the accumulator value, and can complete the two-way authentication of subsequent communications while protecting privacy, and taking into account the blockchain overhead, thus achieving efficient and secure identity authentication.
[0031] Further, it further includes:
[0032] The first vehicle sends a communication request to the second vehicle, and the communication request includes a communication message;
[0033] The second vehicle uses the value of the accumulator and the member witness value to verify the communication message according to the communication request to obtain a verification result;
[0034] If the verification result is passed, the second vehicle establishes communication with the first vehicle;
[0035] If the verification result is not passed, the second vehicle rejects the communication request.
[0036] As can be seen from the above description, when communication is required between vehicles, the vehicle receiving the communication request can use the value of the accumulator and the member witness value to verify the communication message, realizing a legal check on the identity of the vehicle sending the communication request, thus achieving efficient and secure identity authentication.
[0037] Further, the first vehicle sending a communication request to the second vehicle includes:
[0038] The first vehicle randomly selects a call public key from the call public key list and obtains the current timestamp;
[0039] The first vehicle generates a communication message according to the call public key and the timestamp, and sends a communication request to the second vehicle according to the communication message.
[0040] As can be seen from the above description, the first vehicle randomly selects a call public key from the call public key list and obtains the current timestamp to generate a communication message, ensuring the uniqueness of the communication message, improving communication security, and ensuring that it is not maliciously attacked.
[0041] Furthermore, the communication message includes a timestamp and a call public key;
[0042] The second vehicle uses the value of the accumulator and the membership witness value to verify the communication message according to the communication request, and the obtained verification result includes:
[0043] The second vehicle checks whether the timestamp is within the valid transmission interval according to the communication request. If it is not, it determines that the verification result fails. If it is, it uses the value of the accumulator and the membership witness value to verify the call public key. If the verification passes, it determines that the verification result passes. If the verification fails, it determines that the verification result fails.
[0044] As can be seen from the above description, the second vehicle first checks the timestamp and then verifies the call public key, ensuring that only communication requests initiated by vehicles within the valid transmission interval and with legal identities can be accepted, achieving effective identity authentication.
[0045] Furthermore, it further includes:
[0046] The registration authority determines whether there are abnormal vehicles among all the vehicles. If there are, it deletes the public key and the call public key list of the abnormal vehicle from the accumulator and updates the value of the accumulator again.
[0047] As can be seen from the above description, the registration authority can automatically detect abnormal vehicles and delete the public key and the call public key list of abnormal vehicles from the accumulator, realizing the elimination of abnormal vehicles and ensuring the security of the vehicular ad hoc network.
[0048] Please refer to Figure 2 , a blockchain-based vehicular ad hoc network identity authentication system, including a registration authority and a blockchain. The registration authority includes a first memory, a first processor, and a first computer program stored on the first memory and executable on the first processor. The blockchain includes a second memory, a second processor, and a second computer program stored on the second memory and executable on the second processor. When the first processor executes the first computer program, the following steps are implemented:
[0049] Receive a registration request of a vehicle to be added, where the registration request includes vehicle information of the vehicle to be added;
[0050] Verify the legality of the vehicle information to obtain a verification result;
[0051] If the verification result is successful, obtain the public key of the vehicle to be added, generate a call public key list corresponding to the vehicle to be added, and add the public key and the call public key list to the accumulator and update the value of the accumulator;
[0052] Generate an update message based on the value of the updated accumulator, the value of the accumulator before the update, and the vehicle information, and send the update message to the blockchain;
[0053] When the second processor executes the second computer program, the following steps are implemented:
[0054] Calculate a new membership witness value according to the update message, and broadcast the new membership witness value and the value of the updated accumulator to all vehicles.
[0055] From the above description, the beneficial effects of the present invention are as follows: The registration agency verifies the legality of the vehicle information. If the verification result is successful, it obtains the public key of the vehicle to be added, generates a call public key list corresponding to the vehicle to be added, and adds the two to the accumulator, updates the value of the accumulator, and then generates an update message from the value of the updated accumulator, the value of the accumulator before the update, and the vehicle information and sends it to the blockchain. The blockchain calculates and broadcasts a new membership witness value and the value of the updated accumulator to all vehicles according to the update message. By introducing a dynamic accumulator, the security and efficiency of identity authentication are improved, and the legality verification of vehicle identities is completed in the preprocessing stage, reducing the authentication delay of vehicles. At the same time, vehicles only need to save the membership witness value and the value of the accumulator, and can complete the two-way authentication of subsequent communications while protecting privacy, and taking into account the blockchain overhead, thereby realizing efficient and secure identity authentication.
[0056] Further, it further includes a first vehicle and a second vehicle. The first vehicle includes a third memory, a third processor, and a third computer program stored on the third memory and executable on the third processor. The second vehicle includes a fourth memory, a fourth processor, and a fourth computer program stored on the fourth memory and executable on the fourth processor. When the third processor executes the third computer program, the following steps are implemented:
[0057] Send a communication request to the second vehicle, where the communication request includes a communication message;
[0058] When the fourth processor executes the fourth computer program, the following steps are implemented:
[0059] Verify the communication message according to the communication request using the value of the accumulator and the membership witness value to obtain a verification result;
[0060] If the verification result is passed, establish communication with the first vehicle;
[0061] If the verification result is not passed, reject the communication request.
[0062] As described above, when communication is required between vehicles, the vehicle receiving the communication request can use the value of the accumulator and the member witness value to verify the communication message, thereby achieving a legal check on the identity of the vehicle sending the communication request, and thus realizing efficient and secure identity authentication.
[0063] Further, sending the communication request to the second vehicle includes:
[0064] Randomly select a call public key from the call public key list and obtain the current timestamp;
[0065] Generate a communication message based on the call public key and the timestamp, and send a communication request to the second vehicle according to the communication message.
[0066] As described above, the first vehicle randomly selects a call public key from the call public key list and obtains the current timestamp, thereby generating a communication message, ensuring the uniqueness of the communication message, improving communication security, and ensuring that it is not maliciously attacked.
[0067] Further, the communication message includes a timestamp and a call public key;
[0068] Using the value of the accumulator and the member witness value to verify the communication message according to the communication request, and obtaining the verification result includes:
[0069] Check whether the timestamp is within the effective transmission interval according to the communication request. If not, determine that the verification result fails. If so, use the value of the accumulator and the member witness value to verify the call public key. If the verification passes, determine that the verification result passes. If the verification fails, determine that the verification result fails.
[0070] As described above, the second vehicle first checks the timestamp and then verifies the call public key, ensuring that only communication requests initiated by vehicles within the effective transmission interval and with legal identities can be accepted, thus realizing effective identity authentication.
[0071] Further, when the first processor executes the first computer program, the following steps are also implemented:
[0072] Judge whether there is an abnormal vehicle among all the vehicles. If so, delete the public key of the abnormal vehicle and the call public key list from the accumulator, and update the value of the accumulator again.
[0073] As described above, the registration authority can automatically detect abnormal vehicles and delete the public keys of abnormal vehicles and the call public key list from the accumulator, realizing the elimination of abnormal vehicles and ensuring the security of the vehicular ad hoc network.
[0074] The above-mentioned blockchain-based vehicular ad-hoc network identity authentication method and system of the present invention can be applied to the vehicular ad-hoc network scenarios that require identity authentication, which will be described below through specific embodiments:
[0075] Please refer to Figure 1 and Figure 3 , the first embodiment of the present invention is as follows:
[0076] A blockchain-based vehicular ad-hoc network identity authentication method, comprising the steps of:
[0077] S0. Determine the entities of the vehicular ad-hoc network, establish corresponding nodes for each entity, and configure each node to adapt to its role and function in the network, and meet various registration and communication requirements.
[0078] In an optional embodiment, the entities include roadside units (RSUs), registration authorities (RAs), and vehicles, as Figure 3 shown.
[0079] Among them, the registration authority is controlled by the government department, runs the full node of the blockchain, and stores the relationship between the relevant information of the vehicle and the blockchain account address; the roadside unit serves as a bridge between the vehicle and the blockchain network, runs the full node of the blockchain, provides a necessary network access point for the vehicle, and keeps the vehicle connected to the blockchain network; before joining the network, the vehicle needs to apply for registration to the registration authority. As a light node in the blockchain, it only needs to store the block header (i.e., the value of the accumulator and the member witness value). In addition, as a basic communication unit, the vehicle has certain computing and storage capabilities, can initiate transactions, communicate with surrounding vehicles, and broadcast traffic information, thereby improving traffic safety.
[0080] S1. The registration authority receives the registration request of the vehicle to be joined, and the registration request includes the vehicle information of the vehicle to be joined;
[0081] In an optional embodiment, the vehicle information includes information such as license plate number, location area, public key, etc.; the registration authority receives the registration request sent by the vehicle to be joined through a preset secure channel.
[0082] S2. The registration authority verifies the legality of the vehicle information and obtains a verification result.
[0083] Specifically, the government department pre-stores the vehicle information of all vehicles, and the registration authority sends the vehicle information to the government department for legality verification to obtain a verification result.
[0084] S3. If the verification result is successful, the registration authority obtains the public key of the vehicle to be added, generates a call public key list corresponding to the vehicle to be added, adds the public key and the call public key list to the accumulator, and updates the value of the accumulator;
[0085] In an alternative embodiment, the public key of the vehicle to be added is obtained by randomly selecting a group element as the private key through the elliptic curve encryption algorithm and generating it according to the private key.
[0086] In an alternative embodiment, the update algorithm is called to add the public key and the call public key list to the accumulator and update the value of the accumulator: where represents the value of the updated accumulator, A t represents the value of the accumulator before update, and x represents the vehicle to be added. The value of the accumulator is the exponent of g that is the product of all vehicle elements.
[0087] By introducing a dynamic accumulator, the present invention: 1. Enhances the security of identity authentication: The dynamic accumulator provides an efficient and secure way to accumulate a large amount of data while maintaining a compact and manageable overall size, which is very important for a large number of dynamically changing devices in the vehicle networking environment. Using a dynamic accumulator, a unique identity can be assigned to each vehicle or device while ensuring the security and privacy of these identities; 2. Enables efficient verification and update: In vehicle networking, the dynamic accumulator allows for fast and lightweight identity authentication, which means that vehicles can verify the identities of other vehicles or network devices without sacrificing communication efficiency. In addition, the dynamic accumulator supports efficient dynamic update, which is an important feature of the frequently changing environment in vehicle networking; 3. Resists tampering: Due to the cryptographic nature of the dynamic accumulator, it provides a high level of resistance to tampering. In the vehicle networking environment, this means that identity data is more difficult to be tampered with by unauthorized third parties, thus increasing the security of the entire system; 4. Reduces storage and transmission requirements: Compared with traditional identity authentication mechanisms, the dynamic accumulator can significantly reduce the required storage space and data transmission volume due to its compact data structure, which is particularly important for resource-constrained environments such as vehicle networking; 5. Facilitates set operations: The dynamic accumulator provides a membership proof operation, which is particularly useful for fast identity checking and permission management in vehicle networking.
[0088] In summary, the dynamic accumulator provides a secure, efficient, and adaptable solution for identity authentication using blockchain in vehicle networking, especially suitable for handling a large amount of dynamically changing identity data. Vehicular Ad Hoc Networks (VANETs) can better manage vehicle identities while ensuring efficient communication and strong security.
[0089] In an alternative embodiment, the registration authority distributes the public key to each node of the blockchain.
[0090] S4. The registration authority generates an update message based on the value of the updated accumulator, the value of the accumulator before the update, and the vehicle information, and sends the update message to the blockchain.
[0091] In an alternative embodiment, the blockchain is a consortium blockchain. Compared with a public blockchain, since the number of participating nodes in a consortium blockchain is smaller, faster transaction processing and higher efficiency can be achieved.
[0092] S5. The blockchain calculates a new member witness value based on the update message, and broadcasts the new member witness value and the value of the updated accumulator to all vehicles.
[0093] The member witness value is the exponent of g that is the product of all vehicle elements excluding the vehicle to be added. Since the member witness value is related to all existing vehicles in the vehicular ad hoc network, the member witness value needs to be updated after a new vehicle joins.
[0094] In an alternative embodiment, it further includes:
[0095] S6. The first vehicle sends a communication request to the second vehicle. The communication request includes a communication message, and the communication message includes a timestamp and a call public key. Specifically, it includes S61 - S62:
[0096] S61. The first vehicle randomly selects a call public key from the call public key list and obtains the current timestamp.
[0097] S62. The first vehicle generates a communication message based on the call public key and the timestamp, and sends a communication request to the second vehicle according to the communication message.
[0098] S7. The second vehicle verifies the communication message using the value of the accumulator and the member witness value according to the communication request, and obtains a verification result;
[0099] Specifically, the second vehicle checks whether the timestamp is within the valid transmission interval according to the communication request. If it is not, it determines that the verification result fails. If it is, it verifies the call public key using the value of the accumulator and the member witness value. If the verification passes, it determines that the verification result passes. If the verification fails, it determines that the verification result fails.
[0100] In an alternative embodiment, the ST.Verify algorithm is called to verify the call public key using the value of the accumulator and the member witness value.
[0101] S8. If the verification result is passed, the second vehicle establishes communication with the first vehicle.
[0102] S9. If the verification result is not passed, the second vehicle rejects the communication request.
[0103] S10. The registration authority determines whether there are abnormal vehicles among all the vehicles. If so, it deletes the public key and the call public key list of the abnormal vehicle from the accumulator, and updates the value of the accumulator again.
[0104] In an optional implementation manner, the abnormal vehicles include vehicles with data tampering behavior or false information dissemination behavior and lost vehicles.
[0105] Among them, S6 - S10 can be executed synchronously with S1 - S5.
[0106] Please refer to Figure 2 , Embodiment 2 of the present invention is as follows:
[0107] A vehicle - to - vehicle ad - hoc network identity authentication system based on blockchain includes a registration authority and a blockchain. The registration authority includes a first memory, a first processor, and a first computer program stored on the first memory and executable on the first processor. The blockchain includes a second memory, a second processor, and a second computer program stored on the second memory and executable on the second processor. When the first processor executes the first computer program, the following steps are implemented:
[0108] Receive a registration request of a vehicle to be added, where the registration request includes vehicle information of the vehicle to be added;
[0109] Verify the legality of the vehicle information to obtain a verification result;
[0110] If the verification result is successful, obtain the public key of the vehicle to be added, generate a call public key list corresponding to the vehicle to be added, and add the public key and the call public key list to the accumulator, and update the value of the accumulator;
[0111] Generate an update message according to the updated value of the accumulator, the value of the accumulator before update, and the vehicle information, and send the update message to the blockchain;
[0112] When the second processor executes the second computer program, the following steps are implemented:
[0113] Calculate a new member witness value according to the update message, and broadcast the new member witness value and the updated value of the accumulator to all vehicles.
[0114] Further, it further includes a first vehicle and a second vehicle. The first vehicle includes a third memory, a third processor, and a third computer program stored on the third memory and executable on the third processor. The second vehicle includes a fourth memory, a fourth processor, and a fourth computer program stored on the fourth memory and executable on the fourth processor. When the third processor executes the third computer program, the following steps are implemented:
[0115] Send a communication request to the second vehicle, where the communication request includes a communication message;
[0116] When the fourth processor executes the fourth computer program, the following steps are implemented:
[0117] Verify the communication message according to the communication request using the value of the accumulator and the member witness value to obtain a verification result;
[0118] If the verification result is passed, establish communication with the first vehicle;
[0119] If the verification result is not passed, reject the communication request.
[0120] Further, the sending the communication request to the second vehicle includes:
[0121] Randomly select a call public key from the call public key list and obtain the current timestamp;
[0122] Generate a communication message according to the call public key and the timestamp, and send a communication request to the second vehicle according to the communication message.
[0123] Further, the communication message includes a timestamp and a call public key;
[0124] The verifying the communication message according to the communication request using the value of the accumulator and the member witness value to obtain a verification result includes:
[0125] Check whether the timestamp is within the valid transmission interval according to the communication request. If not, determine that the verification result is not passed. If so, verify the call public key using the value of the accumulator and the member witness value. If the verification is passed, determine that the verification result is passed. If the verification is not passed, determine that the verification result is not passed.
[0126] Further, when the first processor executes the first computer program, the following steps are further implemented:
[0127] Judge whether there is an abnormal vehicle among all the vehicles. If so, delete the public key and the call public key list of the abnormal vehicle from the accumulator.
[0128] In summary, for the vehicle ad-hoc network identity authentication method and system based on blockchain provided by the present invention, the registration authority verifies the legality of vehicle information according to a registration request. If the verification result is successful, it obtains the public key of the vehicle to be joined, generates a call public key list corresponding to the vehicle to be joined, adds the two to an accumulator, updates the value of the accumulator, and then generates an update message with the updated accumulator value, the accumulator value before update, and the vehicle information and sends it to the blockchain. The blockchain calculates and broadcasts a new member witness value and the updated accumulator value to all vehicles according to the update message. By introducing a dynamic accumulator, the security and efficiency of identity authentication are improved, and the legality verification of vehicle identities is completed in the preprocessing stage, reducing the authentication delay of vehicles. At the same time, vehicles only need to store the member witness value and the accumulator value, and can complete two-way authentication of subsequent communications while protecting privacy and taking into account the blockchain overhead, thereby achieving efficient and secure identity authentication. In addition, when vehicles need to communicate with each other, the vehicle receiving the communication request can use the accumulator value and the member witness value to verify the communication message, realizing a legal check on the identity of the vehicle sending the communication request. Moreover, the registration authority can automatically detect abnormal vehicles and delete the public key and call public key list of the abnormal vehicles from the accumulator, realizing the elimination of abnormal vehicles and ensuring the security of the vehicle ad-hoc network.
[0129] The above are only embodiments of the present invention and do not limit the patent scope of the present invention. Any equivalent transformation made using the content of the specification and drawings of the present invention, or directly or indirectly applied in related technical fields, shall be similarly included in the patent protection scope of the present invention.
Claims
1. A vehicle ad-hoc network identity authentication method based on blockchain, characterized in that, Including the steps: The registration institution receives a registration request of a vehicle to be joined, and the registration request includes the vehicle information of the vehicle to be joined; The registration institution performs a legality verification on the vehicle information to obtain a verification result; If the verification result is successful, the registration institution obtains the public key of the vehicle to be joined, generates a call public key list corresponding to the vehicle to be joined, adds the public key and the call public key list to an accumulator, and updates the value of the accumulator; The registration institution generates an update message based on the updated value of the accumulator, the value of the accumulator before the update, and the vehicle information, and sends the update message to the blockchain; The blockchain calculates a new member witness value based on the update message, and broadcasts the new member witness value and the updated value of the accumulator to all vehicles.
2. The method for authenticating the identity of a vehicular ad hoc network based on a blockchain according to claim 1, wherein It also includes: A first vehicle sends a communication request to a second vehicle, and the communication request includes a communication message; The second vehicle performs a verification on the communication message according to the communication request by using the value of the accumulator and the member witness value to obtain a verification result; If the verification result is passed, the second vehicle establishes communication with the first vehicle; If the verification result is not passed, the second vehicle rejects the communication request.
3. The method for authenticating the identity of a vehicular ad hoc network based on a blockchain according to claim 2, wherein The first vehicle sending a communication request to the second vehicle includes: The first vehicle randomly selects a call public key from the call public key list and obtains the current timestamp; The first vehicle generates a communication message based on the call public key and the timestamp, and sends a communication request to the second vehicle according to the communication message.
4. The method for vehicle ad hoc network identity authentication based on blockchain according to claim 2, wherein The communication message includes a timestamp and a call public key; The second vehicle performing a verification on the communication message according to the communication request by using the value of the accumulator and the member witness value to obtain a verification result includes: The second vehicle checks whether the timestamp is within a valid transmission interval according to the communication request. If not, it determines that the verification result is not passed. If so, it verifies the call public key by using the value of the accumulator and the member witness value. If the verification is passed, it determines that the verification result is passed. If the verification is not passed, it determines that the verification result is not passed.
5. The vehicle ad-hoc network identity authentication method based on blockchain according to claim 1, characterized in that, It also includes: The registration institution determines whether there is an abnormal vehicle among all the vehicles. If there is, it deletes the public key and the call public key list of the abnormal vehicle from the accumulator, and re-updates the value of the accumulator.
6. A vehicle ad hoc network identity authentication system based on blockchain, comprising a registration authority and a blockchain. The registration authority includes a first memory, a first processor, and a first computer program stored on the first memory and executable on the first processor. The blockchain includes a second memory, a second processor, and a second computer program stored on the second memory and executable on the second processor, characterized in that, When the first processor executes the first computer program, the following steps are implemented: Receive a registration request of a vehicle to be joined, and the registration request includes the vehicle information of the vehicle to be joined; Perform a legality verification on the vehicle information to obtain a verification result; If the verification result is successful, obtain the public key of the vehicle to be joined, generate a call public key list corresponding to the vehicle to be joined, add the public key and the call public key list to an accumulator, and update the value of the accumulator; Generate an update message based on the updated value of the accumulator, the value of the accumulator before the update, and the vehicle information, and send the update message to the blockchain; When the second processor executes the second computer program, the following steps are implemented: Calculate a new member witness value according to the update message, and broadcast the new member witness value and the value of the updated accumulator to all vehicles.
7. The vehicle ad-hoc network identity authentication system based on blockchain according to claim 6, wherein It further includes a first vehicle and a second vehicle. The first vehicle includes a third memory, a third processor, and a third computer program stored on the third memory and executable on the third processor. The second vehicle includes a fourth memory, a fourth processor, and a fourth computer program stored on the fourth memory and executable on the fourth processor. When the third processor executes the third computer program, the following steps are implemented: Send a communication request to the second vehicle, and the communication request includes a communication message; When the fourth processor executes the fourth computer program, the following steps are implemented: Verify the communication message according to the communication request by using the value of the accumulator and the member witness value to obtain a verification result; If the verification result is passed, establish communication with the first vehicle; If the verification result is not passed, reject the communication request.
8. The vehicle ad-hoc network identity authentication system based on blockchain according to claim 7, characterized in that The sending the communication request to the second vehicle includes: Randomly select a call public key from the call public key list, and obtain the current timestamp; Generate a communication message according to the call public key and the timestamp, and send a communication request to the second vehicle according to the communication message.
9. The vehicle ad-hoc network identity authentication system based on blockchain according to claim 7, characterized in that, The communication message includes a timestamp and a call public key; The verifying the communication message according to the communication request by using the value of the accumulator and the member witness value to obtain a verification result includes: Check whether the timestamp is within the valid transmission interval according to the communication request. If not, determine that the verification result is not passed. If so, verify the call public key by using the value of the accumulator and the member witness value. If the verification is passed, determine that the verification result is passed. If the verification is not passed, determine that the verification result is not passed.
10. The vehicular ad-hoc network identity authentication system based on blockchain according to claim 6, wherein, When the first processor executes the first computer program, the following steps are further implemented: Judge whether there is an abnormal vehicle among all vehicles. If so, delete the public key of the abnormal vehicle and the call public key list from the accumulator, and re-update the value of the accumulator.