CN109741482B - Information sharing method and device - Google Patents

Information sharing method and device Download PDF

Info

Publication number
CN109741482B
CN109741482B CN201910016790.5A CN201910016790A CN109741482B CN 109741482 B CN109741482 B CN 109741482B CN 201910016790 A CN201910016790 A CN 201910016790A CN 109741482 B CN109741482 B CN 109741482B
Authority
CN
China
Prior art keywords
information
data
block
public key
recorder
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910016790.5A
Other languages
Chinese (zh)
Other versions
CN109741482A (en
Inventor
冯峰
汪然
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BOE Technology Group Co Ltd
Original Assignee
BOE Technology Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BOE Technology Group Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN201910016790.5A priority Critical patent/CN109741482B/en
Publication of CN109741482A publication Critical patent/CN109741482A/en
Application granted granted Critical
Publication of CN109741482B publication Critical patent/CN109741482B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Traffic Control Systems (AREA)

Abstract

The invention provides an information sharing method and device. The method comprises the following steps: acquiring first target information, wherein the first target information comprises first target data and description information of the first target data; receiving a first public key distributed by an authentication server, wherein the first public key is used for identifying the equipment address of the first driving recorder; encrypting the first target information by adopting the first public key to generate encrypted data; sending the first public key and the encrypted data to a block chain network so as to generate block data after a vehicle event data recorder node in the block chain network performs consensus authentication on the first public key and the encrypted data; the first driving recorder is a node in the block chain network. The invention can ensure the authenticity and the reliability of congestion information and prevent illegal tampering.

Description

Information sharing method and device
Technical Field
The present invention relates to the field of block chain technology, and in particular, to an information sharing method and apparatus.
Background
Nowadays, the increase of the usage rate of automobiles leads to the increasingly serious urban traffic jam. Due to the convenience of automobiles, the traffic flow in urban areas is increasingly high, and traffic flow of working, traveling and shopping is gushed into the urban center from all sides every peak time, but due to insufficient road capacity or improper design, the existing road cannot load the traffic flow with the large amount, and the situation of blockage is caused. Meanwhile, traffic accidents are also the main cause of traffic jam, according to statistics of traffic police departments, more than half of the factors causing traffic jam in urban areas are traffic accidents, eight of the traffic accidents are minor road traffic accidents, and the traffic jam in urban areas is caused by the minor traffic accidents in the whole view.
In order to solve the influence of traffic jam on the traveling of people, the real-time road condition broadcasting of government behaviors and the jammed route display of various navigation software exist, but people generally desire to obtain the real-time condition display of traffic jam points due to the curious psychology of people. Generally, some television programs show video monitoring information of traffic management departments to the public, but are only limited to introduction of key road sections, and all routes of a city cannot be covered, so that most people still cannot know the congestion reason of the road where the television programs are located, and the television programs formally indicate information which is needed to be known most urgently by drivers within a few kilometers away from the congestion point.
At present, the automobile data recorder is widely applied to daily driving, road condition information can be recorded in real time, and conditions are created for recording congestion conditions. The congestion video recorded by the automobile data recorder can be shared, and a mode for acquiring the congestion state is provided for other drivers. However, this method requires the central server to perform management and control of uploading and downloading of the video, and meanwhile, the personal information of the user will be linked with the video, which is not beneficial to protecting the personal privacy data.
Disclosure of Invention
The invention provides an information sharing method and device, and aims to solve the problem that the existing traffic jam information acquisition method is not beneficial to personal privacy data protection.
In order to solve the above problem, an embodiment of the present invention discloses an information sharing method, which is applied to a first driving recorder, and includes: acquiring first target information, wherein the first target information comprises first target data and description information of the first target data; receiving a first public key distributed by an authentication server, wherein the first public key is used for identifying the equipment address of the first driving recorder; encrypting the first target information by adopting the first public key to generate encrypted data; sending the first public key and the encrypted data to a block chain network so as to generate block data after a vehicle event data recorder node in the block chain network performs consensus authentication on the first public key and the encrypted data; the first driving recorder is a node in the block chain network.
Preferably, after the step of sending the first public key and the encrypted data to a blockchain network, the method further includes: receiving request information of a second automobile data recorder for the first target information, wherein the request information comprises a second public key of the second automobile data recorder, and the second public key is used for identifying the equipment address of the second automobile data recorder; according to the intelligent contract of the block chain network, the first target information is sent to the second automobile data recorder according to the second public key; the second automobile data recorder is a node in the block chain network.
Preferably, the first target information further includes transaction data of the first target data, and after the step of sending the first target information to the second automobile data recorder according to the second public key according to the intelligent contract of the blockchain network, the method further includes: acquiring a token and generating transaction information; uploading the transaction information to a state database of the blockchain network; wherein the token is stored in an account of the first driving recorder in the blockchain network, and the account is read by a first private key distributed to the first driving recorder by the authentication server.
Preferably, before the step of acquiring the first target information, the method further includes: receiving a search instruction of a designated terminal; the designated terminal is bound with the first driving recorder; determining second target information matched with the search instruction in the block data of the block chain network; sending a request for the second target information to a third vehicle recorder according to a third public key corresponding to the second target information; receiving the second target information according to the intelligent contract of the block chain network; and sending the second target information to the appointed terminal.
Preferably, the method further comprises: receiving a query instruction of the designated terminal; inquiring token information of an account of the first driving recorder in the block chain network according to a first private key; wherein the first private key is distributed to the first traffic recorder by the authentication server.
Preferably, the step of acquiring the first target information includes: recording a video; extracting key frames in the video and survival thumbnails; grading the video to generate evaluation information; extracting the timestamp and the position information of the video; and obtaining first target information according to the thumbnail, the evaluation information, the timestamp and the position information.
In order to solve the above problem, an embodiment of the present invention discloses an information sharing device, which is applied to a first driving recorder, and includes: the system comprises a first information acquisition module, a first information processing module and a second information processing module, wherein the first information acquisition module is used for acquiring first target information, and the first target information comprises first target data and description information of the first target data; the first public key receiving module is used for receiving a first public key distributed by an authentication server, and the first public key is used for identifying the equipment address of the first driving recorder; the first information encryption module is used for encrypting the first target information by adopting the first public key to generate encrypted data; the first public key and encrypted data sending module is used for sending the first public key and the encrypted data to a block chain network so as to generate block data after a vehicle event data recorder node in the block chain network performs consensus authentication on the first public key and the encrypted data; the first driving recorder is a node in the block chain network.
Preferably, the method further comprises the following steps: the request information receiving module is used for receiving request information of a second automobile data recorder for the first target information, wherein the request information comprises a second public key of the second automobile data recorder, and the second public key is used for identifying the equipment address of the second automobile data recorder; the first information sending module is used for sending the first target information to the second automobile data recorder according to the second public key and the intelligent contract of the block chain network; the second automobile data recorder is a node in the block chain network.
Preferably, the first target information further includes transaction data of the first target data, and further includes: the transaction information generation module is used for acquiring the token and generating transaction information; the transaction information uploading module is used for uploading the transaction information to a state database of the block chain network; wherein the token is stored in an account of the first driving recorder in the blockchain network, and the account is read by a first private key distributed to the first driving recorder by the authentication server.
Preferably, the method further comprises the following steps: the search instruction receiving module is used for receiving a search instruction of a specified terminal; the designated terminal is bound with the first driving recorder; the second information determining module is used for determining second target information matched with the search instruction in the block data of the block chain network; the request sending module is used for sending a request for the second target information to a third vehicle recorder according to a third public key corresponding to the second target information; the second information receiving module is used for receiving the second target information according to the intelligent contract of the block chain network; and the second information sending module is used for sending the second target information to the specified terminal.
Preferably, the method further comprises: the query instruction receiving module is used for receiving a query instruction of the specified terminal; the token information inquiry module is used for inquiring token information of an account of the first driving recorder in the block chain network according to a first private key; wherein the first private key is distributed to the first traffic recorder by the authentication server.
Preferably, the first information obtaining module includes: the video recording submodule is used for recording videos; the thumbnail generation submodule is used for extracting key frames in the video and survival thumbnails; the evaluation information generation submodule is used for grading the video and generating evaluation information; the time and position information extraction submodule is used for extracting the time stamp and the position information of the video; and the first information acquisition submodule is used for acquiring first target information according to the thumbnail, the evaluation information, the timestamp and the position information.
Compared with the prior art, the invention has the following advantages:
the information sharing method and device provided by the embodiment of the invention receive a first public key distributed by an authentication server by acquiring first target information, wherein the first target information comprises first target data and description information of the first target data, the first public key is used for identifying an equipment address of a first forming recorder, the first target information is encrypted by adopting the first public key to generate encrypted data, and the first public key and the encrypted data are sent to a block chain network so as to generate block data after a trip recorder node in the block chain network performs consensus authentication on the first public key and the encrypted data, wherein the first trip recorder is a node in the block chain network. The embodiment of the invention is based on a system and a method for acquiring videos, analyzing traffic conditions and sharing traffic information by using a block chain technology, effectively combines congestion information sharing with the block chain and intelligent contract technology, can ensure the authenticity and the credibility of congestion information, and prevents illegal tampering.
Drawings
Fig. 1 is a flowchart illustrating steps of an information sharing method according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating a blockchain network topology according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram illustrating an information sharing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
With the development of internet technology, block chain technology has come forward, which is a distributed database technology with decentralized, open and transparent features. In particular, the essence of the blockchain technology is decentralized and adopts a distributed structure data storage, transmission and certification method, and replaces the current internet dependence on a central server with data blocks, so that all data changes or transaction items are recorded on a data link list. The efficiency of data operation, management, maintenance is greatly improved, and the block chain of carrying asymmetric encryption technique possesses high security simultaneously, can effectively prevent data leakage or illegal tampering. The characteristics make the block chain technology especially suitable for being applied to the field of big data operation with high confidentiality requirement. Meanwhile, the intelligent contract is a contract for recording terms by using a computer language instead of a legal language, can be regarded as a program deployed on a block chain, and has self-execution and self-enforcement properties. Self-execution means that the contract automatically runs and takes effect after being deployed; self-enforcement refers to the ability of a participant to invoke a contract to enforce if a condition is satisfied. The whole decision making process does not need a trusted third party to participate in arbitration intervention. The block chain technology ensures the reality and the effectiveness of data and the non-tamper property of an intelligent contract, and the intelligent contract is responsible for enforcing the specification, so that the block chain technical characteristics and the application requirements of traffic jam sharing have good combination points, the defect of privacy disclosure brought by a centralized platform can be avoided, and drivers can be encouraged to share jam information through incentive measures.
The technical idea of the embodiment of the invention is as follows: the system and the method for sharing traffic jam information based on the block chain technology effectively combine a video sharing mode with the block chain and intelligent contract technology, can enable a vehicle event data recorder to have the capacity of autonomously sharing a jam video and obtain an incentive, and simultaneously prevent the problem that the personal privacy of a user is revealed through a Hash account address.
The embodiments of the present invention will be described in detail with reference to specific examples.
Example one
Referring to fig. 1, a flowchart illustrating steps of an information sharing method according to an embodiment of the present invention is shown, where the information sharing method may be applied to a first driving recorder, and specifically may include the following steps:
step 101: acquiring first target information, wherein the first target information comprises first target data and description information of the first target data.
In the embodiment of the present invention, the first target information refers to traffic information captured by the first traffic recorder, and may be other information, which is not limited in the embodiment of the present invention.
The first target data may include recorded traffic audio/video data, the description information may be textual description information added to the traffic video data, and the description information may be description information automatically generated by the system directly according to a geographical location where the traffic audio/video data occurs and a field condition, or description information manually added by a user, which is not limited in this embodiment of the present invention.
When the first target information needs to be shared, the first target information may be acquired from the pre-saved information, and the subsequent steps may be performed.
In a specific implementation, a person skilled in the art may also start the first traffic recorder in other manners to record the traffic jam video, which is not limited in the embodiment of the present invention.
Specifically, the above step 101 is described in detail in conjunction with the following preferred embodiments.
In a preferred embodiment of the present invention, the step 101 may include:
substep A1: and recording the video.
In the embodiment of the invention, when a driver drives to a congested road section, whether video recording of a congestion problem is carried out or not can be selected independently, and when the fact that video recording is desired is confirmed, the first driving recorder can be controlled to record the congestion video through voice or manual operation, for example, a voice 'recorded video' is input to start the first driving recorder to record the congestion video of the current road, or the first driving recorder is started manually to record the congestion video of the current road, and the like.
Of course, in practical applications, the recorded video may also be other videos, and is not limited to traffic jam video, and the type of the recorded video may be determined according to practical situations, which is not limited by the embodiment of the present invention.
After recording the video, sub-step a2 is performed.
Substep A2: and extracting key frames in the video to live the thumbnail.
It will be appreciated that the recorded video is assembled from a sequence of successive images, and that after the recording of the video is complete, a thumbnail may be generated from a key frame image in the sequence of images.
The extraction of the video key frames needs to identify images in the video based on an image processing mode, and main identification objects comprise lane lines, vehicles and warning boards. The lane line is a driving lane line of the vehicle and is used for calibrating the range of the accident area; the warning board is used for regulating objects which need to be placed after an accident occurs, has certain exclusivity and can be used as a characteristic object of an accident occurrence place.
The method comprises the steps of extracting lane lines (namely feasibility regions), clustering pixels with a certain relation in an image space by adopting a lane line detection method based on a structured road and using Hough transformation, searching pixels which can be associated in a certain analytic form, representing the pixels in a parameter space in an accumulation form, mapping data in the image space to the parameter space, and detecting straight lines through simple accumulation statistics for identifying feasible regions. Firstly preprocessing an image, carrying out graying processing on the captured image to obtain a grayscale image with a small number of channels, then filtering to reduce noise interference in the image, then carrying out enhancement processing on edges by utilizing a Sobel operator, carrying out binarization processing on the portion which is represented as the highest brightness in the whole image because all lane lines are white on a structured road surface, finally extracting all straight lines by using Hough transformation, and distinguishing the lane lines by utilizing the known experience of the positions, the slopes, the lengths and the like of the lane lines. And in the feasible region, extracting the images of the vehicle and the warning board, and extracting the outlines of the vehicle and the warning board by adopting an image morphology method to achieve the aim of identifying different objects. For example, when the structural element B is selected, firstly, the corrosion operation is carried out on the identification image A, then the corrosion result is subtracted from the A, the image boundary can be extracted, then, according to a pre-established contour sample library, the contours of the vehicle and the warning board in the image are extracted to be matched with the standard sample in the sample library, and if the matching coefficient reaches a certain degree, the matching is considered to be successful.
In a specific implementation, the key frames in the video may be extracted in other manners to generate thumbnails, and then sub-step a3 is performed.
Substep A3: and grading the video to generate evaluation information.
After generating the thumbnail, the overall video quality may also be rated, e.g., a one-to-five-star rating, etc. Specifically, the congestion video may be analyzed to obtain a thumbnail with vehicle and warning sign features, and a ranking operation may be performed based on an object size threshold and at a feasibility region location.
After the rating is complete, corresponding rating information may be generated and sub-step A4 is performed.
Substep A4: and extracting the time stamp and the position information of the video.
The timestamp information refers to the time of video recording, that is, the time of scene occurrence in the video, for example, when a traffic jam video is recorded, the time of occurrence of the traffic jam is the time of recording, such as 2018-12-10, noon 12:12, and the like.
The position information refers to the position of a scene in a video, for example, when a traffic jam video is recorded, a road segment where the traffic jam occurs may be acquired, such as: "south Avenue of Guancun, Zhongguan, Beijing City, Haizu area xx street" and so on.
After extracting the timestamp and location information of the video, sub-step a5 is performed.
Substep A5: and obtaining first target information according to the thumbnail, the evaluation information, the timestamp and the position information.
After acquiring the thumbnail, the evaluation information, the time stamp, and the position information, the first object information may be generated from the above information.
In the embodiment of the present invention, the first driving recorder may further bind with the designated terminal to obtain information recorded by other driving recorders registered in the blockchain network, which is not limited in the embodiment of the present invention. Specifically, the following preferred embodiments are described in detail.
In a preferred embodiment of the present invention, before the step 101, the method may further include:
step S1: receiving a search instruction of a designated terminal; and the designated terminal is bound with the first driving recorder.
In the embodiment of the present invention, the designated terminal may be a mobile phone, a PAD (tablet computer), a portable computer, or the like.
The method comprises the steps that a designated APP is downloaded in advance on a designated terminal, and when a driver wants to acquire traffic condition information of a certain road in the driving process, the designated APP can be opened and whether traffic jam information of the road exists or not can be searched.
After receiving the search instruction transmitted from the designated terminal, step S2 is executed.
Step S2: and determining second target information matched with the search instruction in the block data of the block chain network.
After receiving the search instruction sent by the designated terminal, the second target information matching the search instruction may be searched for in the tile data of the tile chain network, and step S3 is executed.
Step S3: and sending a request for the second target information to a third vehicle recorder according to a third public key corresponding to the second target information.
The second target information includes a third public key, where the third public key is used to indicate the device address of the third vehicle recorder corresponding to the second target information, and after the second target information is acquired, a request for the second target information may be sent to the third vehicle recorder according to the third public key corresponding to the second target information, and step S4 is executed.
Step S4: and receiving the second target information according to the intelligent contract of the block chain network.
After transmitting the request for the second target information to the third vehicle recorder, the second target information transmitted by the third vehicle recorder may be received according to the smart contract of the block chain network, and step S5 is performed.
Step S5: and sending the second target information to the appointed terminal.
After the first driving record receives the second target information, the second target information can be sent to a designated terminal so that a driver can check the traffic jam condition of the road.
After the first target information is acquired, step 102 is performed.
Step 102: and receiving a first public key distributed by an authentication server, wherein the first public key is used for identifying the equipment address of the first driving recorder.
The device address refers to a position where the first driving recorder is located, and can be used for subsequent video sharing and token settlement of both parties in a transaction according to the device address, and specifically, detailed description will be given in the following steps, and details are not repeated herein in the embodiments of the present invention.
The Certificate Authority (CA) is responsible for implementing the related functions of the certificate center module, and generates a first public key, which may be used to identify the device address of the first traffic recorder.
Of course, in the present invention, the first public key may be composed of a public key and a private key, where the public key is used to identify the device address of the first traffic recorder, and the private key is used to perform encryption processing for receiving the first target information in the subsequent steps. For example, in the process of encrypting and decrypting the private data, after the CA server generates a public key and a private key, the public key and the private key are pushed to the automobile data recorder, wherein the private key is used for performing encryption protection on data after the execution of the intelligent contract and acquiring a token of a public key account.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present invention, and are not to be taken as the only limitation of the embodiments of the present invention.
The first tachograph may receive the first public key sent by the CA server and perform step 103.
Step 103: and encrypting the first target information by adopting the first public key to generate encrypted data.
After the first public key is obtained, the first target information may be encrypted by using the first public key, and encrypted data may be generated, and step 103 may be performed.
Step 104: sending the first public key and the encrypted data to a block chain network so as to generate block data after a vehicle event data recorder node in the block chain network performs consensus authentication on the first public key and the encrypted data; the first driving recorder is a node in the block chain network.
In the embodiment of the present invention, a blockchain network is formed by using each registered vehicle event recorder, and a first vehicle event recorder belongs to one module of the blockchain network, specifically, referring to fig. 2, a schematic diagram of a blockchain network topology structure provided in the embodiment of the present invention is shown, as shown in fig. 2, a system provided in the embodiment of the present invention may include three entities, namely a CA server, a vehicle event recorder, and a mobile phone APP (Application), where functions of the three entities are as follows:
1. CA server
The CA server is responsible for realizing the relevant functions of the certificate center module, generating the digital certificates of the public and private key pairs and the registered equipment, and providing the digital certificates for other modules of the system. The encryption and decryption process of the private data is that after a public key and a private key are generated by a CA server, the public key and the private key are pushed to a vehicle event data recorder, wherein the private key is used for carrying out encryption protection on data after an intelligent contract is executed and obtaining a token of a public key account; the public key certificate is used for identifying the equipment address and is used for video sharing and token settlement of both sides of the transaction.
2. Automobile data recorder
The automobile data recorder has a voice control function, can control the recorder to record the situation of congestion points through voice, such as 'start recording', and automatically stores video, uploading position and timestamp information to a block chain network after the recording is successful;
other automobile data recorders positioned in the block chain network confirm the information to generate block data;
and after receiving the video sharing request of other automobile data recorders, autonomously operating an intelligent contract, automatically sending a video and acquiring a token, and uploading the transaction information to a network so as to store the transaction information in the block chain network.
3. Mobile phone APP
In order to realize convenient operation of a user, the mobile phone APP is required to be communicated with the automobile data recorder, block chain information stored on the automobile data recorder can be conveniently retrieved, a hash address of a corresponding position video is obtained as required, the automobile data recorder is controlled to send a request for sharing the video to the address, and the video is sent to the mobile phone for the user to check after the recorder obtains the video. Meanwhile, the condition of the account token can be read from the block chain through private key information stored in the mobile phone APP.
The block chain is a chain data block structure with a block unit, new blocks are generated at fixed time intervals, and all transaction data and operation data generated in the creation time are recorded in each block in the block chain.
The block structure comprises a block head and a block body. The block chain uses the hash value of the block head as the unique identification of the block, stores the hash value of the block head of the next block in the hash value field of the last block head, and forms a data chain for tracing the latest block to the first block by recording the hash value of the block head, thereby ensuring that the system can trace the historical data basis. Meanwhile, the 'hash value of data' field in the block body records the hash values of all transaction data and operation data in the block body, so that the traceability and reliability of various operations of the system are ensured, and traceability and supervision are facilitated.
The "root node hash value of Merkle tree" field in the chunk header is a hash value obtained by iteratively calculating data in the chunk repeatedly, and the final hash value is recorded in the chunk header. The fields of 'the hash value of the previous block head' of the block head and 'the hash value of the root node of the Merkle tree' of the block head utilize the unidirectionality and the anti-collision performance of the hash algorithm, so that each piece of data is ensured not to be tampered, and once the data is tampered, the data can be quickly positioned, and the reliability and the credibility of the system data are improved.
Specifically, the block structure can be expressed by the following table 1:
table 1:
Figure BDA0001939363200000111
Figure BDA0001939363200000121
the intelligent contracts are described in detail below in connection with the preferred embodiments.
In a preferred embodiment of the present invention, after the step 104, the method may further include:
step B1: and receiving request information of a second automobile data recorder for the first target information, wherein the request information comprises a second public key of the second automobile data recorder, and the second public key is used for identifying the equipment address of the second automobile data recorder.
In the embodiment of the present invention, the second vehicle event data recorder refers to a vehicle event data recorder registered in the blockchain network, and when the second vehicle event data recorder needs to acquire a video, request information corresponding to the first target information may be sent to the first vehicle event data recorder, where the request information includes a second public key of the second vehicle event data recorder, and the second public key is used to identify an equipment address of the second vehicle event data recorder.
After receiving the request information of the second automobile data recorder for the first target information, step B2 is executed.
Step B2: according to the intelligent contract of the block chain network, the first target information is sent to the second automobile data recorder according to the second public key; the second automobile data recorder is a node in the block chain network.
The system also comprises an intelligent contract module which is responsible for providing an interactive operation interface and mainly comprises a contract generation submodule and a contract execution submodule, wherein the contract generation submodule is responsible for deploying the formulated intelligent contract code into the block chain service module; the contract execution submodule is responsible for running an intelligent contract code, receiving transaction requests and events from the outside, further generating new transactions and events, and realizing operations such as video sharing, expense settlement and the like.
After receiving the request information of the second vehicle event data recorder, the first vehicle event data recorder can send the first target information to the second vehicle event data recorder according to the second public key and the intelligent contract of the block chain network.
The system can also be provided with a communication module, the first driving recorder is accessed to the Internet through a 4G or 5G network and the like, the congestion information is broadcasted to each node device (namely other driving recorders registered in the blockchain network) through a cellular network, and meanwhile, the video transaction of the user is also completed through the communication module. The automobile data recorder can comprise a GPS (or Beidou) module, collects positioning information while recording video information, and accordingly serves as the basis of video position information.
Of course, the first driving recorder may further include transaction data of the first target data, and after the step B2, the method may further include:
step C1: acquiring a token and generating transaction information;
step C2: and uploading the transaction information to a state database of the blockchain network.
In the embodiment of the invention, the token is stored in an account of the first driving recorder in the block chain network, and the account is distributed to the first driving recorder by the authentication server to be read by a first private key.
When the first target information is sent to the second automobile data, transaction information can be generated according to the token in the first target information, the transaction information is uploaded to a state database of the block chain network, and the first target information can be downloaded from the state database only after the second automobile data recorder completes payment.
After the first public key and the encrypted data are sent to the blockchain network by the first driving recorder, the driving recorder node registered in the blockchain network can perform consensus authentication on the first public key and the encrypted data, so that blockchain data are generated.
When other driving recorders perform consensus authentication, a consensus mechanism can be adopted, which is proposed for solving the problem of the Byzantine general of the block chain network, and realizes a certain event or a certain transaction, and in a distributed and mutually untrusted environment, all participants can agree. The main consensus algorithms at present are the workload proof algorithm (POW), the equity proof algorithm (POS), the delegation equity proof algorithm (DPOS), the practical byzantine fault tolerant algorithm (PBFT) and the authorized byzantine fault tolerant algorithm (DBFT). Based on the consideration of network construction, the embodiment of the invention adopts PBFT to realize a consensus mechanism.
Of course, in a specific implementation, the consensus mechanism may also be implemented in other ways, and the embodiment of the present invention is not limited thereto.
The consensus mechanism of PBFT is that a few obey most, each node lists all the resulting information after the information is exchanged between nodes in the distributed network, one node represents a ticket, and the majority of the results are selected as the solution. The PBFT controls the fault tolerance to 1/3, which is the total number of nodes, i.e. the whole system can operate normally as long as there are normal nodes exceeding 2/3.
In the embodiment of the present invention, a private key may also be used to query token information of an account, and specifically, the following preferred embodiments are described in detail.
In a preferred embodiment of the present invention, the method may further include:
step N1: receiving a query instruction of the designated terminal;
step N2: and inquiring token information of an account of the first driving recorder in the block chain network according to a first private key.
In an embodiment of the invention, the first private key is a private key distributed to the first traffic recorder by the CA server.
The inquiry command refers to a command for inquiring the token transmitted by a specified terminal bound with the first driving recorder.
When receiving an inquiry instruction sent by the appointed terminal, inquiring token information of an account of the first traffic recorder in the block chain network according to a first private key distributed by the CA server, and returning an inquiry result to the appointed terminal by the CA server.
The information sharing method provided by the embodiment of the invention includes the steps of acquiring first target information, wherein the first target information comprises first target data and description information of the first target data, receiving a first public key distributed by an authentication server, the first public key is used for identifying an equipment address of a first forming recorder, encrypting the first target information by adopting the first public key to generate encrypted data, and sending the first public key and the encrypted data to a block chain network so as to generate block data after a journey logger node in the block chain network performs consensus authentication on the first public key and the encrypted data, wherein the first journey logger is a node in the block chain network. The embodiment of the invention is based on a system and a method for acquiring videos, analyzing traffic conditions and sharing traffic information by using a block chain technology, effectively combines congestion information sharing with the block chain and intelligent contract technology, can ensure the authenticity and the credibility of congestion information, and prevents illegal tampering.
Example two
Referring to fig. 3, a schematic structural diagram of an information sharing device according to an embodiment of the present invention is shown, where the information sharing device may be applied to a first driving recorder, and specifically may include:
a first information obtaining module 210, configured to obtain first target information, where the first target information includes first target data and description information of the first target data; a first public key receiving module 220, configured to receive a first public key distributed by an authentication server, where the first public key is used to identify an equipment address of the first vehicle recorder; a first information encryption module 230, configured to encrypt the first target information by using the first public key, so as to generate encrypted data; a first public key and encrypted data sending module 240, configured to send the first public key and the encrypted data to a blockchain network, so as to generate block data after a vehicle event data recorder node in the blockchain network performs consensus authentication on the first public key and the encrypted data; the first driving recorder is a node in the block chain network.
Preferably, the method further comprises the following steps: the request information receiving module is used for receiving request information of a second automobile data recorder for the first target information, wherein the request information comprises a second public key of the second automobile data recorder, and the second public key is used for identifying the equipment address of the second automobile data recorder; the first information sending module is used for sending the first target information to the second automobile data recorder according to the second public key and the intelligent contract of the block chain network; the second automobile data recorder is a node in the block chain network.
Preferably, the first target information further includes transaction data of the first target data, and further includes: the transaction information generation module is used for acquiring the token and generating transaction information; the transaction information uploading module is used for uploading the transaction information to a state database of the block chain network; wherein the token is stored in an account of the first driving recorder in the blockchain network, and the account is read by a first private key distributed to the first driving recorder by the authentication server.
Preferably, the method further comprises the following steps: the search instruction receiving module is used for receiving a search instruction of a specified terminal; the designated terminal is bound with the first driving recorder; the second information determining module is used for determining second target information matched with the search instruction in the block data of the block chain network; the request sending module is used for sending a request for the second target information to a third vehicle recorder according to a third public key corresponding to the second target information; the second information receiving module is used for receiving the second target information according to the intelligent contract of the block chain network; and the second information sending module is used for sending the second target information to the specified terminal.
Preferably, the method further comprises: the query instruction receiving module is used for receiving a query instruction of the specified terminal; the token information inquiry module is used for inquiring token information of an account of the first driving recorder in the block chain network according to a first private key; wherein the first private key is distributed to the first traffic recorder by the authentication server.
Preferably, the first information obtaining module 210 includes: the video recording submodule is used for recording videos; the thumbnail generation submodule is used for extracting key frames in the video and survival thumbnails; the evaluation information generation submodule is used for grading the video and generating evaluation information; the time and position information extraction submodule is used for extracting the time stamp and the position information of the video; and the first information acquisition submodule is used for acquiring first target information according to the thumbnail, the evaluation information, the timestamp and the position information.
The information sharing device provided by the embodiment of the invention receives a first public key distributed by an authentication server by acquiring first target information, wherein the first target information comprises first target data and description information of the first target data, the first public key is used for identifying an equipment address of a first forming recorder, the first target information is encrypted by adopting the first public key to generate encrypted data, and the first public key and the encrypted data are sent to a block chain network so as to generate block data after a journey logger node in the block chain network performs consensus authentication on the first public key and the encrypted data, wherein the first journey logger is a node in the block chain network. The embodiment of the invention is based on a system and a method for acquiring videos, analyzing traffic conditions and sharing traffic information by using a block chain technology, effectively combines congestion information sharing with the block chain and intelligent contract technology, can ensure the authenticity and the credibility of congestion information, and prevents illegal tampering.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above detailed description is provided for an information sharing method and an information sharing apparatus, and the principle and the implementation of the present invention are explained by applying specific examples, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. An information sharing method is applied to a first driving recorder and is characterized by comprising the following steps:
acquiring first target information, wherein the first target information comprises first target data and description information of the first target data; the first target information comprises traffic information shot by the first traffic recorder;
receiving a first public key distributed by an authentication server, wherein the first public key is used for identifying the equipment address of the first driving recorder;
encrypting the first target information by adopting the first public key to generate encrypted data;
sending the first public key and the encrypted data to a block chain network so as to generate block data after a vehicle event data recorder node in the block chain network performs consensus authentication on the first public key and the encrypted data; the first driving recorder is a node in the block chain network;
the block data is composed of a block head and a block body;
the block header comprises a block length, a version number, a parent block hash value, a Merkle root hash value, a timestamp and a data count; the block length is used to represent the block size after the field in bytes; the version number is used for representing a verification rule followed by the block; the parent block hash value is used for representing the hash value of the previous block; the Merkle root hash value is used for representing the hash value of the Merkle tree root of the data in the block; the time stamp is used for representing the approximate time of block generation; the data count is used for representing the number of data contained in the block;
the block body comprises a version, a data hash value, a data type, data information and a submission timestamp; the version is used for the explicitly referenced rule; the data hash value is used for representing the hash value of data; the data categories include: video thumbnails, video information, and video transactions; the data information includes: congestion information, rating information, information recording video location and time, or transaction data; the commit timestamp is used to represent an approximate time when the data was committed;
the first target information comprises a congestion video, and the congestion video is obtained by controlling a first driving recorder to record through voice or manual operation when a driver drives to a congested road section.
2. The method of claim 1, wherein after the step of sending the first public key and the encrypted data to a blockchain network, further comprising:
receiving request information of a second automobile data recorder for the first target information, wherein the request information comprises a second public key of the second automobile data recorder, and the second public key is used for identifying the equipment address of the second automobile data recorder;
according to the intelligent contract of the block chain network, the first target information is sent to the second automobile data recorder according to the second public key; the second automobile data recorder is a node in the block chain network.
3. The method according to claim 2, wherein the first target information further includes transaction data of the first target data, and after the step of sending the first target information to the second tachograph according to the second public key according to the smart contract of the blockchain network, the method further includes:
acquiring a token and generating transaction information;
uploading the transaction information to a state database of the blockchain network;
wherein the token is stored in an account of the first driving recorder in the blockchain network, and the account is read by a first private key distributed to the first driving recorder by the authentication server.
4. The method of claim 1, further comprising, prior to the step of obtaining the first target information:
receiving a search instruction of a designated terminal; the designated terminal is bound with the first driving recorder;
determining second target information matched with the search instruction in the block data of the block chain network;
sending a request for the second target information to a third vehicle recorder according to a third public key corresponding to the second target information;
receiving the second target information according to the intelligent contract of the block chain network;
and sending the second target information to the appointed terminal.
5. The method of claim 4, further comprising:
receiving a query instruction of the designated terminal;
inquiring token information of an account of the first driving recorder in the block chain network according to a first private key; wherein the first private key is distributed to the first traffic recorder by the authentication server.
6. The method according to any one of claims 1 to 5, wherein the step of obtaining the first target information comprises:
recording a video;
extracting key frames in the video and survival thumbnails;
grading the video to generate evaluation information;
extracting the timestamp and the position information of the video;
and obtaining first target information according to the thumbnail, the evaluation information, the timestamp and the position information.
7. An information sharing device is applied to a first driving recorder and is characterized by comprising:
the system comprises a first information acquisition module, a first information processing module and a second information processing module, wherein the first information acquisition module is used for acquiring first target information, and the first target information comprises first target data and description information of the first target data; the first target information comprises traffic information shot by the first traffic recorder; the first target information comprises a congestion video, and the congestion video is obtained by controlling a first driving recorder to record through voice or manual operation when a driver drives to a congested road section;
the first public key receiving module is used for receiving a first public key distributed by an authentication server, and the first public key is used for identifying the equipment address of the first driving recorder;
the first information encryption module is used for encrypting the first target information by adopting the first public key to generate encrypted data;
the first public key and encrypted data sending module is used for sending the first public key and the encrypted data to a block chain network so as to generate block data after a vehicle event data recorder node in the block chain network performs consensus authentication on the first public key and the encrypted data; the first driving recorder is a node in the block chain network;
the block data is composed of a block head and a block body;
the block header comprises a block length, a version number, a parent block hash value, a Merkle root hash value, a timestamp and a data count; the block length is used to represent the block size after the field in bytes; the version number is used for representing a verification rule followed by the block; the parent block hash value is used for representing the hash value of the previous block; the Merkle root hash value is used for representing the hash value of the Merkle tree root of the data in the block; the time stamp is used for representing the approximate time of block generation; the data count is used for representing the number of data contained in the block;
the block body comprises a version, a data hash value, a data type, data information and a submission timestamp; the version is used for the explicitly referenced rule; the data hash value is used for representing the hash value of data; the data categories include: video thumbnails, video information, and video transactions; the data information includes: congestion information, rating information, information recording video location and time, or transaction data; the commit timestamp is used to represent the approximate time when the data was committed.
8. The apparatus of claim 7, further comprising:
the request information receiving module is used for receiving request information of a second automobile data recorder for the first target information, wherein the request information comprises a second public key of the second automobile data recorder, and the second public key is used for identifying the equipment address of the second automobile data recorder;
the first information sending module is used for sending the first target information to the second automobile data recorder according to the second public key and the intelligent contract of the block chain network; the second automobile data recorder is a node in the block chain network.
9. The apparatus of claim 8, wherein the first targeting information further includes transaction data of the first targeting data, further comprising:
the transaction information generation module is used for acquiring the token and generating transaction information;
the transaction information uploading module is used for uploading the transaction information to a state database of the block chain network;
wherein the token is stored in an account of the first driving recorder in the blockchain network, and the account is read by a first private key distributed to the first driving recorder by the authentication server.
10. The apparatus of claim 7, further comprising:
the search instruction receiving module is used for receiving a search instruction of a specified terminal; the designated terminal is bound with the first driving recorder;
the second information determining module is used for determining second target information matched with the search instruction in the block data of the block chain network;
the request sending module is used for sending a request for the second target information to a third vehicle recorder according to a third public key corresponding to the second target information;
the second information receiving module is used for receiving the second target information according to the intelligent contract of the block chain network;
and the second information sending module is used for sending the second target information to the specified terminal.
CN201910016790.5A 2019-01-08 2019-01-08 Information sharing method and device Active CN109741482B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910016790.5A CN109741482B (en) 2019-01-08 2019-01-08 Information sharing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910016790.5A CN109741482B (en) 2019-01-08 2019-01-08 Information sharing method and device

Publications (2)

Publication Number Publication Date
CN109741482A CN109741482A (en) 2019-05-10
CN109741482B true CN109741482B (en) 2022-01-25

Family

ID=66363829

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910016790.5A Active CN109741482B (en) 2019-01-08 2019-01-08 Information sharing method and device

Country Status (1)

Country Link
CN (1) CN109741482B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110599213B (en) * 2019-09-29 2024-03-29 腾讯科技(深圳)有限公司 Article management method and device based on blockchain network and electronic equipment
CN111106941B (en) * 2019-11-29 2022-08-02 中国电信股份有限公司云南分公司 Distributed chained data sharing authorization method based on time sequence and encryption
CN110995852B (en) * 2019-12-12 2022-08-12 北京诚达交通科技有限公司 Vehicle path recording method and system
CN112417488A (en) * 2020-06-05 2021-02-26 宗陈星 Information processing method and system based on big data and block chain and cloud server
CN111935190B (en) * 2020-10-12 2021-01-26 杭州海康威视数字技术股份有限公司 Internet of vehicles terminal data sharing method and device, electronic equipment and storage medium
CN115002145B (en) * 2021-05-26 2023-07-21 中移互联网有限公司 Vehicle information sharing system and method based on block chain

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107483198A (en) * 2017-09-25 2017-12-15 中国科学院信息工程研究所 A kind of block catenary system supervised and method
CN107819770A (en) * 2017-11-15 2018-03-20 中国联合网络通信集团有限公司 Medical data sharing method for secret protection and device based on block chain
CN108900533A (en) * 2018-08-01 2018-11-27 南京荣链科技有限公司 A kind of shared data method for secret protection, system, terminal and medium
CN108959945A (en) * 2018-07-06 2018-12-07 腾讯科技(深圳)有限公司 Medical data sharing method, device, computer-readable medium and electronic equipment
CN109147887A (en) * 2018-06-07 2019-01-04 深圳鑫宏图工业设计有限公司 A kind of medical system management method, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104980343A (en) * 2015-06-30 2015-10-14 北京奇虎科技有限公司 Sharing method and system of road condition information, automobile data recorder, and cloud server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107483198A (en) * 2017-09-25 2017-12-15 中国科学院信息工程研究所 A kind of block catenary system supervised and method
CN107819770A (en) * 2017-11-15 2018-03-20 中国联合网络通信集团有限公司 Medical data sharing method for secret protection and device based on block chain
CN109147887A (en) * 2018-06-07 2019-01-04 深圳鑫宏图工业设计有限公司 A kind of medical system management method, electronic equipment and storage medium
CN108959945A (en) * 2018-07-06 2018-12-07 腾讯科技(深圳)有限公司 Medical data sharing method, device, computer-readable medium and electronic equipment
CN108900533A (en) * 2018-08-01 2018-11-27 南京荣链科技有限公司 A kind of shared data method for secret protection, system, terminal and medium

Also Published As

Publication number Publication date
CN109741482A (en) 2019-05-10

Similar Documents

Publication Publication Date Title
CN109741482B (en) Information sharing method and device
US11966994B2 (en) Blockchain-based method and system for processing traffic violation event
US20220335162A1 (en) Event-based community creation for data sharing platform
US11128838B2 (en) Systems and methods for automated cloud-based analytics for security and/or surveillance
US20200349839A1 (en) Image data integrator for addressing congestion
Gipp et al. Securing video integrity using decentralized trusted timestamping on the bitcoin blockchain
CN108512653A (en) A kind of electronic evidence acquisition and method of servicing based on block chain
CN106971552B (en) Fake plate phenomenon detection method and system
CN105245842A (en) Mass video monitoring system based on automobile data recorders
WO2022078353A1 (en) Vehicle driving state determination method and apparatus, and computer device and storage medium
KR102213120B1 (en) System and method for providing smart contract of content sharing for integrity verification based on blockchain
CN108230669B (en) Road vehicle violation detection method and system based on big data and cloud analysis
US11416542B1 (en) System and method for uploading still images of matching plates in response to an alert hit list using distributed LPR acquisition
CN110634303A (en) Traffic violation monitoring and checking method and device
CN109190402A (en) A kind of casualty data wiring method and device, equipment, storage medium
CN110648534A (en) Traffic data chaining method and device of Internet of things based on block chain
CN110533906B (en) Method for acquiring road condition information and related device
US10643271B1 (en) Retrofitting legacy surveillance systems for traffic profiling and monetization
CN110008655B (en) Infringement information identification system and method based on distributed network
Özkul et al. Police‐less multi‐party traffic violation detection and reporting system with privacy preservation
CN111386711A (en) Method, device and system for managing electronic fingerprints of electronic files
KR20200061750A (en) Traffic accident information management method using blockchain
CN105654718A (en) Traffic safety monitoring method and system
KR20210013814A (en) Platform and implementing a method for p2p transaction/sharing service of black box images among drivers based on block chain technology
EP4131846A1 (en) Blockchain network system

Legal Events

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