Vehicle communication method, device, equipment and system based on block chain

By applying blockchain technology in vehicle communication, generating vehicle authentication information and communicating in blockchain networks, the security risks and privacy leakage problems of traditional vehicle communication methods are solved, and safe, reliable communication and privacy between vehicles are achieved. Protect.

CN119254403APending Publication Date: 2025-01-03DONGFENG MOTOR GRP
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411351126.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

Traditional vehicle communication methods have security risks, such as information tampering and privacy leakage, especially in the centralized Internet of Vehicles architecture, entities do not trust each other, and vehicle identity and location information are easily leaked.

Method used

Using a blockchain-based vehicle communication method, a decentralized trust mechanism is established to ensure that vehicles are authenticated by generating vehicle authentication information based on vehicle identity information and preset hashing algorithms, and communication is carried out after successfully accessing the blockchain network. security and privacy protection.

Benefits of technology

Through blockchain technology, a decentralized trust mechanism is established between vehicles, which solves the security risks and privacy leakage problems in the traditional Internet of Vehicles architecture, and improves the communication security and privacy protection capabilities between vehicles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119254403A_ABST
    Figure CN119254403A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle communication method, device, equipment and system based on a block chain, and relates to the technical field of vehicles, the vehicle communication method based on the block chain is applied to a vehicle end, and the method comprises the following steps: generating vehicle authentication information according to vehicle identity information and a preset Hash algorithm; sending the vehicle authentication information to a road equipment end, so that the road equipment end feeds back a vehicle access state according to the vehicle authentication information; and when the vehicle access state is received and the vehicle access state is a successful access state, performing vehicle communication based on a block chain. A decentralized trust mechanism is established between the vehicles through the block chain technology, safe and reliable communication between the vehicles is promoted, the problems of centralization and mutual distrust between entities of a traditional centralized Internet of Vehicles architecture are solved, meanwhile, the problem that identity and position information of the vehicles in the traditional Internet of Vehicles architecture is leaked is solved, and the security of the vehicles is improved. And the security of vehicle privacy protection in the Internet of Vehicles architecture is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle technology, and in particular to a blockchain-based vehicle communication method, device, equipment and system. Background Art

[0002] With the development of Internet of Vehicles technology, the communication between vehicles and roadside equipment and cloud platforms has become increasingly frequent. However, traditional communication methods have security risks, such as information tampering and privacy leakage. Therefore, how to solve the security risks of traditional communication methods has become an urgent problem to be solved. Summary of the invention

[0003] The main purpose of this application is to provide a blockchain-based vehicle communication method, device, equipment and system, aiming to solve the technical problems of security risks in traditional communication methods.

[0004] To achieve the above purpose, the present application proposes a vehicle communication method based on blockchain, which is applied to the vehicle side and includes: Generate vehicle authentication information based on vehicle identity information and a preset hash algorithm; Sending the vehicle authentication information to the road equipment end, so that the road equipment end feeds back the vehicle access status according to the vehicle authentication information; When the vehicle access status is received and the vehicle access status is a successful access status, vehicle communication is performed based on the blockchain.

[0005] In one embodiment, the step of generating vehicle authentication information according to the vehicle identity information and a preset hash algorithm includes: Format the vehicle identity information to obtain the target character string; Generate a corresponding vehicle digital summary according to the target character string and a preset hash algorithm; Encrypting the vehicle digital summary and the preset vehicle private key to generate a vehicle encrypted summary; The vehicle authentication information is generated according to the vehicle encryption summary, the current vehicle address, the target node address and the vehicle additional information.

[0006] In one embodiment, before the step of encrypting the vehicle digital digest and generating the vehicle encrypted digest according to the preset vehicle private key, the step further includes: Calculate the key generation parameter based on the first prime number and the second prime number; Determine a target Euler value according to the key generation parameter and a preset Euler function; A key calculation is performed according to the target Euler value and a preset integer value to obtain a preset vehicle private key.

[0007] In one embodiment, the step of generating vehicle authentication information according to the vehicle encryption digest, the current vehicle address, the target node address and the vehicle additional information includes: Creating a target transaction object according to the vehicle authentication information, the current vehicle address, the target node address, and the vehicle additional information; The target transaction object is signed according to the preset vehicle private key to obtain vehicle authentication information.

[0008] To achieve the above purpose, the present application proposes a vehicle communication method based on blockchain, which is applied to a road equipment side. The method includes: When receiving the vehicle authentication information sent by the vehicle end, calculating the target digital summary according to the vehicle authentication information and a preset hash algorithm; When the target digital summary is the same as the vehicle data summary corresponding to the vehicle authentication information, sending the vehicle identity information corresponding to the vehicle authentication information to the blockchain network, so that the blockchain network feeds back the vehicle access status according to the vehicle identity information; When the vehicle access status sent by the blockchain network is received, the vehicle access status is sent to the vehicle end.

[0009] In one embodiment, the step of calculating the target digital digest according to the vehicle authentication information and a preset hash algorithm includes: Parsing the vehicle authentication information according to a preset vehicle public key to obtain vehicle identity information; Information processing is performed according to a preset hash algorithm and the vehicle identity information to generate a target digital summary.

