CN113012466A - Parking space sharing method based on block chain, user node, equipment and storage medium - Google Patents

Parking space sharing method based on block chain, user node, equipment and storage medium Download PDF

Info

Publication number
CN113012466A
CN113012466A CN202110202747.5A CN202110202747A CN113012466A CN 113012466 A CN113012466 A CN 113012466A CN 202110202747 A CN202110202747 A CN 202110202747A CN 113012466 A CN113012466 A CN 113012466A
Authority
CN
China
Prior art keywords
parking space
user node
space sharing
message
parking
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.)
Pending
Application number
CN202110202747.5A
Other languages
Chinese (zh)
Inventor
黄珂
杜杏兰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202110202747.5A priority Critical patent/CN113012466A/en
Publication of CN113012466A publication Critical patent/CN113012466A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1854Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with non-centralised forwarding system, e.g. chaincast
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/14Traffic control systems for road vehicles indicating individual free spaces in parking areas
    • G08G1/145Traffic control systems for road vehicles indicating individual free spaces in parking areas where the indication depends on the parking areas
    • G08G1/148Management of a network of parking areas

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Traffic Control Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present disclosure provides a parking space sharing method based on a block chain, a first user node, a second user node, a computer device and a readable storage medium, wherein the method includes: the method comprises the steps that a first user node sends a first broadcast message including parking space sharing demand information to a block chain, so that other user nodes judge whether the parking space sharing demand is met or not according to the parking space sharing demand information, and if the parking space sharing demand information is met, a feedback message is returned to the first user node; the first user receives the feedback message and selects one user node for carrying out parking space sharing as a second user node; sending the parking space sharing message to a second user node, and receiving the parking space sharing message returned after the second user node confirms; and stamping a timestamp on the confirmed parking space sharing message, and sending the parking space sharing message to the block chain, so that each block chain link point stores the parking space sharing message to the block chain. The technical scheme of the parking stall system can solve the problems that parking is difficult, parking stalls are difficult to find, the parking stalls are idle and waste, and traffic jam is caused by disordered parking.

Description

Parking space sharing method based on block chain, user node, equipment and storage medium
Technical Field
The disclosure belongs to the technical field of block chains, and particularly relates to a parking space sharing method based on a block chain, a first user node, a second user node, a computer device and a computer readable storage medium.
Background
In urban life, parking difficulty becomes a bottleneck problem of urban static traffic; on one hand, public parking resources are seriously insufficient; on the other hand, the prior art means are difficult to realize the effective allocation and utilization of the existing parking resources.
Among the most common parking methods in the prior art are the user purchasing or renting a dedicated parking space or entering a pay-per-time parking lot for temporary parking. Because most users have the requirement of parking for a long time, especially for office workers with fixed work, a method of purchasing or renting special parking spaces is usually adopted, two fixed parking spaces are needed at home and in a unit to meet the requirement, so that the situation that the parking spaces near the home at work time are free, the parking spaces in the unit at work time are free, the parking spaces cannot be effectively utilized, and meanwhile, due to the fact that public parking resources are insufficient, a part of users cannot find the parking spaces to influence the trip, or the traffic jam and even traffic accidents are caused by disorderly parking.
Disclosure of Invention
The invention provides a parking space sharing method based on a block chain, a first user node, a second user node, a computer device and a computer readable storage medium, which can solve the problems of traffic jam and the like caused by difficult parking, difficult parking space finding, vacant parking space waste and disordered parking.
In a first aspect, an embodiment of the present disclosure provides a parking space sharing method based on a block chain, which is applied to a first user node, and the method includes:
sending a first broadcast message to a block chain network, wherein the first broadcast message comprises parking space sharing demand information of a first user node, so that other user nodes in the block chain network respectively judge whether the parking space sharing demand of the first user node is met or not according to the parking space sharing demand information, and if the parking space sharing demand information is met, sending a parking space sharing feedback message to the first user node;
receiving parking space sharing feedback messages sent by other user nodes, and selecting one user node for parking space sharing as a second user node;
the parking space sharing message confirmed by the first user node is sent to the second user node, and the parking space sharing message returned by the second user node and confirmed by the second user node is received;
stamping a time stamp on the parking space sharing message confirmed by the first user node and the second user node;
and sending a second broadcast message to a block chain network, wherein the second broadcast message comprises the parking space sharing message with the time stamp, so that each user node can store the parking space sharing message respectively.
In a second aspect, an embodiment of the present disclosure provides a parking space sharing method based on a block chain, which is applied to a second user node, and the method includes:
receiving a first broadcast message sent by a first user node to a block chain network, wherein the first broadcast message comprises parking space sharing demand information of the first user node;
judging whether the parking space sharing demand information meets the parking space sharing demand of the first user node or not according to the parking space sharing demand information;
if the parking space sharing information meets the requirement, the parking space sharing feedback information is sent to the first user node, so that the first user node selects the second user node to share the parking space, and the parking space sharing information confirmed by the first user node is sent to the second user node;
and receiving the parking space sharing message confirmed by the first user node, returning the parking space sharing message confirmed by the second user node to the first user node, so that the first user node stamps a timestamp on the parking space sharing message confirmed by the first user node and the second user node, and sending a second broadcast message to the block link network, wherein the second broadcast message comprises the parking space sharing message stamped with the timestamp, so that each user node can store the parking space sharing message respectively.
In a third aspect, an embodiment of the present disclosure provides a first user node, including: the system comprises a first sending module, a selection module, a first receiving module and a signature module;
the first sending module is configured to send a first broadcast message to the blockchain network, wherein the first broadcast message comprises parking space sharing demand information of the first user node, so that other user nodes in the blockchain network respectively judge whether the parking space sharing demand of the first user node is met or not according to the parking space sharing demand information, and if the parking space sharing demand information is met, the first sending module sends a parking space sharing feedback message to the first user node;
the first receiving module is used for receiving parking space sharing feedback messages sent by other user nodes;
the selection module is set to select one user node for carrying out parking space sharing from other user nodes sending the parking space sharing feedback message as a second user node;
the first sending module is also set to send the parking space sharing message confirmed by the first user node to the second user node;
the first receiving module is also configured to receive a parking space sharing message returned by the second user node and confirmed by the second user node;
the signature module is set to stamp the parking space sharing message confirmed by the first user node and the second user node with a time stamp;
the first sending module is further configured to send a second broadcast message to the block chain network, where the second broadcast message includes the parking space sharing message with the timestamp, so that each user node stores the parking space sharing message respectively.
In a fourth aspect, an embodiment of the present disclosure provides a second user node, including: the device comprises a second receiving module, a judging module and a second sending module;
the second receiving module is configured to receive a first broadcast message sent by a first user node to a block chain network, wherein the first broadcast message includes parking space sharing demand information of the first user node;
the judging module is used for judging whether the second user node meets the parking space sharing requirement of the first user node according to the parking space sharing requirement information;
the second sending module is set to send the parking space sharing feedback message to the first user node if the judgment of the judging module is satisfied, so that the first user node selects the second user node to share the parking space, and sends the parking space sharing message confirmed by the first user node to the second user node;
the second receiving module is further configured to receive the parking space sharing message confirmed by the first user node, and return the parking space sharing message confirmed by the second user node to the first user node, so that the first user node stamps a time stamp on the parking space sharing message confirmed by the first user node and the second user node, and sends a second broadcast message to the block chain network, wherein the second broadcast message includes the parking space sharing message stamped with the time stamp, so that each user node is respectively stored.
In a fifth aspect, an embodiment of the present disclosure further provides a computer device, including a memory and a processor, where the memory stores a computer program, and when the processor runs the computer program stored in the memory, the processor executes the space sharing method based on the block chain according to any one of the first and second aspects.
In a sixth aspect, this disclosed embodiment also provides a computer-readable storage medium, including: a computer program which, when run on a computer, causes the computer to perform the method for sharing a space based on a blockchain according to any one of the first and second aspects.
Has the advantages that:
the block chain-based parking space sharing method, the first user node, the second user node, the computer device and the computer readable storage medium provided by the disclosure send a first broadcast message to a block chain network, wherein the first broadcast message comprises parking space sharing demand information of the first user node, so that other user nodes in the block chain network respectively judge whether the parking space sharing demand of the first user node is met or not according to the parking space sharing demand information, and if the parking space sharing demand information is met, the parking space sharing feedback message is sent to the first user node; receiving parking space sharing feedback messages sent by other user nodes, and selecting one user node for parking space sharing as a second user node; the parking space sharing message confirmed by the first user node is sent to the second user node, and the parking space sharing message returned by the second user node and confirmed by the second user node is received; stamping a time stamp on the parking space sharing message confirmed by the first user node and the second user node; and sending a second broadcast message to a block chain network, wherein the second broadcast message comprises the parking space sharing message with the time stamp, so that each user node can store the parking space sharing message respectively. According to the technical scheme, safe and efficient management is conducted on processes of parking space sharing such as application, information transmission and confirmation on the basis of the internet of things technology and the block chain technology; the method comprises the steps that a block chain is formed by a network entity and block chain nodes deployed on the network entity, a user publishes parking space sharing information on the block chain, other users confirm parking space sharing with the user, and the information is published on the block chain. The parking space sharing system provides safe and effective guarantee for users to share the parking space, thereby effectively solving a series of problems of traffic jam and the like caused by difficult parking, difficult parking space finding, idle and waste parking space and disordered parking, and bringing great convenience to the parking of the users.
Drawings
Fig. 1 is a schematic flowchart of a parking space sharing method based on a block chain according to a first embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a parking space sharing method based on a block chain according to a second embodiment of the present disclosure;
fig. 3 is an architecture diagram of a first user node according to a third embodiment of the present disclosure;
fig. 4 is an architecture diagram of a second user node according to a fourth embodiment of the present disclosure;
fig. 5 is an architecture diagram of a parking space sharing system based on a block chain according to a fifth embodiment of the present disclosure;
fig. 6 is an architecture diagram of a computer device according to a sixth embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those skilled in the art, the present disclosure is further described in detail below with reference to the accompanying drawings and examples.
In which the terminology used in the embodiments of the disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in the disclosed embodiments and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
Among the most common parking methods in the prior art are the user purchasing or renting a dedicated parking space or entering a pay-per-time parking lot for temporary parking. Since most users have the requirement of parking for a long time, a method for purchasing or renting special parking spaces is generally adopted, and two fixed parking spaces are required to be respectively arranged at home and in a unit to meet the requirement, so that the situation that the parking spaces near the home are free at working time, the parking spaces are free at work time unit, the parking spaces cannot be effectively utilized, meanwhile, due to the fact that public parking resources are insufficient, a part of users cannot find the parking spaces to influence traveling, or parking in disorder causes traffic jam or even traffic accidents
The following describes the technical solutions of the present disclosure and how to solve the above technical problems in specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 1 is a schematic flowchart of a block chain-based parking space sharing method provided in an embodiment of the present disclosure, and is applied to a first user node, as shown in fig. 1, the method includes:
step S101: sending a first broadcast message to a block chain network, wherein the first broadcast message comprises parking space sharing demand information of a first user node, so that other user nodes in the block chain network respectively judge whether the parking space sharing demand of the first user node is met or not according to the parking space sharing demand information, and if the parking space sharing demand information is met, sending a parking space sharing feedback message to the first user node;
step S102: receiving parking space sharing feedback messages sent by other user nodes, and selecting one user node for parking space sharing as a second user node;
step S103: the parking space sharing message confirmed by the first user node is sent to the second user node, and the parking space sharing message returned by the second user node and confirmed by the second user node is received;
step S104: stamping a time stamp on the parking space sharing message confirmed by the first user node and the second user node;
step S105: and sending a second broadcast message to a block chain network, wherein the second broadcast message comprises the parking space sharing message with the time stamp, so that each user node can store the parking space sharing message respectively.
In order to realize parking space sharing safely and reliably, the embodiment of the disclosure constructs a block chain system by network entities such as a parking space management platform, a payment platform, a parking space sensing device, user terminal equipment and block chain nodes deployed on the network entities on the basis of an internet of things technology and a block chain technology, and each user node comprises the terminal equipment and the block chain nodes thereof, the terminal equipment can be electronic equipment such as a mobile phone, a computer and a vehicle capable of being networked, and for example, the first user node comprises first user terminal equipment and first block chain nodes deployed on the first user terminal equipment.
When a first user has a parking space sharing demand, a first application message is sent to a first block chain node through first user terminal equipment of the first user to request to issue the parking space sharing demand to a block chain network, wherein the first application message is parking space sharing demand information and can contain a parking position, a parking lot name, a parking date, parking starting time, parking ending time and the like; after receiving the first application message, the first block chain link point sends a first broadcast message containing the first application message to a block chain; after receiving the first broadcast message, namely after receiving the first broadcast message, the other user nodes in the block chain send the first broadcast message to the corresponding terminal devices, and the other users judge whether the parking space sharing requirements of the first user node are met according to the parking space sharing requirement information and the self conditions, for example, whether the parking space position and the parking time are suitable for the other users, or whether the parking space requirement information provided by the other user node can be provided, and the like. In the process, a plurality of other users may be willing to share the parking space with the first user, the first block link point may receive feedback messages sent by the plurality of other user nodes, the first block link point aggregates the feedback messages and sends the aggregated feedback messages to the first user terminal device, the first user terminal device selects a proper user to share the parking space according to the self condition, for example, the first user node sends the parking space sharing message confirmed by the first user node to the second block link node of the second user node, and the parking space sharing message is forwarded to the second user terminal device by the second user node. The second user terminal device may also receive the parking space sharing demand information sent by the plurality of user nodes, if the second user confirms that the parking space sharing is performed with the first user, the parking space sharing message confirmed by the second user terminal device is returned to the first user node, the first user node receives the parking space sharing message returned by the second user node and confirmed by the second user node, and therefore the first user node and the second user node confirm that the parking space sharing is performed.
And the first block chain node stamps a time stamp on the parking space sharing message and sends a second broadcast message to the block chain, wherein the second broadcast message comprises the parking space sharing message and a verification result. So that each block link point stores the parking space sharing message into the block chain. And other block chain nodes store the application information contained in the parking space sharing message into the block chain, and if a plurality of same parking space sharing messages exist, the parking space sharing application with the earliest application time is judged to be legal application according to the timestamp.
Further, the method further comprises:
carrying out digital signature on the parking space sharing message confirmed by the first user node and the second user node;
sending a third broadcast message to a block chain network, wherein the third broadcast message comprises a parking space sharing message confirmed by a first user node and a second user node, and the first user node digitally signs the parking space sharing message, so that other user nodes verify the parking space sharing message according to the digital signature, and send a verification result to the first user node;
receiving verification results sent by other user nodes, obtaining a final verification result, and if the final verification result is passed, performing the step of stamping a time stamp on the parking space sharing message confirmed by the first user node and the second user node; and the number of the first and second groups,
adding the final verification result in the second broadcast message. .
After receiving a parking space sharing message returned by a second user node, a first user node sends a third broadcast message to a block chain, wherein the third broadcast message comprises a parking space sharing message which is encrypted by a first user terminal device by using a private key and is confirmed by the first user node and the second user node, and the parking space sharing message comprises license plate information, shared parking space information, a parking date, parking starting time and parking ending time; the first user node carries out digital signature on the parking space sharing message, wherein the digital signature is obtained by carrying out hash operation on the digital identity of the unique representative identity of the first user terminal equipment by using a random function through the first block link point; the other user nodes verify the parking space sharing information according to the digital signature so as to prove the authenticity of the first user terminal equipment; the block chain nodes of other users sign the parking space sharing message according to the authenticity of the first user terminal equipment and send the parking space sharing message to the first block chain node, and the first block chain node receives and summarizes the signatures of the block chain nodes; and if all the signature results are consistent and real, stamping a timestamp on the parking space sharing message, and broadcasting the sharing confirmation message and the verification result to the block chain.
Furthermore, the parking space sharing demand information comprises a sharing mode,
the sharing mode is parking space demand or parking space supply;
if the sharing mode is the parking space requirement, the first user node is indicated to need parking space parking;
and if the sharing mode is parking space supply, the first user node can provide parking space for renting.
The first user node may be a node that requires a parking space, for example, a parking space is required in a certain parking lot at a certain time, or may be a node that provides a parking space, for example, a fixed parking space is available in a certain parking lot, a parking space may be rented at a certain time, and according to the condition of the first user node, a sharing mode is determined to be a parking space requirement or a parking space supply in the parking space sharing requirement information.
Further, if the sharing mode is parking space supply, the parking space sharing demand information further comprises parking time and parking space charging standards; the method further comprises the following steps:
calculating parking cost according to the parking time and the parking space charging standard in the parking space sharing demand information, and sending the parking cost calculation result to a payment platform node and a second user node so that the second user node pays the parking cost at the payment platform node;
receiving a payment completion message sent by the payment platform node after the second user node completes payment;
and sending a fourth broadcast message to a block chain network, wherein the fourth broadcast message comprises the payment completion message so as to enable each user node to be stored respectively.
The parking space charging standard is used for calculating the cost in parking space sharing, the cost is provided by a user providing a parking space, after the two parties determine to share the parking space, the first user node can charge based on the parking space charging standard and the parking time, the parking cost is sent to the party requiring the parking space, and the party is paid with the parking cost. And the payment platform confirms the payment process, and if the payment is finished, the payment platform sends a payment finishing message to the first user node.
Further, if the sharing mode is a parking space requirement, the parking space sharing feedback message includes a parking space charging standard, and the parking space sharing requirement information also includes parking time; the method further comprises the following steps:
calculating parking cost according to the parking time in the parking space sharing demand information and the parking space charging standard in the parking space sharing feedback information, and sending a parking cost calculation result to a payment platform node;
paying the parking fee according to the parking fee calculation result;
receiving a payment completion message sent by a payment platform node;
and sending a fourth broadcast message to a block chain network, wherein the fourth broadcast message comprises the payment completion message so as to enable each user node to be stored respectively.
The first user node broadcasts the payment completion message to the block chain, application, information transmission, confirmation, payment and recording of the whole process in the parking space sharing process are completed, and the safety and reliability of data are guaranteed.
In the follow-up actual parking stall sharing process, can guarantee through parking stall management platform, parking stall induction system that the sharing goes on smoothly, because all information are all recorded in the block chain, can't falsify, the user can share the parking stall according to the shared information of agreed parking stall.
According to the method, the safe and efficient management of the processes of applying, information transmitting, confirming, paying, recording and the like in the parking space sharing process is realized through the methods of distributed storage, digital signature, encryption technology, security algorithm, privacy protection strategy and the like of the block chain; and the user publishes the parking space sharing information on the block chain, and other users confirm parking space sharing with the user and publish the information on the block chain after verification. The parking space sharing system provides safe and effective guarantee for users to share the parking space, thereby effectively solving a series of problems of traffic jam and the like caused by difficult parking, difficult parking space finding, idle and waste parking space and disordered parking, and bringing great convenience to the parking of the users.
Fig. 2 is a schematic flow chart of a parking space sharing method based on a block chain according to a second embodiment of the present disclosure, which is applied to a second user node, and as shown in fig. 2, the method includes:
step S201: receiving a first broadcast message sent by a first user node to a block chain network, wherein the first broadcast message comprises parking space sharing demand information of the first user node;
step S202: judging whether the parking space sharing demand information meets the parking space sharing demand of the first user node or not according to the parking space sharing demand information;
step S203: if the parking space sharing information meets the requirement, the parking space sharing feedback information is sent to the first user node, so that the first user node selects the second user node to share the parking space, and the parking space sharing information confirmed by the first user node is sent to the second user node;
step S204: and receiving the parking space sharing message confirmed by the first user node, returning the parking space sharing message confirmed by the second user node to the first user node, so that the first user node stamps a timestamp on the parking space sharing message confirmed by the first user node and the second user node, and sending a second broadcast message to the block link network, wherein the second broadcast message comprises the parking space sharing message stamped with the timestamp, so that each user node can store the parking space sharing message respectively.
The second user node comprises a second user terminal device and a second block chain node, the second block chain node receives the broadcast message in the block chain, if the second user needs to share the parking space, after receiving the first broadcast message comprising the parking space sharing demand information of the first user node, whether the first broadcast message meets the parking space sharing demand of the first user node or not is judged according to the self condition, and if the first broadcast message meets the parking space sharing demand of the first user node, the second block chain node receives the broadcast message; and if the second user node also determines to share the parking space, the parking space sharing message confirmed by the second user node is returned, and the second user node and the first user node achieve consensus. And the first user node stamps the parking space sharing message confirmed by the first user node and the second user node with a time stamp, broadcasts a second broadcast including the parking space sharing message to the block chain, and stores the second broadcast in the block chain nodes.
Further, the method further comprises:
receiving a third broadcast message sent by a first user node to a block chain network, wherein the third broadcast message comprises a parking space sharing message confirmed by the first user node and a second user node, and a digital signature of the first user node on the parking space sharing message;
and verifying the parking space sharing information according to the digital signature, sending a verification result to the first user node, so that the first user node obtains a final verification result according to the verification result sent by the second user node and the verification results sent by other user nodes in the block chain network, executing an operation of stamping a timestamp on the parking space sharing information confirmed by the first user node and the second user node when the final verification result is passed, and adding the final verification result in the second broadcast message.
And the second user node receives the third broadcast message sent by the first user node, verifies the parking space sharing information, receives the second broadcast message sent by the first user node if the verification of all the user nodes is passed, stores the application information and the verification result contained in the parking space sharing information into a block chain, and judges the application with the earliest application time as a legal application according to the timestamp if the parking space sharing information of a plurality of second broadcast messages exists.
Further, the verifying the parking space sharing information according to the digital signature includes:
acquiring a digital identity and a random function of a first user node from a block chain network, and acquiring a digital signature of the first user node on the parking space sharing message from a third broadcast message;
and carrying out hash operation on the digital signature in the third broadcast message by using a random function of the first user node to obtain a digital identity, comparing the digital identity with the digital identity of the first user node obtained from the block chain network, and if the comparison result is consistent, verifying that the result is a pass.
The digital signature is obtained by carrying out hash operation on the digital identity which uniquely represents the identity in the block chain by using a random function through the block chain;
the first user terminal equipment selects a proper user node to share the parking space and then sends a second application message to the first block chain node; after the first block chain link point receives a second application message, the second application message comprises a digital signature encrypted by the first user terminal device by using a private key and parking space sharing information, and the first block chain link point sends a third broadcast message containing the second application message to the block chain; the digital signature is obtained after the block chain uses a random function to carry out hash operation on the digital identity which uniquely represents the identity in the block chain, namely the first block chain link point uses the random function to carry out hash operation on the digital identity which uniquely represents the identity of the first user terminal equipment; after each block chain link point receives the third broadcast message, the public key, the digital identity and the random function of the first user terminal equipment are obtained from the block chain, and the public key is used for decrypting the second application message to obtain the plaintext of the digital signature and the parking space sharing information; and each block chain link point uses a random function acquired from the block chain to carry out Hash operation on the digital signature contained in the second application message to obtain a digital identity, the digital identity is compared with the digital identity acquired from the block chain, and if the comparison result is consistent, the authenticity of the first user terminal equipment is proved, and the verification result is proved to be passed. The verification result is then sent to the first user node.
Fig. 3 is an architecture diagram of a first user node according to a third embodiment of the present disclosure, as shown in fig. 3, including: a first sending module 11, a first receiving module 12, a selecting module 13, and a signature module 14;
the first sending module 11 is configured to send a first broadcast message to the blockchain network, where the first broadcast message includes the parking space sharing demand information of the first user node, so that other user nodes in the blockchain network respectively determine whether the respective parking space sharing demand of the first user node is met according to the parking space sharing demand information, and if so, send a parking space sharing feedback message to the first user node;
the first receiving module 12 is configured to receive the parking space sharing feedback message sent by the other user node;
the selection module 13 is configured to select one user node performing parking space sharing from other user nodes sending the parking space sharing feedback message as a second user node;
the first sending module 11 is further configured to send a parking space sharing message confirmed by the first user node to the second user node;
the first receiving module 12 is further configured to receive a parking space sharing message returned by the second user node and confirmed by the second user node;
the signature module 14 is configured to timestamp the parking space sharing message confirmed by the first user node and the second user node;
the first sending module 11 is further configured to send a second broadcast message to the blockchain network, where the second broadcast message includes the parking space sharing message with the timestamp, so that each user node stores the parking space sharing message respectively.
Further, the signature module 14 is further configured to perform digital signature on the parking space sharing message confirmed by the first user node and the second user node;
the first sending module 11 is further configured to send a third broadcast message to the block chain network, where the third broadcast message includes a parking space sharing message confirmed by the first user node and the second user node, and a digital signature of the parking space sharing message by the first user node, so that other user nodes verify the parking space sharing message according to the digital signature, and send a verification result to the first user node;
the first receiving module 12 is further configured to receive the verification results sent by other user nodes, and obtain a final verification result, and if the final verification result is a pass, the signing module 14 executes the step of time stamping the parking space sharing message confirmed by the first user node and the second user node;
the first sending module 11 is further configured to add the final verification result to the second broadcast message.
Further, the parking space sharing demand information comprises a sharing mode, and the sharing mode is parking space demand or parking space supply;
if the sharing mode is the parking space requirement, the first user node is indicated to need parking space parking; and if the sharing mode is parking space supply, the first user node can provide parking space for renting.
Further, the first user node further includes a charging module 15;
if the sharing mode is parking space supply, the parking space sharing demand information further comprises parking time and parking space charging standards;
the charging module 15 is configured to calculate parking fees according to parking time and parking stall charging criteria in the parking stall sharing demand information, and enable the first sending module 11 to send the parking fee calculation results to the payment platform node and the second user node, so that the second user node pays the parking fee at the payment platform node;
the first receiving module 12 is further configured to receive a payment completion message sent by the payment platform node after the payment of the second user node is completed;
the first sending module 11 is further configured to send a fourth broadcast message to a block chain network, where the fourth broadcast message includes the payment completion message, so that each user node is stored separately.
Further, the first user node further comprises a charging module 15 and a payment module 16;
if the sharing mode is the parking space requirement, the parking space sharing feedback message comprises a parking space charging standard, and the parking space sharing requirement information also comprises parking time;
the charging module 15 is configured to calculate parking fees according to the parking time in the parking space sharing demand information and the parking space charging standard in the parking space sharing feedback message, and enable the first sending module 11 to send the parking fee calculation results to the payment platform node;
the payment module 16 is configured to pay the parking fee according to the parking fee calculation result;
the first receiving module 12 is further configured to receive a payment completion message sent by a payment platform node;
the first sending module 11 is further configured to send a fourth broadcast message to a block chain network, where the fourth broadcast message includes the payment completion message, so that each user node is stored separately.
Fig. 4 is an architecture diagram of a second user node according to a fourth embodiment of the present disclosure, as shown in fig. 4, including: the second receiving module 21, the judging module 22 and the second sending module 23:
the second receiving module 21 is configured to receive a first broadcast message sent by a first user node to a block chain network, where the first broadcast message includes parking space sharing requirement information of the first user node;
the judging module 22 is configured to judge whether the second user node meets the parking space sharing requirement of the first user node according to the parking space sharing requirement information;
the second sending module 23 is configured to send a parking space sharing feedback message to the first user node if the judgment module judges that the parking space sharing feedback message is satisfied, so that the first user node selects the second user node to share the parking space, and sends the parking space sharing message confirmed by the first user node to the second user node;
the second receiving module 21 is further configured to receive the parking space sharing message confirmed by the first user node, and enable the second sending module 22 to return the parking space sharing message confirmed by the second user node to the first user node, so that the first user node stamps a time stamp on the parking space sharing message confirmed by the first user node and the second user node, and sends a second broadcast message to the block chain network, where the second broadcast message includes the parking space sharing message stamped with the time stamp, so that each user node stores the parking space sharing message respectively.
Further, the second user node further comprises a verification module 24;
the second receiving module 21 is further configured to receive a third broadcast message sent by the first user node to the blockchain network, where the third broadcast message includes a parking space sharing message confirmed by the first user node and the second user node, and a digital signature of the first user node on the parking space sharing message;
the verification module 24 is configured to verify the parking space sharing information according to the digital signature, and enable the second sending module 22 to send the verification result to the first user node, so that the first user node obtains a final verification result according to the verification result sent by the second user node and the verification results sent by other user nodes in the block chain network, and when the final verification result is passed, perform an operation of stamping a time stamp on the parking space sharing information confirmed by the first user node and the second user node, and add the final verification result to the second broadcast message.
Further, the verification module 24 includes:
the acquisition unit is configured to acquire the digital identity and the random function of the first user node from the block chain network, and acquire the digital signature of the first user node on the parking space sharing message from the third broadcast message;
and the verification unit is configured to perform hash operation on the digital signature in the third broadcast message by using a random function of the first user node to obtain a digital identity, compare the digital identity with the digital identity of the first user node acquired from the blockchain network, and determine that the verification result is a pass if the comparison result is consistent.
In the technical scheme of the present disclosure, the first user node may further include each module in the second user node, the second user node may further include each module of the first user node, and the first user node and the second user node may be converted according to an actual situation.
The first user node and the second user node in the embodiment of the present disclosure are used to implement the space sharing method based on the block chain in the first embodiment of the method and the second embodiment of the method, so the description is simpler, and reference may be specifically made to the related descriptions in the first embodiment of the method and the second embodiment of the method, and details are not repeated here.
In addition, as shown in fig. 5, a fifth embodiment of the present disclosure further provides a parking space sharing system based on a block chain, including the first user node 1, the second user node 2, and the payment platform node 3.
Furthermore, as shown in fig. 6, a computer device according to a sixth embodiment of the present disclosure further includes a memory 10 and a processor 20, where the memory 10 stores a computer program, and when the processor 20 runs the computer program stored in the memory 10, the processor 20 executes the above-mentioned various possible container cluster view automatic construction methods.
In addition, the embodiment of the present disclosure further provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when at least one processor of the user equipment executes the computer-executable instructions, the user equipment executes the above various possible container cluster view automatic construction methods.
Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an ASIC (Application Specific Integrated Circuit). Additionally, the ASIC may reside in user equipment. Of course, the processor and the storage medium may reside as discrete components in a communication device.
It is to be understood that the above embodiments are merely exemplary embodiments that are employed to illustrate the principles of the present disclosure, and that the present disclosure is not limited thereto. It will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the disclosure, and these are to be considered as the scope of the disclosure.

Claims (12)

1. A parking space sharing method based on a block chain is applied to a first user node, and is characterized by comprising the following steps:
sending a first broadcast message to a block chain network, wherein the first broadcast message comprises parking space sharing demand information of a first user node, so that other user nodes in the block chain network respectively judge whether the parking space sharing demand of the first user node is met or not according to the parking space sharing demand information, and if the parking space sharing demand information is met, sending a parking space sharing feedback message to the first user node;
receiving parking space sharing feedback messages sent by other user nodes, and selecting one user node for parking space sharing as a second user node;
the parking space sharing message confirmed by the first user node is sent to the second user node, and the parking space sharing message returned by the second user node and confirmed by the second user node is received;
stamping a time stamp on the parking space sharing message confirmed by the first user node and the second user node;
and sending a second broadcast message to a block chain network, wherein the second broadcast message comprises the parking space sharing message with the time stamp, so that each user node can store the parking space sharing message respectively.
2. The method of claim 1, further comprising:
carrying out digital signature on the parking space sharing message confirmed by the first user node and the second user node;
sending a third broadcast message to a block chain network, wherein the third broadcast message comprises a parking space sharing message confirmed by a first user node and a second user node, and the first user node digitally signs the parking space sharing message, so that other user nodes verify the parking space sharing message according to the digital signature, and send a verification result to the first user node;
receiving verification results sent by other user nodes, obtaining a final verification result, and if the final verification result is passed, performing the step of stamping a time stamp on the parking space sharing message confirmed by the first user node and the second user node; and the number of the first and second groups,
adding the final verification result in the second broadcast message.
3. The method according to claim 1, wherein the parking space sharing demand information includes a sharing mode, and the sharing mode is a parking space demand or a parking space supply;
if the sharing mode is the parking space requirement, the first user node is indicated to need parking space parking; and if the sharing mode is parking space supply, the first user node can provide parking space for renting.
4. The method according to claim 3, wherein if the sharing mode is space supply, the space sharing demand information further includes parking time and space charging standard; the method further comprises the following steps:
calculating parking cost according to the parking time and the parking space charging standard in the parking space sharing demand information, and sending the parking cost calculation result to a payment platform node and a second user node so that the second user node pays the parking cost at the payment platform node;
receiving a payment completion message sent by the payment platform node after the second user node completes payment;
and sending a fourth broadcast message to a block chain network, wherein the fourth broadcast message comprises the payment completion message so as to enable each user node to be stored respectively.
5. The method according to claim 3, wherein if the sharing mode is a parking space requirement, the parking space sharing feedback message includes a parking space charging standard, and the parking space sharing requirement information further includes parking time; the method further comprises the following steps:
calculating parking cost according to the parking time in the parking space sharing demand information and the parking space charging standard in the parking space sharing feedback information, and sending a parking cost calculation result to a payment platform node;
paying the parking fee according to the parking fee calculation result;
receiving a payment completion message sent by a payment platform node;
and sending a fourth broadcast message to a block chain network, wherein the fourth broadcast message comprises the payment completion message so as to enable each user node to be stored respectively.
6. A parking space sharing method based on a block chain is applied to a second user node, and is characterized by comprising the following steps:
receiving a first broadcast message sent by a first user node to a block chain network, wherein the first broadcast message comprises parking space sharing demand information of the first user node;
judging whether the parking space sharing demand information meets the parking space sharing demand of the first user node or not according to the parking space sharing demand information;
if the parking space sharing information meets the requirement, the parking space sharing feedback information is sent to the first user node, so that the first user node selects the second user node to share the parking space, and the parking space sharing information confirmed by the first user node is sent to the second user node;
and receiving the parking space sharing message confirmed by the first user node, returning the parking space sharing message confirmed by the second user node to the first user node, so that the first user node stamps a timestamp on the parking space sharing message confirmed by the first user node and the second user node, and sending a second broadcast message to the block link network, wherein the second broadcast message comprises the parking space sharing message stamped with the timestamp, so that each user node can store the parking space sharing message respectively.
7. The method of claim 6, further comprising:
receiving a third broadcast message sent by a first user node to a block chain network, wherein the third broadcast message comprises a parking space sharing message confirmed by the first user node and a second user node, and a digital signature of the first user node on the parking space sharing message;
and verifying the parking space sharing information according to the digital signature, sending a verification result to the first user node, so that the first user node obtains a final verification result according to the verification result sent by the second user node and the verification results sent by other user nodes in the block chain network, executing an operation of stamping a timestamp on the parking space sharing information confirmed by the first user node and the second user node when the final verification result is passed, and adding the final verification result in the second broadcast message.
8. The method of claim 7,
the verifying the parking space sharing information according to the digital signature comprises:
acquiring a digital identity and a random function of a first user node from a block chain network, and acquiring a digital signature of the first user node on the parking space sharing message from a third broadcast message;
and carrying out hash operation on the digital signature in the third broadcast message by using a random function of the first user node to obtain a digital identity, comparing the digital identity with the digital identity of the first user node obtained from the block chain network, and if the comparison result is consistent, verifying that the result is a pass.
9. A first user node, comprising: the system comprises a first sending module, a selection module, a first receiving module and a signature module;
the first sending module is configured to send a first broadcast message to the blockchain network, wherein the first broadcast message comprises parking space sharing demand information of the first user node, so that other user nodes in the blockchain network respectively judge whether the parking space sharing demand of the first user node is met or not according to the parking space sharing demand information, and if the parking space sharing demand information is met, the first sending module sends a parking space sharing feedback message to the first user node;
the first receiving module is used for receiving parking space sharing feedback messages sent by other user nodes;
the selection module is set to select one user node for carrying out parking space sharing from other user nodes sending the parking space sharing feedback message as a second user node;
the first sending module is also set to send the parking space sharing message confirmed by the first user node to the second user node;
the first receiving module is also configured to receive a parking space sharing message returned by the second user node and confirmed by the second user node;
the signature module is set to stamp the parking space sharing message confirmed by the first user node and the second user node with a time stamp;
the first sending module is further configured to send a second broadcast message to the block chain network, where the second broadcast message includes the parking space sharing message with the timestamp, so that each user node stores the parking space sharing message respectively.
10. A second user node, comprising: the device comprises a second receiving module, a judging module and a second sending module;
the second receiving module is configured to receive a first broadcast message sent by a first user node to a block chain network, wherein the first broadcast message includes parking space sharing demand information of the first user node;
the judging module is used for judging whether the second user node meets the parking space sharing requirement of the first user node according to the parking space sharing requirement information;
the second sending module is set to send the parking space sharing feedback message to the first user node if the judgment of the judging module is satisfied, so that the first user node selects the second user node to share the parking space, and sends the parking space sharing message confirmed by the first user node to the second user node;
the second receiving module is further configured to receive the parking space sharing message confirmed by the first user node, and the second sending module returns the parking space sharing message confirmed by the second user node to the first user node, so that the first user node stamps a time stamp on the parking space sharing message confirmed by the first user node and the second user node and sends a second broadcast message to the block chain network, wherein the second broadcast message includes the parking space sharing message stamped with the time stamp, and therefore the user nodes are respectively stored.
11. Computer arrangement, characterized in that it comprises a memory and a processor, in which a computer program is stored, which processor, when running the computer program stored by the memory, executes the method for block chain based space sharing according to any of claims 1-5 and 6-8.
12. A computer-readable storage medium, comprising: computer program which, when run on a computer, causes the computer to perform the block chain based space sharing method according to any one of claims 1-5 and claims 6-8.
CN202110202747.5A 2021-02-23 2021-02-23 Parking space sharing method based on block chain, user node, equipment and storage medium Pending CN113012466A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110202747.5A CN113012466A (en) 2021-02-23 2021-02-23 Parking space sharing method based on block chain, user node, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110202747.5A CN113012466A (en) 2021-02-23 2021-02-23 Parking space sharing method based on block chain, user node, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113012466A true CN113012466A (en) 2021-06-22

