Blockchain-based ride method, device, computer equipment and storage medium

By using blockchain technology to simulate responses to passenger requests and generate orders, the problem of unreasonable resource allocation on ride-hailing platforms has been solved, achieving efficient allocation of ride resources and secure transmission of order information.

CN114693112BActive Publication Date: 2024-11-22INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210318681.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-29
Publication Date
2024-11-22
Estimated Expiration
2042-03-29

AI Technical Summary

Technical Problem

Existing ride-hailing platforms are unable to allocate passenger resources reasonably, resulting in order conflicts when drivers accept orders on multiple platforms, and thus failing to effectively utilize passenger resources.

Method used

By using blockchain technology, smart contracts and preset evaluation indicators are used to simulate responses to passenger requests, generating multiple simulated response results. Blocks are generated through sorting nodes, and valid blocks are added to the blockchain using a proof-of-work consensus algorithm. This generates order information corresponding to the ride request and sends it to the passenger and driver terminals.

Benefits of technology

It improves the rationality of ride-hailing resource allocation, ensures the non-repudiation and security of order information, and enhances the efficiency and accuracy of ride-hailing transactions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114693112B_ABST
    Figure CN114693112B_ABST
Patent Text Reader

Abstract

The present application relates to a ride method, device, computer equipment, storage medium and computer program product based on blockchain, and relates to the field of blockchain technology. By simulating responses to ride requests sent by passenger terminals based on smart contracts and preset evaluation indicators, multiple simulated response results including driver information and ride platform information are obtained; multiple blocks are generated based on ride requests and simulated response results, and valid blocks are added to the blockchain through the proof-of-work consensus algorithm. The blockchain uses the user information, ride information, driver information and ride platform information in the valid blocks to generate order information corresponding to the ride request, and sends the order information to the corresponding passenger terminal and driver terminal, so that the passenger terminal and the driver terminal can conduct ride transactions based on the order information. Compared with the traditional ride reservation method, this solution uses blockchain to distribute and record ride transactions, which improves the rationality of ride resource allocation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of blockchain technology, and in particular to a blockchain-based ride method, apparatus, computer equipment, storage medium, and computer program product. Background Art

[0002] With the development of Internet technology, online car-hailing has brought great convenience to people's travel and has become a travel method for many people. Therefore, more and more drivers choose to join the online car-hailing driver system and receive orders through the online car-hailing driver system. However, with the development of the online car-hailing industry, more and more online car-hailing driver platforms have emerged. In order to receive more orders, some drivers have registered on multiple platforms and opened multiple online car-hailing driver platforms to receive orders at the same time during the same period of time, which may lead to the application of multiple orders at the same time. In order to avoid conflicts between multiple orders on multiple platforms, drivers need to choose to accept orders from one of the online car-hailing platforms based on their own judgment. That is, at present, each online car-hailing platform operates independently, resulting in the platform being unable to know the status of drivers on other platforms and unable to dispatch orders based on the actual situation of the drivers.

[0003] Therefore, how to achieve a riding method that can reasonably allocate riding resources has become an urgent problem that needs to be solved. Summary of the invention

[0004] Based on this, it is necessary to provide a blockchain-based ride method, device, computer equipment, computer-readable storage medium and computer program product that can reasonably allocate ride resources to address the above technical problems.

[0005] In a first aspect, the present application provides a blockchain-based ride-hailing method, the method comprising:

[0006] receiving a ride request sent by a passenger terminal; the request information of the ride request includes user information and ride information;

[0007] Performing a simulated response to the ride request according to the smart contract and the preset evaluation index, and obtaining a corresponding plurality of simulated response results; the simulated response results include driver information and ride platform information;

[0008] Generate a plurality of corresponding blocks according to the ride request and the simulation response result through the sorting node, and add valid blocks among the plurality of blocks to the blockchain according to the proof-of-work consensus algorithm;

[0009] Through the blockchain, the order information corresponding to the ride request is generated based on the user information, ride information, driver information and ride platform information in the valid block, and the order information is sent to the passenger terminal and the driver terminal corresponding to the driver information.

[0010] In one embodiment, the simulated response to the ride request is performed according to the smart contract and the preset evaluation index to obtain corresponding multiple simulated response results, including:

[0011] Obtaining a digital signature and a digital certificate corresponding to the passenger terminal;

[0012] Verifying the digital certificate in the endorsement node, obtaining the public key corresponding to the passenger terminal, and verifying the digital signature according to the public key;

[0013] If the digital signature verification is passed, multiple simulated driver information and simulated ride platform information corresponding to the ride request are obtained according to the smart contract, and the evaluation value corresponding to each of the simulated driver information is obtained according to multiple preset evaluation indicators, the weight corresponding to each of the preset evaluations, and the number of the multiple preset evaluation indicators; the multiple preset evaluation indicators include at least one of a distance indicator, a driver status indicator, a driver vehicle indicator, a vehicle requirement indicator, and a ride platform indicator;

[0014] According to the evaluation value, a plurality of simulation response results are determined from the plurality of simulation driver information and simulation riding platform information.

[0015] In one embodiment, after obtaining the corresponding multiple simulation response results, the method further includes:

[0016] The simulation response result and the digital signature are sent to the passenger terminal; the passenger terminal is used to send the simulation response result to the sorting node after verifying the digital signature.

[0017] In one embodiment, adding a valid block from the plurality of blocks to a blockchain according to a proof-of-work consensus algorithm comprises:

[0018] Performing validity detection on the multiple blocks to obtain multiple valid blocks; the validity detection includes at least one of whether the block meets the preset endorsement policy, whether the simulated response result in the block meets the bill input and output rules, whether the ride request is valid, and whether the driver information of the simulated response result in the block is valid;

[0019] According to the proof-of-work consensus algorithm, the order in which the valid blocks are added to the blockchain is determined, and the valid blocks are added to the blockchain based on the order.

[0020] In one embodiment, determining the order in which the valid blocks are added to the blockchain according to the proof-of-work consensus algorithm, and adding the valid blocks to the blockchain based on the order, includes:

