





技术领域technical field
本申请涉及通信技术领域,具体涉及一种信息更新方法及服务器、终端。The present application relates to the field of communication technologies, and in particular, to an information update method, a server, and a terminal.
背景技术Background technique
目前,公安部通报推出10项公安部交管改革的新措施。这10项新措施包括5类可异地通办的业务,5项便捷快办的服务。其中,异地通办的业务包括:车主可以将自己原有的车牌号码更新到同类型的自己拥有的其他车辆上,以使车主能够保持自己的原有车牌号码不变。At present, the Ministry of Public Security has announced 10 new measures for the reform of traffic management of the Ministry of Public Security. These 10 new measures include 5 types of business that can be handled in different places and 5 services that are convenient and quick to handle. Among them, the business of different places includes: car owners can update their original license plate numbers to other vehicles of the same type that they own, so that car owners can keep their original license plate numbers unchanged.
由于区块链网络中的用户名称不是用户的真实姓名,若通过区块链网络的方式来实现车牌号码的更新,会使得信息的保密性差,易使车主的隐私信息被泄露,导致用户体验度差。Since the user name in the blockchain network is not the real name of the user, if the license plate number is updated through the blockchain network, the confidentiality of the information will be poor, and the private information of the car owner will be easily leaked, resulting in poor user experience. Difference.
发明内容SUMMARY OF THE INVENTION
为此,本申请提供一种信息更新方法及服务器、终端,以克服在更换车辆号码的过程中,容易导致终端的隐私信息泄露使得客户体验度差的问题。To this end, the present application provides an information update method, server and terminal to overcome the problem that the private information of the terminal is easily leaked and the customer experience is poor during the process of changing the vehicle number.
为了实现上述目的,本申请第一方面提供一种信息更新方法,方法包括:通过区块链链下的方式,获得终端所属用户的身份信息,并依据身份信息为终端分配区块链信息;从区块链网络中,获取终端发送的车辆信息交换请求,其中,车辆信息交换请求包括第一车辆的车牌号码和第二车辆的车牌号码;依据终端的区块链信息,发送询问消息给终端;响应于终端通过移动交换网发送的应答响应信息,获得第一排序结果、第一哈希值和第二哈希值,其中,第一排序结果是终端依据第一哈希值和第二哈希值生成的排序结果,第一哈希值是终端对第一编码进行哈希运算获得的值,第一编码是终端按照预设方式对第一车辆的信息进行编码获得的值;第二哈希值是终端对第二编码进行哈希运算获得的值,第二编码是终端按照预设方式对第二车辆的信息进行编码获得的值;依据第一存储信息和第二存储信息,生成第三哈希值和第四哈希值,其中,第一存储信息是预先存储的第一车辆的信息,第二存储信息是预先存储的第二车辆的信息;依据预设时间顺序,对第三哈希值和第四哈希值进行排序,获得第二排序结果;依据第二排序结果和第一排序结果,更新第一车辆的车牌号码和第二车辆的车牌号码。In order to achieve the above purpose, the first aspect of the present application provides an information update method, the method includes: obtaining the identity information of the user to which the terminal belongs by means of a blockchain, and assigning the blockchain information to the terminal according to the identity information; In the blockchain network, obtain the vehicle information exchange request sent by the terminal, wherein the vehicle information exchange request includes the license plate number of the first vehicle and the license plate number of the second vehicle; send an inquiry message to the terminal according to the blockchain information of the terminal; In response to the response response information sent by the terminal through the mobile switching network, a first sorting result, a first hash value and a second hash value are obtained, wherein the first sorting result is the terminal according to the first hash value and the second hash value. The sorting result of the value generation, the first hash value is the value obtained by the terminal performing the hash operation on the first code, and the first code is the value obtained by the terminal encoding the information of the first vehicle according to the preset method; the second hash value The value is a value obtained by the terminal performing a hash operation on the second code, and the second code is a value obtained by the terminal encoding the information of the second vehicle in a preset manner; according to the first storage information and the second storage information, a third hash value and fourth hash value, wherein the first stored information is the pre-stored information of the first vehicle, and the second stored information is the pre-stored information of the second vehicle; Sort the hash value and the fourth hash value to obtain a second sorting result; 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 a specific implementation, generating the third hash value and the fourth hash value according to the first storage information and the second storage information includes: according to a preset manner, encoding the first storage information respectively to obtain the third encoding, and encoding the second storage information to obtain a fourth encoding; respectively performing a hash operation on the third encoding and the fourth encoding to obtain a third hash value and a fourth hash value.
在一个具体实现中,依据第二排序结果和第一排序结果,更新第一车辆的车牌号码和第二车辆的车牌号码,包括:若确定同时满足以下条件:第二排序结果和第一排序结果相同、第三哈希值与第一哈希值相同、第四哈希值与第二哈希值相同;则依据车辆信息交换请求中的车牌互换标识,更新第一车辆的车牌号码和第二车辆的车牌号码。In a specific implementation, 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, including: if it is determined that the following conditions are met simultaneously: the second sorting result and the first sorting result The same, 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; then, according to the license plate exchange identifier in the vehicle information exchange request, update the license plate number of the first vehicle and the third hash value. 2. The license plate number of the vehicle.
在一个具体实现中,第一车辆的信息包括第一车辆的硬件信息和第一车辆的车检时间,第二车辆的信息包括第二车辆的硬件信息和第二车辆的车检时间;预设时间顺序是依据车辆的年检时间生成的顺序,或,依据车辆的购买时间生成的顺序。In a specific implementation, 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 hardware information of the second vehicle and the vehicle inspection time of the second vehicle; preset The chronological order is the order generated according to the annual inspection time of the vehicle, or the order generated according to the purchase time of the vehicle.
在一个具体实现中,依据车辆信息交换请求中的车牌互换标识,更新第一车辆的车牌号码和第二车辆的车牌号码,包括:依据车牌互换标识,使用第一车辆的车牌号码替换第二车辆的车牌号码;同时,使用第二车辆的车牌号码替换第一车辆的车牌号码;保持第一车辆的硬件信息、第一车辆的车检时间、第二车辆的硬件信息和第二车辆的车检时间不变。In a specific implementation, updating the license plate number of the first vehicle and the license plate number of the second vehicle according to the license plate interchange identifier in the vehicle information exchange request includes: replacing the first vehicle's license plate number with the license plate number of the first vehicle according to the license plate interchange identifier. The license plate number of the second vehicle; at the same time, replace the license plate number of the first vehicle 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 The inspection time remains unchanged.
在一个具体实现中,在所述通过区块链链下的方式,获得终端所属用户的身份信息,并依据身份信息为终端分配区块链信息的步骤之后,还包括:依据身份信息和区块链信息,生成并发送第一广播消息至区块链网络中。In a specific implementation, after the step of obtaining the identity information of the user to which the terminal belongs and assigning the block chain information to the terminal according to the identity information, the method further includes: according to the identity information and the block chain information. chain information, generate and send the first broadcast message to the blockchain network.
在一个具体实现中,在依据第二排序结果和第一排序结果,更新第一车辆的车牌号码和第二车辆的车牌号码的步骤之后,还包括:发送第二广播消息至区块链网络中,以使车辆检车厂节点获得并依据第二广播消息更新车辆检车厂节点的车辆备案信息;其中,第二广播消息包括终端的区块链标识、终端所属用户的身份信息、第一哈希值、第二哈希值、更新后的第一车辆的车牌号码和更新后的第二车辆的车牌号码。In a specific implementation, 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 second 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 second broadcast message; wherein, the second broadcast message includes the blockchain identification of the terminal, the identity information of the user to which the terminal belongs, and 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.
为了实现上述目的,本申请第二方面提供一种信息更新方法,方法包括:依据第一车辆的车牌号码和第二车辆的车牌号码,生成并发送车辆信息交换请求至区块链网络中,以使车管所节点获得车辆信息交换请求;响应于车管所节点发送的询问消息,依据第一车辆的信息和第二车辆的信息,生成第一哈希值和第二哈希值;依据预设时间顺序,对第一哈希值和第二哈希值进行排序,获得第一排序结果;依据第一排序结果、第一哈希值和第二哈希值,生成并发送应答响应信息至车管所节点,以使车管所节点获得并依据第一排序结果和车管所计算的第二排序结果,更新第一车辆的车牌号码和第二车辆的车牌号码。In order to achieve the above purpose, a second aspect of the present application provides an information update method, the method includes: generating and sending a vehicle information exchange request to the blockchain network according to the license plate number of the first vehicle and the license plate number of the second vehicle, to Make the vehicle management station node obtain the vehicle information exchange request; in response to the query message sent by the vehicle management station node, generate the first hash value and the second hash value according to the information of the first vehicle and the information of the second vehicle; Set the time sequence, sort the first hash value and the second hash value, and obtain the first sorting result; according to the first sorting result, the first hash value and the second hash value, generate and send the response response information to The vehicle management station node, so that the vehicle management station node obtains and updates the license plate number of the first vehicle and the license plate number of the second vehicle according to the first sorting result and the second sorting result calculated by the vehicle management station.
在一个具体实现中,在依据第一车辆的车牌号码和第二车辆的车牌号码,生成并发送车辆信息交换请求至区块链网络中的步骤之前,还包括:通过区块链链下的方式,向车管所节点发送本终端所属用户的身份信息,以使车管所节点依据身份信息为本终端分配区块链信息;从区块链网络中,获取车管所节点发送的第一广播消息,其中,第一广播消息包括区块链信息和本终端所属用户的身份信息。In a specific implementation, before the step of generating and sending the vehicle information exchange request to the blockchain network according to the license plate number of the first vehicle and the license plate number of the second vehicle, the method further includes: using a method under the blockchain , send the identity information of the user to which the terminal belongs to the vehicle management station node, so that the vehicle management station node allocates blockchain information to the terminal according to the identity information; from the blockchain network, obtain the first broadcast sent by the vehicle management station node. message, wherein the first broadcast message includes blockchain information and identity information of the user to which the terminal belongs.
为了实现上述目的,本申请第三方面提供一种车管所节点服务器,包括:分配模块,用于通过区块链链下的方式,获得终端所属用户的身份信息,并依据身份信息为终端分配区块链信息;第一获取模块,用于从区块链网络中,获取终端发送的车辆信息交换请求,其中,车辆信息交换请求包括第一车辆的车牌号码和第二车辆的车牌号码;发送模块,用于依据终端的区块链信息,发送询问消息给终端;第二获取模块,用于响应于终端通过移动交换网发送的应答响应信息,获得第一排序结果、第一哈希值和第二哈希值,其中,第一排序结果是终端依据第一哈希值和第二哈希值生成的排序结果,第一哈希值是终端对第一编码进行哈希运算获得的值,第一编码是终端按照预设方式对第一车辆的信息进行编码获得的值;第二哈希值是终端对第二编码进行哈希运算获得的值,第二编码是终端按照预设方式对第二车辆的信息进行编码获得的值;哈希值生成模块,用于依据预先存储的第一存储信息和第二存储信息,生成第三哈希值和第四哈希值;排序模块,用于依据预设时间顺序,对第三哈希值和第四哈希值进行排序,获得第二排序结果;更新模块,用于依据第二排序结果和第一排序结果,更新第一车辆的车牌号码和第二车辆的车牌号码。In order to achieve the above purpose, a third aspect of the present application provides a vehicle management station node server, including: an allocation module for obtaining the identity information of the user to which the terminal belongs by means of a blockchain, and assigning the terminal to the terminal according to the identity information block chain information; the first acquisition module is used for acquiring the vehicle information exchange request sent by the terminal from the block chain network, wherein the vehicle information exchange request includes the license plate number of the first vehicle and the license plate number of the second vehicle; sending The module is used to send an inquiry message to the terminal according to the block chain information of the terminal; the second acquisition module is used to obtain the first sorting result, the first hash value and the response response information sent by the terminal through the mobile switching network in response to The second hash value, where the first sorting result is a sorting result generated by the terminal according to the first hash value and the second hash value, and 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, and the second code is a value obtained by the terminal according to a preset method. The value obtained by encoding the information of the second vehicle; the hash value generation module is used to generate the third hash value and the fourth hash value according to the pre-stored first storage information and the second storage information; according to the preset time sequence, the third hash value and the fourth hash value are sorted to obtain the second sorting result; the updating module is used for updating the license plate of the first vehicle according to the second sorting result and the first sorting result number and the license plate number of the second vehicle.
本申请中的信息更新方法及服务器、终端,通过区块链链下方式,获得终端所属用户的身份信息,并依据该身份信息为终端分配区块链信息,使得能够将重点的身份信息与终端的区块链信息相对应,以验证终端所属用户的身份信息的真实性。在获得终端发送的车辆信息交换请求后,发送询问消息给终端,并通过移动交换网获得终端发送的应答响应信息,进而根据应答响应信息中的第一排序结果和自己计算获得的第二排序结果,来更新第一车辆的车牌号码和第二车辆的车牌号码,避免终端的隐私信息被泄露,提升用户信息的安全性,以提高客户体验度。The information updating method, server, and terminal in this application obtain the identity information of the user to which the terminal belongs by means of the blockchain, and allocate the blockchain information to the terminal according to the identity information, so that the key identity information can be associated with the terminal. Corresponding to the blockchain information of the terminal to verify the authenticity of the identity information of the user to which the terminal belongs. After obtaining the vehicle information exchange request sent by the terminal, send an inquiry message to the terminal, and obtain the response response information sent by the terminal through the mobile switching network, and then according to the first sorting result in the response response information and the second sorting result obtained by self-calculation , to update the license plate number of the first vehicle and the license plate number of the second vehicle, so as to avoid the leakage of the private information of the terminal, improve the security of user information, and improve the customer experience.
附图说明Description of drawings
附图用来提供对本公开实施例的进一步理解,并且构成说明书的一部分,与本公开的实施例一起用于解释本公开,并不构成对本公开的限制。通过参考附图对详细示例实施例进行描述,以上和其它特征和优点对本领域技术人员将变得更加显而易见,在附图中:The accompanying drawings are used to provide a further understanding of the embodiments of the present disclosure, and constitute a part of the specification, and together with the embodiments of the present disclosure, they are used to explain the present disclosure, and do not constitute a limitation to the present disclosure. The above and other features and advantages will become more apparent to those skilled in the art by describing detailed example embodiments with reference to the accompanying drawings, in which:
图1示出本申请一实施例中的信息更新方法的流程示意图。FIG. 1 shows a schematic flowchart of an information updating method in an embodiment of the present application.
图2示出本申请又一实施例中的信息更新方法的流程示意图。FIG. 2 shows a schematic flowchart of an information update method in another embodiment of the present application.
图3示出本申请再一实施例中的信息更新方法的流程示意图。FIG. 3 shows a schematic flowchart of an information updating method in still another embodiment of the present application.
图4示出本申请实施例中的车管所节点服务器的组成方框图。FIG. 4 shows a block diagram of the composition of the node server of the vehicle management station in the embodiment of the present application.
图5示出本申请实施例中的信息更新系统的组成方框图。FIG. 5 shows a block diagram of the composition of the information updating system in the embodiment of the present application.
图6示出本申请实施例中的信息更新系统的工作方法流程图。FIG. 6 shows a flowchart of a working method of the information updating system in the embodiment of the present application.
在附图中:In the attached image:
401:分配模块 402:第一获取模块401: Allocation module 402: First acquisition module
403:发送模块 404:第二获取模块403: sending module 404: second obtaining module
405:哈希值生成模块 406:排序模块405: Hash value generation module 406: Sort module
407:更新模块 501:终端407: Update Module 501: Terminal
502:车管所节点服务器 503:车辆检车厂节点服务器502: The node server of the vehicle management office 503: The node server of the vehicle inspection factory
具体实施方式Detailed ways
以下结合附图对本申请的具体实施方式进行详细说明。应当理解的是,此处所描述的具体实施方式仅用于说明和解释本申请,并不用于限制本申请。对于本领域技术人员来说,本申请可以在不需要这些具体细节中的一些细节的情况下实施。下面对实施例的描述仅仅是为了通过示出本申请的示例来提供对本申请更好的理解。The specific embodiments of the present application will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only used to illustrate and explain the present application, but not to limit the present application. It will be apparent to those 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 to provide a better understanding of the present application by illustrating examples of the present application.
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
图1示出本申请实施例一中的信息更新方法的流程示意图,该方法可应用于车管所节点服务器。如图1所示,包括:FIG. 1 shows a schematic flowchart of an information update method in Embodiment 1 of the present application, and the method can be applied to a node server of a vehicle management station. As shown in Figure 1, it includes:
步骤110,通过区块链链下的方式,获得终端所属用户的身份信息,并依据身份信息为终端分配区块链信息。In
其中,区块链链下的方式可以是无线通信方式、点对点通信方式和短距离通信方式等多种不同的非区块链通信方式。以上对于区块链链下的方式仅是举例说明,可根据实际情况具体设定,其他未说明的区块链链下的方式也在本申请的保护范围之内,在此不再赘述。Among them, the methods under the blockchain chain can be various non-blockchain communication methods such as wireless communication, point-to-point communication, and short-distance communication. The above methods under the blockchain chain are only examples, and can be set according to the actual situation. Other unexplained methods under the blockchain chain are also within the scope of protection of this application, and will not be repeated here.
通过依据终端所属用户的身份信息,为该终端分配区块链信息,使得能够将该终端的区块链信息和其所属用户的身份信息相对应,保证该终端的身份信息的真实有效。By assigning blockchain information to the terminal according to the identity information of the user to which the terminal belongs, the blockchain information of the terminal can be corresponding to the identity information of the user to which it belongs, and the authenticity and validity of the identity information of the terminal can be ensured.
步骤120,从区块链网络中,获取终端发送的车辆信息交换请求。Step 120: Obtain the vehicle information exchange request sent by the terminal from the blockchain network.
其中,车辆信息交换请求包括第一车辆的车牌号码和第二车辆的车牌号码。The vehicle information exchange request includes the license plate number of the first vehicle and the license plate number of the second vehicle.
步骤130,依据终端的区块链信息,发送询问消息给终端。Step 130: Send an inquiry message to the terminal according to the blockchain information of the terminal.
需要说明的是,发送询问消息给终端,使得能够获得终端反馈的第一车辆的信息和第二车辆的信息,以方便核对第一车辆和第二车辆的信息的真实性。It should be noted that the inquiry message is sent to the terminal, so that the information of the first vehicle and the information of the second vehicle fed back by the terminal can be obtained, so as to facilitate checking the authenticity of the information of the first vehicle and the second vehicle.
步骤140,响应于终端通过移动交换网发送的应答响应信息,获得第一排序结果、第一哈希值和第二哈希值。
其中,第一排序结果是终端依据第一哈希值和第二哈希值生成的排序结果,第一哈希值是终端对第一编码进行哈希运算获得的值,第一编码是终端按照预设方式对第一车辆的信息进行编码获得的值;第二哈希值是终端对第二编码进行哈希运算获得的值,第二编码是终端按照预设方式对第二车辆的信息进行编码获得的值。The first sorting result is a sorting result generated by the terminal according to the first hash value and the second hash value, the first hash value is a value obtained by the terminal performing a hash operation on the first code, and the first code is a value obtained by the terminal according to the first hash value and the second hash value. A value obtained by 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 encoding, and the second encoding is a value obtained by the terminal on the information of the second vehicle in a preset manner. The value obtained by encoding.
在一个具体实现中,第一车辆的信息包括第一车辆的硬件信息和第一车辆的车检时间,第二车辆的信息包括第二车辆的硬件信息和第二车辆的车检时间。In a specific implementation, 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 hardware information of the second vehicle and the vehicle inspection time of the second vehicle.
其中,硬件信息可以是车辆发动机的设备编号,也可以是车辆的车辆识别号码(Vehicle Identification Number,VIN)等。硬件信息是用于区别不同车辆的标识,每辆车的硬件信息都是独一无二的。以上对于硬件信息仅是举例说明,可根据具体情况进行具体设定,其他未说明的硬件信息也在本申请的保护范围之内,在此不再赘述。Wherein, the hardware information may be the device number of the vehicle engine, or may be the vehicle identification number (Vehicle Identification Number, VIN) of the vehicle, or the like. The hardware information is an identifier used to distinguish different vehicles, and the hardware information of each vehicle is unique. The above hardware information is only an example for illustration, and specific settings can be made according to specific conditions. Other unexplained hardware information is also within the protection scope of the present application, and will not be repeated here.
步骤150,依据第一存储信息和第二存储信息,生成第三哈希值和第四哈希值。Step 150: Generate a third hash value and a fourth hash value according to the first storage information and the second storage information.
其中,第一存储信息是预先存储的第一车辆的信息,第二存储信息是预先存储的第二车辆的信息。The first stored information is pre-stored information of the first vehicle, and the second stored information is pre-stored information of the second vehicle.
步骤160,依据预设时间顺序,对第三哈希值和第四哈希值进行排序,获得第二排序结果。Step 160: Sort the third hash value and the fourth hash value according to the preset time sequence to obtain a second sorting result.
在一个具体实现中,预设时间顺序是依据车辆的年检时间生成的顺序,或,依据车辆的购买时间生成的顺序。以上对于预设时间顺序仅是举例说明,可根据具体情况进行具体设定,其他未说明的预设时间顺序也在本申请的保护范围之内,在此不再赘述。In a specific implementation, the preset time sequence is a sequence generated according to the annual inspection time of the vehicle, or a sequence generated according to the purchase time of the vehicle. The above preset time sequence is only an example, and can be specifically set according to specific conditions. Other unexplained preset time sequences are also within the protection scope of the present application, and will not be repeated here.
步骤170,依据第二排序结果和第一排序结果,更新第一车辆的车牌号码和第二车辆的车牌号码。Step 170: 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 this embodiment, the identity information of the user to which the terminal belongs is obtained through the blockchain off-chain method, and the blockchain information is allocated to the terminal according to the identity information, so that the key identity information can be correlated with the blockchain information of the terminal. corresponding to verify the authenticity of the identity information of the user to which the terminal belongs. After obtaining the vehicle information exchange request sent by the terminal, send an inquiry message to the terminal, and obtain the response response information sent by the terminal through the mobile switching network, and then according to the first sorting result in the response response information and the second sorting result obtained by self-calculation , to update the license plate number of the first vehicle and the license plate number of the second vehicle, so as to avoid the leakage of the private information of the terminal, improve the security of user information, and improve the customer experience.
本申请实施例提供另一种可能的实现方式,其中,步骤150中的依据第一存储信息和第二存储信息,生成第三哈希值和第四哈希值,包括:按照预设方式,分别对第一存储信息进行编码获得第三编码,以及对第二存储信息进行编码获得第四编码;分别对第三编码和第四编码进行哈希运算,获得第三哈希值和第四哈希值。The embodiment of the present application provides another possible implementation manner, wherein in
其中,预设方式可以是预先约定的编码方式,例如,压缩编码方式或非压缩编码方式等。以上对于预设方式仅是举例说明,可根据具体情况进行具体设定,其他未说明的预设方式也在本申请的保护范围之内,在此不再赘述。The preset mode may be a pre-agreed encoding mode, for example, a compressed encoding mode or a non-compressed encoding mode. The above-mentioned preset modes are only examples, and specific settings can be made according to specific conditions. Other unexplained preset modes are also within the scope of protection of the present application, and will not be repeated here.
通过采用预设方式分别对第一存储信息和第二存储信息进行编码,生成第三编码和第四编码,保证第一存储信息和第二存储信息不被泄露。然后再分别对第三编码和第四编码进行哈希运算,进一步保证信息的安全性。The first storage information and the second storage information are respectively encoded in a preset manner to generate the third encoding and the fourth encoding, so as to ensure that the first storage information and the second storage information are not leaked. Then, the third code and the fourth code are hashed respectively to further ensure the security of the information.
本申请实施例提供另一种可能的实现方式,其中,步骤170具体可以采用如下方式实现:若确定同时满足以下条件:第二排序结果和第一排序结果相同、第三哈希值与第一哈希值相同、第四哈希值与第二哈希值相同;则依据车辆信息交换请求中的车牌互换标识,更新第一车辆的车牌号码和第二车辆的车牌号码。The embodiment of the present application provides another possible implementation manner, where
通过比较第二排序结果和第一排序结果、比较第三哈希值与第一哈希值、比较第四哈希值与第二哈希值相同,只有当以上三个比较结果都是相同时,才能确定可以依据车牌互换标识更新两辆车辆的车牌号码,避免车辆号码更新至错误的车辆上,保证车牌号码更新的安全性。并且,通过比较哈希值的方式,保证车辆的隐私信息不被泄露,提升用户体验度。By comparing the second sorting result with the first sorting result, comparing the third hash value with the first hash value, and comparing the fourth hash value with the second hash value, only when the above three comparison results are the same In order to determine that the license plate numbers of the two vehicles can be updated according to the license plate interchange logo, the vehicle number can be prevented from being updated to the wrong vehicle, and the security of the license plate number update can be ensured. In addition, by comparing the hash value, it is ensured that the private information of the vehicle is not leaked, and the user experience is improved.
在一个具体实现中,依据车辆信息交换请求中的车牌互换标识,更新第一车辆的车牌号码和第二车辆的车牌号码,包括:依据车牌互换标识,使用第一车辆的车牌号码替换第二车辆的车牌号码;同时,使用第二车辆的车牌号码替换第一车辆的车牌号码;保持第一车辆的硬件信息、第一车辆的车检时间、第二车辆的硬件信息和第二车辆的车检时间不变。In a specific implementation, updating the license plate number of the first vehicle and the license plate number of the second vehicle according to the license plate interchange identifier in the vehicle information exchange request includes: replacing the first vehicle's license plate number with the license plate number of the first vehicle according to the license plate interchange identifier. The license plate number of the second vehicle; at the same time, replace the license plate number of the first vehicle 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 The inspection time remains unchanged.
通过车牌互换标识,使用第一车辆的车牌号码替换第二车辆的车牌号码,同时,使用第二车辆的车牌号码替换第一车辆的车牌号码,使得两辆车辆的车牌号码能够互换,以满足终端所属用户的需求。在互换车牌号码的同时,保持第一车辆的硬件信息、第一车辆的车检时间、第二车辆的硬件信息和第二车辆的车检时间不变,使得车辆的硬件信息和车检时间不被篡改,保证车辆信息的安全性。Through the license plate exchange identification, the license plate number of the first vehicle is used to replace the license plate number of the second vehicle. Meet the needs of the end user. While exchanging the license plate numbers, 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, so that the hardware information of the vehicle and the vehicle inspection time are kept unchanged. It will not be tampered with to ensure the security of vehicle information.
在一些具体实现中,在步骤110之后,还包括:依据身份信息和区块链信息,生成并发送第一广播消息至区块链网络中。In some specific implementations, after
通过将第一广播消息发送至区块链网络中,使得区块链中的各个节点能够获知终端的区块链信息。并且该终端所属用户的身份信息和该终端的区块链信息是相对应的,区块链中的各个节点能够根据该终端的区块链标识验证该终端所属用户的身份信息的真实性。By sending the first broadcast message to the blockchain network, each node in the blockchain can learn the blockchain information of the terminal. And the identity information of the user to which the terminal belongs is corresponding to the blockchain information of the terminal, and each node in the blockchain can verify the authenticity of the identity information of the user to which the terminal belongs according to the blockchain identification of the terminal.
图2示出本申请又一实施例中的信息更新方法的流程示意图。该方法可应用于车管所节点服务器。如图2所示,包括:FIG. 2 shows a schematic flowchart of an information update method in another embodiment of the present application. The method can be applied to the node server of the vehicle management station. As shown in Figure 2, including:
步骤210,通过区块链链下的方式,获得终端所属用户的身份信息,并依据身份信息为终端分配区块链信息。In
步骤220,从区块链网络中,获取终端发送的车辆信息交换请求。Step 220: Obtain the vehicle information exchange request sent by the terminal from the blockchain network.
步骤230,依据终端的区块链信息,发送询问消息给终端。Step 230: Send an inquiry message to the terminal according to the blockchain information of the terminal.
步骤240,响应于终端通过移动交换网发送的应答响应信息,获得第一排序结果、第一哈希值和第二哈希值。
步骤250,依据第一存储信息和第二存储信息,生成第三哈希值和第四哈希值。Step 250: Generate a third hash value and a fourth hash value according to the first storage information and the second storage information.
步骤260,依据预设时间顺序,对第三哈希值和第四哈希值进行排序,获得第二排序结果。Step 260: Sort the third hash value and the fourth hash value according to the preset time sequence to obtain a second sorting result.
步骤270,依据第二排序结果和第一排序结果,更新第一车辆的车牌号码和第二车辆的车牌号码。Step 270: 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.
需要说明的是,本实施例中的步骤210~步骤270,与上一实施例中的步骤110~步骤170内容相同,在此不再赘述。It should be noted that, the contents of
步骤280,发送第二广播消息至区块链网络中。
其中,第二广播消息包括终端的区块链标识、终端所属用户的身份信息、第一哈希值、第二哈希值、更新后的第一车辆的车牌号码和更新后的第二车辆的车牌号码。The second 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 information of the second vehicle. License plate number.
具体地,当车辆检车厂节点从区块链网络中,获得该第二广播消息后,会根据第一车辆和第二车辆的车牌号码查找自己的内部数据库,获得终端的身份信息、第一车辆的信息和第二车辆的信息。然后,将第二广播信息中的终端所属用户的身份信息与自己的内部数据库存储的终端所属用户的身份信息进行对比,将第二广播信息中的第一车辆的发动机号码与自己的内部数据库存储的第一车辆的发动机号码进行对比,将第二广播信息中的第二车辆的发动机号码与自己的内部数据库存储的第二车辆的发动机号码进行对比,若以上对比结果都是相同,则依据第二广播信息,更新本地存储的车辆备案信息。Specifically, when the vehicle inspection plant node obtains the second broadcast message from the blockchain network, it will search its own internal database according to the license plate numbers of the first vehicle and the second vehicle, and obtain the identity information of the terminal and the first vehicle. information and information of the second vehicle. Then, compare the identity information of the user to which the terminal belongs in the second broadcast information with the identity information of the user to which the terminal belongs stored in its own internal database, and store the engine number of the first vehicle in the second broadcast information with its own internal database. The engine number of the first vehicle is compared, and the engine number of the second vehicle in the second broadcast information is compared with the engine number of the second vehicle stored in its own internal database. If the above comparison results are the same, then according to the first 2. Broadcast information, update the locally stored vehicle filing information.
本实施例中,通过区块链链下方式,获得终端所属用户的身份信息,并依据该身份信息为终端分配区块链信息,使得能够将重点的身份信息与终端的区块链信息相对应,以验证终端所属用户的身份信息的真实性。在获得终端发送的车辆信息交换请求后,发送询问消息给终端,并通过移动交换网获得终端发送的应答响应信息,进而根据应答响应信息中的第一排序结果和自己计算获得的第二排序结果,来更新第一车辆的车牌号码和第二车辆的车牌号码,避免终端的隐私信息被泄露,提升用户信息的安全性,以提高客户体验度。并且,将终端的区块链标识、终端所属用户的身份信息、第一哈希值、第二哈希值、更新后的第一车辆的车牌号码和更新后的第二车辆的车牌号码,以第二广播消息的方式发送至区块链网络中,使得车辆检车厂节点能够获得以上更新后的信息,并更新本地存储的车辆备案信息,方便后续对车辆信息的管理和查询,提高对车辆信息的处理速度。In this embodiment, the identity information of the user to which the terminal belongs is obtained through the blockchain off-chain method, and the blockchain information is allocated to the terminal according to the identity information, so that the key identity information can be corresponding to the blockchain information of the terminal , to verify the authenticity of the identity information of the user to which the terminal belongs. After obtaining the vehicle information exchange request sent by the terminal, send an inquiry message to the terminal, and obtain the response response information sent by the terminal through the mobile switching network, and then according to the first sorting result in the response response information and the second sorting result obtained by self-calculation , to update the license plate number of the first vehicle and the license plate number of the second vehicle, so as to avoid the leakage of the private information of the terminal, improve the security of user information, and improve the customer experience. In addition, the block chain identification 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 are used as The second broadcast message is sent to the blockchain network, so that the vehicle inspection factory node can obtain the above updated information, and update the locally stored vehicle filing information, which facilitates the subsequent management and query of vehicle information, and improves the understanding of vehicle information. processing speed.
图3示出本申请再一实施例中的信息更新方法的流程示意图。该方法可应用于终端。如图3所示,包括:FIG. 3 shows a schematic flowchart of an information updating method in still another embodiment of the present application. This method can be applied to a terminal. As shown in Figure 3, including:
步骤310,依据第一车辆的车牌号码和第二车辆的车牌号码,生成并发送车辆信息交换请求至区块链网络中。Step 310: Generate and send a vehicle information exchange request to the blockchain network according to the license plate number of the first vehicle and the license plate number of the second vehicle.
例如,车管所节点从区块链网络中,获得车辆信息交换请求,使得车管所能够记录第一车辆的车牌号码和第二车辆的车牌号码,方便后续将第一车辆的信息和第二车辆的信息做对比,以验证第一车辆的信息和第二车辆的信息的正确性。For example, the DMV node obtains the vehicle information exchange request from the blockchain network, so that the DMV can record the license plate number of the first vehicle and the license plate number of the second vehicle, so as to facilitate the subsequent transfer of the information of the first vehicle and the second vehicle. The information of the vehicle is compared to verify the correctness of the information of the first vehicle and the information of the second vehicle.
步骤320,响应于车管所节点发送的询问消息,依据第一车辆的信息和第二车辆的信息,生成第一哈希值和第二哈希值。
在一个具体实现中,按照预设方式,对第一车辆的信息进行编码,生成第一编码,并对第一编码进行哈希运算,生成第一哈希值;按照预设方式,对第二车辆的信息进行编码,生成第二编码,并对第二编码进行哈希运算,生成第二哈希值。In a specific implementation, according to a preset method, the information of the first vehicle is encoded to generate a first code, and a hash operation is performed on the first code to generate a first hash value; according to a preset method, the second The information of the vehicle is encoded to generate a second code, and a hash operation is performed on the second code to generate a second hash value.
其中,预设方式可以是预先约定的编码方式,例如,压缩编码方式或非压缩编码方式等。以上对于预设方式仅是举例说明,可根据具体情况进行具体设定,其他未说明的预设方式也在本申请的保护范围之内,在此不再赘述。The preset mode may be a pre-agreed encoding mode, for example, a compressed encoding mode or a non-compressed encoding mode. The above-mentioned preset modes are only examples, and specific settings can be made according to specific conditions. Other unexplained preset modes are also within the scope of protection of the present application, and will not be repeated here.
步骤330,依据预设时间顺序,对第一哈希值和第二哈希值进行排序,获得第一排序结果。Step 330: Sort the first hash value and the second hash value according to the preset time sequence to obtain a first sorting result.
其中,预设时间顺序可以是车辆年检时间的先后顺序,也可以是车辆的购买年限的先后顺序。以上对于预设时间顺序仅是举例说明,可根据具体情况进行具体设定,其他未说明的预设时间顺序也在本申请的保护范围之内,在此不再赘述。Wherein, the preset time sequence may be the sequence of the annual vehicle inspection time, or may be the sequence of the purchase years of the vehicle. The above preset time sequence is only an example, and can be specifically set according to specific conditions. Other unexplained preset time sequences are also within the protection scope of the present application, and will not be repeated here.
步骤340,依据第一排序结果、第一哈希值和第二哈希值,生成并发送应答响应信息至车管所节点。
具体地,当车管所节点获得应答响应信息后,对应答响应信息进行解析,获得第一排序结果、第一哈希值和第二哈希值。然后,依据第一排序结果和车管所节点计算的第二排序结果,更新第一车辆的车牌号码和第二车辆的车牌号码。例如,可通过对比第一排序结果和第二排序结果,若确定第一排序结果和第二排序结果相同,则确定可以更新第一车辆的车牌号码和第二车辆的车牌号码。Specifically, after the DMV node obtains the response response information, it parses the response response information to obtain the first sorting result, the first hash value and 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 first sorting result and the second sorting result calculated by the DMV node. For example, by comparing the first sorting result and the second sorting result, if it is determined that the first sorting result and the second sorting result are the same, it is determined that the license plate number of the first vehicle and the license plate number of the second vehicle can be updated.
其中的更新第一车辆的车牌号码和第二车辆的车牌号码,可以是将第一车辆的车牌号码和第二车辆的车牌号码进行互换,以满足车主的个性化要求。The updating of the license plate number of the first vehicle and the license plate number of the second vehicle may be by exchanging the license plate number of the first vehicle and the license plate number of the second vehicle to meet the personalized requirements of the owner.
在本实施例中,通过发送车辆信息交换请求,使得车管所节点能够获得终端的需求,当接收到车管所节点发送的询问消息时,能够依据第一车辆的信息和第二车辆的信息,生成第一哈希值和第二哈希值,并依据预设时间顺序,对第一哈希值和第二哈希值进行排序,获得并发送第一排序结果给车管所节点,使得车管所节点能够将第一排序结果和城管所节点自己计算获得的第二排序结果进行对比,来确定更新第一车辆的车牌号码和第二车辆的车牌号码,以满足中终端的所属用户的个性化要求,同时,避免终端的隐私信息被泄露,保证终端的信息安全性。In this embodiment, by sending a vehicle information exchange request, the node of the vehicle management station can obtain the demand of the terminal. When receiving the inquiry message sent by the node of the vehicle management station, the information of the first vehicle and the information of the second vehicle can be obtained , generate the first hash value and the second hash value, sort the first hash value and the second hash value according to the preset time sequence, obtain and send the first sorting result to the DMV node, so that The vehicle management station node can compare the first sorting result with the second sorting result calculated by the city management office node itself, to determine and update the license plate number of the first vehicle and the license plate number of the second vehicle, so as to meet the needs of the user of the middle terminal. Personalized requirements, and at the same time, prevent the private information of the terminal from being leaked, and ensure the information security of the terminal.
本申请实施例提供了另一种可能的实现方式,其中,在步骤310之前,还包括:通过区块链链下的方式,向车管所节点发送本终端所属用户的身份信息,以使车管所节点依据身份信息为本终端分配区块链信息;从区块链网络中,获取车管所节点发送的第一广播消息,其中,第一广播消息包括区块链信息和本终端所属用户的身份信息。The embodiment of the present application provides another possible implementation manner, wherein, before
通过区块链链下的方式,发送本终端所属用户的身份信息给车管所节点,使得车管所节点能够依据该身份信息为本终端分配区块链信息,保证本终端的区块链信息和本终端所属用户的身份信息相对应,使得区块链网络中的其他节点能够及时的验证本终端所属用户的身份信息的真实性。Send the identity information of the user to which the terminal belongs to the DMV node by means of the blockchain chain, so that the DMV node can allocate the blockchain information to the terminal according to the identity information and ensure the blockchain information of the terminal. Corresponding to the identity information of the user to which the terminal belongs, so that other nodes in the blockchain network can timely verify the authenticity of the identity information of the user to which the terminal belongs.
图4为本申请实施例提供的一种车管所节点服务器的结构示意图,该服务器的具体实施可参见实施例一的相关描述,重复之处不再赘述。值得说明的是,本实施方式中的服务器的具体实施不局限于以上实施例,其他未说明的实施例也在本服务器的保护范围之内。FIG. 4 is a schematic structural diagram of a node server of a vehicle management station according to an embodiment of the present application. For the specific implementation of the server, reference may be made to the relevant description of Embodiment 1, and repeated details will not be repeated. It should be noted that the specific implementation of the server in this embodiment is not limited to the above embodiments, and other unexplained embodiments are also within the protection scope of the server.
如图4所示,该车管所节点服务器具体包括如下模块:As shown in Figure 4, the node server of the vehicle management station specifically includes the following modules:
分配模块401,用于通过区块链链下的方式,获得终端所属用户的身份信息,并依据身份信息为终端分配区块链信息。The allocation module 401 is configured to obtain the identity information of the user to which the terminal belongs by means of the blockchain, and allocate the blockchain information to the terminal according to the identity information.
第一获取模块402,用于从区块链网络中,获取终端发送的车辆信息交换请求,其中,车辆信息交换请求包括第一车辆的车牌号码和第二车辆的车牌号码。The first obtaining module 402 is configured to obtain the vehicle information exchange request sent by the terminal from the blockchain network, wherein the vehicle information exchange request includes the license plate number of the first vehicle and the license plate number of the second vehicle.
发送模块403,用于依据所述终端的区块链信息,发送询问消息给所述终端。The sending module 403 is configured to send an inquiry message to the terminal according to the blockchain information of the terminal.
第二获取模块404,用于响应于所述终端通过移动交换网发送的应答响应信息,获得第一排序结果、第一哈希值和第二哈希值,其中,所述第一排序结果是所述终端依据所述第一哈希值和所述第二哈希值生成的排序结果,所述第一哈希值是所述终端对第一编码进行哈希运算获得的值,所述第一编码是所述终端按照预设方式对第一车辆的信息进行编码获得的值;所述第二哈希值是所述终端对第二编码进行哈希运算获得的值,所述第二编码是所述终端按照所述预设方式对第二车辆的信息进行编码获得的值。The second obtaining module 404 is configured to obtain a first sorting result, a first hash value and a second hash value in response to the response response information sent by the terminal through the mobile switching network, wherein the first sorting result is A sorting result generated by the terminal according to the first hash value and the second hash value, where the first hash value is a value obtained by the terminal performing a hash operation on the first code, and the first hash value is a value obtained by the terminal performing a hash operation on the first code. A 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.
哈希值生成模块405,用于依据预先存储的第一存储信息和第二存储信息,生成第三哈希值和第四哈希值。The hash value generating module 405 is configured to generate a third hash value and a fourth hash value according to the pre-stored first storage information and the second storage information.
排序模块406,用于依据预设时间顺序,对所述第三哈希值和第四哈希值进行排序,获得第二排序结果。The
更新模块407,用于依据所述第二排序结果和所述第一排序结果,更新所述第一车辆的车牌号码和所述第二车辆的车牌号码。The updating
在本实施方式中,通过区块链链下方式,获得终端所属用户的身份信息,并依据该身份信息为终端分配区块链信息,使得能够将重点的身份信息与终端的区块链信息相对应,以验证终端所属用户的身份信息的真实性。在获得终端发送的车辆信息交换请求后,第二发送模块发送询问消息给终端,并通过移动交换网获得终端发送的应答响应信息,进而使用更新模块根据应答响应信息中的第一排序结果和自己计算获得的第二排序结果,来更新第一车辆的车牌号码和第二车辆的车牌号码,避免终端的隐私信息被泄露,提升用户信息的安全性,以提高客户体验度。In this embodiment, the identity information of the user to which the terminal belongs is obtained through the blockchain off-chain method, and the blockchain information is allocated to the terminal according to the identity information, so that the key identity information can be correlated with the blockchain information of the terminal. corresponding to verify the authenticity of the identity information of the user to which the terminal belongs. After obtaining the vehicle information exchange request sent by the terminal, the second sending module sends an inquiry message to the terminal, and obtains the response response information sent by the terminal through the mobile switching network, and then uses the update module according to the first sorting result in the response response information and its own The obtained second sorting result is calculated to update the license plate number of the first vehicle and the license plate number of the second vehicle, so as to avoid leakage of private information of the terminal, improve the security of user information, and improve customer experience.
值得一提的是,本实施方式中所涉及到的各模块均为逻辑模块,在实际应用中,一个逻辑单元可以是一个物理单元,也可以是一个物理单元的一部分,还可以以多个物理单元的组合实现。此外,为了突出本申请的创新部分,本实施方式中并没有将与解决本申请所提出的技术问题关系不太密切的单元引入,但这并不表明本实施方式中不存在其它的单元。It is worth mentioning that each module involved in this embodiment is a logical module. In practical applications, a logical unit may be a physical unit, a part of a physical unit, or multiple physical units. A composite implementation of the unit. In addition, in order to highlight the innovative part of the present application, this embodiment does not introduce units that are not closely related to solving the technical problem raised by the present application, but this does not mean that there are no other units in this embodiment.
图5示出本申请一实施例中的信息更新系统的组成方框图,如图5所示,包括:终端501、车管所节点服务器502和车辆检车厂节点服务器503。FIG. 5 shows a block diagram of the composition of an information update system in an embodiment of the present application. As shown in FIG. 5 , it includes: a terminal 501 , a vehicle management station node server 502 and a vehicle inspection plant node server 503 .
其中,车管所节点服务器502是区块链的创始人节点,以发送经过车管所节点服务器502的私钥签名的广播消息的方式,向区块链中发布创世区块。该广播消息具体包括:终端501的手机号码,车管所节点服务器502的区块链标识和公钥,车辆检车厂节点服务器503的区块链标识和公钥。The DMV node server 502 is the founder node of the blockchain, and publishes the creation block to the blockchain by sending a broadcast message signed by the private key of the DMV node server 502 . The broadcast message specifically includes: the mobile phone number of the terminal 501 , the blockchain identification and public key of the node server 502 of the vehicle management station, and the blockchain identification and public key of the vehicle inspection plant node server 503 .
图6示出本申请一实施例中的信息更新系统的工作方法流程图,如图6所示,具体包括如下步骤。FIG. 6 shows a flowchart of a working method of an information update system in an embodiment of the present application, as shown in FIG. 6 , which specifically includes the following steps.
步骤601,通过区块链链下的方式,终端501发送终端501所属用户的的手机号码和身份信息(例如,终端501的用户的姓名和身份证号码等),给车管所节点服务器502。In
需要说明的是,区块链链下的方式可以包括无线通信方式、点对点通信方式和短距离通信方式等多种不同的非区块链通信方式。以上对于区块链链下的方式仅是举例说明,可根据实际情况具体设定,其他未说明的区块链链下的方式也在本申请的保护范围之内,在此不再赘述。It should be noted that the methods under the blockchain chain can include various non-blockchain communication methods such as wireless communication methods, point-to-point communication methods, and short-distance communication methods. The above methods under the blockchain chain are only examples, and can be set according to the actual situation. Other unexplained methods under the blockchain chain are also within the scope of protection of this application, and will not be repeated here.
步骤602,车管所节点服务器502依据获得终端501所属用户的身份信息为终端501分配区块链信息(例如,区块链标识和终端501的公钥和私钥)。
步骤603,车管所节点服务器502依据终端501所属用户的身份信息和区块链信息,生成并发送第一广播消息至区块链网络中,以使区块链中的各个节点能够获知终端501的区块链信息。
步骤604,终端501对车辆信息交换请求进行私钥签名,生成并发送签名后的车辆信息交换请求至区块链网络中。In
需要说明的是,第一车辆M和第二车辆N都是终端501所属用户名下的车辆。其中的车辆信息交换请求可以包括:终端501的区块链标识、车牌互换标识、使用车管所节点服务器502的公钥按照预先约定算法加密的终端501所属用户的身份信息、使用车管所节点服务器502的公钥按照预先约定算法加密的第一车辆M的车牌号码(例如,京ABC666)、第一车辆M的年检时间有效期(例如,2020年5月31日)、使用车管所节点服务器502的公钥按照预先约定算法加密的第二车辆N的车牌号码(例如,京DEF123)、第二车辆N的年检时间有效期(例如,2021年2月28日)。It should be noted that both the first vehicle M and the second vehicle N are vehicles under the user name to which the terminal 501 belongs. The vehicle information exchange request may include: the blockchain identification of the terminal 501, the license plate exchange identification, the identity information of the user belonging to the terminal 501 encrypted by the public key of the vehicle management station node server 502 according to a pre-agreed algorithm, and the use of the vehicle management station. The license plate number of the first vehicle M (for example, Beijing ABC666) encrypted by the public key of the node server 502 according to a pre-agreed algorithm, the validity period of the annual inspection time of the first vehicle M (for example, May 31, 2020), and the node of the vehicle management station used. The license plate number of the second vehicle N (for example, Beijing DEF123) and the validity period of the annual inspection time of the second vehicle N (for example, February 28, 2021) are encrypted by the public key of the server 502 according to a pre-agreed algorithm.
步骤605,车管所节点服务器502从区块链网络中,获得终端501发送的车辆信息交换请求。首先,车管所节点服务器502查找区块链账本,获得终端501的区块链标识对应的公钥,使用该公钥对车辆信息交换请求的私钥签名进行验证,若验证通过,再使用车管所节点服务器502的私钥,按照预先约定的算法,对车辆信息交换请求中的加密后的各个信息(例如,加密后的终端501所属用户的身份信息、加密后的第一车辆M的车牌号码及其年检时间有效期,加密后的第二车辆N的车牌号码及其年检时间有效期)进行解密,获得终端501所属用户的身份信息、第一车辆M的车牌号码及其年检时间有效期,第二车辆N的车牌号码及其年检时间有效期。车管所节点服务器502节点依据终端501的区块链标识查询数据库,确定以上信息是否正确。若都正确,再查询数据库,以判断第一车辆M和第二车辆N的属地是否是同一个城市,且第一车辆M和第二车辆N的车辆类型是否相同。
步骤606,若确定第一车辆M和第二车辆N的属地是同一个城市(例如,第一车辆M和第二车辆N的属地都是北京)且车辆类型相同(例如,都是非营运类型的私家车),则车管所节点服务器502使用区块链链下的方式(例如,发送短信息给终端501对应的手机号码),依据终端501的区块链信息,发送询问消息给终端501,以询问第一车辆和第二车辆的发动机号码及车检时间。
步骤607,终端501按照预设方式,对第一车辆M的信息和第二车辆N的信息分别进行编码,获得第一编码和第二编码。然后,对第一编码进行哈希运算,获得第一哈希值;对第二编码进行哈希运算,获得第二哈希值。再依据预设时间顺序,对第一哈希值和第二哈希值进行排序,获得第一排序结果;依据第一排序结果、第一哈希值和第二哈希值,生成应答响应信息。
其中,第一车辆M的信息包括:第一车辆M的发送机号码和第一车辆M对应的车辆年检时间,第二车辆N的发送机号码和第二车辆N对应的车辆年检时间。预设时间顺序可以是车辆年检时间的先后顺序,也可以是车辆的购买年限的先后顺序,以上对于预设时间顺序仅是举例说明,具体实现时可根据具体情况具体设定,其他未说明的预设时间顺序也在本申请的保护范围之内,在此不再赘述。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, the transmitter number of the second vehicle N and the vehicle annual inspection time corresponding to the second vehicle N. The preset time sequence can be the sequence of the vehicle's annual inspection time, or the sequence of the vehicle's purchase years. The above is only an example for the preset time sequence, and the specific implementation can be set according to the specific situation, other unexplained The preset time sequence also falls within the protection scope of the present application, and is not repeated here.
步骤608,终端501通过移动交换网的通信方式,发送应答响应信息给车管所节点服务器502。In
具体实现时,终端501可以按照预先约定的车辆年检时间的先后顺序,或,车辆的购买年限的先后顺序,将第一哈希值和第二哈希值分别发送给车管所节点服务器502。In specific implementation, the terminal 501 may send the first hash value and the second hash value to the vehicle management station node server 502 respectively according to the pre-agreed sequence of vehicle annual inspection time, or the sequence of vehicle purchase years.
步骤609,车管所节点服务器502获得终端501发送的第一排序结果、第一哈希值和第二哈希值后,对自己内部预先存储的第一存储信息进行编码,生成第一存储编码,对第二存储信息进行编码,生成第二存储编码;然后对第一存储编码进行哈希运算生成第三哈希值,对第二存储编码进行哈希运算生成第四哈希值。依据预设时间顺序,对第三哈希值和第四哈希值进行排序,获得第二排序结果。若确定同时满足以下条件:第二排序结果和第一排序结果相同、第三哈希值与第一哈希值相同、第四哈希值与第二哈希值相同;则可以对第一车辆M和第二车辆N的车牌号码进行互换,同时,保持第一车辆M的发动机号码、第一车辆M的车检时间、第二车辆N的发动机号码和第二车辆N的车检时间不变。Step 609: After obtaining the first sorting result, the first hash value and the second hash value sent by the terminal 501, the DMV node server 502 encodes the first storage information pre-stored in itself to generate the first storage code. , encode the second storage information to generate a second storage code; then perform a hash operation on the first storage code to generate a third hash value, and perform a hash operation on the second storage code to generate a fourth hash value. Sort the third hash value and the fourth hash value according to the preset time sequence to obtain a second sorting result. 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, and the fourth hash value is the same as the second hash value; The license plate numbers of M and the second vehicle N are exchanged, and at the same time, 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 are kept different. Change.
其中,第一存储信息是预先存储的第一车辆M的信息,第二存储信息是预先存储的第二车辆N的信息;Wherein, the first stored information is pre-stored information of the first vehicle M, and the second stored information is pre-stored information of the second vehicle N;
需要说明的是,第一车辆M和第二车辆N的车牌号码互换后,两辆车辆的具体信息如下:第一车辆M的车牌号码为京DEF123、第一车辆M的发动机号码保持不变、第二车辆M的年检时间有效期为2020年5月31、第二车辆N的车牌号码为京ABC666、第二车辆N的发动机号码保持不变、第二车辆N的年检时间有效期2021年2月28。It should be noted that after the license plate numbers of the first vehicle M and the second vehicle N are exchanged, the specific information of the two vehicles is as follows: the license plate number of the first vehicle M is Beijing DEF123, and the engine number of the first vehicle M remains unchanged. 、The annual inspection period of the second vehicle M is valid until May 31, 2020, the license plate number of the second vehicle N is Beijing ABC666, the engine number of the second vehicle N remains unchanged, and the annual inspection period of the second vehicle N is valid until February 2021 28.
步骤610,车管所节点服务器502将车牌号码互换后的两辆车辆的具体信息记录到本地,并依据记录的信息,生成第二广播消息,并使用自己的私钥对第二广播消息进行签名,然后发送签名后的第二广播消息至区块链网络中,以使车辆检车厂节点服务器503获得并依据第二广播消息更新车辆检车厂节点服务器503的车辆备案信息。In
其中,第二广播消息包括终端的区块链标识、终端所属用户的身份信息、第一哈希值、第二哈希值、更新后的第一车辆的车牌号码和更新后的第二车辆的车牌号码。例如,具体可包括终端501的区块链标识、终端501所属用户的身份证信息的哈希值和身份证信息中的数字信息、终端501所属用户的姓名的哈希值和姓名的文字信息、第一车辆M的车牌号码(京DEF123)、第一车辆M的发动机号码(例如,123456789)对应的哈希值,第二车辆N的车牌号码(京ABC666)和第二车辆N的发动机号码(例如,111222333)对应的哈希值。The second 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 information of the second vehicle. License plate number. For example, it may specifically include the blockchain identifier of the terminal 501, the hash value of the ID card information of the user to which the terminal 501 belongs and the digital information in the ID card information, the hash value of the name of the user to which the terminal 501 belongs and the text information of the name, The hash value corresponding to the license plate number of the first vehicle M (Jing DEF123), the engine number of the first vehicle M (for example, 123456789), the license plate number of the second vehicle N (Jing ABC666) and the engine number of the second vehicle N ( For example, the hash value corresponding to 111222333).
需要说明的是,第二广播消息中的信息均需要进行加密(例如,计算各个信息的哈希值),以保证用户的信息隐私和车辆的信息隐私不被泄露。It should be noted that, the information in the second broadcast message needs to be encrypted (for example, the 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.
步骤611,车辆检车厂节点服务器503从区块链网络中,获得第二广播消息后,查找区块链账本,获得并使用车管所节点服务器502的公钥对第二广播信息的私钥签名进行验证,若验证通过,则根据第一车辆M和第二车辆N的车牌号码查找自己的内部数据库,获得终端501的身份信息、第一车辆M的信息和第二车辆N的信息。然后,将第二广播信息中的终端501所属用户的身份信息与自己的内部数据库存储的终端501所属用户的身份信息进行对比,将第二广播信息中的第一车辆M的发动机号码与自己的内部数据库存储的第一车辆M的发动机号码进行对比,将第二广播信息中的第二车辆N的发动机号码与自己的内部数据库存储的第二车辆N的发动机号码进行对比,若以上对比结果都是相同,则依据第二广播信息,更新本地存储的车辆备案信息。例如,使用终端501的区块链标识、终端501所属用户的身份证信息、第一车辆M的车牌号码(京DEF123)、第一车辆M的发动机号码(例如,123456789)、第二车辆N的车牌号码(京ABC666)和第二车辆N的发动机号码(例如,111222333)更新本地的车辆备案信息。Step 611: After obtaining the second broadcast message from the blockchain network, the vehicle inspection plant node server 503 searches the blockchain ledger, and obtains and uses the public key of the DMV node server 502 to sign the private key of the second broadcast message. After verification, if the verification is passed, search its own 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, compare the identity information of the user to which the terminal 501 belongs in the second broadcast information with the identity information of the user to which the terminal 501 belongs stored in its own internal database, and compare the engine number of the first vehicle M in the second broadcast information with its own The engine number of the first vehicle M stored in the internal database is compared, and the engine number of the second vehicle N in the second broadcast information is compared with the engine number of the second vehicle N stored in its own internal database. If they are the same, the locally stored vehicle filing information is updated according to the second broadcast information. For example, use the blockchain identification of the terminal 501, the ID 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 (for example, 123456789), the The license plate number (Jing ABC666) and the engine number of the second vehicle N (for example, 111222333) update the local vehicle registration information.
在本实施例中,通过区块链链下的方式,终端向车管所节点服务器备案该终端所属用户的身份信息和手机号码,以使车管所节点服务器为该终端分配一个区块链标识、公钥和私钥,区块链中的各个节点能够根据该终端的区块链标识验证该终端所属用户的身份信息的真实性的。通过预设方式,分别对第一车辆和第二车辆的发动机号码和车检时间进行编码,并计算编码的哈希值,进而对按照预设时间顺序,对两个哈希值进行排序,使用发送短信息的方式,使车管所节点服务器能够验证两个车辆的发动机号码和车检时间是否正确,避免动机号码和车检时间被泄露,提高车辆信息的安全性。In this embodiment, the terminal records the identity information and mobile phone number of the user to which the terminal belongs to the node server of the DMV by means of the blockchain off-chain, so that the node server of the DMV assigns a blockchain identifier to the terminal. , public key and private key, each node in the blockchain can verify the authenticity of the identity information of the user to which the terminal belongs according to the blockchain identification of the terminal. Through a preset method, the engine numbers and vehicle inspection time of the first vehicle and the second vehicle are encoded respectively, and the encoded hash values are calculated, and then the two hash values are sorted according to the preset time sequence, using The method of sending short messages enables the node server of the DMV to verify whether the engine numbers and vehicle inspection time of the two vehicles are correct, avoiding the leakage of the engine number and vehicle inspection time, and improving the security of vehicle information.
可以理解的是,以上实施方式仅仅是为了说明本申请的原理而采用的示例性实施方式,然而本申请并不局限于此。对于本领域内的普通技术人员而言,在不脱离本申请的精神和实质的情况下,可以做出各种变型和改进,这些变型和改进也视为本申请的保护范围。It should be understood that the above embodiments are only exemplary embodiments adopted to illustrate the principles of the present application, but the present application is not limited thereto. For those skilled in the art, various modifications and improvements can be made without departing from the spirit and essence of the present application, and these modifications and improvements are also regarded as the protection scope of the present application.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010743632.2ACN111885072B (en) | 2020-07-29 | 2020-07-29 | Information updating method, server and terminal |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010743632.2ACN111885072B (en) | 2020-07-29 | 2020-07-29 | Information updating method, server and terminal |
| Publication Number | Publication Date |
|---|---|
| CN111885072Atrue CN111885072A (en) | 2020-11-03 |
| CN111885072B CN111885072B (en) | 2021-12-14 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010743632.2AActiveCN111885072B (en) | 2020-07-29 | 2020-07-29 | Information updating method, server and terminal |
| Country | Link |
|---|---|
| CN (1) | CN111885072B (en) |
| 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 |
| 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 |
| Title |
|---|
| VIKAS HASSIJA等: "A Blockchain-Based Framework for Lightweight Data Sharing and Energy Trading in V2G Network", 《IEEE TRANSACTIONS ON VEHICULAR TECHNOLOGY》* |
| 陈葳葳等: "基于区块链技术的车联网高效匿名认证方案", 《JOURNAL OF COMPUTER APPLICATIONS》* |
| Publication number | Publication date |
|---|---|
| CN111885072B (en) | 2021-12-14 |
| Publication | Publication Date | Title |
|---|---|---|
| US10135616B2 (en) | Revocation of cryptographic keys in the absence of a trusted central authority | |
| CN109191272B (en) | Data processing method, device, storage medium and equipment for electronic bill | |
| US10341431B2 (en) | System and method for announcing cryptographic keys on a blockchain | |
| CN112950229A (en) | Block chain composite tracing method and tracing and identification analysis system | |
| CN114584316A (en) | Decentralized DID identity aggregation verification method and device for Internet of things | |
| CN111490873A (en) | Block chain-based certificate information processing method and system | |
| CN113420277B (en) | Digital identity management and verification method based on intelligent contract | |
| CN109245897B (en) | A node authentication method and device based on non-interactive zero-knowledge proof | |
| KR20170134804A (en) | Method of secure communications in vehicular cloud | |
| CN110224838A (en) | Data managing method, device and storage medium based on block chain | |
| CN114157430B (en) | A blockchain-based ship track monitoring system | |
| CN112235290A (en) | Block chain-based Internet of things equipment management method and first Internet of things equipment | |
| CN110337100B (en) | Method, terminal and system for adding secondary card of No. 1 multi-card business based on blockchain | |
| CN111935252B (en) | Information updating method based on block chain and server | |
| CN112988412B (en) | Edge caching method, base station and system based on block chain network | |
| CN114265815A (en) | Traffic media data storage method, server, storage medium and system | |
| CN111885072A (en) | Information update method, server and terminal | |
| CN112653704A (en) | Intelligent logistics safety information transmission method based on block chain technology | |
| CN109088734B (en) | Coding method and system | |
| CN111866010B (en) | Method and device for updating vehicle information | |
| CN113472814B (en) | Automatic management method for realizing IP object filing | |
| CN111866009B (en) | Vehicle information updating method and device | |
| CN115412362A (en) | Data acquisition method, server and terminal based on carbon emission | |
| CN110599386B (en) | Identity authentication method, device, storage medium and computer equipment | |
| CN111885073B (en) | Vehicle granting method and server |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |