CN112232956B - Intelligent parking data processing method and device based on blockchain - Google Patents

Intelligent parking data processing method and device based on blockchain Download PDF

Info

Publication number
CN112232956B
CN112232956B CN202011110659.4A CN202011110659A CN112232956B CN 112232956 B CN112232956 B CN 112232956B CN 202011110659 A CN202011110659 A CN 202011110659A CN 112232956 B CN112232956 B CN 112232956B
Authority
CN
China
Prior art keywords
node
transaction
data
parking lot
target 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.)
Active
Application number
CN202011110659.4A
Other languages
Chinese (zh)
Other versions
CN112232956A (en
Inventor
季策
刘定广
刘维博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Unionpay Co Ltd
Original Assignee
China Unionpay 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 Unionpay Co Ltd filed Critical China Unionpay Co Ltd
Priority to CN202011110659.4A priority Critical patent/CN112232956B/en
Publication of CN112232956A publication Critical patent/CN112232956A/en
Application granted granted Critical
Publication of CN112232956B publication Critical patent/CN112232956B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2365Ensuring data consistency and integrity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/14Payment architectures specially adapted for billing systems
    • 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)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Computer Security & Cryptography (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Traffic Control Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a data processing method and device for intelligent parking based on a block chain, wherein the method comprises the following steps: encrypting the transaction information by the target parking lot node in a preset encryption mode to obtain encrypted transaction data; the target parking lot node sends the encrypted transaction data to a transaction processing node; the transaction processing node meets a preset robustness standard; and the target parking lot node acquires a transaction result from the transaction processing node, generates a block according to the encrypted transaction data and the transaction result, and writes the block into the target parking lot node.

Description

Intelligent parking data processing method and device based on blockchain
Technical Field
The invention relates to the technical field of intelligent parking, in particular to a data processing method and device for intelligent parking based on a block chain.
Background
In the intelligent parking service, after the parking lot determines that the user is an intelligent parking user according to the information (such as license plate number) of the user, the user can pay parking fee directly through a payment system of a background, and the user does not need to pay with temporary cash. Currently, services in smart parking are implemented based on conventional centralized systems. The centralized system comprises a centralized platform and an access party platform of a parking lot.
The current transaction data is transmitted to the centralized platform after the access party platform obtains the transaction data, so that the security is low. The transaction data of the parking of the user is directly stored in the database system of the parking lot, however, the database system of the parking lot generally does not have the capability of safely maintaining the transaction data, and the abuse and the leakage of the transaction data are easily caused. For example, some bad merchants can easily acquire transaction data of users by crawling the web page data. Therefore, the security of the transaction data in the smart parking service is poor, which is a problem to be solved.
Disclosure of Invention
The invention provides a block chain-based intelligent parking data processing method and device, which solve the problem of poor safety in the processing process of transaction data in intelligent parking service in the prior art.
In a first aspect, the present invention provides a data processing method for intelligent parking based on blockchain, including: encrypting the transaction information by the target parking lot node in a preset encryption mode to obtain encrypted transaction data; the target parking lot node sends the encrypted transaction data to a transaction processing node; the transaction processing node meets a preset robustness standard; the target parking lot node obtains a transaction result from the transaction processing node, generates a block according to the encrypted transaction data and the transaction result, and writes the block into the target parking lot node; the transaction result is obtained by the transaction processing node decrypting the encrypted transaction data in a preset decryption mode and executing decrypted transaction information; the decrypted transaction information is obtained by decrypting after the transaction processing node determines that legal consensus of a plurality of consensus nodes on the encrypted transaction data passes; the target parking lot node, the transaction processing node, and the plurality of consensus nodes are all nodes in a blockchain.
In the above manner, the target parking lot node encrypts the transaction information through a preset encryption manner, and sends the encrypted transaction data to the transaction processing node, and because the transaction result is obtained by decrypting the encrypted transaction data through a preset decryption manner by the transaction processing node and then executing the decrypted transaction information, the transaction processing node meets a preset robustness standard, and directly processes the transaction information relative to the target parking lot node, the security is higher, the decrypted transaction information is obtained by decrypting after the legitimacy of the encrypted transaction data through a plurality of consensus nodes, the legitimacy of the decrypted transaction information is obtained by checking the plurality of consensus nodes, and further, a block is generated according to the encrypted transaction data and the transaction result and written into the target parking lot node, and then the encrypted transaction data and the transaction result can be accessed only through an intelligent contract, thereby improving the security in the processing process of the transaction data.
Optionally, the transaction processing node and the plurality of consensus nodes are determined as follows: if the target parking lot node does not have the designated transaction processing node and/or the designated consensus node is smaller than the preset number threshold, the target parking lot node sends detection information to each blockchain node; each blockchain node is at least one blockchain node in the blockchain except the target parking lot node; the target parking lot node acquires performance attribute information of each blockchain node; and the target parking lot node determines the transaction processing node and/or the plurality of consensus nodes according to the performance attribute information of each blockchain node and the preset robustness standard.
In the above method, if the target parking lot node does not have a designated transaction processing node, and/or the designated consensus node is smaller than a preset number threshold, the target parking lot node sends detection information to each blockchain node, so that the transaction processing node and/or the plurality of consensus nodes are determined according to the preset robustness standard through the performance attribute information of each blockchain node, and the transaction processing node and/or the plurality of consensus nodes are ensured to meet the robustness standard.
Optionally, if the target parking lot node has the designated transaction processing node and the designated consensus node is not less than the preset number threshold, the target parking lot node sends detection information to the designated transaction processing node and/or the designated consensus node; the target parking lot node acquires performance attribute information of the designated transaction processing node and/or performance attribute information of the designated consensus node; and deleting the block chain nodes which do not accord with the preset robustness standard in the appointed transaction processing node and/or the appointed consensus node by the target parking lot node according to the performance attribute information of the appointed transaction processing node and/or the performance attribute information of the appointed consensus node.
In the method, the block chain link points which do not meet the preset robustness standard in the appointed transaction processing node and/or the appointed consensus node are deleted in time, so that the appointed transaction processing node and/or the appointed consensus node are kept to meet the preset robustness standard for a long time.
Optionally, the target parking lot node obtains the data of the set query service through an intelligent contract of the set query service; the data of the set query service are transaction data and preset query data; the preset query data remains consistent among nodes of the blockchain.
In the method, the data of the set query service are consistent at each node of the blockchain, so that the corresponding intelligent contract can be called to acquire the data of the set query service, and the influence caused by network fluctuation is reduced.
Optionally, the target parking lot node obtains a user binding request; the target parking lot node displays indication information in a front-end page according to the user binding request; the indication information is used for indicating a user to input data to be bound; the target parking lot node acquires the data to be bound input by a user and encrypts the data to be bound to acquire encrypted data to be bound; the target parking lot node stores the encrypted data to be bound through the binding intelligent contract of the blockchain; the target parking lot node broadcasts the encrypted to-be-bound data to other nodes in the blockchain.
In the above manner, the encrypted data to be bound is broadcasted to other nodes, so that the encrypted data to be bound is ensured to be consistent in the blockchain.
In a second aspect, the present invention provides a data processing method for intelligent parking based on blockchain, including: the transaction processing node acquires encrypted transaction data from a target parking lot node; the encrypted transaction data is obtained by encrypting transaction information through a preset encryption mode by the target parking lot node; the transaction processing node meets a preset robustness standard; the transaction processing node transmits the encrypted transaction data to a plurality of consensus nodes; after the transaction processing node determines that the legitimacy consensus of the plurality of consensus nodes on the encrypted transaction data is passed, the transaction processing node decrypts the encrypted transaction data in a preset decryption mode to obtain decrypted transaction information; and the transaction processing node executes the decrypted transaction information, obtains a transaction result and sends the transaction result to the target parking lot node.
In a third aspect, the present invention provides a blockchain-based smart parking data processing system, comprising: the system comprises a target parking lot node, a transaction processing node and a plurality of consensus nodes; the target parking lot node is used for encrypting the transaction information in a preset encryption mode to obtain encrypted transaction data and sending the encrypted transaction data to the transaction processing node; the transaction processing node meets a preset robustness standard; the transaction processing node is used for sending the encrypted transaction data to the plurality of consensus nodes; the plurality of consensus nodes are used for carrying out legal consensus on the encrypted transaction data; the transaction processing node is further configured to decrypt the encrypted transaction data through a preset decryption mode after legal consensus of the plurality of consensus nodes on the encrypted transaction data passes, so as to obtain decrypted transaction information; and executing the decrypted transaction information to obtain a transaction result, and sending the transaction result to the target parking lot node.
In a fourth aspect, the present invention provides a blockchain-based smart parking data processing device, comprising: the encryption module is used for encrypting the transaction information in a preset encryption mode to obtain encrypted transaction data; the processing module is used for sending the encrypted transaction data to a transaction processing node; the transaction processing node meets a preset robustness standard; obtaining a transaction result from the transaction processing node, generating a block according to the encrypted transaction data and the transaction result, and writing the block into the target parking lot node; the transaction result is obtained by the transaction processing node decrypting the encrypted transaction data in a preset decryption mode and executing decrypted transaction information; the decrypted transaction information is obtained by decrypting after the transaction processing node determines that legal consensus of a plurality of consensus nodes on the encrypted transaction data passes; the target parking lot node, the transaction processing node, and the plurality of consensus nodes are all nodes in a blockchain.
Optionally, the processing module is further configured to: if no designated transaction processing node exists and/or the designated consensus node is smaller than a preset quantity threshold, sending detection information to each blockchain node; each blockchain node is at least one blockchain node in the blockchain except the target parking lot node; acquiring performance attribute information of each block chain node; and determining the transaction processing node and/or the plurality of consensus nodes according to the performance attribute information of each blockchain node and the preset robustness standard.
Optionally, if the designated transaction processing node exists and the designated consensus node is not less than the preset number threshold, sending detection information to the designated transaction processing node and/or the designated consensus node; acquiring performance attribute information of the designated transaction processing node and/or performance attribute information of the designated consensus node; and deleting the block chain nodes which do not accord with the preset robustness standard in the appointed transaction processing node and/or the appointed consensus node according to the performance attribute information of the appointed transaction processing node and/or the performance attribute information of the appointed consensus node.
Optionally, the processing module is further configured to: acquiring data of a set query service through an intelligent contract of the set query service; the data of the set query service are transaction data and preset query data; the preset query data remains consistent among nodes of the blockchain.
The advantages of the foregoing fourth aspect and the respective optional apparatuses of the fourth aspect may be referred to the advantages of the foregoing first aspect and the respective optional methods of the first aspect, and are not described herein again.
In a fifth aspect, the present invention provides a computer device comprising a program or instructions which, when executed, is operable to perform the first or second aspects and the respective alternative methods described above.
In a sixth aspect, the present invention provides a storage medium comprising a program or instructions which, when executed, is operable to carry out the first or second aspects and the respective alternative methods described above.
These and other aspects of the invention will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it will be apparent that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a block chain-based intelligent parking data processing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a system architecture of a block-chain-based intelligent parking data processing system according to an embodiment of the present invention;
FIG. 3 is a block diagram of a block-based intelligent parking data processing system according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a block-chain-based intelligent parking data processing device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Currently, services in smart parking are implemented based on conventional centralized systems. The transaction data of the parking of the user is directly stored in the database system of the parking lot, however, the database system of the parking lot generally does not have the capability of safely maintaining the transaction data, and the abuse and the leakage of the transaction data are easily caused. Therefore, the security of the transaction data in the smart parking service is poor, which is a problem to be solved. To this end, as shown in fig. 1, the present application provides a data processing method for intelligent parking based on blockchain.
Step 101: the target parking lot node encrypts the transaction information in a preset encryption mode to obtain encrypted transaction data.
Step 102: the target parking lot node transmits the encrypted transaction data to a transaction processing node.
The transaction processing node meets a preset robustness criterion.
Step 103: and the target parking lot node acquires a transaction result from the transaction processing node, generates a block according to the encrypted transaction data and the transaction result, and writes the block into the target parking lot node.
In step 101 to step 103, the transaction result is obtained by executing the decrypted transaction information after the transaction processing node decrypts the encrypted transaction data in a preset decryption mode; the decrypted transaction information is obtained by decrypting after the transaction processing node determines that legal consensus of a plurality of consensus nodes on the encrypted transaction data passes; the target parking lot node, the transaction processing node, and the plurality of consensus nodes are all nodes in a blockchain.
In step 101 to step 103, the blockchain may be a coalition chain. The alliance node is mainly based on parking lot service providers and comprises traffic management department nodes and other trusted nodes.
In an alternative embodiment, the transaction processing node and the plurality of consensus nodes are determined in the following manner:
If the target parking lot node does not have the designated transaction processing node and/or the designated consensus node is smaller than the preset number threshold, the target parking lot node sends detection information to each blockchain node; the target parking lot node acquires performance attribute information of each blockchain node; and the target parking lot node determines the transaction processing node and/or the plurality of consensus nodes according to the performance attribute information of each blockchain node and the preset robustness standard.
Wherein each blockchain node is at least one blockchain node in the blockchain other than the target parking lot node.
It should be noted that, the performance attribute information of any blockchain node of the blockchain nodes may include the following items: the net speed of the blockchain node, the workload of the blockchain node, the degree of trustworthiness of the blockchain node (which may be preset, e.g., higher for nodes of a government agency), the weight of the blockchain node (which may be preset, e.g., higher for nodes of a government agency).
It should be noted that there may be a plurality of transaction processing nodes, which may be only one transaction processing node, or may all send the encrypted transaction data to a plurality of consensus nodes, and after the legitimacy consensus of the plurality of consensus nodes on the encrypted transaction data passes, the plurality of transaction processing nodes decrypt the encrypted transaction data by a preset decryption manner, so as to obtain a plurality of decrypted transaction information; the plurality of transaction processing nodes execute the decrypted transaction information respectively to obtain a plurality of transaction results, the transaction results can be commonly known in the transaction processing nodes, one transaction processing node transmits the transaction results to a target parking lot node, or the transaction processing nodes do not commonly know the transaction results, the transaction results are directly transmitted to the target parking lot node, and the target parking lot node only retains one transaction result.
Under the mode based on the transaction processing nodes, a quantity threshold value can be set for a plurality of transaction processing nodes, and under the condition that the quantity of the transaction processing nodes is smaller than the quantity threshold value, the transaction processing nodes are supplemented according to the performance attribute information of the blockchain nodes.
Specifically, the target parking lot node determines the transaction processing node and/or the plurality of consensus nodes according to the performance attribute information of each blockchain node and the preset robustness standard, and may be as follows:
the target parking lot node obtains the comprehensive grading value of each blockchain node according to the performance attribute information of each blockchain node; determining the transaction processing node and/or the plurality of consensus nodes from the blockchain nodes meeting the preset robustness standard in the blockchain nodes, wherein if M+N blockchain nodes meeting the preset robustness standard are used, the first M blockchain nodes are used as a plurality of transaction nodes, and the last N blockchain nodes are used as a plurality of consensus nodes; m and N are positive integers.
Further, one embodiment is as follows:
If the designated transaction processing node exists in the target parking lot node and the designated consensus node is not smaller than the preset quantity threshold, the target parking lot node sends detection information to the designated transaction processing node and/or the designated consensus node; the target parking lot node acquires performance attribute information of the designated transaction processing node and/or performance attribute information of the designated consensus node; and deleting the block chain nodes which do not accord with the preset robustness standard in the appointed transaction processing node and/or the appointed consensus node by the target parking lot node according to the performance attribute information of the appointed transaction processing node and/or the performance attribute information of the appointed consensus node.
Referring to the situation that the target parking lot node does not have a designated transaction processing node and/or the designated consensus node is smaller than the preset quantity threshold, the designated transaction processing node and/or the block chain node which does not meet the preset robustness standard in the designated consensus node can be deleted according to the comprehensive grading value, and the detailed description is omitted.
In an alternative embodiment, the target parking lot node obtains the data of the set query service through an intelligent contract of the set query service.
The data of the set query service are transaction data and preset query data; the preset query data remains consistent among nodes of the blockchain.
It should be noted that, in a specific structure, the transaction data and protocol information followed by the transaction data are written into the block, and are recorded and stored in a blockchain mode so as to keep distributed consistency. Specifically, the preset query data may include user status data (data indicating whether the user is smart parking or not, data requiring user binding), parking lot description data, vehicle status data, and guarantee distributed consistency. The data are encrypted and stored according to a certain rule, and are accessed by setting intelligent contracts provided by query service, so that the data are ensured not to be abused.
In an alternative embodiment, the user may bind as follows:
and the target parking lot node acquires a user binding request.
And the target parking lot node displays indication information in a front-end page according to the user binding request. The indication information is used for indicating the user to input data to be bound.
And the target parking lot node acquires the data to be bound input by the user and encrypts the data to be bound to obtain encrypted data to be bound.
And the target parking lot node stores the encrypted data to be bound through the binding intelligent contract of the blockchain.
The target parking lot node broadcasts the encrypted to-be-bound data to other nodes in the blockchain.
Therefore, in the method shown in fig. 1, the state information such as protocol information, vehicle information, entrance information, etc. is maintained using the blockchain hierarchy, so that many invalidation requests are not caused. Further, a transaction processing node and a consensus node are selected for a period of time based on the consensus algorithm, preventing transaction failure due to robustness issues. The method shown in the figure 1 can cover more conventional processes, reduce the development cost of a parking lot and ensure the stability of each node; the information security risk is reduced through schemes such as encryption of private transactions, intelligent contract management data and the like. With the increase of access parties, the system scheme is continuously perfected, and finally the degree of direct use of the access parties without development can be achieved, so that the access wish of a parking lot can be improved, and the robustness of the system is ensured.
Accordingly, the transaction processing node also has steps similar to those of the target parking lot node, and the steps are as follows:
the transaction processing node obtains encrypted transaction data from the target parking lot node.
The transaction processing node transmits the encrypted transaction data to a plurality of consensus nodes.
After the transaction processing node determines that the legitimacy consensus of the plurality of consensus nodes on the encrypted transaction data is passed, the transaction processing node decrypts the encrypted transaction data in a preset decryption mode to obtain decrypted transaction information.
And the transaction processing node executes the decrypted transaction information, obtains a transaction result and sends the transaction result to the target parking lot node.
The encrypted transaction data is obtained by encrypting transaction information through a preset encryption mode by the target parking lot node; the transaction processing node meets a preset robustness criterion.
It should be noted that the method in fig. 1 is applicable to the system shown in fig. 2, and as shown in fig. 2, an embodiment of the present invention further provides a data processing system for intelligent parking based on a blockchain, including: the system comprises a target parking lot node, a transaction processing node and a plurality of consensus nodes. Specifically:
The target parking lot node is used for encrypting the transaction information in a preset encryption mode to obtain encrypted transaction data, and sending the encrypted transaction data to the transaction processing node.
The transaction processing node meets a preset robustness criterion.
The transaction processing node is configured to send the encrypted transaction data to the plurality of consensus nodes.
The plurality of consensus nodes are used for consensus on the legality of the encrypted transaction data.
The transaction processing node is further configured to decrypt the encrypted transaction data through a preset decryption mode after legal consensus of the plurality of consensus nodes on the encrypted transaction data passes, so as to obtain decrypted transaction information; and executing the decrypted transaction information to obtain a transaction result, and sending the transaction result to the target parking lot node.
The system shown in fig. 2 is for building a smart parking system based on a blockchain. Parking lot service providers can join the alliance chain with parking lot node identities, and government regulators can also choose to join. The front page is respectively responsible for each node. Nodes may be grouped by city. In the public channel of the non-node self-owned channel, the node responsible for the front-end page is selected based on a certain consensus algorithm, and the node is specifically shown in fig. 2. In the system shown in fig. 2, the data needed to ensure distributed consistency may be: protocol chain, transaction chain (transaction data encryption), vehicle status data, user status data, parking lot data. The data stored by each node is: vehicle entrance information, transaction data (not encrypted). In the system, each node of the blockchain is divided into three parts, namely a front subsystem, a rear subsystem and a communication subsystem. The front subsystem is the same as the traditional centralization system, and provides functions of binding vehicles, signing agreements, inquiring historical bills, inquiring nearby parking lots, checking entrance information and the like for users; the rear subsystem may be divided into a transaction module, an intelligent contract module, a data module, and a management module. The communication system provides communication functions between the front and rear subsystems, different nodes. The system modules are shown in fig. 3.
The transaction module is mainly responsible for authenticating the request node when receiving transaction; encrypting and decrypting the private transaction; and the consensus node performs consensus on the transaction data and performs private transactions.
The smart contract module provides a smart contract access interface (API); the account book accesses an API; acquiring a trusted (recommended) node API; a subscription API and a signature encryption API.
The data module comprises subscription data; transaction data; user status data; parking lot data; vehicle in-out data.
The management module is responsible for managing the ingress and egress of member nodes; distributing and modifying signature encryption keys of each member node; and distributing and modifying the authority of each node when calling the intelligent contract API. Specifically, the following interfaces may be included:
Binding state query interface: because the binding state of the vehicle is stored locally, the parking lot can freely select to inquire the state when entering or exiting, and inconvenience caused by network fluctuation and the like is not needed to be worried. And meanwhile, the user data is stored in an encrypted mode, only the content allowed by the node authority can be acquired through the intelligent contract, and excessive use of a parking lot is not required.
In (out of) field notification interface: the in-and-out interface has two roles in the original system design: firstly, the parking amount of the entrance information is displayed for the user, the user is limited to unbind in the field, if the state of unbind in the field is not synchronous, the short money appears in the parking lot lifted first, and the unbind limiting function is not necessary any more along with the fact that the binding state is stored in the local parking lot. Secondly, the user can pay actively (according to the prior investigation and actual situation, the parking lot providing active payment is less). In the system, the data of the vehicle entering and leaving the parking lot does not need to ensure the distributed consistency, otherwise, the waste of the centralized system for storing a large amount of invalid data is not solved at all, and the data of the vehicle entering and leaving the parking lot is only stored by the service provider node of the parking lot. If the user enters from the page of the current node, the user can directly check the local data, if the user enters from the page of the non-current node, the user can check the parking lot data stored in each node to the corresponding node through positioning comparison (the nodes in the same city can be grouped for data synchronization in an optional mode, the data are accessed by the intelligent contract to prevent each node from abusing the data, and the historical entering and exiting data of the node to which the non-data belongs are not stored to prevent resource waste).
Payment (refund) interface: transaction processing nodes and consensus nodes are selected at intervals based on a consensus algorithm (for example, if a traffic department is taken as a node to join a alliance chain and the performance reaches the standard, the traffic department node is preferentially used for processing transactions, if no trusted third party node such as government is available, more abundant resources are used, and each node can also designate part of trusted nodes as own transaction processing nodes. The transaction initiating node encrypts the transaction information and sends the encrypted transaction information to the transaction processing node, and after the transaction processing node and the consensus node reach consensus, the encrypted transaction is decrypted and processed by using the agreed secret key. The encrypted transaction data and the transaction result generation block join the transaction backbone. The method ensures that only the initiating node and the transaction processing node of the private transaction have unencrypted data, and other nodes cannot misuse the data.
The payment result inquiry interface transaction results are shared by all nodes, and if the situation that the payment result needs to be inquired occurs, only the local area block data needs to be inquired.
Blacklist removal interface: similar to the user binding state data, the blacklist information ensures distributed consistency in the blockchain mode, and the parking lot no longer needs to maintain two blacklists.
As shown in fig. 4, the present invention provides a data processing device for intelligent parking based on blockchain, comprising: the encryption module 401 is configured to encrypt the transaction information by a preset encryption manner, so as to obtain encrypted transaction data; a processing module 402, configured to send the encrypted transaction data to a transaction processing node; the transaction processing node meets a preset robustness standard; obtaining a transaction result from the transaction processing node, generating a block according to the encrypted transaction data and the transaction result, and writing the block into the target parking lot node; the transaction result is obtained by the transaction processing node decrypting the encrypted transaction data in a preset decryption mode and executing decrypted transaction information; the decrypted transaction information is obtained by decrypting after the transaction processing node determines that legal consensus of a plurality of consensus nodes on the encrypted transaction data passes; the target parking lot node, the transaction processing node, and the plurality of consensus nodes are all nodes in a blockchain.
Optionally, the processing module 402 is further configured to: if no designated transaction processing node exists and/or the designated consensus node is smaller than a preset quantity threshold, sending detection information to each blockchain node; each blockchain node is at least one blockchain node in the blockchain except the target parking lot node; acquiring performance attribute information of each block chain node; and determining the transaction processing node and/or the plurality of consensus nodes according to the performance attribute information of each blockchain node and the preset robustness standard.
Optionally, if the designated transaction processing node exists and the designated consensus node is not less than the preset number threshold, sending detection information to the designated transaction processing node and/or the designated consensus node; acquiring performance attribute information of the designated transaction processing node and/or performance attribute information of the designated consensus node; and deleting the block chain nodes which do not accord with the preset robustness standard in the appointed transaction processing node and/or the appointed consensus node according to the performance attribute information of the appointed transaction processing node and/or the performance attribute information of the appointed consensus node.
Optionally, the processing module 402 is further configured to: acquiring data of a set query service through an intelligent contract of the set query service; the data of the set query service are transaction data and preset query data; the preset query data remains consistent among nodes of the blockchain.
Based on the same inventive concept, the embodiments of the present invention also provide a computer device including a program or an instruction, when the program or the instruction is executed, the data processing method and any optional method for intelligent parking based on blockchain as provided in the embodiments of the present invention are executed.
Based on the same inventive concept, the embodiments of the present invention also provide a computer readable storage medium including a program or instructions, which when executed, perform a data processing method for intelligent parking based on a blockchain and any optional method as provided in the embodiments of the present invention.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, or as a computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (10)

1. A blockchain-based intelligent parking data processing method, comprising:
Encrypting the transaction information by the target parking lot node in a preset encryption mode to obtain encrypted transaction data;
The target parking lot node sends the encrypted transaction data to a transaction processing node; the transaction processing node meets a preset robustness standard;
The target parking lot node obtains a transaction result from the transaction processing node, generates a block according to the encrypted transaction data and the transaction result, and writes the block into the target parking lot node;
The transaction result is obtained by the transaction processing node decrypting the encrypted transaction data in a preset decryption mode and executing decrypted transaction information; the decrypted transaction information is obtained by decrypting after the transaction processing node determines that legal consensus of a plurality of consensus nodes on the encrypted transaction data passes; the target parking lot node, the transaction processing node and the plurality of consensus nodes are all nodes in a blockchain, the plurality of consensus nodes are used for carrying out legal consensus on the encrypted transaction data, and the blockchain is a alliance chain.
2. The method of claim 1, wherein the transaction processing node and the plurality of consensus nodes are determined as follows:
If the target parking lot node does not have the designated transaction processing node and/or the designated consensus node is smaller than the preset number threshold, the target parking lot node sends detection information to each blockchain node; each blockchain node is at least one blockchain node in the blockchain except the target parking lot node;
the target parking lot node acquires performance attribute information of each blockchain node;
And the target parking lot node determines the transaction processing node and/or the plurality of consensus nodes according to the performance attribute information of each blockchain node and the preset robustness standard.
3. The method as recited in claim 2, further comprising:
If the designated transaction processing node exists in the target parking lot node and the designated consensus node is not smaller than the preset quantity threshold, the target parking lot node sends detection information to the designated transaction processing node and/or the designated consensus node;
The target parking lot node acquires performance attribute information of the designated transaction processing node and/or performance attribute information of the designated consensus node;
And deleting the block chain nodes which do not accord with the preset robustness standard in the appointed transaction processing node and/or the appointed consensus node by the target parking lot node according to the performance attribute information of the appointed transaction processing node and/or the performance attribute information of the appointed consensus node.
4. A method as claimed in any one of claims 1 to 3, further comprising:
the target parking lot node obtains the data of the set query service through the intelligent contract of the set query service; the data of the set query service are transaction data and preset query data; the preset query data remains consistent among nodes of the blockchain.
5. A method as claimed in any one of claims 1 to 3, further comprising:
The target parking lot node obtains a user binding request;
The target parking lot node displays indication information in a front-end page according to the user binding request; the indication information is used for indicating a user to input data to be bound;
the target parking lot node acquires the data to be bound input by a user and encrypts the data to be bound to acquire encrypted data to be bound;
the target parking lot node stores the encrypted data to be bound through the binding intelligent contract of the blockchain;
the target parking lot node broadcasts the encrypted to-be-bound data to other nodes in the blockchain.
6. A blockchain-based intelligent parking data processing method, comprising:
The transaction processing node acquires encrypted transaction data from a target parking lot node; the encrypted transaction data is obtained by encrypting transaction information through a preset encryption mode by the target parking lot node; the transaction processing node meets a preset robustness standard;
the transaction processing node transmits the encrypted transaction data to a plurality of consensus nodes; wherein the plurality of consensus nodes are used for carrying out legal consensus on the encrypted transaction data;
After the transaction processing node determines that the legitimacy consensus of the plurality of consensus nodes on the encrypted transaction data is passed, the transaction processing node decrypts the encrypted transaction data in a preset decryption mode to obtain decrypted transaction information;
And the transaction processing node executes the decrypted transaction information, obtains a transaction result and sends the transaction result to the target parking lot node.
7. A blockchain-based smart parking data processing system, comprising: the system comprises a target parking lot node, a transaction processing node and a plurality of consensus nodes;
The target parking lot node is used for encrypting the transaction information in a preset encryption mode to obtain encrypted transaction data and sending the encrypted transaction data to the transaction processing node; the transaction processing node meets a preset robustness standard;
the transaction processing node is used for sending the encrypted transaction data to the plurality of consensus nodes;
the plurality of consensus nodes are used for carrying out legal consensus on the encrypted transaction data;
The transaction processing node is further configured to decrypt the encrypted transaction data through a preset decryption mode after legal consensus of the plurality of consensus nodes on the encrypted transaction data passes, so as to obtain decrypted transaction information; and executing the decrypted transaction information to obtain a transaction result, and sending the transaction result to the target parking lot node.
8. A blockchain-based intelligent parking data processing apparatus, comprising:
the encryption module is used for encrypting the transaction information in a preset encryption mode to obtain encrypted transaction data;
The processing module is used for sending the encrypted transaction data to a transaction processing node; the transaction processing node meets a preset robustness standard; obtaining a transaction result from the transaction processing node, generating a block according to the encrypted transaction data and the transaction result, and writing the block into a target parking lot node;
The transaction result is obtained by the transaction processing node decrypting the encrypted transaction data in a preset decryption mode and executing decrypted transaction information; the decrypted transaction information is obtained by decrypting after the transaction processing node determines that legal consensus of a plurality of consensus nodes on the encrypted transaction data passes; the target parking lot node, the transaction processing node and the plurality of consensus nodes are all nodes in a blockchain, the plurality of consensus nodes are used for carrying out legal consensus on the encrypted transaction data, and the blockchain is a alliance chain.
9. A computer device comprising a program or instructions which, when executed, performs the method of any of claims 1 to 5 or 6.
10. A computer readable storage medium comprising a program or instructions which, when executed, performs the method of any one of claims 1 to 5 or 6.
CN202011110659.4A 2020-10-16 2020-10-16 Intelligent parking data processing method and device based on blockchain Active CN112232956B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011110659.4A CN112232956B (en) 2020-10-16 2020-10-16 Intelligent parking data processing method and device based on blockchain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011110659.4A CN112232956B (en) 2020-10-16 2020-10-16 Intelligent parking data processing method and device based on blockchain

Publications (2)

Publication Number Publication Date
CN112232956A CN112232956A (en) 2021-01-15
CN112232956B true CN112232956B (en) 2024-05-14

Family

ID=74117732

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011110659.4A Active CN112232956B (en) 2020-10-16 2020-10-16 Intelligent parking data processing method and device based on blockchain

Country Status (1)

Country Link
CN (1) CN112232956B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115314232B (en) * 2021-12-31 2023-06-13 重庆科创职业学院 Data processing method based on artificial intelligence and intelligent parking lot

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106982205A (en) * 2017-03-01 2017-07-25 中钞***产业发展有限公司北京智能卡技术研究院 Digital asset treating method and apparatus based on block chain
CN108365993A (en) * 2018-03-09 2018-08-03 深圳前海微众银行股份有限公司 Block chain link point dynamic altering method, system and computer readable storage medium
CN108830601A (en) * 2018-06-25 2018-11-16 上海延华大数据科技有限公司 Smart city information security application method and system based on block chain
CN109493020A (en) * 2018-11-08 2019-03-19 众安信息技术服务有限公司 Method for secure transactions and device based on block chain
CN109544982A (en) * 2019-01-04 2019-03-29 通链(北京)科技有限公司 Parking information sharing method and shared system
CN110443614A (en) * 2018-09-07 2019-11-12 腾讯科技(深圳)有限公司 Node device delet method, device, computer equipment and storage medium
WO2020042792A1 (en) * 2018-08-31 2020-03-05 阿里巴巴集团控股有限公司 Blockchain-based transaction consensus processing method and apparatus, and electronic device
CN110971712A (en) * 2020-02-28 2020-04-07 台州市相闻信息技术有限公司 Intelligent parking system based on block chain and consensus mechanism optimization method
CN111143885A (en) * 2020-04-02 2020-05-12 支付宝(杭州)信息技术有限公司 Block chain transaction processing method and device and block chain link points
CN111314151A (en) * 2020-02-27 2020-06-19 腾讯科技(深圳)有限公司 Node management method and device, electronic equipment and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107451175B (en) * 2017-05-23 2020-01-31 创新先进技术有限公司 data processing method and device based on block chain

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106982205A (en) * 2017-03-01 2017-07-25 中钞***产业发展有限公司北京智能卡技术研究院 Digital asset treating method and apparatus based on block chain
CN108365993A (en) * 2018-03-09 2018-08-03 深圳前海微众银行股份有限公司 Block chain link point dynamic altering method, system and computer readable storage medium
CN108830601A (en) * 2018-06-25 2018-11-16 上海延华大数据科技有限公司 Smart city information security application method and system based on block chain
WO2020042792A1 (en) * 2018-08-31 2020-03-05 阿里巴巴集团控股有限公司 Blockchain-based transaction consensus processing method and apparatus, and electronic device
CN110443614A (en) * 2018-09-07 2019-11-12 腾讯科技(深圳)有限公司 Node device delet method, device, computer equipment and storage medium
CN109493020A (en) * 2018-11-08 2019-03-19 众安信息技术服务有限公司 Method for secure transactions and device based on block chain
CN109544982A (en) * 2019-01-04 2019-03-29 通链(北京)科技有限公司 Parking information sharing method and shared system
CN111314151A (en) * 2020-02-27 2020-06-19 腾讯科技(深圳)有限公司 Node management method and device, electronic equipment and computer readable storage medium
CN110971712A (en) * 2020-02-28 2020-04-07 台州市相闻信息技术有限公司 Intelligent parking system based on block chain and consensus mechanism optimization method
CN111143885A (en) * 2020-04-02 2020-05-12 支付宝(杭州)信息技术有限公司 Block chain transaction processing method and device and block chain link points

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
可信环境下数据交易协同机制研究及应用;陆雯;徐巧云;李超;;现代计算机(专业版);20171115(第32期);全文 *

Also Published As

Publication number Publication date
CN112232956A (en) 2021-01-15

Similar Documents

Publication Publication Date Title
CN107862215B (en) Data storage method, data query method and device
Li et al. FADB: A fine-grained access control scheme for VANET data based on blockchain
CN111316278B (en) Secure identity and profile management system
Ma et al. Attribute-based secure announcement sharing among vehicles using blockchain
Wang et al. Secure data sharing and customized services for intelligent transportation based on a consortium blockchain
CN110601816B (en) Lightweight node control method and device in block chain system
US20110276490A1 (en) Security service level agreements with publicly verifiable proofs of compliance
US20070203848A1 (en) Account linking with privacy keys
CN105516110A (en) Mobile equipment secure data transmission method
CN113065961A (en) Power block chain data management system
CN112967054B (en) Data management method, device and equipment
CN110619222A (en) Authorization processing method, device, system and medium based on block chain
WO2019175427A1 (en) Method, device and medium for protecting work based on blockchain
Abadi et al. Anylog: a grand unification of the internet of things
CN111612452A (en) Intellectual property management system and method based on block chain
CN111193755B (en) Data access method, data encryption method and data encryption and access system
CN113949541B (en) DDS (direct digital synthesizer) secure communication middleware design method based on attribute strategy
CN112232956B (en) Intelligent parking data processing method and device based on blockchain
CN106358246B (en) Access token issuing method and related equipment
US11610012B1 (en) Systems and processes for providing secure client controlled and managed exchange of data between parties
CN110276693B (en) Insurance claim settlement method and system
CN113127930B (en) Charging data processing method, device and computer readable storage medium
CN116015619A (en) Blockchain data sharing protocol with privacy protection and data availability
CN114329512A (en) Encrypted data asset right confirming, managing and using method and device based on block chain
CN111556160B (en) Data asset admission method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant