CN112232956A - Data processing method and device for intelligent parking based on block chain - Google Patents
Data processing method and device for intelligent parking based on block chain Download PDFInfo
- Publication number
- CN112232956A CN112232956A CN202011110659.4A CN202011110659A CN112232956A CN 112232956 A CN112232956 A CN 112232956A CN 202011110659 A CN202011110659 A CN 202011110659A CN 112232956 A CN112232956 A CN 112232956A
- 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.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 13
- 238000012545 processing Methods 0.000 claims abstract description 167
- 238000000034 method Methods 0.000 claims abstract description 29
- 238000001514 detection method Methods 0.000 claims description 11
- 238000010586 diagram Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 8
- 238000004590 computer program Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 7
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000000977 initiatory effect Effects 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 230000009193 crawling Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011835 investigation Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001105 regulatory effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
- G06F16/2365—Ensuring data consistency and integrity
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/602—Providing cryptographic facilities or services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/04—Payment circuits
- G06Q20/06—Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
- G06Q20/065—Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/08—Payment architectures
- G06Q20/14—Payment architectures specially adapted for billing systems
-
- G—PHYSICS
- G08—SIGNALLING
- G08G—TRAFFIC CONTROL SYSTEMS
- G08G1/00—Traffic control systems for road vehicles
- G08G1/14—Traffic control systems for road vehicles indicating individual free spaces in parking areas
- G08G1/145—Traffic control systems for road vehicles indicating individual free spaces in parking areas where the indication depends on the parking areas
- G08G1/148—Management of a network of parking areas
Abstract
The invention discloses a data processing method and a data processing 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
Technical Field
The invention relates to the technical field of intelligent parking, in particular to a data processing method and device of intelligent parking based on a block chain.
Background
In the intelligent parking service, after the parking lot determines that the user is the intelligent parking user according to the information (such as the license plate number) of the user, the parking fee can be directly paid through a background payment system, and the user does not need to pay by cash temporarily. The services in intelligent parking are currently implemented based on a traditional centralized system. The centralized system comprises a centralized platform and an access side platform of a parking lot.
The current transaction data is transmitted to the centralized platform after the access side platform obtains the transaction data, and the security is low. The transaction data of the user parking is directly stored in the database system of the parking lot, but the database system of the parking lot generally does not have the capability of safely maintaining the transaction data, and the transaction data is easily abused and leaked. For example, some bad merchants can easily obtain the transaction data of the user by crawling the webpage data. Therefore, the safety of the processing process of the transaction data in the current intelligent parking service is poor, which is a problem to be solved urgently.
Disclosure of Invention
The invention provides a data processing method and device for intelligent parking based on a block chain, and solves the problem that the safety of a processing process of transaction data in intelligent parking service in the prior art is poor.
In a first aspect, the present invention provides a data processing method for intelligent parking based on a 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 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; 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 the encrypted transaction data after the transaction processing node determines that the legality consensus of the 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 block chain.
In the above manner, the target parking lot node encrypts the transaction information in a preset encryption manner, obtains encrypted transaction data, and sends the encrypted transaction data to the transaction processing node, because 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 manner, the transaction processing node meets the preset robustness standard, and directly processes the transaction information relative to the target parking lot node, the security is higher, before that, the decrypted transaction information or a plurality of consensus nodes decrypt the encrypted transaction data after the legality consensus of the encrypted transaction data passes, the legality of the encrypted transaction data is also verified by the plurality of consensus nodes, further, a block is generated according to the encrypted transaction data and the transaction result, the block is written into the target parking lot node, and then the encrypted transaction data and the transaction result can be accessed only through intelligence, thereby improving the safety 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 appointed transaction processing node and/or the appointed consensus node is smaller than a preset quantity threshold value, the target parking lot node sends detection information to each block chain node; each block chain node is at least one block chain node except the target parking lot node in the block chain; the target parking lot node acquires performance attribute information of each block chain 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 block chain node and the preset robustness standard.
In the method, 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 block chain 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 block chain node, and the transaction processing node and/or the plurality of consensus nodes are ensured to accord with the robustness standard.
Optionally, if the designated transaction processing node exists in the target parking lot node and the designated consensus node is not smaller 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 the performance attribute information of the appointed transaction processing node and/or the performance attribute information of the appointed consensus node; and the target parking lot node deletes the block chain link points 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.
In the method, the block chain link points which do not accord with 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 accord with the preset robustness standard for a long time.
Optionally, the target parking lot node acquires data of the set query service by setting an intelligent contract of the query service; the data of the set query service is transaction data and preset query data; the preset query data is kept consistent in each node of the block chain.
In the method, the data of the set query service is kept consistent at each node of the block chain, so that the corresponding intelligent contracts can be called to obtain the data of the set query service, and the influence caused by network fluctuation is reduced.
Optionally, the target parking lot node acquires 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 and encrypts data to be bound input by a user to acquire encrypted data to be bound; the target parking lot node stores the encrypted data to be bound through a binding intelligent contract of the block chain; and the target parking lot node broadcasts the encrypted data to be bound to other nodes in the block chain.
In the above manner, the encrypted data to be bound is broadcast 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 a block chain, including: the transaction processing node acquires encrypted transaction data from the target parking lot node; the encrypted transaction data is obtained by encrypting transaction information by the target parking lot node in a preset encryption mode; the transaction processing node meets a preset robustness standard; the transaction processing node sends the encrypted transaction data to a plurality of consensus nodes; after the transaction processing node determines that the plurality of consensus nodes pass the legality consensus of the encrypted transaction data, 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 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; 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 realizing the legality consensus on the encrypted transaction data; the transaction processing node is further configured to decrypt the encrypted transaction data in a preset decryption manner after the plurality of consensus nodes pass the legality consensus of the encrypted transaction data, so as to obtain decrypted transaction information; and executing the decrypted transaction information, obtaining a transaction result, and sending the transaction result to the target parking lot node.
In a fourth aspect, the present invention provides a data processing apparatus for intelligent parking based on a block chain, including: 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; acquiring 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 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 the encrypted transaction data after the transaction processing node determines that the legality consensus of the 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 block chain.
Optionally, the processing module is further configured to: if the appointed transaction processing node does not exist and/or the appointed consensus node is smaller than the preset number threshold, sending detection information to each block chain node; each block chain node is at least one block chain node except the target parking lot node in the block chain; 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 block chain node and the preset robustness standard.
Optionally, if the designated transaction processing node exists and the designated consensus node is not smaller 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 appointed transaction processing node and/or performance attribute information of the appointed consensus node; and deleting the block chain link points 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 the set query service by setting an intelligent contract of the query service; the data of the set query service is transaction data and preset query data; the preset query data is kept consistent in each node of the block chain.
The advantageous effects of the optional apparatuses in the fourth aspect and the fourth aspect may refer to the advantageous effects of the optional methods in the first aspect and the first aspect, and are not described herein again.
In a fifth aspect, the present invention provides a computer apparatus comprising a program or instructions which, when executed, is operable to perform the first or second aspects and various 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 aspect and various alternative methods described above.
These and other aspects of the invention are apparent from and will be elucidated with reference to the embodiments described hereinafter.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart illustrating a data processing method for intelligent parking based on a block chain according to an embodiment of the present invention;
FIG. 2 is a block chain-based data processing system for intelligent parking according to an embodiment of the present invention;
FIG. 3 is a block diagram of a data processing system for intelligent parking based on block chains according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a data processing apparatus for intelligent parking based on a block chain according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The services in intelligent parking are currently implemented based on a traditional centralized system. The transaction data of the user parking is directly stored in the database system of the parking lot, but the database system of the parking lot generally does not have the capability of safely maintaining the transaction data, and the transaction data is easily abused and leaked. Therefore, the safety of the processing process of the transaction data in the current intelligent parking service is poor, which is a problem to be solved urgently. Therefore, as shown in fig. 1, the present application provides a data processing method for intelligent parking based on a block chain.
Step 101: and the target parking lot node encrypts the transaction information in a preset encryption mode to obtain encrypted transaction data.
Step 102: and the target parking lot node sends 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 steps 101 to 103, the transaction result is obtained by executing the decrypted transaction information after the transaction processing node decrypts the encrypted transaction data by a preset decryption mode; the decrypted transaction information is obtained by decrypting the encrypted transaction data after the transaction processing node determines that the legality consensus of the 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 block chain.
In step 101 to step 103, the block chain may be a federation chain. The alliance node is mainly a parking lot service provider and comprises a traffic management department node and other credible nodes.
In an alternative embodiment, the transaction processing node and the plurality of consensus nodes are determined by:
if the target parking lot node does not have the appointed transaction processing node and/or the appointed consensus node is smaller than a preset quantity threshold value, the target parking lot node sends detection information to each block chain node; the target parking lot node acquires performance attribute information of each block chain 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 block chain node and the preset robustness standard.
And each block chain node is at least one block chain node except the target parking lot node in the block chain.
It should be noted that the performance attribute information of any one block link node of each block link point may include the following items: the network speed of the block chain nodes, the workload of the block chain link points, the credibility of the block chain nodes (which can be preset, for example, the credibility of the nodes in the government department is higher), and the weight of the block chain link points (which can be preset, for example, the credibility of the nodes in the government department is higher).
It should be noted that there may be a plurality of transaction processing nodes, only one transaction processing node may be sent to the consensus node, or the plurality of transaction processing nodes all send the encrypted transaction data to the plurality of consensus nodes, and after the plurality of consensus nodes pass the validity consensus on the encrypted transaction data, the plurality of transaction processing nodes decrypt the encrypted transaction data in a preset decryption manner to obtain a plurality of decrypted transaction information; the plurality of transaction processing nodes respectively execute the plurality of decrypted transaction information to obtain a plurality of transaction results, the transaction results can be commonly known in the plurality of transaction processing nodes, and one transaction processing node sends the transaction results to the target parking lot node, or the transaction results are not commonly known in the plurality of transaction processing nodes and directly sent to the target parking lot node, and only one transaction result is reserved in the target parking lot node.
In a transaction processing node-based manner, a quantity threshold may also be set for the plurality of transaction processing nodes, and the transaction processing nodes are supplemented according to the performance attribute information of the blockchain node when the number of the plurality of transaction processing nodes is less than the quantity threshold.
Specifically, the target parking lot node determines the transaction processing node and/or the multiple consensus nodes according to the performance attribute information of each block link node and the preset robustness standard, and the determination may be as follows:
the target parking lot node acquires the comprehensive scoring value of each block chain node according to the performance attribute information of each block chain node; determining the transaction processing nodes and/or the multiple consensus nodes from the block chain nodes meeting the preset robustness standard in the block chain nodes, and if the number of the block chain nodes meeting the preset robustness standard is M + N, taking the first M block chain nodes as multiple transaction nodes and taking the last N block chain nodes as multiple consensus nodes; m and N are positive integers.
Further, an embodiment is as follows:
if the appointed transaction processing node exists in the target parking lot node and the appointed consensus node is not smaller than the preset quantity threshold value, the target parking lot node sends detection information to the appointed transaction processing node and/or the appointed consensus node; the target parking lot node acquires the performance attribute information of the appointed transaction processing node and/or the performance attribute information of the appointed consensus node; and the target parking lot node deletes the block chain link points 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.
Referring to the situation that the target parking lot node has no designated transaction processing node and/or the designated common identification node is smaller than the preset number threshold, the designated transaction processing node and/or the designated common identification node may also be deleted according to the comprehensive score value, and details are not repeated herein.
In an optional implementation manner, the target parking lot node obtains the data of the set query service by setting an intelligent contract of the query service.
The data of the set query service is transaction data and preset query data; the preset query data is kept consistent in each node of the block chain.
It should be noted that, in a specific structure, the transaction data and the protocol information followed by the transaction data are written into the blocks, and the storage is recorded in a block chain mode so as to maintain distributed consistency. Specifically, the preset query data may include user status data (data indicating whether the user is a smart parking, data requiring user binding), parking lot description data, and vehicle status data to ensure distributed consistency. The data are encrypted and stored according to a certain rule, and the data are ensured not to be abused by setting intelligent contract access provided by query service.
In an alternative embodiment, the user may bind according to the following steps:
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 a user to input the data to be bound.
And the target parking lot node acquires and encrypts the data to be bound input by the user to acquire encrypted data to be bound.
And the target parking lot node stores the encrypted data to be bound through a binding intelligent contract of the block chain.
And the target parking lot node broadcasts the encrypted data to be bound to other nodes in the block chain.
Therefore, in the method shown in fig. 1, the use of the state information such as the block chain system maintenance protocol information, the vehicle information, and the entry information does not cause many invalid requests. Further, a transaction processing node and a consensus node are selected for a period of time based on a consensus algorithm, preventing transaction failures due to robustness issues. The method shown in fig. 1 can cover more conventional processes, reduce the development cost of the parking lot, and ensure the stability of each node; the information security risk is reduced by schemes of encrypting 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 that the access parties are free from development and direct use can be achieved, so that the access willingness of the parking lot can be improved, and the robustness of the system is guaranteed.
Correspondingly, the transaction processing node also has steps similar to those of the target parking lot node, which are as follows:
the transaction processing node obtains encrypted transaction data from the target parking lot node.
And the transaction processing node sends the encrypted transaction data to a plurality of consensus nodes.
And after the transaction processing node determines that the plurality of consensus nodes pass the legality consensus of the encrypted transaction data, 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 by the target parking lot node in a preset encryption mode; 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 block chain, including: the system comprises a target parking lot node, a transaction processing node and a plurality of consensus nodes. Specifically, the method comprises the following steps:
and 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.
And the transaction processing node is used for sending the encrypted transaction data to the plurality of consensus nodes.
And the plurality of consensus nodes are used for realizing the legality consensus of the encrypted transaction data.
The transaction processing node is further configured to decrypt the encrypted transaction data in a preset decryption manner after the plurality of consensus nodes pass the legality consensus of the encrypted transaction data, so as to obtain decrypted transaction information; and executing the decrypted transaction information, obtaining a transaction result, and sending the transaction result to the target parking lot node.
The system shown in fig. 2 is a building of an intelligent parking system based on a block chain. The parking lot service provider can join the alliance chain with the parking lot node identity, and the government regulatory department can also choose to join. The front-end pages are respectively responsible for each node. The nodes may be grouped by city. In a public channel which is not a node own channel, a node responsible for a front-end page is selected based on a certain consensus algorithm, as shown in fig. 2. In the system shown in fig. 2, the data required 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 includes: vehicle entry information, transaction data (unencrypted). In the system, each node of the block chain is divided into a front terminal system, a rear terminal system and a communication subsystem in total. The front terminal system is the same as the traditional centralized system and provides functions of binding vehicles, signing an agreement, inquiring historical bills, inquiring nearby parking lots, viewing admission information and the like for a user; the back terminal system can be divided into a transaction module, an intelligent contract module, a data module and a management module. The communication system provides a communication function between the front-end subsystem and the rear-end subsystem and between different nodes. The system modules are shown in fig. 3.
The transaction module is mainly responsible for authenticating the request node when receiving the transaction; encrypting and decrypting the private transaction; and the consensus node performs consensus on the transaction data and executes the privacy transaction.
The intelligent contract module provides an intelligent contract access interface (API); the account book accesses the 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 ingress and egress data.
The management module is responsible for managing the access of the member nodes; distributing and modifying the signature encryption key of each member node; and distributing and modifying the authority of each node when calling the intelligent contract API. In particular, the following interfaces may be included:
binding state query interface: because the vehicle binding state is stored locally, the parking lot can freely select to carry out state query when entering or leaving, and inconvenience caused by network fluctuation and the like does not need to be worried. Meanwhile, the user data is encrypted and stored, and the content allowed by the node authority can be obtained only through an intelligent contract without worrying about the overuse of the parking lot.
In (out) field notification interface: the in-out interface has two functions in the original system design: firstly, show the information parking amount of money of registering and restrict the user and unbundle in the scene for the user, the user unbundles in the scene if the state synchronization can lead to earlier the parking area of lifting the pole to appear the short money, keeps in the parking area local along with the state of binding, and the function of restricting unbundling is no longer necessary. Secondly, the user can conveniently carry out active payment (according to the previous investigation and the actual situation, the parking lot providing the active payment is less). In the system, the distributed consistency of the vehicle entering and leaving data is not required to be ensured, otherwise, the waste of a large amount of invalid data stored by a centralized system is not completely solved, and the vehicle entering and leaving data only can be stored by a service provider node to which a parking lot belongs. If the user enters from the page of the current node, the user can directly check local data, and if the user enters from the page of the non-current node, the user can inquire the corresponding node by positioning and comparing the parking lot data stored in each node (optionally, the nodes in the same city can be grouped for data synchronization, the data is accessed by a smart contract to prevent each node from abusing the data, and the historical entrance and exit data of the node to which the non-data belongs is not stored to prevent resource waste).
Payment (refund) interface: and selecting transaction processing nodes and consensus nodes at intervals based on a consensus algorithm (for example, if a traffic management department joins the alliance chain as a node and the performance reaches the standard, the traffic management department node is preferentially used for processing transactions, if no credible third party node such as a government and the like exists, a free node with rich resources is used, each node can also designate part of credible nodes as own transaction processing nodes, and the nodes with higher credibility are selected as transaction consensus 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 achieve consensus, the encrypted transaction is decrypted and processed by using the agreed secret key. And the encrypted transaction data and the transaction result generation block are added into the transaction main chain. The method and the device ensure that only the initiating node and the transaction processing node have non-encrypted data for the private transaction and other nodes cannot abuse the data.
The payment result query interface shares the transaction result with all nodes, and only the data of the local area needs to be queried if the payment result needs to be queried.
Interface is removed to the blacklist: similar to the user binding state data, the blacklist information ensures distributed consistency in the block chain mode, and the parking lot does not need to maintain two blacklists any more.
As shown in fig. 4, the present invention provides a data processing apparatus for intelligent parking based on block chain, including: the encryption module 401 is configured to encrypt the transaction information in a preset encryption manner 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; acquiring 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 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 the encrypted transaction data after the transaction processing node determines that the legality consensus of the 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 block chain.
Optionally, the processing module 402 is further configured to: if the appointed transaction processing node does not exist and/or the appointed consensus node is smaller than the preset number threshold, sending detection information to each block chain node; each block chain node is at least one block chain node except the target parking lot node in the block chain; 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 block chain node and the preset robustness standard.
Optionally, if the designated transaction processing node exists and the designated consensus node is not smaller 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 appointed transaction processing node and/or performance attribute information of the appointed consensus node; and deleting the block chain link points 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 the set query service by setting an intelligent contract of the query service; the data of the set query service is transaction data and preset query data; the preset query data is kept consistent in each node of the block chain.
Based on the same inventive concept, embodiments of the present invention also provide a computer device, which includes a program or instructions, and when the program or instructions are executed, the data processing method and any optional method for intelligent parking based on block chains according to embodiments of the present invention are executed.
Based on the same inventive concept, embodiments of the present invention also provide a computer-readable storage medium, which includes a program or instructions, and when the program or instructions are executed, the data processing method and any optional method for intelligent parking based on block chains according to embodiments of the present invention are executed.
It should be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, or 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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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. Therefore, it is intended that the appended claims be interpreted as including 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 changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (10)
1. A data processing method for intelligent parking based on a block chain is characterized by comprising 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;
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;
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 the encrypted transaction data after the transaction processing node determines that the legality consensus of the 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 block chain.
2. The method of claim 1, wherein the transaction processing node and the plurality of consensus nodes are determined by:
if the target parking lot node does not have the appointed transaction processing node and/or the appointed consensus node is smaller than a preset quantity threshold value, the target parking lot node sends detection information to each block chain node; each block chain node is at least one block chain node except the target parking lot node in the block chain;
the target parking lot node acquires performance attribute information of each block chain 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 block chain node and the preset robustness standard.
3. The method of claim 2, further comprising:
if the appointed transaction processing node exists in the target parking lot node and the appointed consensus node is not smaller than the preset quantity threshold value, the target parking lot node sends detection information to the appointed transaction processing node and/or the appointed consensus node;
the target parking lot node acquires the performance attribute information of the appointed transaction processing node and/or the performance attribute information of the appointed consensus node;
and the target parking lot node deletes the block chain link points 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.
4. The method of any of claims 1 to 3, further comprising:
the target parking lot node acquires the data of the set query service through the intelligent contract of the set query service; the data of the set query service is transaction data and preset query data; the preset query data is kept consistent in each node of the block chain.
5. The method of any of claims 1 to 3, further comprising:
the target parking lot node acquires 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 and encrypts data to be bound input by a user to acquire encrypted data to be bound;
the target parking lot node stores the encrypted data to be bound through a binding intelligent contract of the block chain;
and the target parking lot node broadcasts the encrypted data to be bound to other nodes in the block chain.
6. A data processing method for intelligent parking based on a block chain is characterized by comprising the following steps:
the transaction processing node acquires encrypted transaction data from the target parking lot node; the encrypted transaction data is obtained by encrypting transaction information by the target parking lot node in a preset encryption mode; the transaction processing node meets a preset robustness standard;
the transaction processing node sends the encrypted transaction data to a plurality of consensus nodes;
after the transaction processing node determines that the plurality of consensus nodes pass the legality consensus of the encrypted transaction data, 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 data processing system for intelligent parking based on a blockchain, 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 realizing the legality consensus on the encrypted transaction data;
the transaction processing node is further configured to decrypt the encrypted transaction data in a preset decryption manner after the plurality of consensus nodes pass the legality consensus of the encrypted transaction data, so as to obtain decrypted transaction information; and executing the decrypted transaction information, obtaining a transaction result, and sending the transaction result to the target parking lot node.
8. The utility model provides a data processing apparatus of wisdom parking based on blockchain which characterized in that includes:
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; acquiring 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 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 the encrypted transaction data after the transaction processing node determines that the legality consensus of the 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 block chain.
9. A computer device comprising a program or instructions that, when executed, perform 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, perform the method of any of claims 1 to 5 or 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011110659.4A CN112232956A (en) | 2020-10-16 | 2020-10-16 | Data processing method and device for intelligent parking based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011110659.4A CN112232956A (en) | 2020-10-16 | 2020-10-16 | Data processing method and device for intelligent parking based on block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112232956A true CN112232956A (en) | 2021-01-15 |
Family
ID=74117732
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011110659.4A Pending CN112232956A (en) | 2020-10-16 | 2020-10-16 | Data processing method and device for intelligent parking based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112232956A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115314232A (en) * | 2021-12-31 | 2022-11-08 | 重庆科创职业学院 | Data processing method based on artificial intelligence and intelligent parking lot |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
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 |
-
2020
- 2020-10-16 CN CN202011110659.4A patent/CN112232956A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
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 |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115314232A (en) * | 2021-12-31 | 2022-11-08 | 重庆科创职业学院 | Data processing method based on artificial intelligence and intelligent parking lot |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Zheng et al. | A traceable blockchain-based access authentication system with privacy preservation in VANETs | |
Zhang et al. | Privacy-preserving cloud establishment and data dissemination scheme for vehicular cloud | |
CN108681966B (en) | Information supervision method and device based on block chain | |
CN109598616B (en) | Method for protecting privacy of blockchain data by introducing arbitration mechanism | |
CN111316278B (en) | Secure identity and profile management system | |
TW202018571A (en) | Data storage method and device based on block chain and electronic equipment | |
TW202018557A (en) | Data evidence saving method and device based on blockchain and electronic equipment | |
CN111292014B (en) | Intelligent agricultural machinery scheduling system based on alliance chain and scheduling method thereof | |
Ma et al. | Blockchain-driven trusted data sharing with privacy protection in IoT sensor network | |
CN109450843B (en) | SSL certificate management method and system based on block chain | |
CN113704210A (en) | Data sharing method and electronic equipment | |
CN113326541B (en) | Cloud edge collaborative multi-mode private data transfer method based on intelligent contract | |
WO2023005838A1 (en) | Data sharing method and electronic device | |
CN113347008B (en) | Loan information storage method adopting addition homomorphic encryption | |
CN111914293A (en) | Data access authority verification method and device, computer equipment and storage medium | |
CN112235301B (en) | Access right verification method and device and electronic equipment | |
CN115049398A (en) | Complete data asset trusted management and value transfer system and method | |
CN110769274A (en) | Live broadcast information processing method and device based on block chain network, electronic equipment and storage medium | |
CN110619222A (en) | Authorization processing method, device, system and medium based on block chain | |
CN114139203A (en) | Block chain-based heterogeneous identity alliance risk assessment system and method and terminal | |
Gao et al. | BFR-SE: a blockchain-based fair and reliable searchable encryption scheme for IoT with fine-grained access control in cloud environment | |
Zhang et al. | Secure and reliable parking protocol based on blockchain for VANETs | |
KR101120059B1 (en) | Billing verifying apparatus, billing apparatus and method for cloud computing environment | |
WO2019175427A1 (en) | Method, device and medium for protecting work based on blockchain | |
CN112232956A (en) | Data processing method and device for intelligent parking based on block chain |
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 |