[0010] To achieve the above objectives, the present application proposes a vehicle communication method based on blockchain, wherein the vehicle communication method based on blockchain is applied to blockchain, and the method comprises: When receiving the vehicle identity information sent by the road equipment end, creating a target block according to the vehicle identity information, and calculating a target hash value corresponding to the target block; Compare the target hash value with the workload threshold to obtain a target comparison result; When the target comparison result is that the target hash value is less than or equal to the workload threshold, a vehicle access status is generated and sent to the road equipment end, so that the road equipment end sends the vehicle access status to the vehicle end.

[0011] In addition, to achieve the above purpose, the present application also proposes a blockchain-based vehicle communication device, the blockchain-based vehicle communication device comprising: A generation module, used to generate vehicle authentication information according to vehicle identity information and a preset hash algorithm; A sending module, used for sending the vehicle authentication information to a road equipment end, so that the road equipment end can feedback the vehicle access status according to the vehicle authentication information; The communication module is used to perform vehicle communication based on the blockchain when receiving the vehicle access status sent by the road equipment end as a successful access status.

[0012] In addition, to achieve the above-mentioned purpose, the present application also proposes a blockchain-based vehicle communication device, which includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the blockchain-based vehicle communication method as described above.

[0013] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the blockchain-based vehicle communication method as described above are implemented.

[0014] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the blockchain-based vehicle communication method as described above.

[0015] In addition, to achieve the above-mentioned purpose, the present application also provides a blockchain-based vehicle communication system, characterized in that the blockchain-based vehicle communication system includes a vehicle end as described in any one of claims 1 to 4, a road equipment end as described in any one of claims 5 to 6, and a blockchain as described in claim 7.

[0016] This application generates vehicle authentication information based on vehicle identity information and a preset hash algorithm; sends the vehicle authentication information to the road equipment end so that the road equipment end can feedback the vehicle access status based on the vehicle authentication information; and when the vehicle access status is received and the vehicle access status is a successful access status, the vehicle communicates based on the blockchain. A decentralized trust mechanism is established between vehicles through blockchain technology to promote safe and reliable communication between vehicles, solving the problems of centralization and mutual distrust between entities in the traditional centralized Internet of Vehicles architecture, and at the same time solving the problem of leakage of vehicle identity and location information in the traditional Internet of Vehicles architecture, improving the security of vehicle privacy protection in the Internet of Vehicles architecture. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0019] Figure 1 A flowchart diagram of a first embodiment of a vehicle communication method based on blockchain applied to a vehicle side of the present application; Figure 2 A schematic diagram of a traditional vehicle-road-cloud integrated system provided for the first embodiment of the blockchain-based vehicle communication method applied to the vehicle side of the present application; Figure 3 An OBU-CSU communication schematic diagram provided for the first embodiment of the blockchain-based vehicle communication method applied to the vehicle side of the present application; Figure 4 A schematic diagram of the connection between OBU and RSU provided in the first embodiment of the vehicle communication method based on blockchain applied to the vehicle side of the present application; Figure 5 A schematic diagram of a vehicle-road-cloud communication system based on blockchain provided for the first embodiment of the vehicle communication method based on blockchain applied to the vehicle side of the present application; Figure 6 A schematic diagram of an identity authentication process provided for the first embodiment of the blockchain-based vehicle communication method applied to the vehicle side of the present application; Figure 7 A flowchart diagram of a first embodiment of a vehicle communication method based on blockchain applied to a road equipment side of the present application; Figure 8 A flowchart of a first embodiment of a vehicle communication method based on blockchain applied to blockchain provided by the present application; Fig. 9 This is a schematic diagram of the module structure of a vehicle communication device based on blockchain in an embodiment of the present application applied to a vehicle side; Fig.10 This is a schematic diagram of the device structure of the hardware operating environment involved in the blockchain-based vehicle communication method in an embodiment of the present application.

[0020] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0021] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0022] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0023] The main solution of the embodiment of the present application is: generate vehicle authentication information based on vehicle identity information and a preset hash algorithm; send the vehicle authentication information to the road equipment end, so that the road equipment end can feedback the vehicle access status according to the vehicle authentication information; when the vehicle access status is received and the vehicle access status is a successful access status, the vehicle communicates based on the blockchain.

[0024] With the development of Internet of Vehicles technology, the communication between vehicles and roadside equipment and cloud platforms has become increasingly frequent. However, traditional communication methods have security risks, such as information tampering and privacy leakage. Therefore, how to solve the security risks of traditional communication methods has become an urgent problem to be solved.

[0025] This application generates vehicle authentication information based on vehicle identity information and a preset hash algorithm; sends the vehicle authentication information to the road equipment end so that the road equipment end can feedback the vehicle access status based on the vehicle authentication information; and when the vehicle access status is received and the vehicle access status is a successful access status, the vehicle communicates based on the blockchain. A decentralized trust mechanism is established between vehicles through blockchain technology to promote safe and reliable communication between vehicles, solving the problems of centralization and mutual distrust between entities in the traditional centralized Internet of Vehicles architecture, and at the same time solving the problem of leakage of vehicle identity and location information in the traditional Internet of Vehicles architecture, improving the security of vehicle privacy protection in the Internet of Vehicles architecture.

[0026] Based on this, the embodiment of the present application provides a vehicle communication method based on blockchain, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the blockchain-based vehicle communication method of the present application.

