CN113610642A - Data processing method and device based on block chain and electronic equipment - Google Patents

Data processing method and device based on block chain and electronic equipment Download PDF

Info

Publication number
CN113610642A
CN113610642A CN202110894193.XA CN202110894193A CN113610642A CN 113610642 A CN113610642 A CN 113610642A CN 202110894193 A CN202110894193 A CN 202110894193A CN 113610642 A CN113610642 A CN 113610642A
Authority
CN
China
Prior art keywords
data
transaction
node
block
roadside
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110894193.XA
Other languages
Chinese (zh)
Inventor
荆博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202110894193.XA priority Critical patent/CN113610642A/en
Publication of CN113610642A publication Critical patent/CN113610642A/en
Pending legal-status Critical Current

Links

Images

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

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Traffic Control Systems (AREA)

Abstract

The disclosure provides a data processing method and device based on a block chain and electronic equipment, and relates to the technical field of computers, in particular to the technical field of block chains. The specific implementation scheme is as follows: acquiring related data of a running vehicle in a monitoring area; judging whether the related data meet preset data conditions or not, and assembling the transaction according to the judgment result; and sending the transaction to the roadside all-node to which the roadside light node belongs, so that the roadside all-node broadcasts the transaction in the block chain, and the block outlet node is based on the transaction packaging block. Based on the scheme, the relevant data of the running vehicles collected by the roadside light nodes can be uploaded to the block chain for storage, the reliability of the relevant data of the running vehicles is guaranteed, a foundation is provided for judging accident liability by taking the relevant data of the running vehicles stored in the block chain as evidence, the problem of accident liability assignment is solved, and the accuracy of accident liability judgment is enhanced.

Description

Data processing method and device based on block chain and electronic equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a data processing method and apparatus based on a block chain, and an electronic device.
Background
At present, when a vehicle has a traffic accident, a traffic management department needs to take evidence and reconnaissance of the accident scene to determine the cause of the traffic accident, thereby determining accident responsibility. However, evidence collection at the accident site is difficult to determine, which affects the determination of accident liability.
If the relevant data in the driving process of the vehicle can be used as evidence for judging the responsibility of the vehicle in the accident, the accuracy of judging the responsibility of the accident can be enhanced, and the problem of accident liability assignment is solved.
Disclosure of Invention
In order to solve at least one of the above drawbacks, the present disclosure provides a data processing method and apparatus based on a block chain, and an electronic device.
According to a first aspect of the present disclosure, there is provided a data processing method based on a block chain, the method including:
acquiring related data of a running vehicle in a monitoring area;
judging whether the related data meet preset data conditions or not, and assembling the transaction according to the judgment result;
and sending the transaction to a roadside full node to which the roadside light node belongs, broadcasting the transaction in a block chain by the roadside full node, and enabling the block node to be based on a transaction packing block, wherein the monitoring area of the roadside light node is located in the associated geographic area of the roadside full node.
According to a second aspect of the present disclosure, there is provided another block chain-based data processing method, including:
receiving a transaction sent by a roadside light node located in an associated geographic area of a roadside full node, wherein the transaction is assembled by judging whether relevant data of a running vehicle in a monitoring area meets a preset data condition or not by the roadside light node according to a judgment result;
the transaction is broadcast within the blockchain, such that the chunking nodes pack the chunks based on the transaction.
According to a third aspect of the present disclosure, there is provided a block chain-based data processing apparatus, the apparatus comprising:
the data acquisition module is used for acquiring related data of vehicles running in the monitoring area;
the transaction assembly module is used for judging whether the related data meet preset data conditions or not and assembling transactions according to the judgment result;
and the transaction sending module is used for sending the transaction to the roadside all-node to which the roadside light node belongs, so that the roadside all-node broadcasts the transaction in a block chain, and the block outlet node is based on a transaction packing block, wherein the monitoring area of the roadside light node is positioned in the associated geographic area of the roadside all-node.
According to a fourth aspect of the present disclosure, there is provided a block chain-based data processing apparatus, the apparatus comprising:
the transaction receiving module is used for receiving a transaction sent by the roadside light node located in the associated geographic area of the roadside total node, wherein the transaction is assembled by judging whether the related data of a running vehicle in the monitoring area meets a preset data condition or not by the roadside light node according to a judgment result;
and the transaction broadcasting module is used for broadcasting the transaction in the block chain so that the block node is based on the transaction packaging block.
According to a fifth aspect of the present disclosure, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the block chain based data processing method.
According to a sixth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium storing computer instructions for causing a computer to execute the above block chain based data processing method.
According to a seventh aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the above-described blockchain-based data processing method.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a schematic flowchart of a data processing method based on a block chain according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of another data processing method based on a blockchain according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a block chain system in one embodiment of the disclosure;
FIG. 4 is a schematic block chain-based data processing apparatus according to the present disclosure;
FIG. 5 is a block chain based data processing apparatus according to the present disclosure;
fig. 6 is a block diagram of an electronic device for implementing a blockchain-based data processing method according to an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
With the popularization of the internet of vehicles, related data of vehicles during driving can be transmitted to a cloud end of a vehicle factory, and due to the fact that a control party of the data is located in the vehicle factory, the possibility of data tampering exists, and the data are insufficient in public confidence when used as evidence.
The block chain is used as a decentralized distributed account book technology, has the characteristics of decentralized and tamper-proof functions and the like, and if relevant data of a vehicle during driving can be stored through the block chain, the public trust of the data during use as evidence can be enhanced, and therefore the accuracy of accident responsibility judgment is enhanced.
The block chain-based data processing method, device and electronic equipment provided by the embodiments of the present application aim to solve at least one of the above technical problems in the prior art.
Fig. 1 shows a schematic flowchart of a data processing method based on a block chain according to an embodiment of the present disclosure, and as shown in fig. 1, the method may be applied to a roadside light node, and the method mainly includes:
step S110: and acquiring related data of the running vehicle in the monitoring area.
Step S120: and judging whether the related data meet preset data conditions or not, and assembling the transaction according to the judgment result.
Step S130: and sending the transaction to a roadside full node to which the roadside light node belongs, broadcasting the transaction in a block chain by the roadside full node, and enabling the block node to be based on a transaction packing block, wherein the monitoring area of the roadside light node is located in the associated geographic area of the roadside full node.
In the embodiment of the disclosure, both the roadside light nodes and the roadside total nodes can be roadside devices (i.e., roadside units) and used as edge calculation units. The roadside light nodes can acquire relevant data of vehicles running in the monitoring area through the sensors. As one example, the monitored area may be a certain road segment. The roadside light nodes can establish communication connection with the roadside full nodes.
The related data may include, but is not limited to, external environment data and driving state data of the vehicle, and as one example, the driving state data of the vehicle may include image data or traffic light data when the vehicle is driving on a road, or the like.
The sensors for collecting data related to vehicles traveling in the monitored area may include, but are not limited to, millimeter wave radar, ultrasonic radar, lidar, cameras, and the like.
In this example, the relevant data of the running vehicle may include various data, data conditions may be preconfigured, whether the collected relevant data meets the data conditions is judged, and the transaction is assembled according to the judgment result.
In actual use, the roadside light nodes can be assembled for transaction periodically, and the transaction can also be assembled after a certain amount of collected related data.
In actual use, geographic areas can be divided, all the geographic areas are provided with roadside full nodes, and relevant data of roadside light nodes in the associated geographic areas are processed through the roadside full nodes. As an example, the geographic area may be different road segments into which the whole road is divided, and the roadside light node located in a certain road segment may register with the roadside total node associated with the road segment, so that the roadside light node belongs to the roadside total node associated with the road segment, and then the roadside light node may report data to the roadside total node to which the roadside light node belongs.
The roadside light nodes send transactions to roadside full nodes to which the roadside light nodes belong, the roadside full nodes broadcast the transactions in block chains, then the block outlet nodes store related data of the running vehicles in the block chains through receiving blocks based on transaction packing blocks.
The block chain has the characteristics of tamper resistance and traceability, so that the authenticity and the accuracy of the related data of the running vehicles stored in the block chain can be ensured, the related data of the running vehicles can be used as evidence, and a foundation is provided for judging accident liability based on the related data of the running vehicles stored in the block chain.
According to the method provided by the embodiment of the disclosure, whether the related data meet the preset data condition is judged by obtaining the related data of the running vehicle in the monitoring area, the transaction is assembled according to the judgment result, the transaction is sent to the roadside all-node to which the roadside light node belongs, the roadside all-node broadcasts the transaction in the block chain, and the block-out node is based on the transaction packaging block. Based on the scheme, the relevant data of the running vehicles collected by the roadside light nodes can be uploaded to the block chain for storage, the reliability of the relevant data of the running vehicles is guaranteed, a foundation is provided for judging accident liability by taking the relevant data of the running vehicles stored in the block chain as evidence, the problem of accident liability assignment is solved, and the accuracy of accident liability judgment is enhanced.
In an optional mode of the disclosure, the data condition includes at least one of:
the data volume of the related data is larger than a preset value;
the relevant data belongs to pre-specified sensitive data.
In the embodiment of the present disclosure, the data condition may be set such that the data volume of the related data is greater than a preset value, and/or the related data belongs to pre-specified sensitive data.
In the embodiment of the disclosure, when the data volume of the related data of the traveling vehicle is large, if the original data is directly stored on the block chain, more storage resources are occupied.
When the relevant data of the running vehicle is sensitive data related to the privacy of the user, if the original data is directly stored on the block chain, the privacy of the user can be leaked.
In an optional aspect of the present disclosure, assembling the transaction according to the determination result includes:
if the judgment result is that the related data meet the preset data condition, determining the data characteristics of the related data, and assembling the transaction based on the data characteristics and the related data;
basing a tile node on a transaction packaging tile, comprising:
and enabling the block-out node to pack the data characteristics carried in the transaction into the block.
In the embodiment of the disclosure, when it is determined that the related data of the traveling vehicle meets the data condition, the data characteristics of the related data may be determined, and the data characteristics and the related data (i.e., the original data) are assembled into a transaction, so that when a block output node performs a block output of the transaction, only the data characteristics are packed into a block, and thus the data characteristics of the related data of the traveling vehicle are stored in a block chain.
When the data volume of the related data of the running vehicle meets the data condition (namely the original data volume is large), the occupation of the storage resources can be reduced by storing the data characteristics on the block chain.
When the related data of the running vehicle belongs to sensitive data, the data characteristics are stored in the block chain, so that the privacy of a user can be prevented from being disclosed.
As an example, the data characteristic may be a hash value of the related data described above.
In an optional aspect of the present disclosure, assembling the transaction according to the determination result includes:
if the judgment result is that the related data do not meet the preset data condition, assembling the transaction based on the related data;
basing a tile node on a transaction packaging tile, comprising:
and enabling the block-out node to pack the related data carried in the transaction into the block.
In the embodiment of the disclosure, when it is determined that the related data of the traveling vehicle does not satisfy the data condition, that is, the related data of the traveling vehicle is not private data and the data amount is not large, the related data may be assembled into a transaction, and when a block output node performs block output, the related data is packed into a block, so that the related data of the traveling vehicle is stored in a block chain.
In the embodiment of the disclosure, the roadside light node may initiate a registration request to the roadside full node associated with the geographical area where the roadside light node is located when initializing.
As an example, the blockchain system provided in the embodiment of the present disclosure may further include a cloud end full node, where the cloud end full node may store the related data or the data characteristics of the related data, so as to provide a data query service to related departments, so that the related departments perform accident liability assessment.
As an example, the blockchain system provided by the embodiment of the present disclosure may assemble summary information of a blockhead and the like into a transaction, and send the transaction to a certificate chain of a related organization for certificate storage, thereby improving the judicial effectiveness of the evidence.
As an example, the block chain system provided by the embodiment of the present disclosure may interface with a time service center, provide reliable time for evidence data, thereby providing query service to all nodes, provide trusted timestamp for use by a block after all nodes provide block summary information, and may provide a back-check service to verify authenticity of the trusted timestamp according to the block summary.
Fig. 2 shows a schematic flow diagram of another block chain-based data processing method provided in the embodiment of the present disclosure, and as shown in fig. 2, the method may be applied to roadside full nodes, and the method mainly includes:
step S210: receiving a transaction sent by a roadside light node located in an associated geographic area of a roadside full node, wherein the transaction is assembled by judging whether relevant data of a running vehicle in a monitoring area meets a preset data condition or not by the roadside light node according to a judgment result;
step S220: the transaction is broadcast within the blockchain, such that the chunking nodes pack the chunks based on the transaction.
In the embodiment of the disclosure, both the roadside light nodes and the roadside total nodes can be roadside devices (i.e., roadside units) and used as edge calculation units. The roadside light nodes can acquire relevant data of vehicles running in the monitoring area through the sensors. As one example, the monitored area may be a certain road segment. The roadside light nodes can establish communication connection with the roadside full nodes.
The related data may include, but is not limited to, external environment data and driving state data of the vehicle, and as one example, the driving state data of the vehicle may include image data or traffic light data when the vehicle is driving on a road, or the like.
The sensors for collecting data related to vehicles traveling in the monitored area may include, but are not limited to, millimeter wave radar, ultrasonic radar, lidar, cameras, and the like.
In this example, the relevant data of the running vehicle may include various data, data conditions may be preconfigured, whether the collected relevant data meets the data conditions is judged, and the transaction is assembled according to the judgment result.
In actual use, the roadside light nodes can be assembled for transaction periodically, and the transaction can also be assembled after a certain amount of collected related data.
In actual use, geographic areas can be divided, all the geographic areas are provided with roadside full nodes, and relevant data of roadside light nodes in the associated geographic areas are processed through the roadside full nodes. As an example, the geographic area may be different road segments into which the whole road is divided, and the roadside light node located in a certain road segment may register with the roadside total node associated with the road segment, so that the roadside light node belongs to the roadside total node associated with the road segment, and then the roadside light node may report data to the roadside total node to which the roadside light node belongs.
The roadside light nodes send transactions to roadside full nodes to which the roadside light nodes belong, the roadside full nodes broadcast the transactions in block chains, then the block outlet nodes store related data of the running vehicles in the block chains through receiving blocks based on transaction packing blocks.
The block chain has the characteristics of tamper resistance and traceability, so that the authenticity and the accuracy of the related data of the running vehicles stored in the block chain can be ensured, the related data of the running vehicles can be used as evidence, and a foundation is provided for judging accident liability based on the related data of the running vehicles stored in the block chain.
According to the method provided by the embodiment of the disclosure, the transaction sent by the roadside light node located in the associated geographic area of the roadside full node is received, and the transaction is broadcasted in the block chain, so that the block-out node is based on the transaction packed block. Based on the scheme, the relevant data of the running vehicles collected by the roadside light nodes can be uploaded to the block chain for storage, the reliability of the relevant data of the running vehicles is guaranteed, a foundation is provided for judging accident liability by taking the relevant data of the running vehicles stored in the block chain as evidence, the problem of accident liability assignment is solved, and the accuracy of accident liability judgment is enhanced.
In an optional manner of the present disclosure, the transaction is performed by the roadside light node, when the determination result is that the related data meets the preset data condition, determining the data characteristics of the related data, and assembling based on the data characteristics and the related data, so that the block-out node is based on the transaction packing block, including:
and enabling the block-out node to pack the data characteristics carried in the transaction into the block.
In the embodiment of the present disclosure, the data condition may be set such that the data volume of the related data is greater than a preset value, and/or the related data belongs to pre-specified sensitive data.
In the embodiment of the disclosure, when the data volume of the related data of the traveling vehicle is large, if the original data is directly stored on the block chain, more storage resources are occupied.
When the relevant data of the running vehicle is sensitive data related to the privacy of the user, if the original data is directly stored on the block chain, the privacy of the user can be leaked.
In the embodiment of the disclosure, when it is determined that the related data of the traveling vehicle meets the data condition, the data characteristics of the related data may be determined, and the data characteristics and the related data (i.e., the raw data) are assembled for transaction, so that when the block output node performs the packaging and block output of the transaction, only the data characteristics are packaged into the block, and thus the data characteristics of the related data of the traveling vehicle are stored in the block chain.
When the data volume of the related data of the running vehicle meets the data condition (namely the original data volume is large), the occupation of the storage resources can be reduced by storing the data characteristics on the block chain.
When the related data of the running vehicle belongs to sensitive data, the data characteristics are stored in the block chain, so that the privacy of a user can be prevented from being disclosed.
As an example, the data characteristic may be a hash value of the related data described above.
In an optional mode of the present disclosure, the method further includes:
and sending the relevant data to a data center for storage.
In the embodiment of the disclosure, when the related data of the running vehicle meets the data condition, the roadside full node may further send the related data (i.e., the original data) to the data center for storage. The data center is used for storing the related data of the running vehicles, so that the storage pressure of the block chain is reduced, and the related data of the running vehicles can be conveniently acquired from the data center.
In an optional manner of the present disclosure, after sending the relevant data to the data center for storage, the method further includes:
when a verification request for the related data stored in the data center is received, the related data is verified based on the data characteristics corresponding to the related data.
In the embodiment of the disclosure, the data related to the traveling vehicle may be requested from the data center, and in order to verify the accuracy and the non-falsification of the data related to the traveling vehicle stored in the data center, the data feature of the data related to the traveling vehicle stored in the data center may be determined and matched with the data feature stored in the block chain, and if the matching is successful, it may be determined that the original data stored in the data center is not falsified.
In an optional manner of the present disclosure, the transaction is assembled based on the related data by the roadside light node when the determination result is that the related data does not satisfy the preset data condition, so that the block node is based on the transaction packing block, including:
and enabling the block-out node to pack the related data carried in the transaction into the block.
In the embodiment of the disclosure, when it is determined that the related data of the traveling vehicle does not satisfy the data condition, that is, the related data of the traveling vehicle and the private data are not large, the related data may be assembled into a transaction, and when a block output node performs block output, the related data is packed into a block, so that the related data of the traveling vehicle stored in the block chain is obtained.
As an example, the blockchain system provided in the embodiment of the present disclosure may further include a cloud end full node, where the cloud end full node stores the related data or the data characteristics of the related data, and may provide a data query service to related departments, so that the related departments perform accident liability assessment.
As an example, the blockchain system provided by the embodiment of the present disclosure may assemble summary information of a blockhead and the like into a transaction, and send the transaction to a certificate chain of a related organization for certificate storage, thereby improving the judicial effectiveness of the evidence.
As an example, the block chain system provided by the embodiment of the present disclosure may interface with a time service center, provide reliable time for evidence data, thereby providing query service to all nodes, provide trusted timestamp for use by a block after all nodes provide block summary information, and may provide a back-check service to verify authenticity of the trusted timestamp according to the block summary.
Fig. 3 shows a schematic structural diagram of a block chain system in a specific implementation manner of the embodiment of the present disclosure, and as shown in fig. 3, the light nodes 1, 2, 3, 4, 5, and 6 are roadside light nodes.
The light node 1, the light node 2 and the light node 3 are all located in the road section A, the vehicle B and the vehicle C are located in a monitoring area of the light node 1, and the light node 1 can collect data related to running vehicles through a camera. The light nodes 2 may be deployed in traffic light devices. The vehicle D, the vehicle E and the vehicle F are located in a monitoring area of the light node 3, and the light node 3 can collect relevant data of running vehicles through radar.
The block chain complete node 1 is a roadside complete node, the light node 1, the light node 2 and the light node 3 are all located in the associated geographic area of the block chain complete node 1, and the transaction is reported to the roadside block chain complete node 1.
The light nodes 4, the light nodes 5 and the light nodes 6 are all located in the road section B, the vehicles G, the vehicles H and the vehicles I are located in the monitoring area of the light nodes 4, and the light nodes 4 can collect data related to running vehicles through cameras. The light nodes 5 may be deployed in traffic light installations. The vehicle J, the vehicle K and the vehicle L are located in a monitoring area of the light node 6, and the light node 6 can collect data related to running vehicles through radar.
The block chain complete node 2 is a roadside complete node, the light node 4, the light node 5 and the light node 6 are all located in the associated geographic area of the block chain complete node 2, and the transaction is reported to the roadside block chain complete node 2.
The blockchain full node 1 and the blockchain full node 2 can send the original data to the data center for storage.
The block chain total nodes 3 and 4 may be roadside total nodes or cloud total nodes. The block chain full nodes 3 can carry out cross-chain evidence storage, namely cross-chain butt joint of the internet court evidence storage chain. The blockchain full node 4 may provide query services to relevant agencies (audit agency as well as regulatory agencies).
Based on the same principle as the method shown in fig. 1, fig. 4 shows a schematic structural diagram of a blockchain-based data processing apparatus provided by an embodiment of the present disclosure, and as shown in fig. 4, the blockchain-based data processing apparatus 40 may include:
a data acquisition module 410, configured to acquire data related to vehicles traveling in a monitored area;
a transaction assembling module 420, configured to determine whether the related data meets a preset data condition, and assemble a transaction according to a determination result;
and the transaction sending module 430 is configured to send the transaction to a roadside total node to which the roadside light node belongs, so that the roadside total node broadcasts the transaction in a block chain, and a block node is based on a transaction packing block, where a monitoring area of the roadside light node is located in an associated geographic area of the roadside total node.
According to the device provided by the embodiment of the disclosure, whether the related data meet the preset data condition or not is judged by acquiring the related data of the running vehicle in the monitoring area, and the transaction is assembled according to the judgment result. And sending the transaction to the roadside all-node to which the roadside light node belongs, so that the roadside all-node broadcasts the transaction in the block chain, and the block outlet node is based on the transaction packaging block. Based on the scheme, the relevant data of the running vehicles collected by the roadside light nodes can be uploaded to the block chain for storage, the reliability of the relevant data of the running vehicles is guaranteed, a foundation is provided for judging accident liability by taking the relevant data of the running vehicles stored in the block chain as evidence, the problem of accident liability assignment is solved, and the accuracy of accident liability judgment is enhanced.
Optionally, the transaction assembling module is specifically configured to, when assembling the transaction according to the determination result:
if the judgment result is that the related data meet the preset data condition, determining the data characteristics of the related data, and assembling the transaction based on the data characteristics and the related data;
the transaction sending module is specifically configured to, when the block node is based on the transaction packing block:
and enabling the block-out node to pack the data characteristics carried in the transaction into the block.
Optionally, the transaction assembling module is specifically configured to, when assembling the transaction according to the determination result:
if the judgment result is that the related data do not meet the preset data condition, assembling the transaction based on the related data;
the transaction sending module is specifically configured to, when the block node is based on the transaction packing block:
and enabling the block-out node to pack the related data carried in the transaction into the block.
Optionally, the data conditions include at least one of:
the data volume of the related data is larger than a preset value;
the relevant data belongs to pre-specified sensitive data.
It is understood that the above modules of the data processing apparatus based on the blockchain in the embodiment of the present disclosure have functions of implementing the corresponding steps of the data processing method based on the blockchain in the embodiment shown in fig. 1. The function can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above. The modules can be software and/or hardware, and each module can be implemented independently or by integrating a plurality of modules. For the functional description of each module of the data processing apparatus based on the block chain, reference may be specifically made to the corresponding description of the data processing method based on the block chain in the embodiment shown in fig. 1, and details are not repeated here.
Based on the same principle as the method shown in fig. 2, fig. 5 shows a schematic structural diagram of a blockchain-based data processing apparatus provided by an embodiment of the present disclosure, and as shown in fig. 5, the blockchain-based data processing apparatus 50 may include:
the transaction receiving module 510 is configured to receive a transaction sent by a roadside light node located in an associated geographic area of a roadside full node, where the transaction is assembled by the roadside light node by judging whether related data of a vehicle running in a monitoring area meets a preset data condition or not and according to a judgment result;
a transaction broadcasting module 520, configured to broadcast the transaction within the blockchain, so that the out-blocknode packs the blocks based on the transaction.
The device provided by the embodiment of the disclosure broadcasts the transaction in the block chain by receiving the transaction sent by the roadside light node located in the associated geographical area of the roadside full node, so that the block-out node is based on the transaction packed block. Based on the scheme, the relevant data of the running vehicles collected by the roadside light nodes can be uploaded to the block chain for storage, the reliability of the relevant data of the running vehicles is guaranteed, a foundation is provided for judging accident liability by taking the relevant data of the running vehicles stored in the block chain as evidence, the problem of accident liability assignment is solved, and the accuracy of accident liability judgment is enhanced.
Optionally, the transaction is performed by determining, by the roadside light node, a data feature of the relevant data when the judgment result shows that the relevant data meets a preset data condition, and assembling the data feature and the relevant data, and the transaction broadcasting module is specifically configured to:
and enabling the block-out node to pack the data characteristics carried in the transaction into the block.
Optionally, the apparatus further comprises:
and the data storage module is used for sending the related data to the data center for storage.
Optionally, the apparatus further comprises:
and the data verification module is used for verifying the related data based on the data characteristics corresponding to the related data when a verification request for the related data stored in the data center is received after the related data is sent to the data center for storage.
Optionally, the transaction is assembled based on the relevant data by the roadside light node when the determination result is that the relevant data does not satisfy the preset data condition, and the transaction broadcasting module is specifically configured to:
and enabling the block-out node to pack the related data carried in the transaction into the block.
It is understood that the above modules of the data processing apparatus based on the blockchain in the embodiment of the present disclosure have functions of implementing the corresponding steps of the data processing method based on the blockchain in the embodiment shown in fig. 2. The function can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above. The modules can be software and/or hardware, and each module can be implemented independently or by integrating a plurality of modules. For the functional description of each module of the data processing apparatus based on the block chain, reference may be specifically made to the corresponding description of the data processing method based on the block chain in the embodiment shown in fig. 2, and details are not repeated here.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the personal information of the related user all accord with the regulations of related laws and regulations, and do not violate the good customs of the public order.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
The electronic device includes: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to perform a method of block chain based data processing as provided by an embodiment of the present disclosure.
Compared with the prior art, the electronic equipment judges whether the related data meet the preset data conditions or not by acquiring the related data of the running vehicle in the monitoring area, and assembles the transaction according to the judgment result. And sending the transaction to the roadside all-node to which the roadside light node belongs, so that the roadside all-node broadcasts the transaction in the block chain, and the block outlet node is based on the transaction packaging block. Based on the scheme, the relevant data of the running vehicles collected by the roadside light nodes can be uploaded to the block chain for storage, the reliability of the relevant data of the running vehicles is guaranteed, a foundation is provided for judging accident liability by taking the relevant data of the running vehicles stored in the block chain as evidence, the problem of accident liability assignment is solved, and the accuracy of accident liability judgment is enhanced.
The readable storage medium is a non-transitory computer readable storage medium storing computer instructions for causing a computer to execute the method for processing data based on a blockchain as provided by the embodiment of the present disclosure.
Compared with the prior art, the readable storage medium judges whether the related data meet the preset data condition by acquiring the related data of the running vehicle in the monitoring area, and assembles the transaction according to the judgment result. And sending the transaction to the roadside all-node to which the roadside light node belongs, so that the roadside all-node broadcasts the transaction in the block chain, and the block outlet node is based on the transaction packaging block. Based on the scheme, the relevant data of the running vehicles collected by the roadside light nodes can be uploaded to the block chain for storage, the reliability of the relevant data of the running vehicles is guaranteed, a foundation is provided for judging accident liability by taking the relevant data of the running vehicles stored in the block chain as evidence, the problem of accident liability assignment is solved, and the accuracy of accident liability judgment is enhanced.
The computer program product comprises a computer program which, when executed by a processor, implements a blockchain based data processing method as provided by embodiments of the present disclosure.
Compared with the prior art, the computer program product judges whether the related data meet the preset data conditions by acquiring the related data of the running vehicle in the monitoring area, and assembles the transaction according to the judgment result. And sending the transaction to the roadside all-node to which the roadside light node belongs, so that the roadside all-node broadcasts the transaction in the block chain, and the block outlet node is based on the transaction packaging block. Based on the scheme, the relevant data of the running vehicles collected by the roadside light nodes can be uploaded to the block chain for storage, the reliability of the relevant data of the running vehicles is guaranteed, a foundation is provided for judging accident liability by taking the relevant data of the running vehicles stored in the block chain as evidence, the problem of accident liability assignment is solved, and the accuracy of accident liability judgment is enhanced.
Fig. 6 illustrates a schematic block diagram of an example electronic device 2000, which may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 6, the device 2000 includes a computing unit 2010, which may perform various appropriate actions and processes in accordance with a computer program stored in a Read Only Memory (ROM)2020, or a computer program loaded from a storage unit 2080 into a Random Access Memory (RAM) 2030. In the RAM 2030, various programs and data required for the operation of the device 2000 can also be stored. The computing unit 2010, ROM 2020, and RAM 2030 are coupled to each other via bus 2040. An input/output (I/O) interface 2050 is also connected to bus 2040.
Various components in device 2000 are connected to I/O interface 2050, including: an input unit 2060 such as a keyboard, a mouse, or the like; an output unit 2070 such as various types of displays, speakers, and the like; a storage unit 2080 such as a magnetic disk, an optical disk, and the like; and a communication unit 2090, such as a network card, modem, wireless communication transceiver, etc. The communication unit 2090 allows the device 2000 to exchange information/data with other devices over a computer network, such as the internet, and/or various telecommunication networks.
Computing unit 2010 may be a variety of general purpose and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 2010 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The computing unit 2010 executes the block chain-based data processing method provided in the embodiments of the present disclosure. For example, in some embodiments, performing the blockchain-based data processing methods provided in embodiments of the present disclosure may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 2080. In some embodiments, some or all of the computer program may be loaded onto and/or installed onto the device 2000 via the ROM 2020 and/or the communication unit 2090. When loaded into RAM 2030 and executed by computing unit 2010, may perform one or more steps of the blockchain-based data processing method provided in embodiments of the present disclosure. Alternatively, in other embodiments, the computing unit 2010 may be configured in any other suitable manner (e.g., by way of firmware) to perform the blockchain-based data processing methods provided in the embodiments of the present disclosure.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), application specific integrated circuits (AS ics), Application Specific Standard Products (ASSPs), System On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel or sequentially or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (14)