[0021] Obtaining the hash value of the last block in the blockchain and obtaining a preset random number;

[0022] Generate a corresponding string according to the hash value, the timestamp of the valid block, the block level, the number of transactions, the longitude and latitude string and the preset random number;

[0023] Input the string into a preset hash function to obtain a corresponding output hash value;

[0024] Detect whether the first preset number of bits in the output hash value is zero, if so, add the valid block as the last block in the blockchain to the blockchain, obtain a new valid block from the multiple valid blocks, and return to the steps of obtaining the hash value of the last block in the blockchain and obtaining a preset random number until all the multiple valid blocks are added to the blockchain;

[0025] If not, increase the preset random number by a preset value, and return to the step of generating a corresponding string based on the hash value, the timestamp of the valid block, the block level, the number of transactions, the longitude and latitude strings and the preset random number.

[0026] In one embodiment, the generating of order information corresponding to the ride request based on the user information, ride information, driver information and ride platform information in the valid block through the blockchain, and sending the order information to the passenger terminal and the driver terminal corresponding to the driver information includes:

[0027] Receiving the valid block through the blockchain, and updating the order status corresponding to the user information and the order status corresponding to the driver information in the blockchain;

[0028] The driver information and the ride platform information are sent to the passenger terminal, and the user information and the ride information are sent to the driver terminal.

[0029] In a second aspect, the present application provides a blockchain-based ride device, the device comprising:

[0030] A receiving module, used for receiving a ride request sent by a passenger terminal; the request information of the ride request includes user information and ride information;

[0031] A simulation module, used to simulate the response to the ride request according to the smart contract and the preset evaluation index, and obtain corresponding multiple simulation response results; the simulation response results include driver information and ride platform information;

[0032] A generation module, configured to generate a plurality of corresponding blocks according to the ride request and the simulation response result through an ordering node, and add valid blocks among the plurality of blocks to a blockchain according to a proof-of-work consensus algorithm;

[0033] A sending module is used to generate order information corresponding to the ride request based on the user information, ride information, driver information and ride platform information in the valid block through the blockchain, and send the order information to the passenger terminal and the driver terminal corresponding to the driver information.

[0034] In a third aspect, the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.

[0035] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.

[0036] In a fifth aspect, the present application provides a computer program product, including a computer program, which implements the steps of the above method when executed by a processor.

[0037] The above-mentioned ride-hailing method, device, computer equipment, storage medium and computer program product based on blockchain simulates the response to the ride request sent by the passenger terminal based on the smart contract and the preset evaluation index, and obtains multiple simulated response results including driver information and ride platform information; and generates multiple blocks based on the ride request and the simulated response results through the sorting node, and adds the valid blocks in the multiple blocks to the blockchain through the proof-of-work consensus algorithm, and generates the order information corresponding to the ride request through the blockchain using the user information, ride information, driver information and ride platform information in the valid blocks, and sends the order information to the corresponding passenger terminal and driver terminal, so that the passenger terminal and the driver terminal can conduct ride transactions based on the order information. Compared with the traditional ride reservation method, this solution uses blockchain to distribute and record ride transactions, which improves the rationality of ride resource allocation. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 This is an application environment diagram of a blockchain-based ride-hailing method in one embodiment;

[0039] Figure 2 This is an application environment diagram of a blockchain-based ride-hailing method in another embodiment;

[0040] Figure 3 A flowchart of a method for taking a ride based on blockchain in one embodiment;

[0041] Figure 4 A flowchart of a method for taking a ride based on blockchain in another embodiment;

[0042] Figure 5 A structural block diagram of a blockchain-based ride device in one embodiment;

[0043] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0045] The blockchain-based ride method provided in the embodiment of the present application relates to the field of blockchain technology and can be applied to Figure 1 In the application environment shown. Among them, the passenger terminal 102 and the driver terminal 106 can communicate with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. The server 104 can be a blockchain server, which can receive the ride request sent by the passenger terminal 102, and simulate the response to the ride request based on the smart contract and preset evaluation indicators, and generate multiple blocks of the simulated response results through the sorting node, and then add these blocks to the blockchain. The server 104 updates the user order in the blockchain based on the relevant information in the valid block and sends it to the corresponding terminal.

[0046] In some embodiments, the application environment of the above-mentioned blockchain-based ride method can also be as follows: Figure 2 As shown, the server 104 can be composed of a server cluster of an online car-hailing platform, a financial institution, and a supervisory institution. Passengers can communicate with the server 104 through a passenger terminal 102, and drivers can communicate with the server 104 through a driver terminal 106, thereby realizing the above-mentioned blockchain-based ride method. Among them, the passenger terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, and portable wearable devices. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented as an independent server or a server cluster consisting of multiple servers.

[0047] In one embodiment, Figure 3 As shown, a blockchain-based ride-hailing method is provided, which is applied to Figure 1The server in the example is used to illustrate the following steps:

[0048] Step S202, receiving a ride request sent by a passenger terminal; the request information of the ride request includes user information and ride information;.

[0049] The passenger terminal 102 may be a terminal held by the passenger. The passenger terminal 102 may be provided with a client of the passenger user. The client may be a set of user programs for the passenger to use, which may process passenger login, ride, authorization, payment and other requests, create transactions, propagate to other relevant nodes in the blockchain via the P2P network, and obtain accounting results; the client does not participate in the accounting process. The passenger user may initiate a ride request in the passenger terminal 102. The ride request includes request information such as user information and ride information. The user information may be the user's personal information, such as the user's ID; the ride information may be the user's ride demand, such as the user's departure location information and destination location information. Specifically, the client may receive a ride request from the user and create a transaction T, which includes information such as the passenger user ID, departure location information, and destination location information. The server 104 may receive the ride request sent by the passenger terminal 102, and generate and distribute passenger orders based on the ride request.

[0050] In addition, in some embodiments, the passenger terminal 102 may also add a digital signature to the ride request before sending it to the server 104. For example, after receiving the transaction request, the application of the passenger terminal 102 may add the contract identifier and the contract method to the transaction information of the transaction request to construct a transaction proposal. The passenger terminal 102 may use the user's private key to generate a digital signature, and send the transaction proposal, digital signature, and digital certificate together to the endorsement node in the blockchain of the server 104.

[0051] Step S204, simulate the response to the ride request according to the smart contract and the preset evaluation indicators, and obtain corresponding multiple simulation response results; the simulation response results include driver information and ride platform information.

[0052] Among them, the ride request sent by the above-mentioned passenger terminal 102 can be a ride reservation request, and the server 104 can simulate the response based on the above-mentioned ride request. Among them, different online car-hailing platforms can be set in the server 104, and the online car-hailing platform includes applications, smart contracts, and blockchain bottom layers. The application system processes the affairs of the passenger user client and the driver user client, executes smart contracts, realizes blockchain accounting, and sends the processing results to the passenger user client and the driver user client. The online car-hailing platform can be connected with the financial institution node to jointly complete the account processing such as passenger user payment and driver user collection. The online car-hailing platform can also share passenger user information and driver user information with the monitoring node. The above-mentioned server 104 can also include a financial institution platform, which can be connected to the online car-hailing platform and jointly complete the account processing such as passenger user payment and driver user collection. The above-mentioned server 104 can also include a monitoring platform, which can be connected to the online car-hailing platform. The monitoring platform can be used to obtain passenger user information and driver user information, analyze the passenger route situation, monitor driver behavior, and notify the public security organs after abnormal behavior is found.

[0053] After receiving the ride request, the server 104 can execute the smart contract and simulate the response to the ride request based on the preset evaluation index, thereby obtaining multiple simulated response results. The simulated response results include driver information and ride platform information. For example, the server 104 executes the smart contract on the ride request, uses the user information and ride information in the ride request, simulates dispatching based on the preset evaluation index, and obtains multiple driver information that meets the requirements and the ride platform information to which the driver belongs. Thus, the server 104 can generate multiple simulated dispatch results as the above-mentioned simulated response results based on the obtained multiple driver information and the ride platform information to which these driver information belongs. The preset evaluation index may include multiple types of indicators, each of which may have a corresponding weight, so that the server 104 determines the driver information that meets the requirements based on the weight calculation result.

[0054] Step S206, through the sorting node, generate corresponding multiple blocks according to the ride request and the simulation response result, and add the valid blocks among the multiple blocks to the blockchain according to the proof-of-work consensus algorithm.

[0055] Among them, the blockchain of the server 104 includes endorsement nodes, sorting nodes, master nodes and accounting nodes. The server 104 can generate corresponding multiple blocks through the sorting node using the user information and ride information in the above-mentioned ride request, as well as the driver information and ride platform information in the above-mentioned simulation response results. Among them, the above-mentioned multiple blocks can be generated according to preset rules. For example, the server 104 receives the ride request and the simulation response result message sent by the blockchain network through the kafka cluster of the sorting node, and collects them into blocks, divides the blocks according to certain rules, wherein the blocks may contain multiple transactions, and the server 104 can broadcast the blocks to the master node through messages in the sorting node. Among them, the rule for block division can be: the server 104 consumes the messages in the kafka cluster partition through the sorting node, consumes in the order of the message offset offset, and generates a new block if one of the preset conditions is met. Among them, the preset conditions include: the number of consumption transactions reaches the maximum number of transactions in a single block, that is, the number of consumed messages reaches equal to the maximum number of transactions in a single block, then a new block is generated for the newly consumed message. Exceeds the maximum number of bytes of a single block, that is, the number of bytes that each block can accommodate. When the number of bytes of the message that has been consumed but not generated into a new block plus the number of bytes of the message to be consumed next exceeds the maximum number of bytes of a single block, a new block is generated without including the message to be consumed next. The waiting time exceeds the maximum waiting time of a single block. If no new message is generated and the above two conditions are not met, then when the waiting time after the last block is generated exceeds the maximum waiting time of a single block, the server 104 generates a new block for the message that has not generated the block.

[0056] After obtaining the above-mentioned multiple blocks in the sorting node, the server 104 can add valid blocks from the multiple blocks to the blockchain through the Proof of Work consensus algorithm PoW. The server 104 can verify each transaction in the above-mentioned multiple blocks, and then determine the order of adding the verified blocks to the blockchain through the PoW algorithm, so that the server 104 can add valid blocks to the blockchain in the corresponding order.

[0057] Step S208, through the blockchain, based on the user information, ride information, driver information and ride platform information in the valid block, generate order information corresponding to the ride request, and send the order information to the passenger terminal and the driver terminal corresponding to the driver information.

[0058] Among them, after the server 104 adds the above-mentioned valid block to the blockchain, the order status can be updated and distributed in the blockchain. The above-mentioned valid block stores the user information and ride information in the user's ride request, as well as the driver information and the ride platform information described by the driver in the simulation response result. The server 104 can generate the order information corresponding to the user's ride request in the blockchain based on the above-mentioned user information, ride information, driver information and ride platform information, and send the order information to the above-mentioned passenger terminal 102 and driver terminal 106, and save the updated order information in the blockchain to ensure the non-repudiation of the order. After the above-mentioned passenger terminal 102 receives the order information, the passenger can know the driver information of the vehicle he has booked and the ride platform information to which the driver belongs through the order information; after the driver terminal 106 receives the above-mentioned order information, the driver can know the user information of the passenger and the ride information of the passenger through the order information. Therefore, the driver can pick up and drop off the passenger based on the order information to complete the user's ride request.