[0027] In this embodiment, the blockchain-based vehicle communication method is applied to the vehicle side, and the method includes steps S10 to S40: Step S10, generating vehicle authentication information according to the vehicle identity information and a preset hash algorithm; It can be understood that vehicle identity information includes but is not limited to vehicle identification number VIN, license plate number, etc. The preset hash algorithm refers to a pre-set hash algorithm, which is used to process vehicle identity information. Vehicle authentication information refers to the data generated by encrypting the information summary using a private key.

[0028] In a specific implementation, the vehicle hashes its identity information (including but not limited to the vehicle identification number VIN, license plate number, etc.) to generate an information summary, and the vehicle uses a private key to encrypt the information summary to generate authentication information.

[0029] It should be noted that the traditional vehicle-road-cloud integrated collaboration mainly includes three main parts: vehicle, road and cloud management platform (Central Service Unit, CSU, also known as central service unit). Figure 2 As shown. The vehicle includes an on-board network terminal (On Board Unit, referred to as OBU, also known as a vehicle-mounted unit), a human-machine interface (Human-Machine Interface, referred to as HMI), various on-board sensors, GPS and inertial navigation and other positioning devices; the road includes lanes for vehicles, lane structure change control systems, roadside intelligent equipment (Road Side Unit, referred to as RSU, also known as a roadside unit), roadside sensors, etc.; CSU includes information collection function modules, information processing function modules and information recording and storage function modules. Figure 3 As shown, OBU has the ability to exchange data with other vehicles, RSU and CSU and process environmental information, and then determine whether to issue an early warning, what kind of early warning to issue, and provide corresponding driving suggestions based on the processed information and forward it to HMI; HMI is used to display or broadcast early warning information and corresponding driving suggestions; on-board sensors are used to sense the traffic environment information around the vehicle and send the sensed environmental information to OBU; positioning devices such as GPS and inertial navigation are used to obtain the location and driving direction information of the vehicle and send it to OBU. Vehicle driving lanes are for vehicles to pass in an orderly and safe manner; lane structure change control systems are used to control whether lanes are passable or other physical structure changes to ensure vehicle safety and improve road traffic efficiency; such as Figure 4 As shown, RSU is used to exchange data with vehicles and CSU; roadside sensors are used to sense the road environment information of this section and send the sensed environment information to the roadside intelligent devices. The information collection function module is used to receive the vehicle driving status and road environment information uploaded by OBU and RSU and provide input for the system application function; the information processing function module is used to uniformly process the collected data, build the corresponding traffic flow mathematical model, modify the mathematical model and the corresponding data analysis according to the acquired data; the information recording and storage function module is used to analyze and process the valuable data and mathematical model storage records to provide input for the system function. Therefore, the existing Internet of Vehicles architecture is based on centralization. Once the centralized entity is attacked and collapsed, it will bring serious data security risks.

[0030] It should be noted that in view of the defects of the existing system, such as Figure 5As shown, the blockchain-based vehicle-road-cloud communication system and its working method provided in this embodiment solve the problems of centralization and mutual distrust between entities in the traditional centralized Internet of Vehicles architecture, while solving the problem of leakage of vehicle identity and location information in the traditional Internet of Vehicles architecture, and improving the security of vehicle privacy protection in the Internet of Vehicles architecture.

[0031] In a feasible implementation, step S10 may include steps A11 to A14: Step A11, formatting the vehicle identity information to obtain a target character string; It can be understood that the target string refers to a string that is easy to be processed by the hash algorithm.

[0032] In the specific implementation, the collected identity information is organized in a certain format to facilitate hash processing. For example, all identity information can be concatenated into a string: .

[0033] Step A12, generating a corresponding vehicle digital summary according to the target character string and a preset hash algorithm; It can be understood that the vehicle digital summary refers to a fixed-length string generated by processing the original data (such as text string, file content, etc.) through a hash algorithm.

[0034] In the specific implementation, the formatted string is processed using a hash algorithm to generate a message digest. There are many types of hash algorithms, such as . Suppose we use Algorithm, the calculation formula is: , here It is a deterministic process. Whenever you apply the algorithm to the same input, you will get the same output, which is the message digest.

[0035] Step A13, encrypting the vehicle digital summary and the preset vehicle private key to generate a vehicle encrypted summary; It can be understood that the preset vehicle private key refers to the confidential part of a pair of keys in the asymmetric encryption algorithm, and the vehicle encryption summary refers to the encrypted vehicle digital summary.

[0036] In a specific implementation, the vehicle or roadside equipment uses its private key to encrypt the identity information. The following is the formula for the encryption process: Assume that the vehicle's identity information is ( ), the private key of the vehicle is . Encryption formula: ,in It is the encrypted message, that is, the encrypted vehicle digital summary is obtained.