Family

ID=76408110

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110202747.5A Pending CN113012466A (en) 2021-02-23 2021-02-23 Parking space sharing method based on block chain, user node, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113012466A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018171543A1 (en) * 2017-03-24 2018-09-27 阿里巴巴集团控股有限公司 Method and device for broadcasting messages
CN108615402A (en) * 2018-06-14 2018-10-02 山东交通学院 A kind of intelligent parking and parking stall shared system based on block chain technology
CN108667632A (en) * 2018-04-19 2018-10-16 阿里巴巴集团控股有限公司 Based on the credit record sharing method and device of block chain, electronic equipment
CN108694858A (en) * 2018-07-20 2018-10-23 谭智 A kind of method and its system carrying out parking management based on block chain technology
CN108766020A (en) * 2018-06-04 2018-11-06 深圳拍物联科技有限公司 A kind of parking stall sharing method and system based on block chain
CN110544392A (en) * 2019-08-06 2019-12-06 南京国磐信息科技有限公司 Real-time shared parking space scheduling system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018171543A1 (en) * 2017-03-24 2018-09-27 阿里巴巴集团控股有限公司 Method and device for broadcasting messages
CN108667632A (en) * 2018-04-19 2018-10-16 阿里巴巴集团控股有限公司 Based on the credit record sharing method and device of block chain, electronic equipment
CN108766020A (en) * 2018-06-04 2018-11-06 深圳拍物联科技有限公司 A kind of parking stall sharing method and system based on block chain
CN108615402A (en) * 2018-06-14 2018-10-02 山东交通学院 A kind of intelligent parking and parking stall shared system based on block chain technology
CN108694858A (en) * 2018-07-20 2018-10-23 谭智 A kind of method and its system carrying out parking management based on block chain technology
CN110544392A (en) * 2019-08-06 2019-12-06 南京国磐信息科技有限公司 Real-time shared parking space scheduling system