[0059] In the above-mentioned blockchain-based ride-hailing method, a simulated response is made to the ride request sent by the passenger terminal based on the smart contract and the preset evaluation index, and multiple simulated response results including driver information and ride platform information are obtained; and multiple blocks are generated based on the ride request and the simulated response results through the sorting node, and the valid blocks in the multiple blocks are added to the blockchain through the proof-of-work consensus algorithm, and the user information, ride information, driver information and ride platform information in the valid blocks are used through the blockchain to generate the order information corresponding to the ride request, and the order information is sent to the corresponding passenger terminal and driver terminal, so that the passenger terminal and the driver terminal can conduct ride transactions based on the order information. Compared with the traditional ride reservation method, this solution uses the blockchain to dispatch and record ride transactions, which improves the rationality of ride resource allocation.

[0060] In one embodiment, a simulated response is performed on a ride request according to a smart contract and preset evaluation indicators to obtain multiple corresponding simulated response results, including: obtaining a digital signature and digital certificate corresponding to the passenger terminal; obtaining a public key corresponding to the passenger terminal by verifying the digital certificate in the endorsement node, and verifying the digital signature based on the public key; if the digital signature verification is successful, obtaining multiple simulated driver information and simulated ride platform information corresponding to the ride request according to the smart contract, and obtaining an evaluation value corresponding to each simulated driver information based on multiple preset evaluation indicators, the weight corresponding to each preset evaluation, and the number of multiple preset evaluation indicators; the multiple preset evaluation indicators include at least one of a distance indicator, a driver status indicator, a driver vehicle indicator, a vehicle requirement indicator, and a ride platform indicator; based on the evaluation value, determining multiple simulated response results from the multiple simulated driver information and the simulated ride platform information.

[0061] In this embodiment, when the passenger terminal 102 receives the user's ride request, it can add the contract identifier and contract method to the transaction information of the ride request to construct a transaction proposal, generate a digital signature based on the user's private key, and submit the transaction proposal, digital signature, and digital certificate to the endorsement node of the server 104. The server 104 can obtain the digital signature and digital certificate sent by the passenger terminal 102 through the endorsement node, and obtain the public key corresponding to the passenger terminal 102 after verifying the digital certificate through the public key of the CA organization, so that the server 104 can verify the above digital signature based on the user's public key. If the digital signature verification is successful, the server 104 can obtain multiple simulated driver information and simulated ride platform information corresponding to the ride request according to the above smart contract, and obtain the evaluation value corresponding to each simulated driver information according to multiple preset evaluation indicators, the weight corresponding to each preset evaluation, and the number of preset evaluation indicators. Among them, the preset evaluation indicators include at least one of the distance indicator, the driver status indicator, the vehicle requirement indicator, and the ride platform indicator. The server 104 can obtain multiple evaluation values, and determine multiple simulated transaction results from multiple simulated driver information and simulated ride platform information based on the multiple evaluation values ​​as simulated response results.

[0062] For example, server 104 can verify the digital certificate with the public key of the CA organization in the endorsement node, obtain the user's public key, and verify the digital signature based on the user's public key. After the verification is passed, the transaction proposal is used as input, and server 104 executes the smart contract on the current state database, simulates the dispatch according to the endorsement policy agreed in the smart contract, and generates the transaction result. Among them, the transaction result includes information such as the online car-hailing driver identification sent by the system and the online car-hailing platform identification to which the driver belongs. It should be noted that this result is not updated to the account book, but is only the result obtained by the simulated execution. Server 104 can also use a private key to generate a digital signature for the transaction result, and return the transaction result and digital signature to the application.

[0063] Among them, the system dispatching algorithm in the above smart contract is based on the linear weight method, and the calculation formula is as follows:

[0064] Among them, X is the comprehensive evaluation value of the assigned driver, p i Indicates the weight of each single evaluation index, g i It represents the evaluation value of each single indicator; n represents the number of evaluation indicators.

[0065] Among them, the above-mentioned distance indicators may include indicators such as the estimated distance of the distance, the estimated time of the route, and the estimated fare from the departure point to the destination; the driver status indicator may include information such as the driver's account status; the driver vehicle indicator may include information such as the vehicle account status; the vehicle requirement indicator may include indicators such as the passenger account status; and the ride platform indicator may include indicators such as the online car-hailing platform account status. Specifically, the above-mentioned preset evaluation indicators may include the following indicators: A. Estimated route distance. Refers to the estimated driving route calculation distance from the vehicle's location to the departure point. B. Estimated route time. Refers to the estimated driving route calculation time from the vehicle's location to the departure point. Consider factors such as traffic congestion, route speed limit, and route engineering construction. C. Estimated fare from the departure point to the destination. The fare is affected by factors such as the online car-hailing platform and passengers. Whether the online car-hailing platform has discounts and the passenger's requirements for the vehicle model. D. Driver account status. Refers to whether the driver has problems related to bans, restrictions, listening to orders, and service evaluation points. If the driver is in the ban stage, he cannot drive. Vehicles with license plate number restrictions or four-way driving and four-stop driving do not comply with local policies and cannot be dispatched. Drivers set up order listening modes such as accepting on-the-way orders and not accepting airport orders, and the system dispatches orders that meet the conditions set by the driver. The system gives priority to dispatching orders to drivers with high service evaluation scores. E. Vehicle account status. Refers to the age, insurance, and annual inspection of the vehicle. The age of the vehicle meets the minimum requirements and the vehicle is within the validity period of the insurance. Whether the annual inspection is completed on schedule and whether the annual inspection results are normal. Vehicles that do not meet the conditions cannot be dispatched. F. Passenger account status. Refers to whether the passenger has requirements for the type of car, number of seats, driver's driving experience, online car-hailing platform selection, and carpooling. Whether the passenger chooses a fuel car or an electric car. The passenger chooses a 4-seater car, a 5-seater car, or a 7-seater car. Does the passenger require the driver to have a certain number of years of driving experience, which is 1 year, 2 years, or more than 3 years. Does the passenger only accept orders from certain online car-hailing platforms? Does the passenger accept carpooling? The system gives priority to dispatching orders that meet the passenger's needs. G. Online car-hailing platform account status. Refers to whether the online car-hailing platform has any preferential activities, night service fees, long-distance service fees, service fees for special groups, and platform service evaluation points. The system assigns orders with lower prices.