[0037] It should be noted that the vehicle hashes its identity information (including but not limited to the vehicle identification number (VIN), license plate number, etc.) to generate a summary of the information; the vehicle uses a private key to encrypt the summary of the information to generate authentication information. Specifically: ① First, the vehicle needs to collect its identity information, which may include but is not limited to: vehicle identification number (VIN), license plate number ( )、Manufacture Date( )、Vehicle owner information( ) etc.; ② Data formatting, organize the collected identity information in a certain format to facilitate hash processing. For example, all the information can be concatenated into a string: ; ③ Hash processing: Use the hash algorithm to process the formatted string to generate a message summary. There are many types of hash algorithms, such as . Suppose we use Algorithm, the calculation formula is: , here It is a deterministic process. Whenever the algorithm is applied to the same input, the same output result, namely the information summary, will be obtained. ④ Generate information summary. The hash algorithm will output a fixed length (for (256 bits), which is a digital summary of the vehicle's identity information. Due to the characteristics of the hash function, even a small change in the data will result in a completely different summary, which provides a high degree of security for the identity information; ⑤ Private key encryption, the vehicle or roadside equipment uses its private key to encrypt the identity information. The following is the formula for the encryption process: Assuming the vehicle's identity information is ( ), the private key of the vehicle is . Encryption formula: ,in It is an encrypted message.

[0038] In a feasible implementation manner, step A13 may include steps B131 to B133: Step B131, calculating according to the first prime number and the second prime number to obtain a key generation parameter; It can be understood that the key generation parameters refer to parameters used to generate public keys and private keys.

[0039] In a specific implementation, two large prime numbers, namely a first prime number and a second prime number, are first selected, and then the first prime number and the second prime number are multiplied to obtain a key generation parameter according to the calculation result, and the key generation parameter is used for subsequent generation of a public key and a private key.

[0040] Step B132, determining a target Euler value according to the key generation parameters and a preset Euler function; It can be understood that the preset Euler function refers to a preset Euler calculation function, and the target Euler value refers to a value calculated by the key generation parameter.

[0041] In a specific implementation, according to the first prime number and the second prime number and the key generation parameter, a preset Euler calculation function is used to calculate to obtain the target Euler value, for example, , which is the Euler function.

[0042] Step B133, performing key calculation according to the target Euler value and the preset integer value to obtain a preset vehicle private key.

[0043] It is understood that the preset integer value refers to a pre-set integer value, for example, selecting an integer , so that and mutually prime, so that , yes About the model The multiplication inverse element of , and finally the public key is , the private key is .

[0044] It should be noted that the vehicle uses a private key to encrypt its own identity information, generate authentication information, and send it to the blockchain network. Key generation: The vehicle generates a pair of asymmetric keys, including a private key and a public key. The public key is a public key used to encrypt data, and the private key is a confidential key used to decrypt data and digital signatures. The private key is stored securely locally, and the public key is uploaded to the blockchain network for registration. The asymmetric key generation method is as follows: The asymmetric key pair includes a public key (public) and a private key (confidential). The following are the steps for key generation: Step 1: Select two large prime numbers and ; Step 2: Calculate , Will be used to generate public and private keys; Step 3: Calculation , which is the Euler function; Step 4: Choose an integer , so that and Mutually prime; Step 5: Calculate d so that , yes About the model The multiplicative inverse of . At this point, the public key is , the private key is .

[0045] Step A14, generating vehicle authentication information according to the vehicle encryption summary, the current vehicle address, the target node address and the vehicle additional information.

[0046] It is understood that the current vehicle address refers to the sender identity (public key or address of the vehicle), the target node address refers to the recipient identity (smart contract address or specific node address of blockchain network), additional vehicle information including timestamp , Transaction Description wait.

[0047] In the specific implementation, according to the sender identity (public key or address of the vehicle), recipient identity (smart contract address or specific node address of the blockchain network), vehicle cryptographic summary, and timestamp , Transaction Description etc. to generate vehicle authentication information.

[0048] In a feasible implementation, step A14 may include steps B141-B142: Step B141, creating a target transaction object according to the vehicle authentication information, the current vehicle address, the target node address and the vehicle additional information; It is understood that the target transaction object refers to a data structure or data packet containing all necessary information about the transaction.

[0049] In the specific implementation, create a transaction object vehicle to create a transaction object, which will contain the sender identity (public key or address of the vehicle), recipient identity (smart contract address or specific node address of the blockchain network), vehicle cryptographic summary, and timestamp , Transaction Description Etc. The transaction object can be represented as: .

[0050] Step B142, signing the target transaction object according to the preset vehicle private key to obtain vehicle authentication information.

[0051] It is understood that in order to ensure the security and non-repudiation of the transaction, the vehicle uses its private key to sign the transaction object. The signing process uses a digital signature algorithm, such as (Elliptic Curve Digital Signature Algorithm), and then obtain the vehicle authentication information.

[0052] Step S20, sending the vehicle authentication information to the road equipment end, so that the road equipment end feeds back the vehicle access status according to the vehicle authentication information; It can be understood that the vehicle access status refers to whether the vehicle is connected to the blockchain network.

[0053] In the specific implementation, the roadside uses the vehicle's public key to decrypt the encrypted authentication information to obtain the original information summary; the roadside hashes the vehicle's identity information again to generate a new information summary; the roadside compares the decrypted information summary with the newly generated information summary to verify the vehicle's identity. The verified vehicle identity information will be submitted to the blockchain network as a transaction record. The nodes in the network reach a consensus through a consensus mechanism (such as PoW or PoS) and add the transaction record to the blockchain. The blockchain network then sends the vehicle access status to the road equipment end, so that the road equipment end can feedback the vehicle access status to the vehicle end.

[0054] Step S30: When the vehicle access status is received and the vehicle access status is a successful access status, vehicle communication is performed based on the blockchain.

[0055] In a specific implementation, when the vehicle end receives the vehicle access status sent by the road equipment end, and the vehicle access status is a successful access status, it indicates that the vehicle has successfully accessed the blockchain network, and then the vehicle end can communicate through the blockchain network.

[0056] It should be noted that if Figure 6 As shown, the vehicle sends the encrypted authentication information to the blockchain network; after receiving the authentication information, the nodes in the blockchain network verify it. Specifically: ① The vehicle first needs to prepare the transaction data, which usually includes: the sender’s identity (public key or address of the vehicle), recipient identity (smart contract address or specific node address of blockchain network), encrypted summary (encrypted result of vehicle identity information ), additional information (which may include a timestamp , Transaction Description ② Create a transaction object. The vehicle creates a transaction object, which will contain all the above information. The transaction object can be expressed as: ; ③ Transaction signature: To ensure the security and non-repudiation of the transaction, the vehicle uses its private key to sign the transaction object. The signature process uses a digital signature algorithm, such as (Elliptic Curve Digital Signature Algorithm). The signature calculation formula is: ,in Represents the function of executing digital signature; ④ Broadcast transaction vehicle broadcasts the transaction object with signature to the blockchain network and requests network nodes to verify. The broadcast process can be implemented through P2P network; ⑤ Network node verification. After receiving the transaction, the network node uses the vehicle's public key to verify the signature. The verification calculation formula is: If the verification succeeds, the transaction is considered valid.

[0057] This embodiment generates vehicle authentication information based on vehicle identity information and a preset hash algorithm; sends the vehicle authentication information to the road equipment end so that the road equipment end can feedback the vehicle access status based on the vehicle authentication information; and when the vehicle access status is received and the vehicle access status is a successful access status, the vehicle communicates based on the blockchain. A decentralized trust mechanism is established between vehicles through blockchain technology to promote safe and reliable communication between vehicles, solving the problems of centralization and mutual distrust between entities in the traditional centralized Internet of Vehicles architecture, and at the same time solving the problem of leakage of vehicle identity and location information in the traditional Internet of Vehicles architecture, improving the security of vehicle privacy protection in the Internet of Vehicles architecture.

[0058] Based on the first embodiment of the present application applied to the road equipment side, the same or similar contents as those of the above-mentioned embodiment 1 applied to the vehicle side can be referred to the above introduction, and no further description will be given later. Figure 7 , the blockchain-based vehicle communication method includes steps S21 to S23: Step S21, when receiving the vehicle authentication information sent by the vehicle end, calculating the target digital summary according to the vehicle authentication information and a preset hash algorithm; It is understandable that the target digital digest refers to the encrypted vehicle digital digest calculated by the road equipment side.

[0059] In the specific implementation, the roadside uses the vehicle's public key to decrypt the encrypted authentication information to obtain the original information summary; the roadside hashes the vehicle's identity information again to generate a new information summary, that is, to obtain the target digital summary.

[0060] In a feasible implementation, step S21 may include steps A211 to A212: Step A211, parsing the vehicle authentication information according to a preset vehicle public key to obtain vehicle identity information; It can be understood that the roadside device (road equipment end) first receives the encrypted authentication information sent by the vehicle. This encrypted information is a summary of the identity information encrypted by the vehicle using its private key. Using the vehicle's public key to decrypt, the roadside device uses the public key provided by the vehicle to decrypt the encrypted authentication information to obtain the original information summary (vehicle data summary) and the vehicle's identity information.

[0061] Step A212, performing information processing according to a preset hash algorithm and the vehicle identity information to generate a target digital summary.

[0062] It is understood that to collect the identity information of the vehicle, the roadside device needs to collect the identity information of the vehicle, which is the same information used by the vehicle in the encryption process. The identity information is hashed. The roadside device hashes the collected vehicle identity information to generate a new information digest, namely the target digital digest.

[0063] Step S22, when the target digital summary is the same as the vehicle data summary corresponding to the vehicle authentication information, sending the vehicle identity information corresponding to the vehicle authentication information to the blockchain network, so that the blockchain network feeds back the vehicle access status according to the vehicle identity information; It can be understood that when the target digital summary is the same as the vehicle data summary corresponding to the vehicle authentication information, it indicates that the information received by the road equipment end has not been tampered with and the vehicle identity is valid. The verified vehicle identity information will then be submitted to the blockchain network as a transaction record, so that the blockchain network can feedback the vehicle access status based on the vehicle identity information.

[0064] Step S23, when the vehicle access status sent by the blockchain network is received, the vehicle access status is sent to the vehicle end.

[0065] It can be understood that when the road equipment end receives the vehicle access status sent by the blockchain network, it indicates that the blockchain network has completed the verification of the vehicle identity information, and then sends the vehicle access status to the vehicle end.

[0066] It should be noted that the roadside uses the vehicle's public key to decrypt the encrypted authentication information to obtain the original information summary; the roadside hashes the vehicle's identity information again to generate a new information summary; the roadside compares the decrypted information summary with the newly generated information summary to verify the vehicle's identity. Specifically: ① The roadside device first receives the encrypted authentication information sent by the vehicle. This encrypted information is a summary of the identity information encrypted by the vehicle using its private key; ② Decrypted using the vehicle's public key, the roadside device uses the public key provided by the vehicle to decrypt the encrypted authentication information to obtain the original information summary. Assume that the vehicle's public key is , the encrypted authentication information is . The decryption formula is:

[0067]

[0068] in Represents the decryption function; ③ Collect the vehicle's identity information. The roadside device needs to collect the vehicle's identity information, which is the same as the information used by the vehicle during the encryption process; ④ Hash the identity information. The roadside device hashes the collected vehicle identity information to generate a new information summary. Assume that the same hash algorithm (such as SHA-256) is used. Hash processing formula: ⑤ Compare the information digests. The roadside equipment compares the decrypted information digests. With the newly generated information summary .if equal , the verification is successful, indicating that the received information has not been tampered with and the vehicle identity is valid.

[0069] This embodiment calculates the target digital summary according to the vehicle authentication information and the preset hash algorithm when receiving the vehicle authentication information sent by the vehicle end; when the target digital summary is the same as the vehicle data summary corresponding to the vehicle authentication information, the vehicle identity information corresponding to the vehicle authentication information is sent to the blockchain network, so that the blockchain network can feedback the vehicle access status according to the vehicle identity information; when receiving the vehicle access status sent by the blockchain network, the vehicle access status is sent to the vehicle end. In this way, the problem of vehicle identity and location information being leaked in the traditional Internet of Vehicles architecture is solved.

[0070] Based on the first embodiment of the present application applied to the vehicle side and / or the first embodiment of the present application applied to the road equipment side, in the first embodiment of the present application applied to the blockchain, the same or similar contents as the above-mentioned embodiment 1 applied to the vehicle side and / or the embodiment 1 applied to the road equipment side can be referred to the above introduction and will not be repeated later. Figure 8 , the vehicle communication method based on blockchain is applied to blockchain, and the method includes steps S31~S33: Step S31, when receiving the vehicle identity information sent by the road equipment end, creating a target block according to the vehicle identity information, and calculating a target hash value corresponding to the target block; It can be understood that the target block refers to the block where the verified transactions are stored, and the target hash value refers to the hash value of the block header, which usually includes the hash value of the previous block, timestamp, difficulty target, etc.

[0071] In the specific implementation, when the blockchain network receives the vehicle identity information sent by the road equipment end, the blockchain network will package the verified transactions into a new block. The block creation process includes: organizing multiple transactions into a list. Calculating the hash value of the block header, which usually includes the hash value of the previous block, timestamp, difficulty target, etc.

[0072] Step S32, comparing the target hash value with the workload threshold to obtain a target comparison result; It can be understood that the workload threshold refers to the critical value used to measure the difficulty of proof of work, and the target comparison result refers to the comparison result between the target hash value and the workload threshold.

[0073] In a specific implementation, the hash value of the block header of this embodiment must be less than or equal to the difficulty target of the current network to pass the verification, and then the hash value of the block header is compared with the critical value used to measure the difficulty of the proof of work, and then the comparison result of the target hash value and the workload threshold is obtained to determine whether the hash value of the block header passes the verification.

[0074] Step S33, when the target comparison result is that the target hash value is less than or equal to the workload threshold, a vehicle access status is generated, and the vehicle access status is sent to the road equipment end, so that the road equipment end sends the vehicle access status to the vehicle end.

[0075] In the specific implementation, when the target comparison result is that the target hash value is less than or equal to the critical value used to measure the difficulty of the proof of work, it indicates that the block has passed After verification, it will be added to the blockchain, and the transaction will be considered completed, thereby generating the vehicle access status as a successful access status, and sending the vehicle access status to the road equipment end, so that the road equipment end will send the vehicle access status to the vehicle end.

[0076] It should be noted that the verified vehicle identity information will be submitted to the blockchain network as a transaction record; the nodes in the network reach a consensus through a consensus mechanism (such as PoW or PoS) and add the transaction record to the blockchain. Specifically: ① Create a block, and the verified transaction will be packaged into a new block. The block creation process includes: organizing multiple transactions into a list. Calculating the hash value of the block header, which usually includes the hash value of the previous block, timestamp, difficulty target, etc.; ② Proof of Work ( ), the network nodes execute Algorithms are used to reach consensus and ensure the security of blocks. The process includes: , the hash value of the block header must be less than or equal to the current network difficulty target. The difficulty target is a global parameter set by the network to measure the difficulty of proof of work. It is usually expressed as a number. The smaller the value, the greater the difficulty of the required proof of work. The difficulty target is usually used to adjust the mining difficulty of the network to ensure that the block generation rate remains within a reasonable range. This is the block header The result of hashing the content. Once the block passes Once verified, it will be added to the blockchain and the transaction is considered complete.

[0077] This embodiment creates a target block according to the vehicle identity information sent by the road equipment end, and calculates the target hash value corresponding to the target block; compares the target hash value with the workload threshold to obtain a target comparison result; when the target comparison result is that the target hash value is less than or equal to the workload threshold, generates a vehicle access status, and sends the vehicle access status to the road equipment end, so that the road equipment end sends the vehicle access status to the vehicle end. In this way, the security of vehicle privacy protection in the Internet of Vehicles architecture is improved.

[0078] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the blockchain-based vehicle communication method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0079] This application also provides a vehicle communication device based on blockchain, please refer to Fig. 9 , the blockchain-based vehicle communication device is applied to the vehicle side, and the device includes: A generating module 10, for generating vehicle authentication information according to vehicle identity information and a preset hash algorithm; A sending module 20, configured to send the vehicle authentication information to a road equipment end, so that the road equipment end can feedback a vehicle access status according to the vehicle authentication information; The communication module 30 is used to perform vehicle communication based on blockchain when receiving the vehicle access status sent by the road equipment end as a successful access status.

[0080] Optionally, the generating module 10 is further used for: Format the vehicle identity information to obtain the target character string; Generate a corresponding vehicle digital summary according to the target character string and a preset hash algorithm; Encrypting the vehicle digital summary and the preset vehicle private key to generate a vehicle encrypted summary; The vehicle authentication information is generated according to the vehicle encryption summary, the current vehicle address, the target node address and the vehicle additional information.

[0081] Optionally, the generating module 10 is further used for: Calculate the key generation parameter based on the first prime number and the second prime number; Determine a target Euler value according to the key generation parameter and a preset Euler function; A key calculation is performed according to the target Euler value and a preset integer value to obtain a preset vehicle private key.

[0082] Optionally, the generating module 10 is further used for: Creating a target transaction object according to the vehicle authentication information, the current vehicle address, the target node address, and the vehicle additional information; The target transaction object is signed according to the preset vehicle private key to obtain vehicle authentication information.

[0083] The present application also provides a blockchain-based vehicle communication device, which is applied to a road equipment end, and the device includes: The calculation module 101 is used to calculate the target digital summary according to the vehicle authentication information and a preset hash algorithm when receiving the vehicle authentication information sent by the vehicle end; A sending module 102 is used to send the vehicle identity information corresponding to the vehicle authentication information to the blockchain network when the target digital summary is the same as the vehicle data summary corresponding to the vehicle authentication information, so that the blockchain network can feedback the vehicle access status according to the vehicle identity information; The sending module 102 is used to send the vehicle access status to the vehicle end when receiving the vehicle access status sent by the blockchain network.

[0084] Optionally, the calculation module 101 is further used for: Parsing the vehicle authentication information according to a preset vehicle public key to obtain vehicle identity information; Information processing is performed according to a preset hash algorithm and the vehicle identity information to generate a target digital summary.

[0085] The present application also provides a vehicle communication device based on blockchain, wherein the vehicle communication device based on blockchain is applied to blockchain, and the device includes: The creation module 201 is used to create a target block according to the vehicle identity information when receiving the vehicle identity information sent by the road equipment end, and calculate the target hash value corresponding to the target block; A comparison module 202, configured to compare the target hash value with a workload threshold to obtain a target comparison result; The generation module 203 is used to generate a vehicle access status when the target comparison result is that the target hash value is less than or equal to the workload threshold, and send the vehicle access status to the road equipment end, so that the road equipment end sends the vehicle access status to the vehicle end.

[0086] The blockchain-based vehicle communication device provided by the present application adopts the blockchain-based vehicle communication method in the above embodiment, which can solve the technical problem of potential safety hazards in traditional communication methods. Compared with the prior art, the beneficial effects of the blockchain-based vehicle communication device provided by the present application are the same as the beneficial effects of the blockchain-based vehicle communication method provided by the above embodiment, and the other technical features of the blockchain-based vehicle communication device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0087] The present application provides a blockchain-based vehicle communication device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the blockchain-based vehicle communication method in the above-mentioned embodiment one.