Similar Documents

Publication Publication Date Title
US20200286162A1 (en) Method and server for managing shared vehicles
CN109829621B (en) Network appointment vehicle dispatching method and device
Zhang et al. Design of
Chen et al. A group signature based electronic toll pricing system
US20200286044A1 (en) Maintenance station management method, system and data management serve
CN110889520B (en) Vehicle management method, device, terminal and storage medium based on block chain
CN106899972B (en) Vehicle registration method, vehicle charging method, device and system
CN112765656B (en) Electric car sharing charging credible system and method based on block chain
CN108876506A (en) A kind of vehicle registration method and device
US20190108690A1 (en) Systems for counting passengers
CN110648534A (en) Traffic data chaining method and device of Internet of things based on block chain
CN111516547B (en) Charging method and device of private charging pile based on alliance chain
CN111639836B (en) Vehicle scheduling processing method and device based on block chain and computer equipment
CN110443957B (en) Shared vehicle use management method, device, server and storage medium
Zhou et al. A decentralized car-sharing control scheme based on smart contract in internet-of-vehicles
CN110660466A (en) Personal health data chaining method and system of Internet of things by combining block chains
CN112561103A (en) Parking reservation management method, node, device and medium based on block chain
Zhang et al. Secure and reliable parking protocol based on blockchain for VANETs
CN110852851A (en) Block chain-based vehicle sharing method and device and readable storage medium
CN114495564A (en) Shared parking space matching method and device, server and storage medium
CN110059943A (en) A kind of method, apparatus dispatched buses, equipment and storage medium
CN110874738A (en) Method and device for collecting and processing traffic violation information of intelligent traffic control and intelligent traffic control
CN113012466A (en) Parking space sharing method based on block chain, user node, equipment and storage medium
Borges et al. Parking tickets for privacy-preserving pay-by-phone parking
Zuo et al. Cost-effective privacy-preserving vehicular urban sensing system

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210622