CN110889525B - Order route deviation event management method and device, server and storage medium - Google Patents

Order route deviation event management method and device, server and storage medium Download PDF

Info

Publication number
CN110889525B
CN110889525B CN201911175811.4A CN201911175811A CN110889525B CN 110889525 B CN110889525 B CN 110889525B CN 201911175811 A CN201911175811 A CN 201911175811A CN 110889525 B CN110889525 B CN 110889525B
Authority
CN
China
Prior art keywords
event
route deviation
order
account
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911175811.4A
Other languages
Chinese (zh)
Other versions
CN110889525A (en
Inventor
蔡弋戈
秦青
杨晨
王乐庆
李琴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201911175811.4A priority Critical patent/CN110889525B/en
Publication of CN110889525A publication Critical patent/CN110889525A/en
Application granted granted Critical
Publication of CN110889525B publication Critical patent/CN110889525B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/02Reservations, e.g. for tickets, services or events
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0645Rental transactions; Leasing transactions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services
    • G06Q50/265Personal security, identity or safety
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/40Business processes related to the transportation industry

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Tourism & Hospitality (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Human Resources & Organizations (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Computer Security & Cryptography (AREA)
  • Educational Administration (AREA)
  • Traffic Control Systems (AREA)

Abstract

The embodiment of the application discloses an order route deviation event management method and device, a server and a storage medium, wherein the method comprises the following steps: receiving an invalidation request for a first order route deviation event; acquiring a public signature verification key of a driver account and a public signature verification key of a passenger account, and verifying the invalid request according to the public signature verification key of the driver account and the public signature verification key of the passenger account; if the verification is passed, the invalid request is sent to a consensus node in the blockchain network, so that the consensus node performs consensus verification on the invalid request, and a consensus confirmation message is returned under the condition that the consensus verification is passed; and under the condition that the received consensus confirmation message meets a preset consensus strategy, generating a route deviation invalid event of a first order route deviation event according to the invalid request, and adding a block containing the route deviation invalid event to the blockchain network. The safety factor of the passengers riding on the net car can be improved.

Description

Order route deviation event management method and device, server and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and apparatus for managing an order route deviation event, a server, and a storage medium.
Background
With the rapid development of society, people travel modes are richer and more various, and the internet of things vehicle becomes a habit of people to travel gradually. Meanwhile, due to the fact that the network vehicle platform lacks of supervision of relevant information of a single driver, the problems of the network vehicle are gradually highlighted, and the most important are trip safety problems, such as intentional detouring of the driver, threat to personal and property safety of passengers and the like. Therefore, how to effectively purify the environment of the net car and improve the safety factor of passengers riding the net car is a problem to be solved.
Content of the application
The embodiment of the application provides an order route deviation event management method and device, a server and a storage medium, so as to improve the safety degree of a network about car and avoid the occurrence of an unexpected event of the network about car.
In a first aspect, an embodiment of the present application provides a method for managing an order route deviation event, including:
receiving an invalidation request aiming at a first order route deviation event, wherein the invalidation request carries a request signature of a driver account and a confirmation signature of a passenger account corresponding to a first riding service order, and the first order route deviation event is generated by a network bus management node under the condition that an actual driving route in the first riding service order is detected to be inconsistent with a pre-planned route;
Acquiring a signature verification public key of the driver account and a signature verification public key of the passenger account, and verifying an invalid request of the first order route departure event according to the signature verification public key of the driver account and the signature verification public key of the passenger account;
if the verification is passed, the invalid request of the first order route deviation event is sent to a consensus node in a blockchain network, so that the consensus node performs consensus verification on the invalid request of the first order route deviation event, and a consensus confirmation message is returned under the condition that the consensus verification is passed;
and under the condition that the received consensus confirmation message meets a preset consensus strategy, generating a route deviation invalid event of the first order route deviation event according to an invalid request of the first order route deviation event, and adding a block containing the route deviation invalid event to a blockchain network.
In a second aspect, an apparatus for managing an order route deviation event according to an embodiment of the present application includes:
the receiving unit is used for receiving an invalid request aiming at a first order route deviation event, wherein the invalid request carries a request signature of a driver account and a confirmation signature of a passenger account corresponding to a first riding service order, and the first order route deviation event is generated by a network bus management node under the condition that an actual driving route in the first riding service order is detected to be inconsistent with a pre-planned route;
The verification unit is used for acquiring the signature verification public key of the driver account and the signature verification public key of the passenger account, and verifying the invalid request of the first order route deviation event according to the signature verification public key of the driver account and the signature verification public key of the passenger account;
the first consensus unit is used for sending the invalid request of the first order route deviation event to a consensus node in the blockchain network if the verification is passed, so that the consensus node performs consensus verification on the invalid request of the first order route deviation event, and returns a consensus confirmation message when the consensus verification is passed;
and the second uplink unit is used for generating a route deviation invalid event of the first order route deviation event according to the invalid request of the first order route deviation event under the condition that the received consensus confirmation message meets a preset consensus strategy, and adding a block containing the route deviation invalid event to a blockchain network.
In a third aspect, a server is provided for an embodiment of the present application, where the server includes a processor, a memory, and a transceiver, where the processor, the memory, and the transceiver are connected to each other, and the memory is configured to store a computer program that supports the electronic device to execute the order route deviation event management method described above, and the computer program includes program instructions; the processor is configured to invoke the program instructions to perform the order route departure event management method as described in one aspect of the embodiments of the application described above.
In a fourth aspect, a storage medium is provided for an embodiment of the present application, where the storage medium stores a computer program, and the computer program includes program instructions; the program instructions, when executed by a processor, cause the processor to perform an order route departure event management method as described in an aspect of an embodiment of the application.
In the embodiment of the application, an invalid request for a first order route deviation event is received by a network appointment vehicle management node; acquiring a public signature verification key of a driver account and a public signature verification key of a passenger account, and verifying an invalid request of a first order route departure event according to the public signature verification key of the driver account and the public signature verification key of the passenger account; if the verification is passed, an invalid request of the first order route deviation event is sent to a consensus node in the blockchain network, so that the consensus node performs consensus verification on the invalid request of the first order route deviation event, and a consensus confirmation message is returned under the condition that the consensus verification is passed; and under the condition that the received consensus confirmation message meets a preset consensus strategy, generating a route deviation invalid event of the first order route deviation event according to the invalid request of the first order route deviation event, and adding a block containing the route deviation invalid event to the blockchain network. Therefore, the route deviation event corresponding to the driver account and the route deviation invalid event of the route deviation event can be searched at any time on the blockchain network, and the safety coefficient of the passengers riding on the network about the car can be improved.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a diagram of one possible system architecture provided by an embodiment of the present application;
FIG. 2 is a flow chart of an order route deviation event management method according to an embodiment of the present application;
FIGS. 3a and 3b are schematic interface diagrams of an invalidation request for a first order route deviation event provided by an embodiment of the present application;
FIG. 4 is a schematic diagram of an interface for a confirmation request of a second order route deviation event according to an embodiment of the present application;
FIG. 5 is a flow chart of another method for managing an order route deviation event according to an embodiment of the present application;
FIG. 6 is a flow chart of another method for managing an order route deviation event according to an embodiment of the present application;
FIG. 7 is a schematic diagram of an order route deviation event management device according to an embodiment of the present application;
Fig. 8 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Referring to fig. 1, a possible system architecture diagram is provided in an embodiment of the present application. As shown in FIG. 1, the system architecture diagram comprises a blockchain network, a network appointment vehicle management node, a terminal where a driver account is located and a terminal where a passenger account is located. Wherein the blockchain network includes a plurality of consensus nodes and a plurality of billing nodes. The method comprises the steps that a terminal where a driver account is located sends the current vehicle position of a vehicle where the driver account is located to a network appointment vehicle management node at regular time, the network appointment vehicle management node determines the actual driving route of a riding service order according to the current vehicle position, compares the actual driving route with a pre-planned route, obtains an order route deviation event corresponding to the driver account and a route deviation invalid event of the order route deviation event in a first preset time according to the driver account through a billing node in a blockchain network if the actual driving route is inconsistent with the pre-planned route, screens the order route deviation event to obtain a route deviation valid event of the order route deviation event corresponding to the driver account, and sends an order route deviation warning to a passenger account according to the route deviation valid event of the order route deviation event. The specific implementation process of the network about vehicle management node sending the order route deviation warning to the passenger account according to the route deviation effective event of the order route deviation event can be referred to as follows: if the number of the route deviation effective events corresponding to the driver account is less than or equal to 3, sending a confirmation request for confirming the order route deviation events to the passenger account in a mode of calling the intelligent contract; if any reply of the confirmation request of the order route deviation event sent by the passenger account is not received within the second preset time of 5 minutes, calling a contact phone of the passenger account by calling the intelligent contract; if the contact phone of the passenger account is not connected within the third preset time of 1 minute, an alarm notification is sent to the preset account 110 by calling the intelligent contract to report a case. In addition, if the number of the route deviation effective events corresponding to the driver account is greater than 3, an alarm notification is sent to the preset account 110 by calling the intelligent contract to report a case.
Referring to fig. 2, a flow chart of an order route deviation event management method is provided in an embodiment of the application. As shown in fig. 2, this method embodiment includes the steps of:
s101, receiving an invalidation request of a first order route deviation event.
Specifically, the network vehicle management node receives an invalidation request for a first order route deviation event, wherein the invalidation request carries a request signature of a driver account and a confirmation signature of a passenger account corresponding to a first riding service order, and the first order route deviation event is generated by the network vehicle management node under the condition that the actual driving route in the first riding service order is detected to be inconsistent with a pre-planned route.
In an alternative embodiment, before receiving the invalidation request for the first order route deviation event, the method comprises:
the network appointment vehicle management node sends the first order route deviation event to the driver account, the driver account sends the invalid request for the first order route deviation event to the passenger account according to the received first order route deviation event and carries a request signature of the driver account, the passenger account returns the invalid request for the first order route deviation event and carries a request signature of the driver account and a confirmation signature of the passenger account according to the invalid request for the first order route deviation event and carries the request signature of the passenger account, and the driver account sends the received invalid request for the first order route deviation event and carries the request signature of the driver account and the confirmation signature of the passenger account to the network appointment vehicle management node.
Specifically, please refer to fig. 3 a-3 b, which are an interface diagram of an invalidation request for a first order route deviation event according to an embodiment of the present application. The method comprises the steps that an internet protocol vehicle management node sends a first route deviation event to a driver account, the driver account generates an invalid request for the first order route deviation event according to a prompt of an interface 100a in fig. 3a after receiving the first route deviation event, encrypts the invalid request for the first order route deviation event by a private key of the driver account in the interface 101a to obtain a request signature of the driver account, then sends the invalid request for the first order route deviation event and the request signature of the driver account to the passenger account according to the prompt of the interface 102a, the passenger account sends the received invalid request for the first order route deviation event and the request signature of the driver account to the passenger account, and the passenger account sends the received invalid request for the first order route deviation event, the request signature of the driver account and the request signature of the driver account to the driver account network management node after receiving the invalid request for the first order route deviation event shown in an interface 100b in fig. 3b sent by the driver account, the passenger account encrypts the request signature of the driver account to obtain a passenger confirmation signature corresponding to the first riding service order account according to the private key of the driver account in the interface 101b after receiving the invalid request for the first order deviation event.
S102, acquiring a public signature verification key of the driver account and a public signature verification key of the passenger account, and verifying an invalid request of the first order route deviation event according to the public signature verification key of the driver account and the public signature verification key of the passenger account.
In an alternative embodiment, the network appointment vehicle management node obtains a signature verification public key of the driver account and a signature verification public key of the passenger account in the blockchain network according to the driver account and the passenger account respectively, decrypts the invalid request of the first order route deviation event according to the signature verification public key of the passenger account to obtain a ciphertext, and further decrypts the ciphertext according to the signature verification public key of the driver account to obtain a first check code;
converting the invalid request of the first order route deviation event into a second check code by adopting a hash algorithm;
and matching the first check code with the second check code, and if the first check code is consistent with the second check code, checking the invalid request of the first order route deviation event.
Among other things, the hash algorithms herein include, but are not limited to: MD4 algorithm, MD5 algorithm, SHA-1 algorithm, SHA-256 algorithm, etc.
Specifically, the network appointment vehicle management node obtains a signature verification public key of the driver account and a signature verification public key of the passenger account through a billing node in the blockchain network according to the driver account and the passenger account respectively, decrypts a confirmation signature of the passenger account carried by an invalid request of a first order route deviation event according to the signature verification public key of the passenger account to obtain a ciphertext, and can understand the ciphertext to be a request signature of the driver account. Step S103 is then performed.
And S103, if the verification is passed, sending the invalid request of the first order route deviation event to a consensus node in the blockchain network, so that the consensus node performs consensus verification on the invalid request of the first order route deviation event, and returning a consensus confirmation message under the condition that the consensus verification is passed.
Specifically, if the verification of the invalidation request of the first order route deviation event by the network vehicle management node passes, the invalidation request of the first order route deviation event is sent to a consensus node in the blockchain, and the consensus node performs consensus on the invalidation request of the first order route deviation event, and the specific consensus process may be: the common identification node decrypts the confirmation signature of the passenger account number carried by the invalid request of the first order route deviation event according to the public signature verification key of the passenger account number to obtain a ciphertext, namely a request signature of the driver account number, decrypts the ciphertext by using the public signature verification key of the driver account number to obtain a first check code, and can be understood that the first check code is a hash value obtained after hash calculation is carried out on the invalid request of the first order route deviation event. Step S104 is then performed.
And S104, generating a route deviation invalid event of the first order route deviation event according to the invalid request of the first order route deviation event under the condition that the received consensus confirmation message meets a preset consensus strategy, and adding a block containing the route deviation invalid event to a blockchain network.
The preset consensus strategy may be that the proportion of the received consensus acknowledgement message returned by the consensus node reaches a preset consensus proportion. For example, if the preset consensus ratio is 51%, the network vehicle management node sends the invalidation request of the first order route deviation event obtained in step S103 to 100 consensus nodes in the blockchain network, and the number of the consensus confirmation messages returned by the consensus nodes is 80, then the proportion of the consensus confirmation messages returned by the consensus nodes is 80% and is greater than the preset consensus ratio of 51%, which indicates that the invalidation request of the first order route deviation event is valid, then the route deviation invalidation event of the first order route deviation event is generated according to the invalidation request of the first order route deviation event, and the blocks containing the route deviation invalidation event of the first order route deviation event are sent to all blockchain nodes (all accounting nodes and all consensus nodes) in the blockchain network, so that all blockchain nodes store the blocks containing the route deviation invalidation event of the first order route deviation event.
Then, the network appointment vehicle management node receives the current vehicle position sent by the driver account at fixed time, and determines an actual driving route in the second riding service order according to the current vehicle position;
comparing the actual driving route with a pre-planned route in the second riding service order, and if the actual driving route is inconsistent with the pre-planned route, acquiring an order route deviation event and a route deviation invalid event of the order route deviation event corresponding to the driver account in a first preset time according to the driver account;
screening the order route deviation event according to the route deviation invalid event of the order route deviation event to obtain a route deviation valid event of the order route deviation event, and sending a second order route deviation warning to the passenger account according to the route deviation valid event of the order route deviation event.
Wherein the route deviation effective event according to the order route deviation event sends a second order route deviation alert to the passenger account number, comprising:
if the number of the route deviation effective events of the order route deviation events is smaller than or equal to a first preset number, calling an intelligent contract, wherein the intelligent contract is used for sending a confirmation request for confirming the second order route deviation event to the passenger account;
If any reply of the confirmation request of the first order route deviation event sent by the passenger account is not received within a second preset time, calling the intelligent contract, wherein the intelligent contract is used for dialing a contact phone of the passenger account;
if the contact telephone of the passenger account is not connected within the third preset time, calling the intelligent contract, wherein the intelligent contract is used for sending an alarm notification to the preset account;
and if the number of the route deviation effective events of the order route deviation events is larger than the first preset number, calling the intelligent contract, wherein the intelligent contract is used for sending alarm notification to the preset account.
For example, the network appointment vehicle management node receives the current vehicle position of the driver account, which is sent from the receiving passenger at every 5 minutes, determines the actual driving route in the second riding service order to enter the deep south road after passing through the deep highway according to the received current vehicle positions, is inconsistent with the pre-planned route in the second riding service order to enter the north loop road after passing through the deep highway, acquires the order route deviation event and the route deviation invalid event of the order route deviation event within one month of 10 month 1 to 10 month 31 of the driver account according to the driver account through the accounting node in the blockchain network as the first order route deviation event, the fourth order route deviation event and the route deviation invalid event of the first order route deviation event, screening the order route deviation events within one month of the driver account number 10 months to obtain a fourth order route deviation event as a route deviation effective event of the order route deviation events of the driver account number 10 months, wherein the number of the route deviation effective events of the order route deviation events is 1 and is smaller than the first preset number of 3, and the network contract vehicle management node calls an intelligent contract for sending a confirmation request for confirming the second order route deviation event to the passenger account number, and particularly, as shown in fig. 4, the interface schematic diagram of the confirmation request of the second order route deviation event is provided in the embodiment of the application. After receiving the confirmation request of the second order route deviation event of the interface 101a in fig. 4, the passenger account operates according to the actual situation, and if the passenger account is not allowed to pass through the passenger account when the passenger account deviates from the pre-planned route in the driving process, the passenger account may further jump to the interface 103b by clicking "no" in the interface 103a to choose whether to alarm the second order route deviation event. And if the network contract car management node does not receive any reply of the confirmation request of the second order route deviation event sent by the passenger account within 5 minutes after the intelligent contract sends the confirmation request of the second order route deviation event to the passenger account, calling the intelligent contract, wherein the intelligent contract is used for dialing a contact phone of the passenger account. If the contact phone of the passenger account is not connected within about 1 minute after the intelligent contract calls the contact phone of the passenger account, the intelligent contract is further called, and the intelligent contract is used for sending an alarm notification to the preset account 110 to report a case.
In the embodiment of the application, once the network appointment vehicle management node finds that the actual running route of the vehicle where the driver account is located is inconsistent with the pre-planned route in the process of completing the riding service order, the order route deviation event and the route deviation invalid event of the order route deviation event within a certain time of the driver account are acquired in the blockchain network, the route deviation valid event of the order route deviation event corresponding to the driver account is further obtained, the prompt of the route deviation event is timely sent to the passenger account according to the route deviation valid event, and if the passenger does not reply within a certain time, an alarm measure is adopted, so that the safety of riding the network appointment vehicle by the passenger can be improved, and the benefit of the passenger is ensured.
Referring to fig. 5, a flow chart of an order route deviation event management method is provided in an embodiment of the application. As shown in fig. 5, this method embodiment includes the steps of:
s201, the network taxi management node compares the actual running route in the first taxi service order with the pre-planned route, and if the actual running route is inconsistent with the pre-planned route, a first order route deviation event is generated.
For example, the network bus tie management node makes an actual driving route in the first bus service order start from the north of the aster, enter a deep south-major road after passing through a wide-deep highway, finally reach a traffic bureau, start from the north of the aster, enter a north-major road after passing through the wide-deep highway, finally reach the traffic bureau, compare, and generate a first order route deviation event if the actual driving route in the first bus service order is inconsistent with the pre-planned route.
S202, the network about vehicle management node sends a first order route deviation event to a consensus node in the blockchain network.
S203, the consensus node performs consensus verification on the first order route deviation event.
In an alternative embodiment, 1 consensus node in the blockchain network broadcasts the first order route deviation event received in step S202 to other 99 consensus nodes through a broadcasting mechanism, then each of the 100 consensus nodes obtains an actual driving route and a pre-planned route in the first riding service order according to an order number of the first riding service order in the first order route deviation event, verifies whether the actual driving route in the first riding service order is consistent with the pre-planned route, and if the consensus node obtains a result that the actual driving route in the first riding service order is inconsistent with the pre-planned route, the step S204 is executed.
And S204, when the common identification verification is passed, the common identification node returns a first common identification confirmation message to the network about vehicle management node.
S205, adding the block containing the first order route deviation event to the blockchain network under the condition that the received first consensus confirmation message meets the preset consensus strategy.
The preset consensus strategy may be that the proportion of the first consensus acknowledgement message returned by the consensus node reaches a preset consensus proportion. For example, if the preset consensus ratio is 51%, and the network vehicle management node receives the first consensus acknowledgement messages returned by 70 consensus nodes in the 100 consensus nodes in step S204, it may be understood that the number of the received consensus acknowledgement messages returned by the consensus nodes is 70, and if the ratio of the consensus acknowledgement messages returned by the consensus nodes is 70%, which is greater than the preset consensus ratio 51%, indicating that the first order path deviation event is valid, the block containing the first order path deviation event is sent to all the blockchain nodes (all the accounting nodes and all the consensus nodes) in the blockchain network, so that all the blockchain nodes store the block containing the first order path deviation event.
S206, the network about vehicle management node sends a first order route deviation event to a terminal where the driver account is located.
S207, the terminal where the driver account is located generates an invalid request of the first order route deviation event according to the first order route deviation event, wherein the invalid request carries a request signature of the driver account.
Before executing step S207, the terminal where the driver account is located may first create a first key pair by using an asymmetric encryption algorithm; the asymmetric encryption algorithm herein may include, but is not limited to: elgamal algorithm (an asymmetric encryption algorithm), rabin algorithm (an asymmetric encryption algorithm), diffie-Hellman algorithm (an asymmetric encryption algorithm), ECC algorithm (elliptic curve encryption algorithm). The first key pair comprises a public signature verification key of a driver account and a private key of the driver account; the public signature verification key of the driver account is used for identifying the identity of the driver account, and the private signature of the driver account is used for signing an invalid request of the first order route deviation event by the terminal where the driver account is located. After the first key pair is created, the terminal where the driver account is located can upload the public signature verification key of the driver account in the first key pair to the blockchain network, and the private key of the driver account is kept by the terminal where the driver account is located.
And then, the terminal where the driver account is located generates an invalid request of the first order route deviation event according to the first order route deviation event, and encrypts the invalid request of the first order route deviation event by using a private key of the driver account to obtain a request signature of the driver account. Step S208 is then performed.
And S208, the terminal where the driver account is located sends an invalid request of the first order route deviation event to the terminal where the passenger account is located, wherein the invalid request carries a request signature of the driver account.
S209, the terminal of the passenger account generates a confirmation signature of the passenger account according to the request signature of the driver account.
The terminal where the passenger account number is located may first create a second key pair using an asymmetric encryption algorithm before executing step S209. The second key pair comprises a public signature verification key of the passenger account and a private key of the passenger account; the public signature verification key of the passenger account is used for identifying the identity of the passenger account, and the private signature of the passenger account is used for signing the request signature of the driver account by the terminal where the passenger account is located. After the second key pair is created, the terminal where the passenger account is located may upload the public signature key of the passenger account in the second key pair to the blockchain network, and the private key of the passenger account is kept by the terminal where the passenger account is located.
And then, the terminal where the passenger account is located encrypts the request signature of the driver account by using the private key of the passenger account to obtain the confirmation signature of the passenger account. Step S210 is then performed.
S210, the terminal where the passenger account number is located sends an invalid request of the first order route deviation event to the network about vehicle management node, wherein the invalid request carries a request signature of the driver account number and a confirmation signature of the passenger account number.
S211, the network about vehicle management node checks an invalid request of the first order route deviation event.
And S212, if the verification passes, the network vehicle-restraining management node sends an invalid request of the first order route deviation event to the consensus node.
S213, the consensus node performs consensus verification on the invalid request of the first order route deviation event.
And S214, if the common identification verification is passed, the common identification node returns a second confirmation message to the network vehicle management node.
And S215, under the condition that the received second consensus confirmation message meets the preset consensus strategy, the network vehicle management node generates a route deviation invalid event of the first order route deviation event according to the invalid request of the first order route deviation event.
S216, the network taxi management node adds the block containing the route deviation invalidation event to the blockchain network.
Here, the specific implementation manner of steps S211 to S216 may refer to descriptions of steps S102 to S104 in the corresponding embodiment of fig. 2, which are not repeated herein.
In the embodiment of the application, the network appointment vehicle management node uploads the order route deviation event and the route deviation invalidation event of the order route deviation event which pass the consensus verification to the blockchain network, and the blockchain has the characteristics of non-falsification and non-falsification, so that the real effectiveness of the order route deviation event corresponding to the driver account and the route deviation invalidation event of the order route deviation event can be ensured.
Referring to fig. 6, a flowchart of another order route deviation event management method is provided in an embodiment of the present application. As shown in fig. 6, this method embodiment includes the steps of:
s301, the network appointment vehicle management node receives an invalidation request for a first order route deviation event.
S302, the network appointment vehicle management node acquires a signature verification public key of a driver account and a signature verification public key of a passenger account, and verifies an invalid request of a first order route deviation event according to the signature verification public key of the driver account and the signature verification public key of the passenger account.
And S303, if the verification is passed, the network vehicle-restraining management node sends an invalid request of the first order route deviation event to a consensus node in the blockchain network, so that the consensus node performs consensus verification on the invalid request of the first order route deviation event, and returns a consensus confirmation message when the consensus verification is passed.
S304, generating a route deviation invalid event of the first order route deviation event according to the invalid request of the first order route deviation event under the condition that the received consensus confirmation message meets the preset consensus strategy, and adding the block containing the route deviation invalid event to the blockchain network.
Here, the specific implementation of steps S301 to S304 may refer to descriptions of steps S101 to S104 in the corresponding embodiment of fig. 2, which are not repeated herein.
S305, the network appointment vehicle management node obtains an order route deviation event and a route deviation invalid event of the order route deviation event corresponding to the driver account in a fourth preset time on the blockchain network according to the driver account, and pushes a riding service order to the driver account according to the order route deviation event and the route deviation invalid event of the order route deviation event.
Specifically, the network appointment vehicle management node obtains an order route deviation event and a route deviation invalid event of the order route deviation event corresponding to the driver account in a fourth preset time on the blockchain network according to the driver account, screens the order route deviation event according to the route deviation invalid event of the order route deviation event to obtain a route deviation valid event of the order route deviation event, and pushes a riding service order to the driver account according to the route deviation valid event of the order route deviation event.
In an alternative embodiment, the ride service order includes a ride start location;
the pushing the riding service order to the driver account according to the effective route deviation event of the order route deviation event comprises the following steps:
if the number of the route deviation effective events of the order route deviation events is larger than a second preset number, not pushing the riding service order to the driver account;
and if the number of the route deviation effective events of the order route deviation event is smaller than or equal to the second preset number, determining a push order value of the driver account according to the distance between the vehicle position of the driver account and the riding starting position of the riding service order and the number of the route deviation effective events of the order route deviation event, and if the push order value of the driver account reaches a preset push order value threshold, pushing the riding service order to the driver account.
For example, the network appointment vehicle management node obtains, according to the driver account, an order route deviation event and a route deviation invalidation event of the order route deviation event within a week from 10 months 24 to 31 months from a billing node in the blockchain network, which are respectively a first order route deviation event, a third order route deviation event and a route deviation invalidation event of the third order route deviation event, and screens the order route deviation event within a last week of the driver account 10 months to obtain a route deviation validation event of the order route deviation event within a last week of the driver account 10 months, which is the first order route deviation event, and the number of the route deviation validation events of the order route deviation event is 1, which is less than a second preset number 3, and then determines a route score of the driver account according to a correspondence between the number of the route deviation validation events of the order route deviation event and the credit score, wherein the correspondence between the number of the route deviation validation events of the order route deviation event and the credit score may be: if the number of the route deviation effective events is 3, 2, 1 and 0, the corresponding credit scores are 40, 60, 80 and 100, respectively, and if the number of the route deviation effective events is more than 3, the riding service order is not pushed to the driver account. And determining the credit score of the driver account to be 80 points according to the corresponding relation.
Then, the network bus contract management node calculates a distance between a vehicle position ' deep subway station ' of the driver account and a bus starting position ' face of the bus service order to be 2 km, and determines a distance score of the driver account according to a corresponding relationship between the distance between the vehicle position of the driver account and the bus starting position of the bus service order and the distance score, wherein the distance score of the driver account can be determined according to the corresponding relationship between the distance between the vehicle position and the bus starting position and the distance score: if the distance between the vehicle position and the riding starting position is 0-1 km, 1-2 km and 3-4 km respectively, the corresponding distance scores are 100-80, 80-60 and 60-40 respectively, and if the distance between the vehicle position and the riding starting position exceeds 4 km, the corresponding distance score is 0. And obtaining the distance score of the driver account number to be 60 points according to the corresponding relation.
Further, the network taxi management node calculates that the push list score of the driver account is 60 x 0.4+80 x 0.6=70 in a weighted manner according to the weights of the credit score and the distance score of 0.6 and 0.4 respectively, and pushes the riding service order to the driver account if the push list score is greater than a preset push list score threshold 60.
In the embodiment of the application, the network appointment vehicle management node verifies the invalid request of the first order route deviation event, sends the invalid request of the first order route deviation event to the consensus node for consensus verification after the verification is passed, uploads the generated route deviation invalid event of the first order route deviation event to the blockchain network under the condition that the consensus verification is passed, and obtains the route deviation effective event of the order route deviation event according to the order route deviation event and the route deviation invalid event of the order route deviation event corresponding to the driver account in a certain time acquired from the blockchain network, and pushes the riding service order to the driver account according to the route deviation effective event, thereby improving the travel safety coefficient of the passenger riding the network appointment vehicle and guaranteeing the benefit of the passenger.
Referring to fig. 7, a schematic diagram of an order route deviation event management device is provided in an embodiment of the application. As shown in fig. 7, the order route deviation event management apparatus includes a receiving unit 701, a checking unit 702, a consensus unit 703, and a uplink unit 704.
A receiving unit 701, configured to receive an invalidation request for a first order route deviation event, where the invalidation request carries a request signature of a driver account and a confirmation signature of a passenger account corresponding to a first riding service order, and the first order route deviation event is generated by a network bus management node when it is detected that an actual driving route in the first riding service order is inconsistent with a pre-planned route;
The verification unit 702 is configured to obtain a public signature verification key of the driver account and a public signature verification key of the passenger account, and verify an invalid request of the first order route deviation event according to the public signature verification key of the driver account and the public signature verification key of the passenger account;
the first consensus unit 703 is configured to send, if the verification passes, an invalidation request of the first order route deviation event to a consensus node in the blockchain network, so that the consensus node performs consensus verification on the invalidation request of the first order route deviation event, and returns a consensus confirmation message if the consensus verification passes;
a first uplink unit 704, configured to generate a route deviation invalidation event of the first order route deviation event according to the invalidation request of the first order route deviation event, and add a block including the route deviation invalidation event to a blockchain network, where the received consensus confirmation message meets a preset consensus policy.
Optionally, the apparatus further includes:
a route deviation event generating unit 705, configured to compare an actual driving route in the first riding service order with the pre-planned route, and if the actual driving route is inconsistent with the pre-planned route, generate the first order route deviation event;
A second consensus unit 706, configured to send the first order route deviation event to a consensus node in the blockchain network, so that the consensus node performs a consensus verification on the first order route deviation event, and returns a consensus confirmation message if the consensus verification passes;
a second uplink unit 707 for adding a block containing the first order route departure event to the blockchain network in case it is confirmed that the received consensus confirmation message meets the preset consensus policy.
Optionally, the apparatus further includes:
an actual travel route determining unit 708 configured to receive a current vehicle position sent by the driver account at a timing, and determine an actual travel route in the second riding service order according to the current vehicle position;
an obtaining unit 709, configured to compare the actual driving route with a pre-planned route in the second riding service order, and if the actual driving route is inconsistent with the pre-planned route, obtain, according to the driver account, an order route deviation event corresponding to the driver account in a first preset time and a route deviation invalidation event of the order route deviation event;
And the route deviation warning unit 710 is configured to screen the order route deviation event according to a route deviation invalid event of the order route deviation event, obtain a route deviation valid event of the order route deviation event, and send a second order route deviation warning to the passenger account according to the route deviation valid event of the order route deviation event.
Optionally, the route deviation warning unit 710 is specifically configured to:
a route deviation event confirming subunit 7101, configured to invoke an intelligent contract if the number of route deviation effective events of the order route deviation events is less than or equal to a first preset number, where the intelligent contract is configured to send a confirmation request for confirming the second order route deviation event to the passenger account;
a dialing passenger phone subunit 7102, configured to invoke the intelligent contract, if any reply of a confirmation request of the second order route deviation event sent by the passenger account is not received within a second preset time, where the intelligent contract is used to dial a contact phone of the passenger account;
a first sending alert notification subunit 7103, configured to invoke the intelligent contract if the contact phone of the passenger account is not connected within a third preset time, where the intelligent contract is used to send an alert notification to a preset account;
The second sending alarm notification subunit 7104 is configured to invoke the smart contract if the number of route deviation valid events of the order route deviation events is greater than the first preset number, where the smart contract is used to send an alarm notification to the preset account.
Optionally, the apparatus further includes:
and the sending unit 711 is configured to send the first order route deviation event to the driver account, where the driver account sends the invalid request for the first order route deviation event and carries a request signature of the driver account to the passenger account according to the received first order route deviation event, and the passenger account returns the invalid request for the first order route deviation event and carries a request signature of the driver account and a confirmation signature of the passenger account according to the invalid request for the first order route deviation event and carries a request signature of the driver account, and the driver account sends the received invalid request for the first order route deviation event and carries a request signature of the driver account and a confirmation signature of the passenger account to the network bus-tie management node.
Optionally, the verification unit 702 may obtain the public signature verification key of the driver account and the public signature verification key of the passenger account, and verify the invalid request of the first order route deviation event according to the public signature verification key of the driver account and the public signature verification key of the passenger account, where the verification includes:
the decryption subunit 7021 is configured to obtain, in the blockchain network, a signature verification public key of the driver account and a signature verification public key of the passenger account according to the driver account and the passenger account respectively, decrypt the invalid request of the first order route deviation event according to the signature verification public key of the passenger account to obtain a ciphertext, and further decrypt the ciphertext according to the signature verification public key of the driver account to obtain a first check code;
a hash computation subunit 7022, configured to convert, by using a hash algorithm, an invalidation request of the first order route deviation event into a second check code;
and a verification result determining subunit 7023, configured to match the first verification code with the second verification code, and if the first verification code is consistent with the second verification code, pass the verification of the invalid request of the first order route deviation event.
Optionally, the apparatus further includes:
and the pushing order unit 712 is configured to obtain, on the blockchain network, an order route deviation event corresponding to the driver account and a route deviation invalid event of the order route deviation event within a fourth preset time according to the driver account, screen the order route deviation event according to the route deviation invalid event of the order route deviation event, obtain a route deviation valid event of the order route deviation event, and push a riding service order to the driver account according to the route deviation valid event of the order route deviation event. Wherein the ride service order includes a ride starting location.
Optionally, the pushing order unit 712 includes, in pushing a riding service order to the driver account according to a route deviation valid event of the order route deviation event:
a first push order subunit 7121, configured to not push the riding service order to the driver account if the number of route deviation valid events of the order route deviation events is greater than a second preset number;
and the second pushing order list unit 7122 is configured to determine a push order value of the driver account according to a distance between a vehicle position of the driver account and a riding starting position of the riding service order and the number of the route deviation valid events of the order route deviation event if the number of the route deviation valid events of the order route deviation event is less than or equal to the second preset number, and push the riding service order to the driver account if the push order value of the driver account reaches a preset push order value threshold.
It will be appreciated that the order route departure event management device 700 is configured to implement the steps performed by the network vehicle management node in the embodiments of fig. 2, 5 and 6. Regarding the specific implementation and corresponding advantageous effects of the functional blocks included in the order route deviation event management device 700 of fig. 7, reference may be made to the foregoing specific descriptions of the embodiments of fig. 2, 5 and 6, which are not repeated herein.
The order route deviation event management device 700 in the embodiment shown in fig. 7 described above may be implemented with the server 800 shown in fig. 8. Referring to fig. 8, a schematic structural diagram of a server is provided in an embodiment of the present application. As shown in fig. 8, the server 800 may include: one or more processors 801, memory 802, and a transceiver 803. The processor 801, the memory 802, and the transceiver 803 are connected through a bus 804. Wherein the transceiver 803 is configured to obtain a public signature verification key of a driver account and a public signature verification key of a passenger account or send a first off-route event and an invalidation request of the first off-route event, and the memory 802 is configured to store a computer program, where the computer program includes program instructions; the processor 801 is configured to execute program instructions stored in the memory 802, and perform the following operations:
Receiving an invalidation request aiming at a first order route deviation event, wherein the invalidation request carries a request signature of a driver account and a confirmation signature of a passenger account corresponding to a first riding service order, and the first order route deviation event is generated by a network bus management node under the condition that an actual driving route in the first riding service order is detected to be inconsistent with a pre-planned route;
acquiring a signature verification public key of the driver account and a signature verification public key of the passenger account, and verifying an invalid request of the first order route departure event according to the signature verification public key of the driver account and the signature verification public key of the passenger account;
if the verification is passed, the invalid request of the first order route deviation event is sent to a consensus node in a blockchain network, so that the consensus node performs consensus verification on the invalid request of the first order route deviation event, and a consensus confirmation message is returned under the condition that the consensus verification is passed;
and under the condition that the received consensus confirmation message meets a preset consensus strategy, generating a route deviation invalid event of the first order route deviation event according to an invalid request of the first order route deviation event, and adding a block containing the route deviation invalid event to a blockchain network.
Optionally, the processor 801 further specifically performs the following operations:
comparing the actual driving route in the first riding service order with the pre-planned route, and if the actual driving route is inconsistent with the pre-planned route, generating a first order route deviation event;
transmitting the first order route deviation event to a consensus node in the blockchain network, so that the consensus node performs consensus verification on the first order route deviation event, and returns a consensus confirmation message when the consensus verification is passed;
and adding a block containing the first order route departure event to the blockchain network in case that the received consensus confirmation message meets the preset consensus strategy.
Optionally, the processor 801 further specifically performs the following operations:
receiving a current vehicle position sent by the driver account at fixed time, and determining an actual driving route in the second riding service order according to the current vehicle position;
comparing the actual driving route with a pre-planned route in the second riding service order, and if the actual driving route is inconsistent with the pre-planned route, acquiring an order route deviation event and a route deviation invalid event of the order route deviation event corresponding to the driver account in a first preset time according to the driver account;
Screening the order route deviation event according to the route deviation invalid event of the order route deviation event to obtain a route deviation valid event of the order route deviation event, and sending a second order route deviation warning to the passenger account according to the route deviation valid event of the order route deviation event.
Optionally, the processor 801 sends a second order route deviation warning to the passenger account according to the route deviation effective event of the order route deviation event, specifically performing the following operations:
if the number of the route deviation effective events of the order route deviation events is smaller than or equal to a first preset number, calling an intelligent contract, wherein the intelligent contract is used for sending a confirmation request for confirming the second order route deviation event to the passenger account;
if any reply of the confirmation request of the second order route deviation event sent by the passenger account is not received within a second preset time, calling the intelligent contract, wherein the intelligent contract is used for dialing the contact telephone of the passenger account;
if the contact telephone of the passenger account is not connected within the third preset time, calling the intelligent contract, wherein the intelligent contract is used for sending an alarm notification to the preset account;
And if the number of the route deviation effective events of the order route deviation events is larger than the first preset number, calling the intelligent contract, wherein the intelligent contract is used for sending alarm notification to the preset account.
Optionally, the processor 801 further specifically performs the following operations:
the first order route deviation event is sent to the driver account, the driver account sends the invalid request for the first order route deviation event to the passenger account according to the received first order route deviation event and carries a request signature of the driver account, the passenger account returns the invalid request for the first order route deviation event and carries a request signature of the driver account and a confirmation signature of the passenger account according to the invalid request for the first order route deviation event and carries a request signature of the driver account, and the driver account sends the received invalid request for the first order route deviation event and carries a request signature of the driver account and a confirmation signature of the passenger account to the network bus management node.
Optionally, the processor 801 obtains the public signature verification key of the driver account and the public signature verification key of the passenger account, and verifies the invalid request of the first order route deviation event according to the public signature verification key of the driver account and the public signature verification key of the passenger account, and specifically performs the following operations:
acquiring a signature verification public key of the driver account and a signature verification public key of the passenger account in the blockchain network according to the driver account and the passenger account respectively, decrypting an invalid request of the first order route deviation event according to the signature verification public key of the passenger account to obtain a ciphertext, and further decrypting the ciphertext according to the signature verification public key of the driver account to obtain a first check code;
converting the invalid request of the first order route deviation event into a second check code by adopting a hash algorithm;
and matching the first check code with the second check code, and if the first check code is consistent with the second check code, checking the invalid request of the first order route deviation event.
Optionally, the processor 801 further specifically performs the following operations:
obtaining an order route deviation event and a route deviation invalid event of the order route deviation event corresponding to the driver account in a fourth preset time on the blockchain network according to the driver account, screening the order route deviation event according to the route deviation invalid event of the order route deviation event to obtain a route deviation valid event of the order route deviation event, and pushing a riding service order to the driver account according to the route deviation valid event of the order route deviation event. Wherein the ride service order includes a ride starting location.
Optionally, the processor 801 pushes a riding service order to the driver account according to a route deviation effective event of the order route deviation event, and specifically performs the following operations:
if the number of the route deviation effective events of the order route deviation events is larger than a second preset number, not pushing the riding service order to the driver account;
and if the number of the route deviation effective events of the order route deviation event is smaller than or equal to the second preset number, determining a push order value of the driver account according to the distance between the vehicle position of the driver account and the riding starting position of the riding service order and the number of the route deviation effective events of the order route deviation event, and if the push order value of the driver account reaches a preset push order value threshold, pushing the riding service order to the driver account.
In an embodiment of the present application, a computer storage medium is also provided, which may be used to store computer software instructions for the order route deviation event management device in the embodiment shown in fig. 7, where the computer software instructions include a program designed for executing the order route deviation event management device in the embodiment shown in the foregoing. The storage medium includes but is not limited to flash memory, hard disk, solid state disk.
There is also provided in an embodiment of the present application a computer program product which, when executed by a computing device, is operable to perform the order route deviation event management apparatus as devised for the embodiment of fig. 7 described above.
The terms "first," "second," "third," and "fourth" and the like in the description and in the claims and drawings are used for distinguishing between different objects and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
In the present application, "a and/or B" means one of the following: a, B, A and B. "at least one of … …" refers to any combination of the listed items or any number of the listed items, e.g., "at least one of A, B and C" refers to one of the following: any of seven cases a, B, C, a and B, B and C, a and C, A, B and C.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like.
The method and related apparatus provided in the embodiments of the present application are described with reference to the flowchart and/or schematic structural diagrams of the method provided in the embodiments of the present application, and each flow and/or block of the flowchart and/or schematic structural diagrams of the method may be implemented by computer program instructions, and combinations of flows and/or blocks in the flowchart and/or block diagrams. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or structural diagram block or blocks. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or structures.
The foregoing disclosure is illustrative of the present application and is not to be construed as limiting the scope of the application, which is defined by the appended claims.

Claims (10)

1. A method for order route deviation event management, comprising:
receiving an invalidation request aiming at a first order route deviation event, wherein the invalidation request carries a request signature of a driver account and a confirmation signature of a passenger account corresponding to a first riding service order, and the first order route deviation event is generated by a network bus management node under the condition that an actual driving route in the first riding service order is detected to be inconsistent with a pre-planned route;
acquiring a signature verification public key of the driver account and a signature verification public key of the passenger account, and verifying an invalid request of the first order route departure event according to the signature verification public key of the driver account and the signature verification public key of the passenger account;
if the verification is passed, the invalid request of the first order route deviation event is sent to a consensus node in a blockchain network, so that the consensus node performs consensus verification on the invalid request of the first order route deviation event, and a consensus confirmation message is returned under the condition that the consensus verification is passed;
And under the condition that the received consensus confirmation message meets a preset consensus strategy, generating a route deviation invalid event of the first order route deviation event according to an invalid request of the first order route deviation event, and adding a block containing the route deviation invalid event to a blockchain network.
2. The method of claim 1, wherein prior to receiving the invalidation request for the first order route deviation event, comprising:
comparing the actual driving route in the first riding service order with the pre-planned route, and if the actual driving route is inconsistent with the pre-planned route, generating a first order route deviation event;
transmitting the first order route deviation event to a consensus node in the blockchain network, so that the consensus node performs consensus verification on the first order route deviation event, and returns a consensus confirmation message when the consensus verification is passed;
and adding a block containing the first order route departure event to the blockchain network in case that the received consensus confirmation message meets the preset consensus strategy.
3. The method according to claim 1, wherein the method further comprises:
receiving a current vehicle position sent by the driver account at fixed time, and determining an actual driving route in the first riding service order according to the current vehicle position;
comparing the actual driving route with a pre-planned route in the first riding service order, and if the actual driving route is inconsistent with the pre-planned route, acquiring an order route deviation event and a route deviation invalid event of the order route deviation event corresponding to the driver account in a first preset time according to the driver account;
and screening the order route deviation event according to the route deviation invalid event of the order route deviation event to obtain a route deviation valid event of the order route deviation event, and sending an order route deviation warning to the passenger account according to the route deviation valid event of the order route deviation event.
4. A method according to claim 3, wherein said sending an order route departure alert to said passenger account based on a route departure validity event of said order route departure event comprises:
If the number of the route deviation effective events of the order route deviation events is smaller than or equal to a first preset number, calling an intelligent contract, wherein the intelligent contract is used for sending a confirmation request for confirming the order route deviation events to the passenger account;
if any reply of the confirmation request of the order route deviation event sent by the passenger account is not received within a second preset time, calling the intelligent contract, wherein the intelligent contract is used for dialing a contact phone of the passenger account;
if the contact telephone of the passenger account is not connected within the third preset time, calling the intelligent contract, wherein the intelligent contract is used for sending an alarm notification to the preset account;
and if the number of the route deviation effective events of the order route deviation events is larger than the first preset number, calling the intelligent contract, wherein the intelligent contract is used for sending alarm notification to the preset account.
5. The method of claim 1, wherein prior to receiving the invalidation request for the first order route deviation event, comprising:
the network appointment vehicle management node sends the first order route deviation event to the driver account, the driver account sends the invalid request for the first order route deviation event to the passenger account according to the received first order route deviation event and carries a request signature of the driver account, the passenger account returns the invalid request for the first order route deviation event and carries a request signature of the driver account and a confirmation signature of the passenger account according to the invalid request for the first order route deviation event and carries the request signature of the passenger account, and the driver account sends the received invalid request for the first order route deviation event and carries the request signature of the driver account and the confirmation signature of the passenger account to the network appointment vehicle management node.
6. The method of claim 1, wherein the obtaining the public signature verification key of the driver account and the public signature verification key of the passenger account and verifying the invalid request for the first order out-of-route event based on the public signature verification key of the driver account and the public signature verification key of the passenger account comprises:
acquiring a signature verification public key of the driver account and a signature verification public key of the passenger account in the blockchain network according to the driver account and the passenger account respectively, decrypting an invalid request of the first order route deviation event according to the signature verification public key of the passenger account to obtain a ciphertext, and further decrypting the ciphertext according to the signature verification public key of the driver account to obtain a first check code;
converting the invalid request of the first order route deviation event into a second check code by adopting a hash algorithm;
and matching the first check code with the second check code, and if the first check code is consistent with the second check code, checking the invalid request of the first order route deviation event.
7. The method according to claim 1, wherein the method further comprises:
Obtaining an order route deviation event and a route deviation invalid event of the order route deviation event corresponding to the driver account in a fourth preset time on the blockchain network according to the driver account, screening the order route deviation event according to the route deviation invalid event of the order route deviation event to obtain a route deviation valid event of the order route deviation event, and pushing a riding service order to the driver account according to the route deviation valid event of the order route deviation event.
8. An order route deviation event management apparatus, comprising:
the receiving unit is used for receiving an invalid request aiming at a first order route deviation event, wherein the invalid request carries a request signature of a driver account and a confirmation signature of a passenger account corresponding to a first riding service order, and the first order route deviation event is generated by a network bus management node under the condition that an actual driving route in the first riding service order is detected to be inconsistent with a pre-planned route;
the verification unit is used for acquiring the signature verification public key of the driver account and the signature verification public key of the passenger account, and verifying the invalid request of the first order route deviation event according to the signature verification public key of the driver account and the signature verification public key of the passenger account;
The first consensus unit is used for sending the invalid request of the first order route deviation event to a consensus node in the blockchain network if the verification is passed, so that the consensus node performs consensus verification on the invalid request of the first order route deviation event, and returns a consensus confirmation message when the consensus verification is passed;
and the first uplink unit is used for generating a route deviation invalid event of the first order route deviation event according to the invalid request of the first order route deviation event under the condition that the received consensus confirmation message meets a preset consensus strategy, and adding a block containing the route deviation invalid event to a blockchain network.
9. A server comprising a processor, a memory and a transceiver, the processor, the memory and the transceiver being interconnected, wherein the transceiver is configured to receive or transmit data, the memory is configured to store program code, and the processor is configured to invoke the program code to perform the order route departure event management method of any of claims 1-7.
10. A storage medium storing a computer program, the computer program comprising program instructions; the program instructions, when executed by a processor, cause the processor to perform the order route departure event management method of any of claims 1-7.
CN201911175811.4A 2019-11-26 2019-11-26 Order route deviation event management method and device, server and storage medium Active CN110889525B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911175811.4A CN110889525B (en) 2019-11-26 2019-11-26 Order route deviation event management method and device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911175811.4A CN110889525B (en) 2019-11-26 2019-11-26 Order route deviation event management method and device, server and storage medium

Publications (2)

Publication Number Publication Date
CN110889525A CN110889525A (en) 2020-03-17
CN110889525B true CN110889525B (en) 2023-09-26

Family

ID=69748871

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911175811.4A Active CN110889525B (en) 2019-11-26 2019-11-26 Order route deviation event management method and device, server and storage medium

Country Status (1)

Country Link
CN (1) CN110889525B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112686550A (en) * 2020-12-31 2021-04-20 车主邦(北京)科技有限公司 Vehicle position information processing method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130082233A (en) * 2012-01-11 2013-07-19 송태현 System and method for sending rescue request using safety taxi application
EP3418998A1 (en) * 2017-06-22 2018-12-26 Nokia Technologies Oy Road traffic management
CN109299801A (en) * 2018-09-07 2019-02-01 福建兑信科技有限公司 A kind of net about vehicle lock driver automatic recognition system
CN109493598A (en) * 2018-11-19 2019-03-19 福建工程学院 A kind of taxi based on block chain technology detours recognition methods
CN109829621A (en) * 2018-12-28 2019-05-31 深圳市元征科技股份有限公司 A kind of net about vehicle worksheet processing method and device
JP2019101791A (en) * 2017-12-04 2019-06-24 クラリオン株式会社 Route deviation detection machine, management server, and route deviation detection method
CN109993330A (en) * 2019-02-27 2019-07-09 深圳市元征科技股份有限公司 A kind of data analysing method, electronic equipment and computer-readable medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130082233A (en) * 2012-01-11 2013-07-19 송태현 System and method for sending rescue request using safety taxi application
EP3418998A1 (en) * 2017-06-22 2018-12-26 Nokia Technologies Oy Road traffic management
JP2019101791A (en) * 2017-12-04 2019-06-24 クラリオン株式会社 Route deviation detection machine, management server, and route deviation detection method
CN109299801A (en) * 2018-09-07 2019-02-01 福建兑信科技有限公司 A kind of net about vehicle lock driver automatic recognition system
CN109493598A (en) * 2018-11-19 2019-03-19 福建工程学院 A kind of taxi based on block chain technology detours recognition methods
CN109829621A (en) * 2018-12-28 2019-05-31 深圳市元征科技股份有限公司 A kind of net about vehicle worksheet processing method and device
CN109993330A (en) * 2019-02-27 2019-07-09 深圳市元征科技股份有限公司 A kind of data analysing method, electronic equipment and computer-readable medium

Also Published As

Publication number Publication date
CN110889525A (en) 2020-03-17

Similar Documents

Publication Publication Date Title
CN110300107B (en) Vehicle networking privacy protection trust model based on block chain
Hsiao et al. Flooding-resilient broadcast authentication for vanets
KR102366684B1 (en) Method for validating messages
CN111988381B (en) HashGraph-based Internet of vehicles distributed trust system and trust value calculation method
CN112134698B (en) Block chain-based quick communication authentication method and system for vehicles and vehicles in Internet of vehicles
Tan et al. Secure certificateless authentication and road message dissemination protocol in VANETs
WO2014196181A1 (en) Data authentication device, and data authentication method
CN108810155B (en) Method and system for evaluating reliability of vehicle position information of Internet of vehicles
CN108696356B (en) Block chain-based digital certificate deleting method, device and system
CN109584595B (en) Road condition early warning method and system based on block chain in vehicle-mounted network
Zhao et al. PBTM: A privacy-preserving announcement protocol with blockchain-based trust management for IoV
Molina-Gil et al. Aggregation and probabilistic verification for data authentication in VANETs
CN116137006A (en) Block chain crossing method, device and readable storage medium
Al-Ali et al. Reputation based traffic event validation and vehicle authentication using blockchain technology
CN110889525B (en) Order route deviation event management method and device, server and storage medium
Ayobi et al. A lightweight blockchain-based trust model for smart vehicles in vanets
CN110874738A (en) Method and device for collecting and processing traffic violation information of intelligent traffic control and intelligent traffic control
Qin et al. ECAS: An efficient and conditional privacy preserving collision warning system in fog-based vehicular ad hoc networks
CN113411407B (en) Piece-separating type car networking system based on block chain technology
CN112732676B (en) Block chain-based data migration method, device, equipment and storage medium
Cominetti et al. Faster verification of V2X basic safety messages via Message Chaining
Nurfatih et al. Enhancing Trust Model of Information Vehicular Ad-Hoc Networks Through Blockchain Consensus Algorithm
CN113076560A (en) Block chain-based vehicle management method, device, equipment and storage medium
Sarkar et al. Cloud enabled Blockchain-based secured communication in mutual intelligent transportation using neural synchronization
Das et al. Authentication schemes for VANETs: a survey

Legal Events

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