[0088] Reference below Fig.10 , which shows a schematic diagram of the structure of a blockchain-based vehicle communication device suitable for implementing an embodiment of the present application. The blockchain-based vehicle communication device in the embodiment of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.10 The blockchain-based vehicle communication device shown is merely an example and should not bring any limitations to the functionality and scope of use of the embodiments of the present application.

[0089] like Fig.10As shown, the blockchain-based vehicle communication device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the blockchain-based vehicle communication device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the blockchain-based vehicle communication device to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a blockchain-based vehicle communication device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided instead.

[0090] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0091] The blockchain-based vehicle communication device provided by the present application adopts the blockchain-based vehicle communication method in the above embodiment, which can solve the technical problem of potential safety hazards in traditional communication methods. Compared with the prior art, the beneficial effects of the blockchain-based vehicle communication device provided by the present application are the same as the beneficial effects of the blockchain-based vehicle communication method provided by the above embodiment, and the other technical features of the blockchain-based vehicle communication device are the same as the features disclosed in the previous embodiment method, which will not be repeated here.

[0092] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0093] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0094] In addition, to achieve the above-mentioned purpose, the present invention also proposes a blockchain-based vehicle communication system, which includes the vehicle side, road equipment side and blockchain mentioned above.

[0095] Since the present blockchain-based vehicle communication system adopts all the technical solutions of all the above-mentioned embodiments, it has at least all the beneficial effects brought by the technical solutions of the above-mentioned embodiments, which will not be described one by one here.

[0096] The present application provides a computer-readable storage medium having computer-readable program instructions (i.e., computer programs) stored thereon, and the computer-readable program instructions are used to execute the blockchain-based vehicle communication method in the above-mentioned embodiment.

[0097] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.

[0098] The above-mentioned computer-readable storage medium may be included in the blockchain-based vehicle communication device; or it may exist independently without being assembled into the blockchain-based vehicle communication device.

[0099] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the blockchain-based vehicle communication device, the blockchain-based vehicle communication device: generates vehicle authentication information based on vehicle identity information and a preset hash algorithm; sends the vehicle authentication information to the road equipment end, so that the road equipment end can feedback the vehicle access status based on the vehicle authentication information; and when the vehicle access status is received and the vehicle access status is a successful access status, performs vehicle communication based on the blockchain.

[0100] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0101] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0102] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0103] The readable storage medium provided in this application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned blockchain-based vehicle communication method, and can solve the technical problem that the traditional communication method has potential safety hazards. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the blockchain-based vehicle communication method provided in the above-mentioned embodiment, and will not be repeated here.

[0104] The present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the blockchain-based vehicle communication method as described above.

[0105] The computer program product provided by this application can solve the technical problem that the traditional communication method has potential safety hazards. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the blockchain-based vehicle communication method provided by the above embodiment, which will not be repeated here.

[0106] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A vehicle communication method based on blockchain, characterized in that: The blockchain-based vehicle communication method is applied to the vehicle side, and the method includes: Generate vehicle authentication information based on vehicle identity information and a preset hash algorithm; Sending the vehicle authentication information to the road equipment end, so that the road equipment end feeds back the vehicle access status according to the vehicle authentication information; When the vehicle access status is received and the vehicle access status is a successful access status, vehicle communication is performed based on the blockchain.

2. The method according to claim 1, characterized in that The step of generating vehicle authentication information according to the vehicle identity information and a preset hash algorithm includes: Format the vehicle identity information to obtain the target character string; Generate a corresponding vehicle digital summary according to the target character string and a preset hash algorithm; Encrypting the vehicle digital summary and the preset vehicle private key to generate a vehicle encrypted summary; The vehicle authentication information is generated according to the vehicle encryption summary, the current vehicle address, the target node address and the vehicle additional information.

3. The method according to claim 2, characterized in that Before the step of encrypting the vehicle digital summary and generating the vehicle encrypted summary according to the preset vehicle private key, the method further includes: Calculate the key generation parameter based on the first prime number and the second prime number; Determine a target Euler value according to the key generation parameter and a preset Euler function; A key calculation is performed according to the target Euler value and a preset integer value to obtain a preset vehicle private key.

4. The method according to claim 2, characterized in that The step of generating vehicle authentication information according to the vehicle encryption summary, the current vehicle address, the target node address and the vehicle additional information comprises: Creating a target transaction object according to the vehicle authentication information, the current vehicle address, the target node address, and the vehicle additional information; The target transaction object is signed according to the preset vehicle private key to obtain vehicle authentication information.

5. A vehicle communication method based on blockchain, characterized in that: The blockchain-based vehicle communication method is applied to a road equipment end, and the method includes: When receiving the vehicle authentication information sent by the vehicle end, calculating the target digital summary according to the vehicle authentication information and a preset hash algorithm; When the target digital summary is the same as the vehicle data summary corresponding to the vehicle authentication information, the vehicle identity information corresponding to the vehicle authentication information is sent to the blockchain network, so that the blockchain network feeds back the vehicle access status according to the vehicle identity information; When the vehicle access status sent by the blockchain network is received, the vehicle access status is sent to the vehicle end.

6. The method according to claim 5, characterized in that The step of calculating the target digital summary according to the vehicle authentication information and a preset hash algorithm comprises: Parsing the vehicle authentication information according to a preset vehicle public key to obtain vehicle identity information; Information processing is performed according to a preset hash algorithm and the vehicle identity information to generate a target digital summary.

7. A vehicle communication method based on blockchain, characterized in that: The blockchain-based vehicle communication method is applied to a blockchain, and the method includes: When receiving the vehicle identity information sent by the road equipment end, creating a target block according to the vehicle identity information, and calculating a target hash value corresponding to the target block; Compare the target hash value with the workload threshold to obtain a target comparison result; When the target comparison result is that the target hash value is less than or equal to the workload threshold, a vehicle access status is generated and sent to the road equipment end, so that the road equipment end sends the vehicle access status to the vehicle end.

8. A vehicle communication device based on blockchain, characterized in that: The blockchain-based vehicle communication device is applied to the vehicle side, and the device includes: A generation module, used to generate vehicle authentication information according to vehicle identity information and a preset hash algorithm; A sending module, used for sending the vehicle authentication information to a road equipment end, so that the road equipment end can feedback the vehicle access status according to the vehicle authentication information; The communication module is used to perform vehicle communication based on the blockchain when receiving the vehicle access status sent by the road equipment end as a successful access status.

9. A vehicle communication device based on blockchain, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the blockchain-based vehicle communication method as described in any one of claims 1 to 7.

10. A vehicle communication system based on blockchain, characterized in that: The blockchain-based vehicle communication system includes the vehicle side as described in any one of claims 1 to 4, the road equipment side as described in any one of claims 5 to 6, and the blockchain as described in claim 7.

Citation Information

Patent Citations

  • Identity verification method and device and storage medium

    CN111866808A

  • Internet-of-Vehicles authentication method and device based on blockchain network, equipment and medium

    CN112399382A

  • Vehicle communication method and device based on blockchain

    CN113612616A

  • Block chain Internet of Vehicles batch authentication method based on signature

    CN115460016A

  • Vehicle identity information processing method and system based on block chain

    CN116094734A