patents.google.com

CN111935252B - Information updating method based on block chain and server - Google Patents

  • ️Fri Nov 26 2021

CN111935252B - Information updating method based on block chain and server - Google Patents

Information updating method based on block chain and server Download PDF

Info

Publication number
CN111935252B
CN111935252B CN202010743894.9A CN202010743894A CN111935252B CN 111935252 B CN111935252 B CN 111935252B CN 202010743894 A CN202010743894 A CN 202010743894A CN 111935252 B CN111935252 B CN 111935252B Authority
CN
China
Prior art keywords
vehicle
information
hash value
terminal
license plate
Prior art date
2020-07-29
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010743894.9A
Other languages
Chinese (zh)
Other versions
CN111935252A (en
Inventor
田新雪
肖征荣
马书惠
杨子文
董慧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
2020-07-29
Filing date
2020-07-29
Publication date
2021-11-26
2020-07-29 Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
2020-07-29 Priority to CN202010743894.9A priority Critical patent/CN111935252B/en
2020-11-13 Publication of CN111935252A publication Critical patent/CN111935252A/en
2021-11-26 Application granted granted Critical
2021-11-26 Publication of CN111935252B publication Critical patent/CN111935252B/en
Status Active legal-status Critical Current
2040-07-29 Anticipated expiration legal-status Critical

Links

  • 238000000034 method Methods 0.000 title claims abstract description 50
  • 238000007689 inspection Methods 0.000 claims description 43
  • 238000012163 sequencing technique Methods 0.000 abstract description 54
  • 238000004891 communication Methods 0.000 description 10
  • 238000010586 diagram Methods 0.000 description 4
  • 238000012986 modification Methods 0.000 description 2
  • 230000004048 modification Effects 0.000 description 2
  • 238000012795 verification Methods 0.000 description 2
  • 238000004364 calculation method Methods 0.000 description 1
  • 238000005516 engineering process Methods 0.000 description 1
  • 238000011017 operating method Methods 0.000 description 1
  • 238000012545 processing Methods 0.000 description 1

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0407Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the identity of one or more communicating identities is hidden
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Traffic Control Systems (AREA)

Abstract

The application discloses an information updating method and a server based on a block chain, wherein the method comprises the following steps: acquiring a first broadcast message sent by an operator node from a block chain network; the second hash value is obtained by carrying out hash operation on a second code by the terminal, and the second code is obtained by coding the information of the second vehicle by the terminal according to a preset mode; the method comprises the steps of obtaining first storage information and second storage information which are stored in advance, coding the first storage information to obtain a third code and coding the second storage information to obtain a fourth code according to a preset mode; performing hash operation on the third code and the fourth code respectively to obtain a third hash value and a fourth hash value; sequencing the third hash value and the fourth hash value according to a preset time sequence to obtain a second sequencing result; and updating the license plate number of the first vehicle and the license plate number of the second vehicle according to the second sequencing result and the first sequencing result.

Description

Information updating method based on block chain and server

Technical Field

The present application relates to the field of communications technologies, and in particular, to an information updating method and a server based on a block chain.

Background

At present, 10 new measures for the traffic management reform of the department of public security are announced and released by the department of public security. The 10 new measures comprise 5 types of services which can be accessed in different places and 5 convenient and fast services. The service of the remote communication comprises the following steps: the owner can update the original license plate number to other own vehicles of the same type, so that the owner can keep the original license plate number unchanged.

Because the user name in the block chain network is not the real name of the user, if the license plate number is updated in the block chain network mode, the confidentiality of the information is poor, the privacy information of the vehicle owner is easy to be revealed, and the user experience is poor.

Disclosure of Invention

Therefore, the information updating method and the server based on the block chain are provided to solve the problem that in the process of changing the vehicle number, the privacy information of the terminal is easily leaked, and the customer experience is poor.

In order to achieve the above object, a first aspect of the present application provides an information updating method based on a block chain, where the method includes: acquiring a first broadcast message sent by an operator node from a block chain network, wherein the first broadcast message comprises a first sequencing result, a first hash value and a second hash value, the first sequencing result is a result of sequencing the first hash value and the second hash value by a terminal inquired by the operator node, the first hash value is a value obtained by performing hash operation on a first code by the terminal, and the first code is a value obtained by encoding information of a first vehicle by the terminal according to a preset mode; the second hash value is obtained by carrying out hash operation on a second code by the terminal, and the second code is obtained by coding the information of the second vehicle by the terminal according to a preset mode; the method comprises the steps of obtaining first storage information and second storage information which are stored in advance, coding the first storage information to obtain a third code and coding the second storage information to obtain a fourth code according to a preset mode; performing hash operation on the third code and the fourth code respectively to obtain a third hash value and a fourth hash value; sequencing the third hash value and the fourth hash value according to a preset time sequence to obtain a second sequencing result; and updating the license plate number of the first vehicle and the license plate number of the second vehicle according to the second sequencing result and the first sequencing result.

In some implementations, before the step of acquiring the first broadcast message sent by the operator node from the blockchain network, the method further includes: acquiring identity information of a user to which a terminal belongs in a mode of block chaining; distributing block chain information for the terminal according to the identity information, wherein the block chain information comprises a block chain identifier of the terminal, a public key and a private key of the terminal; and generating and sending a second broadcast message to the blockchain network according to the identity information and the blockchain information.

In some implementations, before the step of acquiring the first broadcast message sent by the operator node from the blockchain network, the method further includes: acquiring a vehicle information exchange request sent by a terminal from a block chain network, wherein the vehicle information exchange request comprises a block chain identifier, a license plate interchange identifier, a license plate number of a first vehicle and a license plate number of a second vehicle; when the type of the first vehicle is determined to be the same as that of the second vehicle and the city to which the first vehicle belongs is determined to be the same as that of the second vehicle, generating and sending a third broadcast message to a block chain network according to identity information of a user to which the terminal belongs and an inquiry request identifier, so that the operator node obtains the third broadcast message, wherein the inquiry request identifier is used for indicating the operator node to send an inquiry request to the terminal, and the information of the first vehicle and the information of the second vehicle fed back by the terminal are obtained.

In some implementations, updating the license plate number of the first vehicle and the license plate number of the second vehicle according to the second sorting result and the first sorting result includes: if the following conditions are simultaneously satisfied: the second sorting result is the same as the first sorting result, the third hash value is the same as the first hash value, and the fourth hash value is the same as the second hash value; and updating the license plate number of the first vehicle and the license plate number of the second vehicle according to the license plate interchange identification.

In some implementations, the information of the first vehicle includes hardware information of the first vehicle and a check-in time of the first vehicle, and the information of the second vehicle includes hardware information of the second vehicle and a check-in time of the second vehicle; the preset time sequence is a sequence generated according to the annual check time of the vehicle, or a sequence generated according to the purchase time of the vehicle.

In some implementations, updating the license plate number of the first vehicle and the license plate number of the second vehicle based on the license plate interchange identifier includes: replacing the license plate number of the second vehicle with the license plate number of the first vehicle according to the license plate interchange identification; meanwhile, replacing the license plate number of the first vehicle by the license plate number of the second vehicle; and keeping the hardware information of the first vehicle, the vehicle inspection time of the first vehicle, the hardware information of the second vehicle and the vehicle inspection time of the second vehicle unchanged.

In some implementations, after the step of updating the license plate number of the first vehicle and the license plate number of the second vehicle according to the second sorting result and the first sorting result, the method further includes: sending a fourth broadcast message to the block chain network so that the vehicle inspection plant node can obtain and update the vehicle record information of the vehicle inspection plant node according to the fourth broadcast message; the fourth broadcast message comprises a block chain identifier of the terminal, identity information of a user to which the terminal belongs, a first hash value, a second hash value, an updated license plate number of the first vehicle and an updated license plate number of the second vehicle.

In order to achieve the above object, a second aspect of the present application provides an information updating method based on a block chain, including: acquiring a third broadcast message sent by a node of a vehicle management station from a block chain network, wherein the third broadcast message comprises identity information of a user to which a terminal belongs and a query request identifier, and the query request identifier is used for indicating the node to send a query request to the terminal so as to obtain information of a first vehicle and information of a second vehicle fed back by the terminal; searching an operator database according to the identity information of the user to which the terminal belongs, and acquiring a network identifier of the terminal corresponding to the identity information of the user to which the terminal belongs; sending a query request to the terminal in a mobile switching network mode according to the network identifier of the terminal; obtaining an inquiry response fed back by a terminal through a mobile switching network, wherein the inquiry response comprises a first sequencing result, a first hash value and a second hash value, the first sequencing result is a result obtained by sequencing the first hash value and the second hash value according to a preset time sequence by the terminal, the first hash value is a value obtained by carrying out hash operation on a first code by the terminal, and the first code is a value obtained by coding information of a first vehicle by the terminal according to a preset mode; the second hash value is obtained by carrying out hash operation on a second code by the terminal, and the second code is obtained by coding the information of the second vehicle by the terminal according to a preset mode; and generating and sending a first broadcast message to the block chain network according to the first sequencing result, the first hash value and the second hash value, so that the license plate number of the first vehicle and the license plate number of the second vehicle are updated according to the first sequencing result and the second sequencing result calculated by the vehicle management node.

In some implementations, before the step of acquiring the third broadcast message sent by the vehicle management node from the blockchain network, the method further includes: and acquiring a second broadcast message sent by the vehicle management station node from the block chain network, wherein the second broadcast message comprises the identity information of the user to which the terminal belongs and the block chain information of the terminal.

In order to achieve the above object, a third aspect of the present application provides a vehicle authority node server, including: the system comprises a first obtaining module, a second obtaining module and a third obtaining module, wherein the first obtaining module is used for obtaining a first broadcast message sent by an operator node from a block chain network, the first broadcast message comprises a first sequencing result, a first hash value and a second hash value, the first sequencing result is a result obtained by sequencing the first hash value and the second hash value by a terminal inquired by the operator node, the first hash value is a value obtained by carrying out hash operation on a first code by the terminal, and the first code is a value obtained by coding information of a first vehicle by the terminal according to a preset mode; the second hash value is obtained by carrying out hash operation on a second code by the terminal, and the second code is obtained by coding the information of the second vehicle by the terminal according to a preset mode; the encoding module is used for acquiring pre-stored first storage information and second storage information, respectively encoding the first storage information to acquire a third code and encoding the second storage information to acquire a fourth code according to a preset mode; the Hash operation module is used for respectively carrying out Hash operation on the third code and the fourth code to obtain a third Hash value and a fourth Hash value; the sorting module is used for sorting the third hash value and the fourth hash value according to a preset time sequence to obtain a second sorting result; and the updating module is used for updating the license plate number of the first vehicle and the license plate number of the second vehicle according to the second sequencing result and the first sequencing result.

According to the information updating method and the server based on the block chain, a first broadcast message sent by an operator node is obtained, a first Hash value in the first broadcast message is a value obtained by carrying out Hash operation on a first code by a terminal, and the first code is a value obtained by coding information of a first vehicle by the terminal according to a preset mode; the second hash value is obtained by the terminal performing hash operation on a second code, and the second code is obtained by the terminal encoding the information of the second vehicle according to a preset mode, so that the information sent by the terminal is prevented from being leaked, and the safety of the information is ensured; meanwhile, according to a preset mode, the first storage information is coded to obtain a third code, the second storage information is coded to obtain a fourth code, the first storage information and the second storage information are prevented from being leaked, and privacy of user information is further guaranteed. And updating the license plate number of the first vehicle and the license plate number of the second vehicle according to the second sequencing result and the first sequencing result, so that the updating accuracy of the license plate numbers is ensured, and the user experience is improved.

Drawings

The accompanying drawings are included to provide a further understanding of the embodiments of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the principles of the disclosure and not to limit the disclosure. The above and other features and advantages will become more apparent to those skilled in the art by describing in detail exemplary embodiments thereof with reference to the attached drawings, in which:

fig. 1 illustrates a flowchart of an information updating method based on a blockchain in an embodiment of the present application.

Fig. 2 is a flowchart illustrating an information updating method based on a blockchain in another embodiment of the present application.

Fig. 3 is a flowchart illustrating an information updating method based on a blockchain in yet another embodiment of the present application.

Fig. 4 shows a block diagram of the components of the node server of the vehicle management station in the embodiment of the present application.

Fig. 5 shows a block diagram of a block chain-based information update system in an embodiment of the present application.

Fig. 6 shows a flowchart of an operating method of the information updating system based on the blockchain in the embodiment of the present application.

In the drawings:

401: the first obtaining module 402: coding module

403: the hash operation module 404: sorting module

405: the update module 501: terminal device

502: the vehicle management station node server 503: node server of vehicle inspection factory

504: operator node server

Detailed Description

The following detailed description of embodiments of the present application will be made with reference to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present application, are given by way of illustration and explanation only, and are not intended to limit the present application. It will be apparent to one skilled in the art that the present application may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present application by illustrating examples thereof.

To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.

Fig. 1 is a flowchart illustrating an information updating method based on a blockchain in an embodiment of the present application, where the method is applicable to a node server of a vehicle management center. As shown in fig. 1, includes:

step

110, obtain a first broadcast message sent by an operator node from a blockchain network.

The first broadcast message comprises a first sequencing result, a first hash value and a second hash value, the first sequencing result is a result obtained by sequencing the first hash value and the second hash value by a terminal inquired by an operator node, the first hash value is a value obtained by carrying out hash operation on a first code by the terminal, and the first code is a value obtained by coding information of a first vehicle by the terminal according to a preset mode; the second hash value is obtained by the terminal performing hash operation on a second code, and the second code is obtained by the terminal encoding the information of the second vehicle according to a preset mode.

In some implementations, the information of the first vehicle includes hardware information of the first vehicle and a check-in time of the first vehicle, and the information of the second vehicle includes hardware information of the second vehicle and a check-in time of the second vehicle.

The hardware information may be a device Number of the Vehicle engine, or a Vehicle Identification Number (VIN) of the Vehicle. The hardware information is an identifier for distinguishing different vehicles, and the hardware information of each vehicle is unique. The hardware information is only an example, and may be specifically set according to specific situations, and other hardware information not described is also within the protection scope of the present application, and is not described herein again.

And step 120, acquiring first storage information and second storage information which are stored in advance, and coding the first storage information to acquire a third code and coding the second storage information to acquire a fourth code according to a preset mode.

And

step

130, performing hash operation on the third code and the fourth code respectively to obtain a third hash value and a fourth hash value.

And 140, sorting the third hash value and the fourth hash value according to a preset time sequence to obtain a second sorting result.

The preset time sequence is a sequence generated according to annual check time of the vehicle or a sequence generated according to purchase time of the vehicle. The preset time sequence is only illustrated by way of example, and may be specifically set according to specific situations, and other non-illustrated preset time sequences are also within the protection scope of the present application and are not described herein again.

And 150, updating the license plate number of the first vehicle and the license plate number of the second vehicle according to the second sequencing result and the first sequencing result.

It should be noted that, the updating may be to exchange the license plate number of the first vehicle with the license plate number of the second vehicle, so that the user can manage the named vehicles conveniently, and convenience of the user is improved.

In some implementations,

step

150 includes: if the following conditions are simultaneously satisfied: the second sorting result is the same as the first sorting result, the third hash value is the same as the first hash value, and the fourth hash value is the same as the second hash value; and updating the license plate number of the first vehicle and the license plate number of the second vehicle according to the license plate interchange identification.

It should be noted that only when the above conditions are simultaneously satisfied, it can be determined that the license plate numbers of two vehicles can be updated according to the license plate interchange identifier, so that the vehicle numbers are prevented from being updated to wrong vehicles, and the safety of license plate number updating is ensured. Moreover, by comparing the hash values, the privacy information of the vehicle is prevented from being revealed, and the user experience is improved.

In some implementations, updating the license plate number of the first vehicle and the license plate number of the second vehicle based on the license plate interchange identifier includes: replacing the license plate number of the second vehicle with the license plate number of the first vehicle according to the license plate interchange identification; meanwhile, replacing the license plate number of the first vehicle by the license plate number of the second vehicle; and keeping the hardware information of the first vehicle, the vehicle inspection time of the first vehicle, the hardware information of the second vehicle and the vehicle inspection time of the second vehicle unchanged.

The license plate numbers of the two vehicles are interchanged to meet the requirements of the user to which the terminal belongs. And when the license plate numbers are exchanged, the hardware information of the first vehicle, the vehicle inspection time of the first vehicle, the hardware information of the second vehicle and the vehicle inspection time of the second vehicle are kept unchanged, so that the hardware information and the vehicle inspection time of the vehicles are not tampered, and the safety of the vehicle information is ensured.

In this embodiment, a first broadcast message sent by an operator node is acquired, where a first hash value in the first broadcast message is a value obtained by a terminal performing hash operation on a first code, and the first code is a value obtained by the terminal encoding information of a first vehicle according to a preset mode; the second hash value is obtained by the terminal performing hash operation on a second code, and the second code is obtained by the terminal encoding the information of the second vehicle according to a preset mode, so that the information sent by the terminal is prevented from being leaked, and the safety of the information is ensured; meanwhile, according to a preset mode, the first storage information is coded to obtain a third code, the second storage information is coded to obtain a fourth code, the first storage information and the second storage information are prevented from being leaked, and privacy of user information is further guaranteed. And updating the license plate number of the first vehicle and the license plate number of the second vehicle according to the second sequencing result and the first sequencing result, so that the updating accuracy of the license plate numbers is ensured, and the user experience is improved.

The embodiment of the present application provides another possible implementation manner, where before

step

110, the method further includes: acquiring identity information of a user to which a terminal belongs in a mode of block chaining; distributing block chain information for the terminal according to the identity information, wherein the block chain information comprises a block chain identifier of the terminal, a public key and a private key of the terminal; and generating and sending a second broadcast message to the blockchain network according to the identity information and the blockchain information so that the operator node determines the identifier of the terminal according to the identity information.

The mode under the block chain can be a wireless communication mode, a point-to-point communication mode, a short-distance communication mode and other different non-block chain communication modes. The above methods for block chain linking are only examples, and may be specifically set according to actual situations, and other methods for block chain linking not described are also within the scope of the present application, and are not described herein again.

The block chain information is distributed to the terminal according to the identity information of the user to which the terminal belongs, so that the block chain information of the terminal can correspond to the identity information of the user to which the terminal belongs, and the identity information of the terminal is guaranteed to be real and effective.

The embodiment of the present application provides another possible implementation manner, where before

step

110, the method further includes: acquiring a vehicle information exchange request sent by a terminal from a block chain network, wherein the vehicle information exchange request comprises a block chain identifier, a license plate interchange identifier, a license plate number of a first vehicle and a license plate number of a second vehicle; and when the type of the first vehicle is determined to be the same as that of the second vehicle and the city to which the first vehicle belongs is determined to be the same as that of the second vehicle, generating and sending a third broadcast message to the block chain network according to the identity information of the user to which the terminal belongs and the query request identifier, so that the operator node obtains the third broadcast message.

The inquiry request identifier is used for indicating the operator node to send an inquiry request to the terminal so as to obtain the information of the first vehicle and the information of the second vehicle fed back by the terminal. Specifically, the terminal can encode or perform hash operation on the information of the first vehicle and the information of the second vehicle, process the information, and feed back the hash value obtained through calculation to the operator node, so as to ensure that the information of the terminal is not leaked and improve the safety of user information.

Fig. 2 is a flowchart illustrating an information updating method based on a blockchain in another embodiment of the present application. As shown in fig. 2, the following steps are included.

Step

210, a first broadcast message sent by an operator node is obtained from a blockchain network.

Step 220, obtaining pre-stored first storage information and second storage information, and coding the first storage information to obtain a third code and coding the second storage information to obtain a fourth code according to a preset mode.

And step 230, performing hash operation on the third code and the fourth code respectively to obtain a third hash value and a fourth hash value.

And 240, sorting the third hash value and the fourth hash value according to a preset time sequence to obtain a second sorting result.

And step 250, updating the license plate number of the first vehicle and the license plate number of the second vehicle according to the second sequencing result and the first sequencing result.

It should be noted that

steps

210 to 250 in this embodiment are the same as

steps

110 to 150 in the previous embodiment, and are not described again here.

Step

260, sending a fourth broadcast message to the blockchain network.

The fourth broadcast message comprises a block chain identifier of the terminal, identity information of a user to which the terminal belongs, a first hash value, a second hash value, an updated license plate number of the first vehicle and an updated license plate number of the second vehicle.

Specifically, after the vehicle inspection factory node obtains the fourth broadcast message, the fourth broadcast message is analyzed, so that the block chain identifier of the terminal, the identity information of the user to which the terminal belongs, the first hash value, the second hash value, the updated license plate number of the first vehicle and the updated license plate number of the second vehicle can be obtained. And then, the vehicle inspection factory node inquires a database stored in the vehicle inspection factory node according to the block chain identifier of the terminal, and if the information is determined to be correct, the vehicle record information of the vehicle inspection factory node is updated by using the updated information.

In this embodiment, the fourth broadcast message is sent to the blockchain network, so that the vehicle inspection factory node can obtain the updated information, update the locally stored vehicle record information, facilitate subsequent management and query on the vehicle information, and improve the processing speed of the vehicle information.

Fig. 3 is a flowchart illustrating an information updating method based on a blockchain in an embodiment of the present application. The method can be applied to an operator node server. As shown in fig. 3, the following steps are included.

Step

310, acquiring a third broadcast message sent by the vehicle management node from the blockchain network.

The third broadcast message comprises identity information of a user to which the terminal belongs and a query request identifier, wherein the query request identifier is used for indicating the node to send a query request to the terminal so as to obtain information of the first vehicle and information of the second vehicle fed back by the terminal.

Step

320, searching the operator database according to the identity information of the user to which the terminal belongs, and obtaining the network identifier of the terminal corresponding to the identity information of the user to which the terminal belongs.

Step 330, sending a query request to the terminal through a mobile switching network according to the network identifier of the terminal.

Step

340, obtaining the inquiry response fed back by the terminal through the mobile switching network.

The inquiry response comprises a first sequencing result, a first hash value and a second hash value, wherein the first sequencing result is obtained by sequencing the first hash value and the second hash value according to a preset time sequence by the terminal, the first hash value is obtained by carrying out hash operation on a first code by the terminal, and the first code is obtained by coding the information of the first vehicle by the terminal according to a preset mode; the second hash value is obtained by the terminal performing hash operation on a second code, and the second code is obtained by the terminal encoding the information of the second vehicle according to a preset mode.

And 350, generating and sending a first broadcast message to the blockchain network according to the first sequencing result, the first hash value and the second hash value.

Specifically, the license plate number of the first vehicle and the license plate number of the second vehicle are updated by the vehicle management node according to the first sequencing result and the second sequencing result calculated by the vehicle management node. For example, the license plate number of the first vehicle and the license plate number of the second vehicle are exchanged to meet the requirements of users, and the users can conveniently manage the vehicle information.

In the embodiment, the network identifier of the terminal corresponding to the identity information of the user to which the terminal belongs is obtained by searching the operator database according to the identity information of the user to which the terminal belongs; and sending a query request to the terminal in a mobile switching network mode according to the network identifier of the terminal, and generating and sending a first broadcast message to the block chain network after obtaining a first sequencing result, a first hash value and a second hash value fed back by the terminal. Under the condition that the user changes the network identifier, the first sequencing result, the first hash value and the second hash value fed back by the terminal can still be obtained, and the condition that the terminal information cannot be obtained is avoided. After the vehicle management node obtains the first sequencing result, the first hash value and the second hash value, the license plate number of the first vehicle and the license plate number of the second vehicle are updated according to the first sequencing result and the second sequencing result calculated by the vehicle management node, so that the updating efficiency of the license plate numbers of the vehicles is improved, and the user experience degree is high.

Another possible implementation manner is provided in the embodiment of the present application, where before

step

310, the method further includes: and acquiring a second broadcast message sent by the vehicle management station node from the block chain network, wherein the second broadcast message comprises the identity information of the user to which the terminal belongs and the block chain information of the terminal.

The second broadcast message sent by the vehicle management station node is acquired from the block chain network, so that the identity information of the user to which the terminal belongs and the block chain information of the terminal are acquired, the block chain information of the terminal and the identity information of the user to which the terminal belongs can be ensured to be corresponding, the terminal is ensured to be real and reliable, the disorder of the terminal information is avoided, the vehicle exchange efficiency is improved, and the user experience degree is improved.

Fig. 4 is a schematic structural diagram of a node server of a vehicle management station according to an embodiment of the present application, and specific implementation of the server may refer to related description of the first embodiment, and repeated details are not repeated. It should be noted that the specific implementation of the server in this embodiment is not limited to the above embodiment, and other undescribed embodiments are also within the scope of the server.

As shown in fig. 4, the node server of the vehicle management station specifically includes: the car management station node server comprises: a first obtaining module 401, configured to obtain a first broadcast message sent by an operator node from a blockchain network, where the first broadcast message includes a first ordering result, a first hash value, and a second hash value, the first ordering result is a result obtained by the operator node ordering the first hash value and the second hash value, the first hash value is a value obtained by a terminal performing hash operation on a first code, and the first code is a value obtained by the terminal encoding information of a first vehicle according to a preset mode; the second hash value is obtained by carrying out hash operation on a second code by the terminal, and the second code is obtained by coding the information of the second vehicle by the terminal according to a preset mode; the encoding module 402 is configured to acquire first storage information and second storage information which are stored in advance, and encode the first storage information to obtain a third code and encode the second storage information to obtain a fourth code according to a preset mode; a hash operation module 403, configured to perform a hash operation on the third code and the fourth code, respectively, to obtain a third hash value and a fourth hash value; the sorting module 404 is configured to sort the third hash value and the fourth hash value according to a preset time sequence to obtain a second sorting result; and an updating module 405, configured to update the license plate number of the first vehicle and the license plate number of the second vehicle according to the second sorting result and the first sorting result.

In the embodiment, a first broadcast message sent by an operator node is acquired through a first acquisition module, a first hash value in the first broadcast message is a value obtained by a terminal performing hash operation on a first code, and the first code is a value obtained by the terminal encoding information of a first vehicle according to a preset mode; the second hash value is obtained by the terminal performing hash operation on a second code, and the second code is obtained by the terminal encoding the information of the second vehicle according to a preset mode, so that the information sent by the terminal is prevented from being leaked, and the safety of the information is ensured; meanwhile, the coding module is used for coding the first storage information respectively to obtain a third code and coding the second storage information to obtain a fourth code according to a preset mode, so that the first storage information and the second storage information are prevented from being leaked, and the privacy of user information is further guaranteed. And updating the license plate number of the first vehicle and the license plate number of the second vehicle by using the updating module according to the second sequencing result and the first sequencing result, so that the updating accuracy of the license plate numbers is ensured, and the user experience is improved.

It should be noted that each module referred to in this embodiment is a logical module, and in practical applications, one logical unit may be one physical unit, may be a part of one physical unit, and may be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present application, a unit that is not so closely related to solving the technical problem proposed by the present application is not introduced in the present embodiment, but it does not indicate that no other unit exists in the present embodiment.

Fig. 5 shows a block diagram of a block chain-based information updating system according to an embodiment of the present application. As shown in fig. 5, includes: a terminal 501, a vehicle management node server 502, a vehicle inspection station node server 503 and an operator node server 504.

The vehicle management station node server 502 is an originator node of the block chain, and issues an founding block to the block chain in a manner of sending a broadcast message signed by a private key of the vehicle management station node server 502. The broadcast message specifically includes: the mobile phone number of the terminal 501, the block chain identifier and the public key of the node server 502 of the vehicle management station, and the block chain identifier and the public key of the node server 503 of the vehicle inspection factory.

Fig. 6 is a flowchart illustrating a method for operating an information updating system based on a blockchain in an embodiment of the present application. As shown in fig. 6, the method specifically includes the following steps.

Step

601, in a block chaining mode, the terminal 501 sends a mobile phone number and identity information (for example, a name and an identification number of a user of the terminal 501, etc.) of the user to which the terminal 501 belongs to the vehicle management station node server 502.

The mode under the blockchain may include various non-blockchain communication modes such as a wireless communication mode, a peer-to-peer communication mode, and a short-range communication mode. The above methods for block chain linking are only examples, and may be specifically set according to actual situations, and other methods for block chain linking not described are also within the scope of the present application, and are not described herein again.

In

step

602, the node server 502 of the vehicle management station allocates blockchain information (for example, a blockchain identifier and a public key and a private key of the terminal 501) to the terminal 501 according to the obtained identity information of the user to which the terminal 501 belongs.

Step

603, the node server 502 of the vehicle management station generates and sends a second broadcast message to the blockchain network according to the identity information and the blockchain information of the user to which the terminal 501 belongs, so that each node in the blockchain can acquire the blockchain information of the terminal 501.

In

step

604, the terminal 501 performs private key signature on the vehicle information exchange request, and generates and sends the signed vehicle information exchange request to the blockchain network.

It should be noted that the first vehicle M and the second vehicle N are both vehicles under the user name to which the terminal 501 belongs. The vehicle information exchange request may include: the block chain identifier of the terminal 501, the license plate interchange identifier, the identity information of the user to which the terminal 501 belongs encrypted by using the public key of the vehicle management node server 502 according to a pre-agreed algorithm, the license plate number of the first vehicle M (for example, kyoto ABC666) encrypted by using the public key of the vehicle management node server 502 according to a pre-agreed algorithm, the annual inspection time validity period of the first vehicle M (for example, 31/5/2020/year), the license plate number of the second vehicle N (for example, DEF 123/kyoto) encrypted by using the public key of the vehicle management node server 502 according to a pre-agreed algorithm, and the annual inspection time validity period of the second vehicle N (for example, 28/2/month 2021/year).

In

step

605, the node server 502 of the vehicle management station obtains the vehicle information exchange request sent by the terminal 501 from the blockchain network. Firstly, the vehicle management station node server 502 searches a block chain account book, obtains a public key corresponding to a block chain identifier of the terminal 501, verifies a private key signature of the vehicle information exchange request by using the public key, and decrypts each encrypted information (for example, the identity information of the user to which the terminal 501 belongs, the encrypted license plate number of the first vehicle M and its annual inspection time validity period, the encrypted license plate number of the second vehicle N and its annual inspection time validity period) in the vehicle information exchange request according to a predetermined algorithm by using the private key of the vehicle management station node server 502 if the verification is passed, so as to obtain the identity information of the user to which the terminal 501 belongs, the license plate number of the first vehicle M and its annual inspection time validity period, and the license plate number of the second vehicle N and its annual inspection time validity period. The node of the node server 502 of the vehicle management station queries a database according to the block chain identifier of the terminal 501 to determine whether the information is correct. If the first vehicle M and the second vehicle N are correct, the database is inquired to judge whether the first vehicle M and the second vehicle N belong to the same city and whether the vehicle types of the first vehicle M and the second vehicle N are the same.

In

step

606, if it is determined that the first vehicle M and the second vehicle N belong to the same city (for example, the first vehicle M and the second vehicle N belong to beijing) and the vehicle types are the same (for example, both are non-operation type private cars), the vehicle management node server 502 sends a third broadcast message to the blockchain network, so that the operator node server 504 obtains the third broadcast message.

Wherein the third broadcast message comprises: identity information and query request identification of the user to which the terminal 501 belongs. Moreover, the identity information and the query request identifier of the user to which the terminal 501 belongs need to be encrypted by using the public key of the operator node server 504 according to a predetermined algorithm, so as to ensure the security of the identity information and the query request identifier. The query request identifier is used to indicate that the operator node server 504 needs to send a query request to the terminal to obtain the information of the first vehicle M and the information of the second vehicle N fed back by the terminal.

In

step

607, the operator node server 504 obtains a third broadcast message from the blockchain network. The private key of the user is used first, and the identity information and the query request identifier of the user to which the terminal 501 belongs, which are encrypted by using the public key of the operator node server 504 in the third broadcast message, are decrypted according to a predetermined algorithm, so that the identity information and the query request identifier of the user to which the terminal 501 belongs are obtained. The operator node server 504 searches an operator database (or an operator customer service system) according to the identity information of the user to which the terminal 501 belongs, and obtains a network identifier (for example, a mobile phone number corresponding to the terminal 501) of the terminal 501 corresponding to the identity information of the user to which the terminal 501 belongs.

In

step

608, the operator node server 504 sends the query request to the terminal 501 through a mobile switching network (e.g. short message) according to the network identifier of the terminal 501.

It should be noted that, if the user to which the terminal 501 belongs applies for a mobile phone number in real name from multiple operators (for example, 138xxxx2345 when the user to which the terminal 501 belongs applies for a first mobile phone number in real name from a first operator, and 130xxxx5678 when the user to which the terminal 501 belongs applies for a second mobile phone number in real name from a second operator), the operator node server 504 includes a first operator node server and a second operator node server, and each operator node server needs to send an inquiry request to a corresponding mobile phone number.

For example, the first operator node server needs to send a query request to the mobile phone number 138xxxx2345, and meanwhile, the second operator node server needs to send a query request to the mobile phone number 130xxxx 5678. The operator node server 504 comprehensively evaluates the obtained information of the first vehicle M and the information of the second vehicle N through the information fed back by the plurality of mobile phone numbers.

Step

609, after receiving the query request sent by the operator node server 504, the terminal 501 encodes the information of the first vehicle M and the information of the second vehicle N respectively according to a preset mode, so as to obtain the first code and the second code. Then, carrying out Hash operation on the first code to obtain a first Hash value; and carrying out Hash operation on the second code to obtain a second Hash value. Sequencing the first hash value and the second hash value according to a preset time sequence to obtain a first sequencing result; and generating inquiry response information according to the first sequencing result, the first hash value and the second hash value.

Wherein the information of the first vehicle M includes: the transmitter number of the first vehicle M and the vehicle annual inspection time corresponding to the first vehicle M, and the transmitter number of the second vehicle N and the vehicle annual inspection time corresponding to the second vehicle N. The preset time sequence may be the sequence of annual inspection time of the vehicle, or the sequence of purchasing age of the vehicle, the preset time sequence is only an example, and may be specifically set according to specific situations in specific implementation, and other unexplained preset time sequences are also within the protection scope of the present application, and are not described herein again.

In

step

610, the terminal 501 feeds back the generated query response information to the operator node server 504 through the mobile switching network.

In

step

611, after the operator node server 504 obtains the query response information fed back by the terminal 501, the public key of the node server 502 of the vehicle management station is used to encrypt the query response information, and then the private key of the operator node server 504 is used to sign the encrypted query response information, so as to generate and send a first broadcast message to the blockchain network.

Step

612, after obtaining the first sequencing result, the first hash value and the second hash value sent by the terminal 501 from the block chain network, the node server 502 of the vehicle management station encodes first storage information pre-stored in the node server, generates a first storage code, encodes second storage information, and generates a second storage code; and then carrying out hash operation on the first storage code to generate a third hash value, and carrying out hash operation on the second storage code to generate a fourth hash value. And sequencing the third hash value and the fourth hash value according to a preset time sequence to obtain a second sequencing result. If the following conditions are simultaneously satisfied: the second sorting result is the same as the first sorting result, the third hash value is the same as the first hash value, and the fourth hash value is the same as the second hash value; the license plate numbers of the first vehicle M and the second vehicle N may be interchanged while keeping the engine number of the first vehicle M, the vehicle inspection time of the first vehicle M, the engine number of the second vehicle N, and the vehicle inspection time of the second vehicle N unchanged.

Wherein the first stored information is information of a first vehicle M stored in advance, and the second stored information is information of a second vehicle N stored in advance;

it should be noted that after the license plate numbers of the first vehicle M and the second vehicle N are interchanged, the specific information of the two vehicles is as follows: the license plate number of the first vehicle M is jing DEF123, the engine number of the first vehicle M remains unchanged, the annual inspection time validity period of the second vehicle M is 2020, 5 and 31, the license plate number of the second vehicle N is jing ABC666, the engine number of the second vehicle N remains unchanged, and the annual inspection time validity period of the second vehicle N is 2021, 2 and 28.

Step

613, the vehicle management station node server 502 records the specific information of the two vehicles with interchanged license plate numbers to the local, generates a fourth broadcast message according to the recorded information, signs the fourth broadcast message by using its own private key, and then sends the signed fourth broadcast message to the block chain network, so that the vehicle inspection station node server 503 obtains and updates the vehicle record information of the vehicle inspection station node server 503 according to the fourth broadcast message.

The fourth broadcast message comprises a block chain identifier of the terminal, identity information of a user to which the terminal belongs, a first hash value, a second hash value, an updated license plate number of the first vehicle and an updated license plate number of the second vehicle. For example, the block chain identifier of the terminal 501, the hash value of the id card information and the numerical information in the id card information of the user to which the terminal 501 belongs, the hash value of the name and the literal information of the name of the user to which the terminal 501 belongs, the hash value corresponding to the license plate number (jing DEF123) of the first vehicle M, the engine number (for example, 123456789) of the first vehicle M, the hash value corresponding to the license plate number (jing ABC666) of the second vehicle N, and the engine number (for example, 111222333) of the second vehicle N may be specifically included.

It should be noted that, the information in the fourth broadcast message needs to be encrypted (for example, a hash value of each information is calculated) to ensure that the information privacy of the user and the information privacy of the vehicle are not leaked.

Step

614, after obtaining the fourth broadcast message from the blockchain network, the vehicle inspection plant node server 503 searches for a blockchain account book, obtains and verifies the private key signature of the fourth broadcast message by using the public key of the vehicle management station node server 502, and if the verification is passed, searches its internal database according to the license plate numbers of the first vehicle M and the second vehicle N to obtain the identity information of the terminal 501, the information of the first vehicle M, and the information of the second vehicle N. Then, the identity information of the user to which the terminal 501 belongs in the fourth broadcast information is compared with the identity information of the user to which the terminal 501 belongs, which is stored in the internal database of the user, the engine number of the first vehicle M in the fourth broadcast information is compared with the engine number of the first vehicle M, which is stored in the internal database of the user, the engine number of the second vehicle N in the fourth broadcast information is compared with the engine number of the second vehicle N, which is stored in the internal database of the user, and if the comparison results are the same, the vehicle registration information stored locally is updated according to the fourth broadcast information. For example, the local vehicle registration information is updated using the blockchain identifier of the terminal 501, the identification card information of the user to which the terminal 501 belongs, the license plate number of the first vehicle M (jing DEF123), the engine number of the first vehicle M (e.g., 123456789), the license plate number of the second vehicle N (jing ABC666), and the engine number of the second vehicle N (e.g., 111222333).

In this embodiment, in a manner under a block chain, the terminal records the identity information and the mobile phone number of the user to which the terminal belongs to the node server of the vehicle management station, so that the node server of the vehicle management station allocates a block chain identifier, a public key and a private key to the terminal, and each node in the block chain can verify the authenticity of the identity information of the user to which the terminal belongs according to the block chain identifier of the terminal. The inquiry message is sent to the terminal through the operator node server so as to obtain the inquiry response fed back by the terminal, and even if the mobile phone number is changed by the terminal, the inquiry response fed back by the terminal can still be obtained through the operator node server, so that the convenience of information acquisition is improved. After the node server of the vehicle management station obtains the first sorting result, the first hash value and the second hash value fed back by the terminal, the engine numbers and the vehicle inspection time of the first vehicle and the second vehicle are respectively coded in a preset mode, the coded hash values are calculated, and then the two hash values are sorted according to a preset time sequence to obtain a second sorting result. By comparing the first sequencing result with the second sequencing result, the node server of the vehicle management station can verify whether the engine numbers and the vehicle inspection time of the two vehicles are correct, so that the engine numbers and the vehicle inspection time are prevented from being leaked, and the safety of vehicle information is improved.

It is to be understood that the above embodiments are merely exemplary embodiments that are employed to illustrate the principles of the present application, and that the present application is not limited thereto. It will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the application, and these changes and modifications are to be considered as the scope of the application.

Claims (9)

1.一种基于区块链的信息更新方法,其特征在于,应用于车管所节点服务器,所述方法包括:1. an information update method based on block chain, is characterized in that, is applied to the node server of vehicle management station, and described method comprises: 从区块链网络中,获取运营商节点发送的第一广播消息,其中,所述第一广播消息包括第一排序结果、第一哈希值和第二哈希值,所述第一排序结果是所述运营商节点查询到的终端对第一哈希值和第二哈希值进行排序的结果,所述第一哈希值是终端对第一编码进行哈希运算获得的值,所述第一编码是所述终端按照预设方式对第一车辆的信息进行编码获得的值;所述第二哈希值是所述终端对第二编码进行哈希运算获得的值,所述第二编码是所述终端按照所述预设方式对第二车辆的信息进行编码获得的值;From the blockchain network, obtain the first broadcast message sent by the operator node, wherein the first broadcast message includes a first sorting result, a first hash value and a second hash value, and the first sorting result is the result of sorting the first hash value and the second hash value by the terminal queried by the operator node, the first hash value is the value obtained by the terminal performing the hash operation on the first code, and the The first code is a value obtained by the terminal encoding the information of the first vehicle in a preset manner; the second hash value is a value obtained by the terminal performing a hash operation on the second code, and the second hash value is The encoding is a value obtained by the terminal encoding the information of the second vehicle in the preset manner; 获取预先存储的第一存储信息和第二存储信息,并按照所述预设方式,分别对所述第一存储信息进行编码获得第三编码,以及对所述第二存储信息进行编码获得第四编码;Obtain pre-stored first storage information and second storage information, and according to the preset method, respectively encode the first storage information to obtain a third encoding, and encode the second storage information to obtain a fourth encoding. coding; 分别对所述第三编码和所述第四编码进行哈希运算,获得第三哈希值和第四哈希值;Hash operation is performed on the third encoding and the fourth encoding, respectively, to obtain a third hash value and a fourth hash value; 依据预设时间顺序,对所述第三哈希值和第四哈希值进行排序,获得第二排序结果;Sorting the third hash value and the fourth hash value according to a preset time sequence to obtain a second sorting result; 依据所述第二排序结果和所述第一排序结果,更新所述第一车辆的车牌号码和所述第二车辆的车牌号码;updating the license plate number of the first vehicle and the license plate number of the second vehicle according to the second sorting result and the first sorting result; 所述依据所述第二排序结果和所述第一排序结果,更新所述第一车辆的车牌号码和所述第二车辆的车牌号码,包括:The updating of the license plate number of the first vehicle and the license plate number of the second vehicle according to the second sorting result and the first sorting result includes: 若确定同时满足以下条件:所述第二排序结果和所述第一排序结果相同、所述第三哈希值与所述第一哈希值相同、所述第四哈希值与所述第二哈希值相同;If it is determined that the following conditions are met at the same time: the second sorting result is the same as the first sorting result, the third hash value is the same as the first hash value, the fourth hash value is the same as the first hash value The two hash values are the same; 则依据获取到的车牌互换标识,更新所述第一车辆的车牌号码和所述第二车辆的车牌号码。Then, the license plate number of the first vehicle and the license plate number of the second vehicle are updated according to the obtained license plate interchange identifier. 2.根据权利要求1所述的方法,其特征在于,在所述从区块链网络中,获取运营商节点发送的第一广播消息的步骤之前,还包括:2. The method according to claim 1, characterized in that, before the step of acquiring the first broadcast message sent by the operator node from the blockchain network, the method further comprises: 通过区块链链下的方式,获取终端所属用户的身份信息;Obtain the identity information of the user to which the terminal belongs by means of the blockchain; 依据所述身份信息为所述终端分配区块链信息,其中,所述区块链信息包括所述终端的区块链标识、所述终端的公钥和私钥;Allocate block chain information to the terminal according to the identity information, wherein the block chain information includes the block chain identifier of the terminal, the public key and the private key of the terminal; 依据所述身份信息和所述区块链信息,生成并发送第二广播消息至区块链网络中。According to the identity information and the blockchain information, a second broadcast message is generated and sent to the blockchain network. 3.根据权利要求1所述的方法,其特征在于,在所述从区块链网络中,获取运营商节点发送的第一广播消息的步骤之前,还包括:3. The method according to claim 1, characterized in that, before the step of acquiring the first broadcast message sent by the operator node from the blockchain network, the method further comprises: 从区块链网络中,获取所述终端发送的车辆信息交换请求,所述车辆信息交换请求包括所述终端的区块链标识、车牌互换标识、所述第一车辆的车牌号码和所述第二车辆的车牌号码;From the blockchain network, obtain the vehicle information exchange request sent by the terminal, where the vehicle information exchange request includes the blockchain identification of the terminal, the license plate exchange identification, the license plate number of the first vehicle and the the license plate number of the second vehicle; 当确定所述第一车辆的类型和所述第二车辆的类型相同且所述第一车辆的所属城市和所述第二车辆的所属城市相同时,依据所述终端所属用户的身份信息和查询请求标识,生成并发送第三广播消息至区块链网络中,以使所述运营商节点获得所述第三广播消息,其中,所述查询请求标识用于指示所述运营商节点向所述终端发送查询请求,以获得所述终端反馈的第一车辆的信息和第二车辆的信息。When it is determined that the type of the first vehicle and the type of the second vehicle are the same, and the city to which the first vehicle belongs is the same as the city to which the second vehicle belongs, the query is performed according to the identity information of the user to which the terminal belongs. request identifier, generate and send a third broadcast message to the blockchain network, so that the operator node obtains the third broadcast message, wherein the query request identifier is used to instruct the operator node to send the The terminal sends a query request to obtain the information of the first vehicle and the information of the second vehicle fed back by the terminal. 4.根据权利要求3所述的方法,其特征在于,所述第一车辆的信息包括所述第一车辆的硬件信息和所述第一车辆的车检时间,所述第二车辆的信息包括所述第二车辆的硬件信息和所述第二车辆的车检时间;所述预设时间顺序是依据车辆的年检时间生成的顺序,或,依据所述车辆的购买时间生成的顺序。4 . The method according to claim 3 , wherein the information of the first vehicle includes hardware information of the first vehicle and the vehicle inspection time of the first vehicle, and the information of the second vehicle includes The hardware information of the second vehicle and the vehicle inspection time of the second vehicle; the preset time sequence is the sequence generated according to the annual inspection time of the vehicle, or the sequence generated according to the purchase time of the vehicle. 5.根据权利要求4所述的方法,其特征在于,所述依据所述车牌互换标识,更新所述第一车辆的车牌号码和所述第二车辆的车牌号码,包括:5 . The method according to claim 4 , wherein the updating of the license plate number of the first vehicle and the license plate number of the second vehicle according to the license plate interchange identification comprises: 6 . 依据所述车牌互换标识,使用所述第一车辆的车牌号码替换所述第二车辆的车牌号码;同时,使用所述第二车辆的车牌号码替换所述第一车辆的车牌号码;According to the license plate interchange identification, the license plate number of the first vehicle is used to replace the license plate number of the second vehicle; at the same time, the license plate number of the first vehicle is replaced with the license plate number of the second vehicle; 保持所述第一车辆的硬件信息、所述第一车辆的车检时间、所述第二车辆的硬件信息和所述第二车辆的车检时间不变。Keep the hardware information of the first vehicle, the vehicle inspection time of the first vehicle, the hardware information of the second vehicle, and the vehicle inspection time of the second vehicle unchanged. 6.根据权利要求1所述的方法,其特征在于,在所述依据所述第二排序结果和所述第一排序结果,更新所述第一车辆的车牌号码和所述第二车辆的车牌号码的步骤之后,还包括:6 . The method according to claim 1 , wherein, according to the second sorting result and the first sorting result, the license plate number of the first vehicle and the license plate of the second vehicle are updated. 7 . After the number of steps, also include: 发送第四广播消息至区块链网络中,以使车辆检车厂节点获得并依据所述第四广播消息,更新所述车辆检车厂节点的车辆备案信息;Sending a fourth broadcast message to the blockchain network, so that the vehicle inspection plant node obtains and updates the vehicle filing information of the vehicle inspection plant node according to the fourth broadcast message; 其中,第四广播消息包括所述终端的区块链标识、所述终端所属用户的身份信息、第一哈希值、第二哈希值、更新后的所述第一车辆的车牌号码和更新后的所述第二车辆的车牌号码。The fourth broadcast message includes the blockchain identifier of the terminal, the identity information of the user to which the terminal belongs, the first hash value, the second hash value, the updated license plate number of the first vehicle and the updated followed by the license plate number of the second vehicle. 7.一种基于区块链的信息更新方法,其特征在于,应用于运营商节点服务器,所述方法包括:7. A method for updating information based on blockchain, characterized in that, applied to an operator node server, the method comprising: 从区块链网络中,获取车管所节点发送的第三广播消息,其中,所述第三广播消息包括终端所属用户的身份信息和查询请求标识,所述查询请求标识用于指示本节点向所述终端发送查询请求,以获得所述终端反馈的第一车辆的信息和第二车辆的信息;From the blockchain network, obtain the third broadcast message sent by the node of the vehicle management station, wherein the third broadcast message includes the identity information of the user to which the terminal belongs and the query request identifier, and the query request identifier is used to instruct the node to send The terminal sends a query request to obtain the information of the first vehicle and the information of the second vehicle fed back by the terminal; 依据所述终端所属用户的身份信息,查找运营商数据库,获得与所述终端所属用户的身份信息相对应的所述终端的网络标识;According to the identity information of the user to which the terminal belongs, search an operator database to obtain the network identifier of the terminal corresponding to the identity information of the user to which the terminal belongs; 依据所述终端的网络标识,通过移动交换网的方式向所述终端发送查询请求;According to the network identifier of the terminal, send a query request to the terminal by means of a mobile switching network; 通过所述移动交换网,获得所述终端反馈的查询响应,其中,所述查询响应包括第一排序结果、第一哈希值和第二哈希值,所述第一排序结果是所述终端依据预设时间顺序,对所述第一哈希值和所述第二哈希值进行排序获得的结果,所述第一哈希值是所述终端对第一编码进行哈希运算获得的值,所述第一编码是所述终端按照预设方式对第一车辆的信息进行编码获得的值;所述第二哈希值是所述终端对第二编码进行哈希运算获得的值,所述第二编码是所述终端按照所述预设方式对所述第二车辆的信息进行编码获得的值;Obtain a query response fed back by the terminal through the mobile switching network, wherein the query response includes a first sorting result, a first hash value and a second hash value, and the first sorting result is the terminal A result obtained by sorting the first hash value and the second hash value according to a preset time sequence, where the first hash value is a value obtained by the terminal performing a hash operation on the first code , the first code is a value obtained by the terminal encoding the information of the first vehicle in a preset manner; the second hash value is a value obtained by the terminal performing a hash operation on the second code, so The second code is a value obtained by the terminal encoding the information of the second vehicle in the preset manner; 依据所述第一排序结果、所述第一哈希值和所述第二哈希值,生成并发送第一广播消息至区块链网络中,以使所述车管所节点获得并依据所述第一排序结果和所述车管所计算的第二排序结果,更新所述第一车辆的车牌号码和所述第二车辆的车牌号码;According to the first sorting result, the first hash value and the second hash value, generate and send a first broadcast message to the blockchain network, so that the vehicle management station node can obtain and according to the Update the license plate number of the first vehicle and the license plate number of the second vehicle using the first sorting result and the second sorting result calculated by the vehicle management system; 所述依据所述第二排序结果和所述第一排序结果,更新所述第一车辆的车牌号码和所述第二车辆的车牌号码,包括:The updating of the license plate number of the first vehicle and the license plate number of the second vehicle according to the second sorting result and the first sorting result includes: 若确定同时满足以下条件:所述第二排序结果和所述第一排序结果相同、第三哈希值与所述第一哈希值相同、第四哈希值与所述第二哈希值相同;If it is determined that the following conditions are met at the same time: the second sorting result is the same as the first sorting result, the third hash value is the same as the first hash value, the fourth hash value is the same as the second hash value same; 则依据获取到的车牌互换标识,更新所述第一车辆的车牌号码和所述第二车辆的车牌号码;then update the license plate number of the first vehicle and the license plate number of the second vehicle according to the obtained license plate interchange identifier; 其中,所述第三哈希值是所述车管所节点按照预设方式对获取到的第一存储信息进行编码获得第三编码,并对所述第三编码进行哈希运算获得的值,所述第四哈希值是所述车管所节点按照预设方式对获取到的第二存储信息进行编码获得第四编码,并对所述第四编码进行哈希运算获得的值。Wherein, the third hash value is a value obtained by the vehicle management station node encoding the acquired first storage information in a preset manner to obtain a third encoding, and performing a hash operation on the third encoding, The fourth hash value is a value obtained by the vehicle management station node encoding the acquired second storage information in a preset manner to obtain a fourth code, and performing a hash operation on the fourth code. 8.根据权利要求7所述的方法,其特征在于,在所述从区块链网络中,获取车管所节点发送的第三广播消息的步骤之前,还包括:8 . The method according to claim 7 , wherein before the step of acquiring the third broadcast message sent by the node of the vehicle management station from the blockchain network, the method further comprises: 8 . 从区块链网络中,获取所述车管所节点发送的第二广播消息,其中,所述第二广播消息包括所述终端所属用户的身份信息和所述终端的区块链信息。From the blockchain network, acquire the second broadcast message sent by the vehicle management station node, where the second broadcast message includes the identity information of the user to which the terminal belongs and the blockchain information of the terminal. 9.一种车管所节点服务器,其特征在于,包括:9. A vehicle management station node server, characterized in that, comprising: 第一获取模块,用于从区块链网络中,获取运营商节点发送的第一广播消息,其中,所述第一广播消息包括第一排序结果、第一哈希值和第二哈希值,所述第一排序结果是所述运营商节点对第一哈希值和第二哈希值进行排序获得的结果,所述第一哈希值是终端对第一编码进行哈希运算获得的值,所述第一编码是所述终端按照预设方式对第一车辆的信息进行编码获得的值;所述第二哈希值是所述终端对第二编码进行哈希运算获得的值,所述第二编码是所述终端按照所述预设方式对第二车辆的信息进行编码获得的值;The first obtaining module is configured to obtain the first broadcast message sent by the operator node from the blockchain network, wherein the first broadcast message includes the first sorting result, the first hash value and the second hash value , the first sorting result is the result obtained by the operator node sorting the first hash value and the second hash value, and the first hash value is obtained by the terminal performing the hash operation on the first code value, the first code is a value obtained by the terminal encoding the information of the first vehicle in a preset manner; the second hash value is a value obtained by the terminal performing a hash operation on the second code, The second code is a value obtained by the terminal encoding the information of the second vehicle in the preset manner; 编码模块,用于获取预先存储的第一存储信息和第二存储信息,并按照所述预设方式,分别对所述第一存储信息进行编码获得第三编码,以及对所述第二存储信息进行编码获得第四编码;an encoding module, configured to acquire pre-stored first storage information and second storage information, and respectively encode the first storage information to obtain a third encoding according to the preset method, and encode the second storage information Perform encoding to obtain the fourth encoding; 哈希运算模块,用于分别对所述第三编码和所述第四编码进行哈希运算,获得第三哈希值和第四哈希值;a hash operation module, configured to perform a hash operation on the third code and the fourth code respectively to obtain a third hash value and a fourth hash value; 排序模块,用于依据预设时间顺序,对所述第三哈希值和第四哈希值进行排序,获得第二排序结果;a sorting module, configured to sort the third hash value and the fourth hash value according to a preset time sequence to obtain a second sorting result; 更新模块,用于依据所述第二排序结果和所述第一排序结果,更新所述第一车辆的车牌号码和所述第二车辆的车牌号码;an update module, configured to update the license plate number of the first vehicle and the license plate number of the second vehicle according to the second sorting result and the first sorting result; 所述更新模块,具体用于:若确定同时满足以下条件:所述第二排序结果和所述第一排序结果相同、所述第三哈希值与所述第一哈希值相同、所述第四哈希值与所述第二哈希值相同;The updating module is specifically configured to: if it is determined that the following conditions are met at the same time: the second sorting result is the same as the first sorting result, the third hash value is the same as the first hash value, the the fourth hash value is the same as the second hash value; 则依据获取到的车牌互换标识,更新所述第一车辆的车牌号码和所述第二车辆的车牌号码。Then, the license plate number of the first vehicle and the license plate number of the second vehicle are updated according to the obtained license plate interchange identifier.

CN202010743894.9A 2020-07-29 2020-07-29 Information updating method based on block chain and server Active CN111935252B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010743894.9A CN111935252B (en) 2020-07-29 2020-07-29 Information updating method based on block chain and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010743894.9A CN111935252B (en) 2020-07-29 2020-07-29 Information updating method based on block chain and server

Publications (2)

Publication Number Publication Date
CN111935252A CN111935252A (en) 2020-11-13
CN111935252B true CN111935252B (en) 2021-11-26

Family

ID=73314857

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010743894.9A Active CN111935252B (en) 2020-07-29 2020-07-29 Information updating method based on block chain and server

Country Status (1)

Country Link
CN (1) CN111935252B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113612616A (en) * 2021-07-27 2021-11-05 北京沃东天骏信息技术有限公司 Vehicle communication method and device based on block chain

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108573388A (en) * 2018-05-08 2018-09-25 广州大学 Blockchain-based vehicle information processing system and method
CN109242507A (en) * 2018-08-14 2019-01-18 淮北创之社信息科技有限公司 A kind of vehicle transaction retroactive method based on block chain
CN109472594A (en) * 2018-10-11 2019-03-15 平安科技(深圳)有限公司 Car data sharing method, device, equipment and storage medium based on block chain
EP3525498A1 (en) * 2018-02-08 2019-08-14 Sony Corporation Electronic devices, systems and methods for vehicular communication
WO2019175006A1 (en) * 2018-03-16 2019-09-19 Audi Ag Method for exchanging data with a vehicle control unit
CN110889520A (en) * 2019-11-29 2020-03-17 腾讯科技(深圳)有限公司 Block chain-based vehicle management method and device, terminal and storage medium
CN110958301A (en) * 2019-11-04 2020-04-03 广州亚美信息科技有限公司 Vehicle archive data processing method, device and system based on alliance chain

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3525498A1 (en) * 2018-02-08 2019-08-14 Sony Corporation Electronic devices, systems and methods for vehicular communication
WO2019175006A1 (en) * 2018-03-16 2019-09-19 Audi Ag Method for exchanging data with a vehicle control unit
CN108573388A (en) * 2018-05-08 2018-09-25 广州大学 Blockchain-based vehicle information processing system and method
CN109242507A (en) * 2018-08-14 2019-01-18 淮北创之社信息科技有限公司 A kind of vehicle transaction retroactive method based on block chain
CN109472594A (en) * 2018-10-11 2019-03-15 平安科技(深圳)有限公司 Car data sharing method, device, equipment and storage medium based on block chain
CN110958301A (en) * 2019-11-04 2020-04-03 广州亚美信息科技有限公司 Vehicle archive data processing method, device and system based on alliance chain
CN110889520A (en) * 2019-11-29 2020-03-17 腾讯科技(深圳)有限公司 Block chain-based vehicle management method and device, terminal and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A Blockchain-Based Framework for Lightweight Data Sharing and Energy Trading in V2G Network;Vikas Hassija等;《IEEE TRANSACTIONS ON VEHICULAR TECHNOLOGY》;20200630;第69卷(第6期);全文 *
基于区块链技术的车联网高效匿名认证方案;陈葳葳等;《Journal of Computer Applications》;20200618;全文 *

Also Published As

Publication number Publication date
CN111935252A (en) 2020-11-13

Similar Documents

Publication Publication Date Title
CN106897307B (en) 2020-07-14 Method for obtaining electronic identity document on mobile terminal
CN113420277B (en) 2022-02-15 Digital identity management and verification method based on intelligent contract
CN111245602A (en) 2020-06-05 Data right confirming method and system based on block chain
KR20200141402A (en) 2020-12-18 Method and system for collecting and managing event data which is recorded by vehicle
CN111935252B (en) 2021-11-26 Information updating method based on block chain and server
CN108540335B (en) 2021-11-12 Management method and management device for equipment analysis report
CN112235290A (en) 2021-01-15 Block chain-based Internet of things equipment management method and first Internet of things equipment
CN111225358B (en) 2021-10-01 Identity recognition method and device, electronic equipment and storage medium
CN111885072B (en) 2021-12-14 Information updating method, server and terminal
CN109088734B (en) 2022-04-12 Coding method and system
Prakash et al. 2020 Cvin: Connected vehicle information network
CN1415084A (en) 2003-04-30 Method and system for managing property
CN117579325A (en) 2024-02-20 Digital certificate verification method and related device
CN111866010B (en) 2022-04-29 Method and device for updating vehicle information
CN111866009B (en) 2022-04-29 Vehicle information updating method and device
CN116089921A (en) 2023-05-09 Identifiable identifier generation method for distributed digital identity
CN110866412A (en) 2020-03-06 Parking authentication system and method based on RFID (radio frequency identification) tag and vehicle-mounted card reader
CN111263328B (en) 2023-05-02 Vehicle information acquisition method and vehicle-mounted device
CN113947462A (en) 2022-01-18 Method and system for matching bank flow data with ceramic industry platform order
CN111885074B (en) 2021-12-14 Block chain-based information change method, vehicle management station node and operator node
CN107276764A (en) 2017-10-20 A kind of supply chain path management-control method based on RFID
CN111885073B (en) 2022-06-10 Vehicle granting method and server
CN111866015B (en) 2022-04-29 Method and device for updating vehicle information
CN111935253B (en) 2021-12-07 Block chain information updating method, vehicle management station node and operator node
CN111866014B (en) 2022-02-11 Vehicle information protection method and device

Legal Events

Date Code Title Description
2020-11-13 PB01 Publication
2020-11-13 PB01 Publication
2020-12-01 SE01 Entry into force of request for substantive examination
2020-12-01 SE01 Entry into force of request for substantive examination
2021-11-26 GR01 Patent grant
2021-11-26 GR01 Patent grant