Method, system and server for verifying the information security of online car-hailing service
Through the use of dual -layer blockchain networks in the online car rental platform to verify and manage drivers and vehicle information, the problem of security hazards of driver qualification review and information verification in the existing technologies has been solved. Verification and management.
Patent Information
- Application Number
- CN202011613216.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-30
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2040-12-30
AI Technical Summary
The existing online ride-hailing platforms have problems such as confusing management, incomplete credit information and inaccurate information verification in terms of driver qualification review and information verification, resulting in the inability to ensure travelers' safety.
Adopt a pre -established dual -layer blockchain network, obtain the registration data set of the online car entry platform, conduct driver information and the legitimate verification of vehicle information, and generate and link to verify the driver's block and online vehicle block. And add it to the dual -layer blockchain network for matching verification to ensure that the driver's information corresponds to the vehicle information.
It achieves decentralized management of online car-hailing driver qualifications, reduces the cost of manual verification, improves the verification effect of online car-hailing information security, and ensures the accuracy and security of driver information and vehicle information.
Smart Images

Figure CN112651754B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and in particular to a method, system and server for verifying the information security of an online car-hailing service. Background Art
[0002] At present, the convenient and fast C2C basis of online car-hailing has supported a large number of travel needs. Compared with taxis, online car-hailing has greatly filled the gap in short-distance travel needs that taxis and public transportation cannot cover. Online car-hailing can know in advance who is using the car, where and when, and can accurately calculate the arrival time at the destination of the trip, and can even share the dynamic trajectory with friends and family at any time. This shared travel mode of online car-hailing is becoming more and more popular.
[0003] However, with the occurrence of several vicious social incidents involving online ride-hailing services in the past, the public has also noticed the potential safety hazards of online ride-hailing services and the chaotic management of some platforms, which has resulted in the inability to ensure the safety of travelers. From the perspective of supervision and major platforms, it is imperative to increase the intensity of driver qualification review and real-time supervision of drivers' driving behavior. However, the standards of major platforms are different, the qualification review process is different, and the management restrictions are different. There are safety hazards such as incomplete driver credit information and the inability to accurately verify information. Summary of the invention
[0004] The purpose of the present invention is to provide a method, system and server for verifying the information security of online ride-hailing vehicles, which can effectively and decentralizedly manage the qualifications of online ride-hailing drivers, greatly reduce the cost of manual verification, and improve the verification effect of the information security of online ride-hailing vehicles.
[0005] In the first aspect, the present invention provides a method for verifying the information security of an online car-hailing service, which is applied to a server; the server is respectively connected to a pre-established two-layer blockchain network and a user terminal; the user terminal includes an online car-hailing platform terminal; the method includes: obtaining a registration data set of the online car-hailing platform terminal; the registration data set includes driver information and vehicle information; performing information legitimacy verification on the driver information and the vehicle information; generating a driver block based on the verified legal driver information, and generating an online car-hailing block based on the verified legal vehicle information; performing link verification on the driver block and the online car-hailing block, and after the link verification passes, adding the driver block to the driver chain of the pre-established two-layer blockchain network, and adding the online car-hailing block to the online car-hailing chain of the pre-established two-layer blockchain network; performing matching verification on the driver chain and the online car-hailing chain, and determining the matching result.
[0006] In an optional implementation, the user terminal also includes a traffic management platform terminal; the method also includes: obtaining driver credit information and online car-hailing record information; the driver credit information and online car-hailing record information are updated by sending the updated information to the online car-hailing platform terminal through the traffic management platform terminal; based on the driver credit information and online car-hailing record information, the corresponding driver information and vehicle information in the registration data set are updated.
[0007] In an optional embodiment, the driver block includes at least a first timestamp, driver information, and online car-hailing link information; wherein the driver information includes the driver's credit score; the online car-hailing link information includes the vehicle ID corresponding to the current driver; the online car-hailing block includes at least a second timestamp, vehicle information, and driver link information; wherein the driver link information includes the driver ID corresponding to the current vehicle.
[0008] In an optional embodiment, the method also includes: encrypting the driver block and the online car-hailing block; for the driver block, generating a first public key through the block Merkel number and the first timestamp, and encrypting it through the first private key corresponding to the first public key; for the online car-hailing block, generating a second public key through the block Merkel number and the second timestamp, and encrypting it through the second private key corresponding to the second public key.
[0009] In an optional embodiment, the step of adding the driver block to the driver chain of a pre-established two-layer blockchain network, and adding the online car-hailing block to the online car-hailing chain of the pre-established two-layer blockchain network, includes: for the driver block, decrypting the driver block by means of a first public key; adding the decrypted driver block to the driver chain of the pre-established two-layer blockchain network; sending the joining information of the driver block to all blocks in the pre-established two-layer blockchain network through the first central node of the driver chain; for the online car-hailing block, decrypting the online car-hailing block by means of a second public key; adding the decrypted online car-hailing block to the online car-hailing chain of the pre-established two-layer blockchain network based on a second timestamp; sending the joining information of the online car-hailing block to all blocks in the pre-established two-layer blockchain network through the second central node of the online car-hailing chain.
[0010] In an optional embodiment, the steps of matching and verifying the driver chain and the online car-hailing chain and determining the matching result include: verifying the relationship between the driver chain and the online car-hailing chain of a pre-established two-layer blockchain network based on a preset consensus algorithm, and determining the matching result after both the driver chain and the online car-hailing chain are successfully verified.
[0011] In an optional embodiment, the step of verifying the relationship between the driver chain and the online car-hailing chain of a pre-established two-layer blockchain network based on a preset consensus algorithm includes: obtaining a consensus request sent by the client and sending it to a first central node and a second central node; sending the consensus request to all driver blocks of the driver chain through the first central node, and at the same time sending the consensus request to all online car-hailing blocks of the online car-hailing chain through the second central node, so that all nodes of the driver chain and all nodes of the online car-hailing chain execute the preset consensus algorithm; wherein the preset consensus algorithm includes a preset nested verification PBFT consensus algorithm; when each node of the driver chain and each node of the online car-hailing chain feed back the consensus result to the user terminal, the matching result is determined.
[0012] In a second aspect, the present invention provides a system for verifying the information security of an online car-hailing vehicle. The system for verifying the information security of an online car-hailing vehicle comprises a pre-established two-layer blockchain network, and a server and a user terminal respectively connected to the two-layer blockchain network; wherein the user terminal comprises an online car-hailing vehicle platform terminal and a traffic management office platform terminal.
[0013] In a third aspect, the present invention provides a server comprising a processor and a memory, wherein the memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement a method for verifying the information security of an online car-hailing service according to any one of the aforementioned implementations.
[0014] In a fourth aspect, the present invention provides a computer-readable storage medium storing machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the method for verifying the information security of an online car-hailing service according to any one of the aforementioned implementations.
[0015] The method, system and server for verifying the information security of online car-hailing provided by the present invention are applied to a server connected to a pre-established double-layer blockchain network and a user terminal respectively, wherein the user terminal includes an online car-hailing platform terminal. The method first obtains a registration data set of the online car-hailing platform terminal, and the registration data set includes driver information and vehicle information, and the driver information corresponds to the vehicle information. Then the driver information and vehicle information are verified for information legitimacy, and after the verification is legal, a driver block is generated based on the driver information, and an online car-hailing block is generated based on the vehicle information. The driver block and the online car-hailing block are linked and verified, and after the link verification passes, the driver block is added to the driver chain of the pre-established double-layer blockchain network, and the online car-hailing block is added to the online car-hailing chain of the pre-established double-layer blockchain network, that is, the double-layer blockchain network includes a driver chain and an online car-hailing chain corresponding to the driver chain, and the driver chain and the online car-hailing chain are matched and verified, and the matching result is determined to ensure that the driver information corresponds to the vehicle information, thereby realizing the verification of the information security of the online car-hailing. The above method can effectively decentralize the management of online car-hailing driver qualifications through a pre-established two-layer blockchain network, greatly reduce the cost of manual verification, and improve the verification effect of online car-hailing information security. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0017] Figure 1 A schematic diagram of the structure of a pre-established two-layer blockchain network provided in an embodiment of the present invention;
[0018] Figure 2 A flowchart of a method for verifying the information security of an online car-hailing service provided by an embodiment of the present invention;
[0019] Figure 3 A schematic diagram of the structure of a system for verifying the information security of an online car-hailing service provided by an embodiment of the present invention;
[0020] Figure 4 A schematic diagram of the structure of a server provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0022] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0023] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0024] In the description of the present invention, it should be noted that the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0025] In the description of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "connected" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0026] Some embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0027] For ease of understanding, a method for verifying the information security of a ride-hailing vehicle provided by an embodiment of the present invention is first described in detail. The method is applied to a server, which is connected to a pre-established two-layer blockchain network and a user terminal, respectively. The user terminal includes a ride-hailing vehicle platform terminal. The pre-established two-layer blockchain network can be found in Figure 1As shown, the pre-established two-layer blockchain network includes an upper layer and a lower layer, the upper layer is a driver chain formed by driver blocks, and the lower layer is a car-hailing chain formed by car-hailing blocks; wherein each driver block includes a vehicle link, which corresponds to the corresponding car-hailing block; similarly, the car-hailing block also includes a driver link, which corresponds to the driver block. Through the pre-established two-layer blockchain network, it can be ensured that the driver information and vehicle information (that is, the car-hailing information) are recorded in a two-layer manner, further improving the security and reliability of the information.
[0028] Further, the online car-hailing information security verification method provided by the embodiment of the present invention can be found in Figure 2 As shown, the method mainly includes the following steps S202 to S210:
[0029] Step S202, obtaining a registration data set of the online car-hailing platform terminal, the registration data set including driver information and vehicle information.
[0030] In one embodiment, since the same driver may register information on multiple platforms, there may be one or more online ride-hailing platform terminals, and the driver information and vehicle information included in the registration data set are corresponding information. It can be understood that when the driver registers information on the online ride-hailing platform, it is necessary to register detailed information on the individual and the vehicle. Therefore, the driver information includes at least name, gender, age, ID number, household registration, driver's license number, driving experience, driving vehicle model, etc. The vehicle information includes at least vehicle signal, age, license plate number, whether it is an electric car, color, etc.
[0031] Step S204: verify the legitimacy of the driver information and vehicle information.
[0032] Information legitimacy verification includes the legitimacy verification of the driver's driving-related information, such as whether the driver has committed non-compliant behaviors such as suspension of business penalties, whether the vehicle information is illegal, whether it has been scrapped, etc. By verifying the legitimacy of driver information and vehicle information, the accuracy and legality of the information can be guaranteed.
[0033] Step S206, generating a driver block based on the driver information after verification of legality, and generating an online car-hailing block based on the vehicle information after verification of legality.
[0034] In one embodiment, after the verification is legal, that is, after determining that the driver information and the corresponding vehicle information are both legal, the generated driver block may include a timestamp, block height, version number, driver specific information, etc., wherein the driver specific information is added with a corresponding credit score, which may be a score evaluated by platform passengers, or a credit score provided by traffic control (such as whether it frequently violates traffic rules, etc.). The online car-hailing block may include a timestamp, block height, vehicle specific information, driver link information, etc., wherein the driver link is the current driver ID of the online car-hailing. It is understandable that there may be two drivers for the same vehicle (such as partners, couples, etc.), so through the driver link of the online car-hailing block, it is possible to adapt to real-time changes in human-vehicle matching, thereby improving the flexibility of information recording.
[0035] Step S208, perform link verification on the driver block and the online car-hailing block, and after the link verification is passed, add the driver block to the driver chain of the pre-established two-layer blockchain network, and add the online car-hailing block to the online car-hailing chain of the pre-established two-layer blockchain network.
[0036] Link verification is to verify whether the driver block has a corresponding link relationship of the online car-hailing block, and whether the online car-hailing block has a driver block of the corresponding chain relationship. It is understandable that if the online car-hailing block corresponding to the driver block is empty, it means that the link verification fails, that is, the driver information does not find the corresponding online car-hailing information. Therefore, in one embodiment, only the blocks that have passed the link verification (that is, the driver blocks and online car-hailing blocks with corresponding link relationships) are added to the pre-established double-layer blockchain network. In addition, in this embodiment, since the blockchain network is a double-layer blockchain network (it can also be a double-layer embedded alliance chain structure), the driver block is added to the driver chain of the pre-established double-layer blockchain network, and the online car-hailing block is added to the online car-hailing chain of the pre-established double-layer blockchain network, and the vehicle link in the driver block corresponds to the driver link of the corresponding online car-hailing block.
[0037] Step S210, perform matching verification on the driver chain and the online car-hailing chain, and determine the matching result.
[0038] In one embodiment, the matching verification may be performed by a consensus algorithm, such as a Practical Byzantine Fault Tolerance (PBFT) consensus algorithm, or other consensus algorithms may be selected based on actual conditions.
[0039] The verification method for the information security of online car-hailing provided by the embodiment of the present invention first obtains the registration data set of the online car-hailing platform terminal, and the registration data set includes driver information and vehicle information, and the driver information corresponds to the vehicle information. Then the driver information and vehicle information are verified for information legitimacy, and after the verification is legal, a driver block is generated based on the driver information, and an online car-hailing block is generated based on the vehicle information. When the driver block and the online car-hailing block are correctly linked, the driver block is added to the driver chain of the pre-established double-layer blockchain network, and the online car-hailing block is added to the online car-hailing chain of the pre-established double-layer blockchain network, that is, the double-layer blockchain network includes the driver chain and the online car-hailing chain corresponding to the driver chain, and the driver chain and the online car-hailing chain are matched and verified, and the matching result is determined to ensure that the driver information and the vehicle information correspond, thereby realizing the verification of the information security of the online car-hailing. The above method can effectively manage the qualifications of online car-hailing drivers in a decentralized manner through a pre-established double-layer blockchain network, greatly reduce the cost of manual verification, and improve the verification effect of the information security of online car-hailing.
[0040] In order to ensure the further accuracy of the driver information and vehicle information, the above-mentioned user terminal may also include a traffic control station platform terminal. Furthermore, the server may obtain the driver's credit information and online car-hailing record information. The driver's credit information and online car-hailing record information are updated information sent to the online car-hailing platform terminal through the traffic control station platform terminal. The driver information is whether the driver has received customer complaints, whether the bill is delayed, etc. The online car-hailing record information includes information such as whether the vehicle is in violation of traffic rules, whether it has undergone annual inspection, whether it has been scrapped, etc. In one embodiment, when the driver violates traffic rules, the violation event / user complaint event information may be sent to the online car-hailing platform terminal through the traffic control station platform terminal, so as to update the corresponding driver information and vehicle information in the registration data set based on the driver's credit information and online car-hailing record information.
[0041] In one embodiment, the driver's specific information is added with a corresponding credit score, and the initial value of the credit score is Score 0 is the initial default score, a n It is a covariant parameter for violation records, which is formulated according to specific circumstances. In addition, driver rating information cannot be shared between different platforms. For example, a driver has driving qualifications on multiple platforms, but information such as bad performance cannot be shared.
[0042] After the above information is verified to be legitimate, the driver block generated based on the driver information may include at least the first timestamp, driver information, and online car-hailing link information; wherein the driver information includes the driver's credit score, and the online car-hailing link information includes the vehicle ID corresponding to the current driver. It can be understood that the correspondence between the driver and the vehicle may include a one-to-one, one-to-many, or many-to-one relationship, and the vehicle ID corresponding to the online car-hailing link information may be one or more. The vehicle information corresponding to the current driver can be associated through the online car-hailing link information.
[0043] The generated online car-hailing block may include at least a second timestamp, vehicle information, and driver link information, wherein the driver link information includes the driver ID corresponding to the current vehicle. Similarly, the driver ID corresponding to the driver link information may be one or more.
[0044] After generating the driver block (also called the driver full node) and the online car-hailing block (also called the vehicle full node), the driver block and the online car-hailing block can be further encrypted. d and the first timestamp d (that is, the timestamp in the driver block) to generate the first public key M d , and by using the first public key M d The corresponding first private key SK d Encrypt and generate signature S d Among them, the following formula can be used to determine: M d =(BMR d ||TimeStamp d );S d =ECC(SK d , M d ). For the online car-hailing block, the block Merkle number BMR can also be used d The second public key is generated by the second timestamp (that is, the timestamp in the online car-hailing block), and the signature is generated by encrypting it with the second private key corresponding to the second public key. The encryption process is the same as the driver block and will not be repeated here.
[0045] In order to effectively filter Byzantine node information, the driver block and the online car-hailing block can be added to the upper and lower alliance chains (that is, the two-layer blockchain network) respectively and then broadcast to the entire network.
[0046] After generating the driver block and the online car-hailing block, the driver block can be further added to the driver chain of the pre-established two-layer blockchain network, and the online car-hailing block can be added to the online car-hailing chain of the pre-established two-layer blockchain network. The specific operations are as follows:
[0047] (1) For the driver block:
[0048] First, the driver block is decrypted by the first public key, and the decrypted driver block is added to the driver chain of the pre-established two-layer blockchain network. For example, in one embodiment, each node on the driver chain (that is, each driver block on the driver chain) can be applied with the public key PK d Decryption verification M J ==M d , where M j =InverseECC(PK d , S d ), if it passes the verification, it will be added to the corresponding alliance chain, and after the chain is added, the joining information of the driver block will be sent to all blocks in the pre-established two-layer blockchain network through the first central node of the driver chain, that is, it will be broadcast to the whole network through the central node of the driver chain.
[0049] (2) For the online car-hailing block:
[0050] The online car-hailing block is decrypted by the second public key, and the decrypted online car-hailing block is added to the online car-hailing chain of the pre-established two-layer blockchain network based on the second timestamp, and the joining information of the online car-hailing block is sent to all blocks in the pre-established two-layer blockchain network through the second central node of the online car-hailing chain. The specific execution steps can be referred to the decryption, chaining and broadcasting operations for the driver block, which will not be repeated here.
[0051] In one embodiment, the relationship between the driver chain and the online car-hailing chain of the pre-established two-layer blockchain network is verified based on a preset consensus algorithm, and after both the driver chain and the online car-hailing chain are successfully verified, the matching result is determined. In this embodiment, since the blockchain network used is a two-layer blockchain network built based on this solution, the consensus algorithm adopts a PBFT consensus mechanism based on nested verification. The PBFT consensus mechanism based on nested verification can be seen in the following steps 1 to 6:
[0052] Step 1: Obtain the consensus request sent by the client and send it to the first central node and the second central node. The client (that is, the user terminal mentioned above) sends a request to the central nodes (the first central node and the second central node) of the two-layer blockchain network.
[0053] Step 2: Send the consensus request to all driver blocks of the driver chain through the first central node, and at the same time send the consensus request to all online car-hailing blocks of the online car-hailing chain through the second central node, so that all nodes of the driver chain and all nodes of the online car-hailing chain execute the preset consensus algorithm; wherein the preset consensus algorithm includes the preset nested verification PBFT consensus algorithm. For example, the double-layer master node broadcasts the request to other nodes at the same time, and the nodes execute the three-stage consensus process of the PBFT algorithm.
[0054] Step 3: After both nodes in the two layers have completed the three-stage consensus process of the PBFT algorithm, they return a message to the above client.
[0055] Step 4: After each node of the driver chain and each node of the online car-hailing chain have fed back the consensus result to the user terminal, the matching result is determined. In one embodiment, the client can also indicate that the consensus has been completed after receiving the same message from as many nodes as possible in the double layer. That is, after each node of the driver chain and the online car-hailing chain of the double-layer blockchain network returns a message, the consensus is completed.
[0056] Step 5: If the client only receives one layer (one layer of the driver chain or the online car-hailing chain) of the same message from as many nodes as possible, it means that the consensus has not been completed correctly. The consensus has not been completed correctly, which means that the correspondence between the online car-hailing chain and the driver chain has not been established. At this time, the View Change event needs to be enforced. For example, if the driver chain has completed the consensus but the online car-hailing chain has not completed the consensus, the driver chain needs to broadcast again and remove the previously added nodes so that the driver chain and the online car-hailing chain can correspond.
[0057] Step 6, after the two-layer consensus is reached, an internal call is made to query and verify the update of the online car-hailing link corresponding to the driver block, and the driver link corresponding to the online car-hailing block. If the correspondence is incorrect, a correction broadcast is made to update it to the correct state. For example, when the driver changes the vehicle, the vehicle link in the corresponding driver block changes, and the driver link in the previous corresponding online car-hailing block must also be changed accordingly and broadcast to the entire network. In one embodiment, when the vehicle information corresponding to the driver changes, the two parties can re-reach a consensus through the accounting method of both parties. When the consensus information can be completed, it means that the information has been successfully updated after the driver changed the vehicle.
[0058] For ease of understanding, the present invention also provides a specific method for verifying the security of online car-hailing information. Figure 3 A structural diagram of a verification system for the information security of an online car-hailing service is shown, which shows the specific structure of a two-layer blockchain network.
[0059] Create a registration dataset S iIncluding name, gender, age, ID number, household registration, driver's license number, driving experience, vehicle model, years of use, license plate number, whether it is an electric car, color and other information. Further, the legitimacy of the identity and driver's license information is verified through information sharing at the traffic control office, as well as previous traffic violation records. Vector E x , where x refers to the number of different violation types and the vector value refers to the corresponding degree / number of violations.
[0060] Generate a driving full node D (that is, generate the driver block mentioned above), generate a vehicle full node C (that is, generate the online car-hailing block mentioned above), and the specific implementation plan can be found in the above embodiment, which will not be repeated here.
[0061] When updating the online car-hailing records, that is, when the driver is punished by suspension of business, the corresponding disposal measures record is updated and the corresponding driver link is deleted. When changing the driver, the same driver ID change operation can be performed.
[0062] When updating the driver's credit record, the driver's credit score is updated through the traffic police's illegal incidents / user complaint incident information. Among them, Re n is the y-dimensional user complaint vector, b n is the corresponding user complaint weight parameter, and Incentive is the reward points for no violation during the period. When the points are lower than a certain level, the business will be suspended / stopped, and the corresponding available vehicle link (i.e. link) will be deleted.
[0063] In addition, through Figure 3 The information sharing of the light node traffic control station shown in can verify the legitimacy of the identity and driver’s license information, as well as the previous traffic violation record vector E x , where x refers to the number of different violation types and the vector value refers to the corresponding degree / number of violations.
[0064] When the specific method for verifying the information security of an online car-hailing vehicle in this embodiment is implemented, its implementation principle and the technical effects produced are the same as those in the aforementioned method embodiment. For the sake of brief description, for some parts not mentioned, please refer to the corresponding contents in the aforementioned method for verifying the information security of an online car-hailing vehicle in this embodiment.
[0065] The present invention provides a system for verifying the information security of an online car-hailing service (also referred to as an online car-hailing service driver qualification and credit points management system based on a double-layered embedded blockchain). The system for verifying the information security of an online car-hailing service includes a pre-established double-layered blockchain network, and a server and a user terminal respectively connected to the double-layered blockchain network; wherein the user terminal includes an online car-hailing service platform terminal and a traffic management office platform terminal.
[0066] An embodiment of the present invention provides a server. Specifically, the server includes a processor and a storage device. The storage device stores a computer program, and when the computer program is executed by the processor, it executes the method described in any one of the above-mentioned embodiments.
[0067] Figure 4 A structural diagram of a server provided in an embodiment of the present invention, the server 100 includes: a processor 40, a memory 41, a bus 42 and a communication interface 43, wherein the processor 40, the communication interface 43 and the memory 41 are connected via the bus 42; the processor 40 is used to execute an executable module stored in the memory 41, such as a computer program.
[0068] The memory 41 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 43 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.
[0069] The bus 42 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0070] Among them, the memory 41 is used to store programs, and the processor 40 executes the program after receiving the execution instruction. The method executed by the device for flow process definition disclosed in any embodiment of the above-mentioned embodiment of the present invention can be applied to the processor 40 or implemented by the processor 40.
[0071] The processor 40 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 40. The above processor 40 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiments of the present invention can be directly embodied as a hardware decoding processor to execute, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 41, and the processor 40 reads the information in the memory 41 and completes the steps of the above method in combination with its hardware.
[0072] The computer program products of the online car-hailing information security verification method, system and server provided in the embodiments of the present invention include a computer-readable storage medium storing non-volatile program code executable by a processor, and a computer program is stored on the computer-readable storage medium. The computer program is executed by the processor to execute the methods described in the previous method embodiments. The specific implementation can be found in the method embodiments, which will not be repeated here.
[0073] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system described above can refer to the corresponding process in the aforementioned embodiment, and will not be repeated here.
[0074] The computer program product of the readable storage medium provided in the embodiment of the present invention includes a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the method described in the previous method embodiment. The specific implementation can be referred to the method embodiment, which will not be repeated here.
[0075] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0076] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for verifying the information security of online car-hailing, characterized in that: The method is applied to a server; the server is connected to a pre-established two-layer blockchain network and a user terminal respectively; the pre-established two-layer blockchain network includes an upper layer and a lower layer, the upper layer is a driver chain formed by driver blocks, and the lower layer is an online car-hailing chain formed by online car-hailing blocks; wherein each driver block includes a vehicle link, and the vehicle link corresponds to the corresponding online car-hailing block; similarly, the online car-hailing block also includes a driver link, and the driver link corresponds to the driver block; the user terminal includes an online car-hailing platform terminal; the method includes: Acquire a registration data set of the online car-hailing platform terminal; the registration data set includes driver information and vehicle information; Performing information legitimacy verification on the driver information and vehicle information; A driver block is generated based on the driver information after verification of legality, and a ride-hailing block is generated based on the vehicle information after verification of legality; the driver block includes at least a first timestamp, driver information, and ride-hailing link information; wherein the driver information includes the driver's credit score; the ride-hailing link information includes the vehicle ID corresponding to the current driver; the ride-hailing block includes at least a second timestamp, vehicle information, and driver link information; wherein the driver link information includes the driver ID corresponding to the current vehicle; Perform link verification on the driver block and the online car-hailing block to verify whether the driver block has an online car-hailing block with a corresponding link relationship, and whether the online car-hailing block has a driver block with a corresponding chain relationship. If the online car-hailing block corresponding to the driver block is empty, the link verification fails. Only after the link verification passes, the driver block is added to the driver chain of the pre-established two-layer blockchain network, and the online car-hailing block is added to the online car-hailing chain of the pre-established two-layer blockchain network; Perform matching verification on the driver chain and the online car-hailing chain, and determine the matching result, so as to verify the security of the online car-hailing information according to the matching result; The step of matching and verifying the driver chain and the online car-hailing chain and determining the matching result includes: Verifying the relationship between the driver chain and the online car-hailing chain of the pre-established two-layer blockchain network based on a preset consensus algorithm, and determining the matching result after both the driver chain and the online car-hailing chain are successfully verified; The step of verifying the relationship between the driver chain and the online car-hailing chain of the pre-established two-layer blockchain network based on a preset consensus algorithm includes: Obtain the consensus request sent by the client and send it to the first central node and the second central node; The consensus request is sent to all driver blocks of the driver chain through the first central node, and at the same time, the consensus request is sent to all online car-hailing blocks of the online car-hailing chain through the second central node, so that all nodes of the driver chain and all nodes of the online car-hailing chain execute a preset consensus algorithm; wherein the preset consensus algorithm includes a preset nested verification PBFT consensus algorithm; When each node of the driver chain and each node of the online car-hailing chain feed back the consensus result to the user terminal, the matching result is determined.
2. The method for verifying the information security of online car-hailing service according to claim 1, characterized in that: The user terminal also includes a traffic management platform terminal; the method also includes: Acquiring driver credit information and online car-hailing record information; the driver credit information and the online car-hailing record information are updated by sending the updated information to the online car-hailing platform terminal through the traffic management office platform terminal; Based on the driver credit information and the online car-hailing record information, the corresponding driver information and vehicle information in the registration data set are updated.
3. The method for verifying the information security of online car-hailing service according to claim 1, characterized in that: The method further includes: encrypting the driver block and the online car-hailing block; For the driver block, generate a first public key by using the block Merkle number and the first timestamp, and encrypt the first public key by using a first private key corresponding to the first public key; For the online car-hailing block, a second public key is generated using the block Merkle number and the second timestamp, and is encrypted using a second private key corresponding to the second public key.
4. The method for verifying the information security of online car-hailing service according to claim 3, characterized in that: The step of adding the driver block to the driver chain of the pre-established double-layer blockchain network, and adding the online car-hailing block to the online car-hailing chain of the pre-established double-layer blockchain network, comprises: For the driver block, decrypting the driver block using the first public key; Adding the decrypted driver block to the driver chain of the pre-established two-layer blockchain network; Sending the joining information of the driver block to all blocks in the pre-established two-layer blockchain network through the first central node of the driver chain; For the online car-hailing block, Decrypting the online car-hailing block using the second public key; Adding the decrypted online car-hailing block to the online car-hailing chain of the pre-established two-layer blockchain network based on the second timestamp; The joining information of the online car-hailing block is sent to all blocks in the pre-established two-layer blockchain network through the second central node of the online car-hailing chain.
5. A verification system for online car-hailing information security, characterized in that: The method for verifying the information security of online car-hailing vehicles according to claim 1, wherein the verification system for the information security of online car-hailing vehicles comprises a pre-established two-layer blockchain network, and a server and a user terminal respectively connected to the two-layer blockchain network; wherein the user terminal comprises an online car-hailing vehicle platform terminal and a traffic control station platform terminal; The pre-established two-layer blockchain network includes an upper layer and a lower layer, wherein the upper layer is a driver chain formed by driver blocks, and the lower layer is an online car-hailing chain formed by online car-hailing blocks; wherein each driver block includes a vehicle link, and the vehicle link corresponds to the corresponding online car-hailing block; similarly, the online car-hailing block also includes a driver link, and the driver link corresponds to the driver block; The driver block includes at least a first timestamp, driver information, and online car-hailing link information; wherein the driver information includes the driver's credit score; the online car-hailing link information includes the vehicle ID corresponding to the current driver; the online car-hailing block includes at least a second timestamp, vehicle information, and driver link information; wherein the driver link information includes the driver ID corresponding to the current vehicle.
6. A server, characterized in that: It includes a processor and a memory, the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the online car-hailing information security verification method described in any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by the processor, the machine-executable instructions prompt the processor to implement the method for verifying the information security of an online car-hailing service as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Intelligent car hailing system and car hailing method based on block chain technique
CN107122838A
Block chain technology-based motor vehicle violation management system construction method
CN108614683A