[0066] In addition, the weight p of the above preset evaluation index is iIt can be determined by expert investigation. For example, by hiring representative and authoritative experts in related fields, an in-depth investigation and research is conducted on each evaluation indicator, the weight range of each evaluation indicator is listed, and the weights are arranged in a list according to importance. Each expert registers the weight of each evaluation indicator in the above list to obtain a weight score for each indicator. The weight scores of each indicator of each expert are added together to obtain a total weight score. The weight score of each indicator is divided by the total weight score to obtain the weight of each evaluation indicator. Among them, for the same evaluation indicator, the server 104 can collect the weights of the indicators corresponding to all experts to obtain the average weight of the indicator. In addition, if an expert wants to modify the score, it is necessary to return to the step where the expert registers the weight, thereby repeating the entire scoring process.

[0067] Through this embodiment, the server 104 can simulate transactions on users' ride requests based on preset evaluation indicators and linear weighting methods, and obtain multiple simulated transaction results, thereby achieving the effect of improving the rationality of ride resource coordination.

[0068] In one embodiment, after obtaining the corresponding multiple simulation response results, it also includes: sending the simulation response results and digital signatures to the passenger terminal; the passenger terminal is used to send the simulation response results to the sorting node after verifying the digital signature.

[0069] In this embodiment, after obtaining the above multiple simulation response results, the server 104 can send the simulation response results and the digital signature of the above passenger terminal 102 to the passenger terminal 102, so that the passenger terminal 102 can verify the digital signature, and return the simulation response results to the sorting node of the above server 104 after the verification is passed. For example, the server 104 generates digital signatures from the above multiple simulation response results using the private key of the endorsement node, and returns the simulation response results and the digital signature to the application of the passenger terminal 102. The passenger terminal 102 receives the results and digital signatures of the simulated execution of the smart contract by the endorsement node through the application, and verifies the digital signature. If the verification is passed, the passenger terminal 102 broadcasts the transaction proposal formed by the above ride request and the above simulation response results to the sorting node of the server 104 through the kafka cluster in the form of a message.

[0070] Through this embodiment, after generating the simulation response result, the server 104 can send it to the passenger terminal 102 for verification, thereby improving the security of the riding resource information.

[0071] In one embodiment, according to the proof-of-work consensus algorithm, valid blocks from multiple blocks are added to the blockchain, including: performing validity detection on multiple blocks to obtain multiple valid blocks; the validity detection includes at least one of whether the block satisfies a preset endorsement policy, whether the simulated response result in the block complies with the bill input and output rules, whether the ride request is valid, and whether the driver information of the simulated response result in the block is valid; according to the proof-of-work consensus algorithm, determining the order in which the valid blocks are added to the blockchain, and adding the valid blocks to the blockchain based on the order.

[0072] In this embodiment, after generating multiple blocks through the sorting node, the server 104 can verify the multiple blocks to determine the valid blocks among the multiple blocks, and determine the order in which the valid blocks are added to the blockchain based on the proof-of-work consensus algorithm PoW. During the verification, the server 104 can perform effective detection on the multiple blocks to obtain multiple valid blocks. Among them, the effective detection includes at least one of whether the block meets the preset endorsement strategy, whether the simulated response result in the block meets the bill input and output rules, whether the ride request is valid, and whether the driver information of the simulated response result in the block is valid. For example, server 104 can receive each new block sent by the blockchain network through the master node, and verify each transaction in the block, that is, check each ride request and simulated response result in the block. Server 104 can check whether the transaction in the block satisfies the endorsement policy, whether the input and output of the transaction are consistent with the current status of the ledger, whether the order initiated by the passenger is still valid, has not been revoked or has not been dispatched, whether the driver's account is still waiting for dispatch, and other legal verifications. After the verification is passed, server 104 can use the PoW consensus algorithm to decide which new block to add to the blockchain first.

[0073] After obtaining valid blocks through the above verification, the server 104 can use the above proof-of-work consensus algorithm to determine the order in which each valid block is added to the blockchain. For example, the server 104 can determine the order in which blocks are added to the blockchain based on block parameters such as the hash value and timestamp of the block.

[0074] Through this embodiment, the server 104 can obtain valid blocks by performing validity checks on blocks, and can determine the order in which blocks are added to the blockchain based on the proof-of-work consensus algorithm, thereby realizing the response to users' ride requests and vehicle resource allocation in the blockchain, thereby improving the rationality of resource allocation.

[0075] In one embodiment, according to the proof-of-work consensus algorithm, the order in which valid blocks are added to the blockchain is determined, and the valid blocks are added to the blockchain based on the order, including: obtaining a hash value of the last block in the blockchain and obtaining a preset random number; generating a corresponding string according to the hash value, the timestamp, block level, number of transactions, longitude and latitude strings and the preset random number of the valid block; inputting the string into a preset hash function to obtain a corresponding output hash value; detecting whether the first preset number of bits in the output hash value is zero, if so, adding the valid block as the last block in the blockchain to the blockchain, and obtaining a new valid block from multiple valid blocks, returning to the steps of obtaining the hash value of the last block in the blockchain and obtaining the preset random number, until multiple valid blocks are added to the blockchain; if not, increasing the preset random number by a preset value, and returning to the step of generating a corresponding string according to the hash value, the timestamp, block level, number of transactions, longitude and latitude strings and the preset random number of the valid block.

[0076] In this embodiment, the server 104 can determine the order of the multiple blocks obtained above to be added to the chain based on the proof-of-work consensus algorithm. Among them, each of the above blocks can include multiple parameters, and the server 104 can use the parameters in the block to determine the order of adding to the chain. Among them, the structure of the block generated by the server 104 can be shown in the following table:

[0077]

[0078] Among them, the variable value of the genesis block, i.e., the first block, is shown in the fourth column. For each valid block whose order is to be determined, the server 104 can obtain the hash value of the last block in the blockchain and obtain a preset random number; the server 104 generates a corresponding string based on the above hash value, as well as the timestamp, block level, number of transactions, longitude and latitude string and preset random number of the above valid block, and inputs the above string into the preset hash function to obtain the corresponding output hash value. The server 104 can detect whether the first preset number of bits of the output hash value is zero. If so, the server 104 can add the valid block to the blockchain as the last block in the blockchain, so that the valid block becomes the new last block in the blockchain. After the server 104 adds a valid block to the blockchain, it can obtain a new valid block from multiple valid blocks, and return to the steps of obtaining the hash value of the last block in the blockchain and obtaining the preset random number, until all the above multiple valid blocks are added to the blockchain. If the server 104 detects that the first preset digit of the above-mentioned output hash value is not zero, the server 104 can increase the above-mentioned preset random number by a preset value, and return to the step of generating a corresponding string based on the hash value, the timestamp of the valid block, the block level, the number of transactions, the longitude and latitude string and the preset random number, so as to obtain the output hash value based on the new preset random number.

[0079] Specifically, based on the above block structure, when the server 104 executes the proof-of-work consensus algorithm, a valid block can be obtained from the valid blocks for sequential determination. The server 104 can first obtain the hash value preHash of the previous block. If it is the first determination, it can be the hash value of the last block in the blockchain. The server 104 can also set a random number nonce, initialized to 0. And concatenate the hash value preHash of the previous block, the timestamp timestamp of the current block of the above valid block, the block level level of the current block, the number of transactions size, the longitude and latitude string positions, the random number nonce, and form a new string NS. The server 104 can use the new string NS as the input of the SHA256 hash function, and the SHA256 hash function outputs a 256-bit hash value calculated as the above output hash value. The server 104 can detect whether the first 4 bits of the 256-bit hash value outputted above are 0. If so, this block is the next block relative to the previous block, and assigns preHash, theHash, and nonce to this block. Otherwise, the server 104 can increment the random number nonce and recalculate from the step of generating the random string above.

[0080] Through this embodiment, the server 104 can determine the order of multiple valid blocks to be added to the chain based on the proof-of-work consensus algorithm, thereby improving the rationality of resource allocation when booking a ride.

[0081] In one embodiment, through blockchain, order information corresponding to the ride request is generated based on user information, ride information, driver information and ride platform information in the valid block, and the order information is sent to the passenger terminal and the driver terminal corresponding to the driver information, including: receiving the valid block through blockchain, and updating the order status corresponding to the user information and the order status corresponding to the driver information in the blockchain, saving the driver information and the ride platform information; sending the driver information and the ride platform information to the passenger terminal, and sending the user information and ride information to the driver terminal.

[0082] In this embodiment, after the server 104 adds the above-mentioned valid block to the blockchain, the order status can be updated and the order information can be distributed in the blockchain. The server 104 can receive the valid block through the blockchain, and update the order status corresponding to the user information and the order status corresponding to the driver information in the blockchain, that is, the transaction in the valid block added to the blockchain can be a transaction that needs to be effective. The server 104 can save the above-mentioned driver information, ride platform information and user information. And send the above-mentioned driver information and ride platform information to the passenger terminal 102, so that the passenger user of the passenger terminal 102 can determine the vehicle he has booked based on the above-mentioned driver information and ride platform information. The server 104 can also send the user information and ride information to the driver terminal 106, so that the driver user of the driver terminal 106 can determine the information of the passenger who needs to be picked up based on the above-mentioned user information and ride information.

[0083] Among them, after the server 104 receives the valid block through the blockchain, it can also perform verification before updating the order status. For example, the server 104 receives the valid block through each node of the blockchain network, and can verify each transaction in the valid block, check whether the transaction in the block meets the endorsement policy, check whether the input and output of the transaction conform to the current state of the account book, whether the order initiated by the passenger is still valid, has not been revoked or has not been dispatched, whether the driver's account is still waiting for the dispatch status, and other legal verifications. After the server 104 verifies the above-mentioned valid block, it can use the hash value preHash of the previous block of the block, the timestamp timestamp of the current block, the block level level of the current block, the number of transactions size, the longitude and latitude string positions, and the random number nonce to concatenate into a string and use the SHA256 hash function to calculate the hash value to see whether it meets the requirement that the first 4 bits are 0 and whether it is equal to the hash value theHash of the current block. After verification, the server 104 can accept the above-mentioned valid block into the blockchain. In addition, the server 104 can update the account book, update the passenger's order status to delivered, save the online car-hailing driver ID, i.e. the above driver information, the online car-hailing platform ID of the driver, i.e. the above ride-hailing platform information, update the driver's account status to the dispatched state, and save the passenger user ID, i.e. the above user information. Because the account books of each node are updated and the information of this order is saved, this transaction is non-repudiation.

[0084] Among them, the nodes in the above-mentioned blockchain can notify the application in the server 104 through the event (EVNET) that the transaction has been added to the blockchain. Thus, the blockchain network completes the processing of this transaction. The application of server 104 receives the event (EVNET) fed back by the blockchain network, obtains the transaction result, obtains the passenger user ID, the online car-hailing driver ID, and the online car-hailing platform ID to which the driver belongs, and can obtain the information of the passenger, driver, and online car-hailing platform account respectively, and generate response information respectively and send it to the passenger user client and the driver user client. Among them, the information returned by the server 104 to the passenger user client includes the information of the online car-hailing platform to which the driver belongs, the basic information of the driver, the driver's contact information, the driver's location, the estimated route for receiving passengers, the estimated receiving time, the vehicle model, the license plate and other information; the information returned by the server 104 to the driver user client includes the passenger's contact information, the passenger's boarding location, the passenger's destination and other information.

[0085] Through this embodiment, the server 104 can generate and distribute order information corresponding to the ride request through the blockchain, thereby improving the rationality of vehicle resource allocation for multi-platform ride reservations.

[0086] In one embodiment, Figure 4 As shown, Figure 4 It is a flowchart of a ride method based on blockchain in another embodiment. It includes the following process: a user can initiate a ride request based on the client of the passenger terminal 102, the client creates a transaction and sends it to the application of the server 104, the server 104 can generate a transaction proposal based on the transaction and send it to the endorsement node of the server 104, execute the smart contract through the endorsement node, obtain multiple simulation execution results and return them to the application with signatures, and the application can submit the simulation execution results to the sorting node in the server 104 after verification. The server 104 sorts and generates blocks through the sorting node transaction, and the server 104 saves the blocks in the master node and updates the world state, synchronizes the blocks to the endorsement node and returns the corresponding order information to the passenger terminal 102 by sending events.

[0087] The above embodiment, by setting up a consortium chain system based on a distributed ledger, is jointly constructed by each online car-hailing platform, passenger user client, driver user client, monitoring platform, and financial institution platform to jointly complete functions such as transaction verification, transaction authorization, transaction monitoring, and information sharing. The passenger user client and the driver user client create a transaction, and the transaction is propagated and shared to each relevant node in the consortium chain through the P2P network. Each node processes the transaction according to the smart contract. The dispatch and recording of ride transactions are carried out through the blockchain, and all nodes are accounted after consistency verification to generate reliable and irrefutable transaction records. Therefore, on the basis of the existing online car-hailing system, the distributed accounting, smart contract, non-tamperability, and decentralization characteristics of the blockchain can be used to unify each online car-hailing system into the same consortium chain through the blockchain network, realize information sharing, better realize resource allocation, and improve the rationality of ride resource allocation.

[0088] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0089] Based on the same inventive concept, the embodiment of the present application also provides a blockchain-based boarding device for implementing the blockchain-based boarding method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations of one or more blockchain-based boarding device embodiments provided below can refer to the limitations of the blockchain-based boarding method above, and will not be repeated here.

[0090] In one embodiment, Figure 5 As shown, a blockchain-based ride device is provided, comprising: a receiving module 500, a simulation module 502, a generation module 504 and a sending module 506, wherein:

[0091] The receiving module 500 is used to receive a ride request sent by a passenger terminal; the request information of the ride request includes user information and ride information;.

[0092] The simulation module 502 is used to simulate the response to the ride request according to the smart contract and the preset evaluation indicators, and obtain the corresponding multiple simulation response results; the simulation response results include the driver information and the ride platform information.

[0093] The generation module 504 is used to generate corresponding multiple blocks according to the ride request and the simulation response result through the sorting node, and add the valid blocks among the multiple blocks to the blockchain according to the proof-of-work consensus algorithm.

[0094] The sending module 506 is used to generate order information corresponding to the ride request based on the user information, ride information, driver information and ride platform information in the valid block through the blockchain, and send the order information to the passenger terminal and the driver terminal corresponding to the driver information.

[0095] In one embodiment, the simulation module 502 is specifically used to obtain the digital signature and digital certificate corresponding to the passenger terminal; obtain the public key corresponding to the passenger terminal by verifying the digital certificate in the endorsement node, and verify the digital signature based on the public key; if the digital signature verification is successful, obtain multiple simulated driver information and simulated ride platform information corresponding to the ride request according to the smart contract, and obtain the evaluation value corresponding to each simulated driver information based on multiple preset evaluation indicators, the weight corresponding to each preset evaluation, and the number of multiple preset evaluation indicators; the multiple preset evaluation indicators include at least one of a distance indicator, a driver status indicator, a driver vehicle indicator, a vehicle requirement indicator, and a ride platform indicator; based on the evaluation value, determine multiple simulated response results from the multiple simulated driver information and the simulated ride platform information.

[0096] In one embodiment, the above-mentioned device also includes: a feedback module, which is used to send the simulation response result and the digital signature to the passenger terminal; the passenger terminal is used to send the simulation response result to the sorting node after verifying the digital signature.

[0097] In one embodiment, the generation module 504 is specifically used to perform validity detection on multiple blocks to obtain multiple valid blocks; the validity detection includes at least one of whether the block satisfies the preset endorsement policy, whether the simulated response result in the block complies with the bill input and output rules, whether the ride request is valid, and whether the driver information of the simulated response result in the block is valid; according to the proof-of-work consensus algorithm, determine the order in which the valid blocks are added to the blockchain, and add the valid blocks to the blockchain based on the order.

[0098] In one embodiment, the generation module 504 is specifically used to obtain the hash value of the last block in the blockchain and obtain a preset random number; generate a corresponding string according to the hash value, the timestamp, block level, number of transactions, longitude and latitude string and the preset random number of the valid block; input the string into the preset hash function to obtain the corresponding output hash value; detect whether the first preset number of bits in the output hash value is zero, if so, add the valid block as the last block in the blockchain to the blockchain, and obtain a new valid block from multiple valid blocks, and return to the steps of obtaining the hash value of the last block in the blockchain and obtaining the preset random number until multiple valid blocks are added to the blockchain; if not, increase the preset random number by a preset value, and return to the step of generating a corresponding string according to the hash value, the timestamp, block level, number of transactions, longitude and latitude string and the preset random number of the valid block.

[0099] In one embodiment, the sending module 506 is specifically used to receive valid blocks through the blockchain, and update the order status corresponding to the user information and the order status corresponding to the driver information in the blockchain; send the driver information and the ride platform information to the passenger terminal, and send the user information and the ride information to the driver terminal.

[0100] Each module in the above-mentioned blockchain-based ride device can be implemented in whole or in part through software, hardware, and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.

[0101] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as user information and driver information. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a blockchain-based ride method is implemented.

[0102] Those skilled in the art will understand that Figure 6The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0103] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the above-mentioned blockchain-based ride method is implemented.

[0104] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned blockchain-based ride-hailing method is implemented.

[0105] In one embodiment, a computer program product is provided, including a computer program, which implements the above-mentioned blockchain-based ride-hailing method when executed by a processor.

[0106] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0107] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0108] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0109] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A ride method based on blockchain, characterized in that: The method comprises: receiving a ride request sent by a passenger terminal; the request information of the ride request includes user information and ride information; Obtain the digital signature and digital certificate corresponding to the passenger terminal; obtain the public key corresponding to the passenger terminal by verifying the digital certificate in the endorsement node, and verify the digital signature based on the public key; if the digital signature verification is successful, obtain multiple simulated driver information and simulated ride platform information corresponding to the ride request according to the smart contract, and obtain the evaluation value corresponding to each simulated driver information according to multiple preset evaluation indicators, the weight corresponding to each preset evaluation and the number of the multiple preset evaluation indicators; the multiple preset evaluation indicators include a distance indicator, a driver status indicator, a driver vehicle indicator, a vehicle requirement indicator and a ride platform indicator; according to the evaluation value, determine multiple simulated response results from the multiple simulated driver information and simulated ride platform information; Generate multiple corresponding blocks according to the ride request and the simulation response result through the sorting node, and perform validity detection on the multiple blocks to obtain multiple valid blocks; the validity detection includes at least one of whether the block meets the preset endorsement policy, whether the simulation response result in the block meets the bill input and output rules, whether the ride request is valid, and whether the driver information of the simulation response result in the block is valid; determine the order of adding the valid blocks to the blockchain according to the proof-of-work consensus algorithm, and add the valid blocks to the blockchain based on the order; Through the blockchain, the order information corresponding to the ride request is generated based on the user information, ride information, driver information and ride platform information in the valid block, and the order information is sent to the passenger terminal and the driver terminal corresponding to the driver information.

2. The method according to claim 1, characterized in that: After obtaining the corresponding multiple simulation response results, the method further includes: The simulation response result and the digital signature are sent to the passenger terminal; the passenger terminal is used to send the simulation response result to the sorting node after verifying the digital signature.

3. The method according to claim 1, characterized in that Determining the order in which the valid blocks are added to the blockchain according to the proof-of-work consensus algorithm, and adding the valid blocks to the blockchain based on the order, includes: Obtaining the hash value of the last block in the blockchain and obtaining a preset random number; Generate a corresponding string according to the hash value, the timestamp of the valid block, the block level, the number of transactions, the longitude and latitude string and the preset random number; Input the string into a preset hash function to obtain a corresponding output hash value; Detect whether the first preset number of bits in the output hash value is zero, if so, add the valid block as the last block in the blockchain to the blockchain, obtain a new valid block from the multiple valid blocks, and return to the steps of obtaining the hash value of the last block in the blockchain and obtaining a preset random number until all the multiple valid blocks are added to the blockchain; If not, increase the preset random number by a preset value, and return to the step of generating a corresponding string based on the hash value, the timestamp of the valid block, the block level, the number of transactions, the longitude and latitude strings and the preset random number.

4. The method according to claim 1, characterized in that: The method of generating order information corresponding to the ride request based on the user information, ride information, driver information and ride platform information in the valid block through the blockchain, and sending the order information to the passenger terminal and the driver terminal corresponding to the driver information includes: Receiving the valid block through the blockchain, and updating the order status corresponding to the user information and the order status corresponding to the driver information in the blockchain; The driver information and the ride platform information are sent to the passenger terminal, and the user information and the ride information are sent to the driver terminal.

5. A blockchain-based ride device, characterized in that: The device comprises: A receiving module, used for receiving a ride request sent by a passenger terminal; the request information of the ride request includes user information and ride information; A simulation module, used to obtain the digital signature and digital certificate corresponding to the passenger terminal; obtain the public key corresponding to the passenger terminal by verifying the digital certificate in the endorsement node, and verify the digital signature according to the public key; if the digital signature verification is passed, obtain multiple simulated driver information and simulated ride platform information corresponding to the ride request according to the smart contract, and obtain the evaluation value corresponding to each simulated driver information according to multiple preset evaluation indicators, the weight corresponding to each preset evaluation and the number of the multiple preset evaluation indicators; the multiple preset evaluation indicators include a distance indicator, a driver status indicator, a driver vehicle indicator, a vehicle requirement indicator and a ride platform indicator; according to the evaluation value, determine multiple simulation response results from the multiple simulated driver information and simulated ride platform information; A generation module, configured to generate a plurality of corresponding blocks according to the ride request and the simulation response result through a sorting node, and perform validity detection on the plurality of blocks to obtain a plurality of valid blocks; the validity detection includes at least one of whether the block satisfies a preset endorsement policy, whether the simulation response result in the block complies with a bill input and output rule, whether the ride request is valid, and whether the driver information of the simulation response result in the block is valid; according to a proof-of-work consensus algorithm, determine the order in which the valid blocks are added to the blockchain, and add the valid blocks to the blockchain based on the order; A sending module is used to generate order information corresponding to the ride request based on the user information, ride information, driver information and ride platform information in the valid block through the blockchain, and send the order information to the passenger terminal and the driver terminal corresponding to the driver information.

6. The device according to claim 5, characterized in that The device further comprises: a feedback module, configured to: The simulation response result and the digital signature are sent to the passenger terminal; the passenger terminal is used to send the simulation response result to the sorting node after verifying the digital signature.

7. The device according to claim 5, characterized in that The generation module is specifically used for: Obtaining the hash value of the last block in the blockchain and obtaining a preset random number; Generate a corresponding string according to the hash value, the timestamp of the valid block, the block level, the number of transactions, the longitude and latitude string and the preset random number; Input the string into a preset hash function to obtain a corresponding output hash value; Detect whether the first preset number of bits in the output hash value is zero, if so, add the valid block as the last block in the blockchain to the blockchain, obtain a new valid block from the multiple valid blocks, and return to the steps of obtaining the hash value of the last block in the blockchain and obtaining a preset random number until all the multiple valid blocks are added to the blockchain; If not, increase the preset random number by a preset value, and return to the step of generating a corresponding string based on the hash value, the timestamp of the valid block, the block level, the number of transactions, the longitude and latitude strings and the preset random number.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.