1. A data processing method based on a block chain is applied to a roadside light node and comprises the following steps:
acquiring related data of a running vehicle in a monitoring area;
judging whether the related data meet preset data conditions or not, and assembling a transaction according to a judgment result;
and sending the transaction to a roadside full node to which the roadside light node belongs, broadcasting the transaction in a block chain by the roadside full node, and enabling a block outlet node to be based on the transaction packing block, wherein a monitoring area of the roadside light node is located in an associated geographic area of the roadside full node.
2. The method of claim 1, wherein said assembling a transaction according to the determination comprises:
if the judgment result is that the related data meet the preset data condition, determining the data characteristics of the related data, and assembling the transaction based on the data characteristics and the related data;
the causing a block node to package a block based on the transaction, comprising:
and enabling a block outlet node to pack the data characteristics carried in the transaction into a block.
3. The method of claim 1 or 2, wherein said assembling a transaction according to the determination comprises:
if the judgment result is that the related data do not meet the preset data condition, assembling a transaction based on the related data;
the causing a block node to package a block based on the transaction, comprising:
and enabling a block node to pack the related data carried in the transaction into a block.
4. The method of any of claims 1-3, wherein the data conditions include at least one of:
the data volume of the related data is greater than a preset value;
the relevant data belongs to pre-specified sensitive data.
5. A data processing method based on a block chain is applied to a roadside full node and comprises the following steps:
receiving a transaction sent by a roadside light node located in an associated geographic area of the roadside total node, wherein the transaction is assembled by the roadside light node according to a judgment result by judging whether related data of a running vehicle in a monitoring area meets a preset data condition;
broadcasting the transaction within a blockchain, such that a tile node packages tiles based on the transaction.
6. The method of claim 5, wherein the transaction is performed by the roadside light node when the determination result is that the related data meets a preset data condition, determining a data characteristic of the related data, and the block making node is assembled based on the data characteristic and the related data, and the block making node is based on the transaction packed block, and the method comprises:
and enabling a block outlet node to pack the data characteristics carried in the transaction into a block.
7. The method of claim 6, further comprising:
and sending the related data to a data center for storage.
8. The method of claim 7, after sending the relevant data to a data center for storage, the method further comprising:
when a verification request for the related data stored in the data center is received, the related data is verified based on the data characteristics corresponding to the related data.
9. The method according to any one of claims 5-8, wherein the transaction is assembled by the roadside light node based on the relevant data when the determination result is that the relevant data does not satisfy a preset data condition, and the causing the block node to be based on the transaction packed block comprises:
and enabling a block node to pack the related data carried in the transaction into a block.
10. A blockchain-based data processing apparatus comprising:
the data acquisition module is used for acquiring related data of vehicles running in the monitoring area;
the transaction assembly module is used for judging whether the related data meet preset data conditions or not and assembling transactions according to the judgment result;
and the transaction sending module is used for sending the transaction to a roadside total node to which the roadside light node belongs, so that the roadside total node broadcasts the transaction in a block chain, and the block outlet node is based on the transaction packing block, wherein the monitoring area of the roadside light node is positioned in the associated geographic area of the roadside total node.
11. A blockchain-based data processing apparatus comprising:
the transaction receiving module is used for receiving a transaction sent by a roadside light node located in an associated geographic area of a roadside full node, wherein the transaction is assembled by the roadside light node according to a judgment result by judging whether related data of a running vehicle in a monitoring area meets a preset data condition;
and the transaction broadcasting module is used for broadcasting the transaction in the block chain so that the block node packs the blocks based on the transaction.
12. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-9.
13. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-9.
14. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-9.
CN202110894193.XA 2021-08-05 2021-08-05 Data processing method and device based on block chain and electronic equipment Pending CN113610642A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110894193.XA CN113610642A (en) 2021-08-05 2021-08-05 Data processing method and device based on block chain and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110894193.XA CN113610642A (en) 2021-08-05 2021-08-05 Data processing method and device based on block chain and electronic equipment

Publications (1)

Publication Number Publication Date
CN113610642A true CN113610642A (en) 2021-11-05

Family

ID=78306903

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110894193.XA Pending CN113610642A (en) 2021-08-05 2021-08-05 Data processing method and device based on block chain and electronic equipment

Country Status (1)

Country Link
CN (1) CN113610642A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108769230A (en) * 2018-06-06 2018-11-06 腾讯科技(深圳)有限公司 Transaction data storage method, device, server and storage medium
CN111368326A (en) * 2020-02-25 2020-07-03 百度在线网络技术(北京)有限公司 Vehicle data processing method and device, electronic equipment and storage medium
CN111464980A (en) * 2020-04-08 2020-07-28 南通大学 Electronic evidence obtaining device and method based on block chain in Internet of vehicles environment
CN111475828A (en) * 2020-05-14 2020-07-31 杭州烽顺科技信息服务有限公司 Encryption method and device, decryption method and device of block chain account book data
CN112231763A (en) * 2020-09-11 2021-01-15 深圳华工能源技术有限公司 Energy-saving data authentication method for energy-saving equipment of power distribution and utilization system based on block chain technology
CN112651754A (en) * 2020-12-30 2021-04-13 杭州趣链科技有限公司 Verification method, system and server for network car booking information security
CN112861163A (en) * 2021-03-15 2021-05-28 云南大学 Reputation ETC system based on evidence chain framework, data protection method and vehicle behavior management method based on reputation value

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108769230A (en) * 2018-06-06 2018-11-06 腾讯科技(深圳)有限公司 Transaction data storage method, device, server and storage medium
CN111368326A (en) * 2020-02-25 2020-07-03 百度在线网络技术(北京)有限公司 Vehicle data processing method and device, electronic equipment and storage medium
CN111464980A (en) * 2020-04-08 2020-07-28 南通大学 Electronic evidence obtaining device and method based on block chain in Internet of vehicles environment
CN111475828A (en) * 2020-05-14 2020-07-31 杭州烽顺科技信息服务有限公司 Encryption method and device, decryption method and device of block chain account book data
CN112231763A (en) * 2020-09-11 2021-01-15 深圳华工能源技术有限公司 Energy-saving data authentication method for energy-saving equipment of power distribution and utilization system based on block chain technology
CN112651754A (en) * 2020-12-30 2021-04-13 杭州趣链科技有限公司 Verification method, system and server for network car booking information security
CN112861163A (en) * 2021-03-15 2021-05-28 云南大学 Reputation ETC system based on evidence chain framework, data protection method and vehicle behavior management method based on reputation value

Similar Documents

Publication Publication Date Title
CN110572354B (en) Block chains and cryptocurrency for real-time vehicle accident management
US10521973B2 (en) System for monitoring and enforcement of an automated fee payment
US20160178803A1 (en) Weather forecasting system and methods
CN109727132B (en) Method and device for acquiring block chain consensus node, electronic equipment and storage medium
CN113343310A (en) Data processing method and device based on block chain and electronic equipment
CN111614761B (en) Block chain message transmission method, device, computer and readable storage medium
CN110222535B (en) Processing device, method and storage medium for block chain configuration file
US20150161540A1 (en) Automatic Road Condition Detection
CN110895534A (en) Data splicing method, device, medium and electronic equipment
US9286797B1 (en) Traffic incident location identification
WO2019036555A1 (en) Securely transferring selective datasets between terminals
CN114666156A (en) Data security protection system, method, device, computer equipment and storage medium
CN104702982A (en) Method and system for configuring algorithms for video analysis equipment
CN111260215A (en) Risk early warning method and related device
CN111680104A (en) Data synchronization method and device, computer equipment and readable storage medium
KR102054984B1 (en) Path data generating method for analysis using location information, generating system, operating method of path data generating service for analysis using location information and operating system
Yao et al. Percolation-based resilience modeling and active intervention of disrupted urban traffic network during a snowstorm
CN113610642A (en) Data processing method and device based on block chain and electronic equipment
US20150348407A1 (en) Recommendation Engine Based on a Representation of the Local Environment Augmented by Citizen Sensor Reports
WO2023000968A1 (en) Map, and map generation method and apparatus
CN113438318B (en) Performance test system and method of cloud control platform, electronic equipment and storage medium
CN111833608B (en) Road condition information processing method and device
CN115409985A (en) Target object detection method and device, electronic equipment and readable storage medium
CN113486100A (en) Service management method, device, server and computer storage medium
CN114708535A (en) Method and device for testing event detection algorithm, electronic equipment and storage medium

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