CN109741482A - A kind of information sharing method and device - Google Patents

A kind of information sharing method and device Download PDF

Info

Publication number
CN109741482A
CN109741482A CN201910016790.5A CN201910016790A CN109741482A CN 109741482 A CN109741482 A CN 109741482A CN 201910016790 A CN201910016790 A CN 201910016790A CN 109741482 A CN109741482 A CN 109741482A
Authority
CN
China
Prior art keywords
information
public key
block chain
data recorder
chain network
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.)
Granted
Application number
CN201910016790.5A
Other languages
Chinese (zh)
Other versions
CN109741482B (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

Abstract

The present invention provides a kind of information sharing method and devices.The described method includes: obtaining first object information, the first object information includes the description information of first object data and the first object data;The first public key of certificate server distribution is received, first public key is used to identify the device address of first automobile data recorder;The first object information is encrypted using first public key, generates encryption data;First public key and the encryption data are sent to block chain network, to generate block data after the automobile data recorder node in the block chain network carries out common recognition certification to first public key and the encryption data;Wherein, first automobile data recorder is a node in the block chain network.Present invention can ensure that the authenticity and confidence level of congestion information, prevent from illegally distorting.

Description

A kind of information sharing method and device
Technical field
The present invention relates to block chain technical fields, more particularly to a kind of information sharing method and device.
Background technique
Now, the increase of automobile utilization rate causes urban transportation blocking to get worse.It is convenient due to automobile, lead to city Wagon flow increasingly increases in area, and whenever peak hour, working, tourism, shopping wagon flow pours in downtown from all quarter, but Be since road capacity is insufficient or design is improper, cause existing road can not the so big vehicle flowrate of load, and result in blockage Situation.Meanwhile traffic accident is also the main reason for causing traffic congestion, to count according to traffic police department, traffic is caused in urban district Having in the factor of congestion more than half is traffic accident, and having eighty per cant again in these traffic accidents is slight road traffic accident, All in all, traffic congestion problems in the city four are caused at by fender-bender.
It is influenced to solve traffic congestion to caused by people's trip, the real-time road casting of existing action by government also has each The congestion route displaying of kind navigation software, but due to the psychology of the generally existing curiosity of people, it will very craving obtains traffic The real-time condition of congestion points shows.General certain TV programme can be to the video monitoring information of public display traffic control department, still It is only limited to the introduction in emphasis section, all routes in city can not be covered, so that still there are most people that can not know locating road Congestion reason, and this is formally in driver's information that most there is an urgent need to know outside several kilometers of congestion points.
Currently, automobile data recorder is widely used among drive routine, traffic information can be recorded in real time, this is just record Jam situation creates condition.The congestion video that automobile data recorder is recorded can be shared, provide acquisition for other drivers and gather around The mode of stifled state.But which needs central server to carry out the upload of video and downloads control, while individual subscriber is believed Breath will be established with video to be contacted, and the protection of individual privacy data is unfavorable for.
Summary of the invention
The present invention provides a kind of information sharing method and device, to solve the acquisition methods of existing traffic congestion information not The problem of conducive to individual privacy data protection.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of information sharing methods, are applied to the first driving note Record instrument, comprising: obtain first object information, the first object information includes first object data and the first object data Description information;The first public key of certificate server distribution is received, first public key is for identifying first driving recording The device address of instrument;The first object information is encrypted using first public key, generates encryption data;By described One public key and the encryption data are sent to block chain network, with the automobile data recorder node in the block chain network to institute It states the first public key and after the encryption data carries out common recognition certification, generates block data;Wherein, first automobile data recorder is A node in the block chain network.
Preferably, after described the step of first public key and the encryption data are sent to block chain network, Further include: the second automobile data recorder is received to the solicited message of the first object information, comprising described in the solicited message Second public key of the second automobile data recorder, second public key are used to identify the device address of second automobile data recorder;Root According to the intelligent contract of the block chain network, first mesh is sent to second automobile data recorder according to second public key Mark information;Second automobile data recorder is a node in the block chain network.
It preferably, further include the transaction data of the first object data in the first object information, in the basis The intelligent contract of the block chain network sends the first object to second automobile data recorder according to second public key After the step of information, further includes: obtain token, and generate Transaction Information;The Transaction Information is uploaded to the block chain The slip condition database of network;Wherein, the token is stored in first automobile data recorder in the account of the block chain network In, the account is read by the first private key that the certificate server is distributed to first automobile data recorder.
Preferably, before the acquisition first object information the step of, further includes: the search for receiving designated terminal refers to It enables;The designated terminal and first automobile data recorder are bound;In the block data of the block chain network, determining and institute State matched second target information of search instruction;According to third public key corresponding with second target information, drive a vehicle to third Recorder sends the request to second target information;According to the intelligent contract of the block chain network, described second is received Target information;Second target information is sent to the designated terminal.
Preferably, the method also includes: receive the inquiry instruction of the designated terminal;According to the inquiry of the first private key The token information of first automobile data recorder account in the block chain network;Wherein, first private key is taken by the certification Business device is distributed to first automobile data recorder.
Preferably, the step of acquisition first object information, comprising: recorded video;The key frame in video is extracted, it is raw Deposit thumbnail;It grades to video, generates evaluation information;Extract timestamp, the location information of video;According to thumbnail, evaluation letter Breath, timestamp, location information obtain first object information.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of information sharing apparatus, are applied to the first driving note Record instrument, comprising: the first information obtains module, and for obtaining first object information, the first object information includes first object The description information of data and the first object data;First public key receiving module, for receiving the of certificate server distribution One public key, first public key are used to identify the device address of first automobile data recorder;First information encrypting module, is used for The first object information is encrypted using first public key, generates encryption data;First public key and encryption data hair Module is sent, for first public key and the encryption data to be sent to block chain network, in the block chain network Automobile data recorder node common recognition certification is carried out to first public key and the encryption data after, generate block data;Wherein, First automobile data recorder is a node in the block chain network.
Preferably, further includes: solicited message receiving module believes the first object for receiving the second automobile data recorder The solicited message of breath, includes the second public key of second automobile data recorder in the solicited message, and second public key is used for Identify the device address of second automobile data recorder;First information sending module, for the intelligence according to the block chain network Energy contract sends the first object information to second automobile data recorder according to second public key;Second driving Recorder is a node in the block chain network.
It preferably, further include the transaction data of the first object data in the first object information, further includes: transaction Information generating module for obtaining token, and generates Transaction Information;Transaction Information uploading module is used for the Transaction Information It is uploaded to the slip condition database of the block chain network;Wherein, the token is stored in first automobile data recorder described In the account of block chain network, the account is distributed to the first private of first automobile data recorder by the certificate server Key is read.
Preferably, further includes: search instruction receiving module, for receiving the search instruction of designated terminal;The specified end It is bound with first automobile data recorder at end;Second information determination module, in the block data of the block chain network, Determining the second target information with described search instructions match;Request sending module, for basis and second target information Corresponding third public key sends the request to second target information to third automobile data recorder;Second information receiving module, For the intelligent contract according to the block chain network, second target information is received;Second information sending module, being used for will Second target information is sent to the designated terminal.
Preferably, the method also includes: inquiry instruction receiving module, the inquiry for receiving the designated terminal refer to It enables;Token information enquiry module, for inquiring first automobile data recorder in the block chain network according to the first private key The token information of account;Wherein, first private key is distributed to first automobile data recorder by the certificate server.
Preferably, it includes: video record submodule that the first information, which obtains module, is used for recorded video;Thumbnail is raw At submodule, for extracting the key frame in video, thumbnail of surviving;Evaluation information generates submodule, for grading to video, Generate evaluation information;Time location information extraction submodule, for extracting timestamp, the location information of video;The first information obtains Submodule is taken, for obtaining first object information according to thumbnail, evaluation information, timestamp, location information.
Compared with prior art, the present invention includes the following advantages:
Information sharing method and device provided in an embodiment of the present invention, by obtaining first object information, first object letter Description information of the breath including first object data and first object data, the first public key of reception certificate server distribution, first Public key is used to identify the device address of the first formation recorder, is encrypted, is generated to first object information using the first public key First public key and encryption data are sent to block chain network by encryption data, with the stroke recording etiquette in block chain network After o'clock carrying out common recognition certification to the first public key and encryption data, block data is generated, wherein first stroke recorder is block chain A node in network.The embodiment of the present invention is based on block chain technology acquisition video, analysis traffic condition and shared traffic letter Congestion information is shared and is effectively combined with block chain and intelligent contract technology, it is ensured that congestion by the system and method for breath The authenticity and confidence level of information prevent from illegally distorting.
Detailed description of the invention
Fig. 1 shows a kind of step flow chart of information sharing method provided in an embodiment of the present invention;
Fig. 2 shows a kind of schematic diagrames of block chain network topological structure provided in an embodiment of the present invention;
Fig. 3 shows a kind of structural schematic diagram of information sharing apparatus provided in an embodiment of the present invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real Applying mode, the present invention is described in further detail.
With the development of internet technology, block chain technology is come into being, this is a kind of distributed data base technique, is had Decentralization, open and clear feature.Specifically, the essence of block chain technology is decentralization and the number using distributed frame According to the method for storage, transmission and proof, replace dependence of the current internet to central server with data block, so that all numbers According to change or trading item be all recorded on a data link table.Data operation, management, maintenance effect is greatly improved Rate, while the block chain for carrying asymmetric encryption techniques has high security, can effectively prevent leaking data or illegally distorts.On The feature of stating makes block chain technology particularly suitable for the big data operation field with highly confidential requirement.Meanwhile intelligence Contract is a kind of contract that record clause is removed with computer language substitution legal language, may be regarded as one section and is deployed on block chain Program has and self executes and self mandatory attribute.Self execution refers to contract, and automatic running comes into force after deployment;Self is forced Refer to that participant can call contract to enforce it in the case where meeting condition.Entire decision process does not need believable the Tripartite participates in arbitration and intervenes.By block chain technology guarantee data authentic and valid and intelligent contract can not tamper, and intelligently Contract is responsible for enforcing specification, so that the application demand that block chain technical characteristic and traffic congestion are shared has good combination Point, can be to avoid centralization platform bring privacy leakage drawback, and driver can be encouraged to share congestion information by incentive measure.
The technical concept of the embodiment of the present invention are as follows: the system and method based on block chain Techno-sharing traffic congestion information, Video shared model is effectively combined with block chain and intelligent contract technology, automobile data recorder can be made to have autonomous shared The problem of ability of congestion video simultaneously obtains excitation, while by Hash account address, prevents individual subscriber privacy leakage generation.
Below in conjunction with specific embodiment, the scheme of the embodiment of the present invention is described in detail.
Embodiment one
Referring to Fig.1, a kind of step flow chart of information sharing method provided in an embodiment of the present invention is shown, the information is total The method of enjoying can be applied to the first automobile data recorder, can specifically include following steps:
Step 101: obtaining first object information, the first object information includes first object data and first mesh Mark the description information of data.
In embodiments of the present invention, first object information refers to the traffic information that the first automobile data recorder takes, certainly, It may be other information, the embodiments of the present invention are not limited thereto.
First object data may include the traffic audio, video data recorded, and description information can be as traffic video data The character description information of addition, the description information can be the geographical location occurred by system direct basis traffic audio, video data And the description information that field condition automatically generates, it is also possible to the description information added manually by user, the embodiment of the present invention pair This is without restriction.
When needing shared first object information, first object information can be obtained from the information pre-saved, and hold Step after row.
In the concrete realization, those skilled in the art can also use other way to start the first automobile data recorder to record Traffic congestion video, the embodiments of the present invention are not limited thereto.
Specifically, above-mentioned steps 101 are described in detail in conjunction with embodiments discussed below.
In a preferred embodiment of an embodiment of the present invention, above-mentioned steps 101 may include:
Sub-step A1: recorded video.
In embodiments of the present invention, it when driver travels to congested link, can independently choose whether to carry out congestion problems Video record can be gathered around when confirming the desire to recorded video by voice or manual operation control the first automobile data recorder recording Stifled video, for example, the congestion video of present road is recorded in input one Duan Yuyin " recorded video " with the first automobile data recorder of starting, Or manually boot the congestion video etc. that the first automobile data recorder records present road.
Certainly, in practical applications, the video of recording can also be other videos, and be not limited in traffic congestion view Frequently, for the video type of recording can according to the actual situation depending on, the embodiments of the present invention are not limited thereto.
After recorded video, sub-step A2 is executed.
Sub-step A2: extracting the key frame in video, thumbnail of surviving.
It is to be appreciated that the video recorded is composed by continuous image sequence, it is completed in video record Afterwards, thumbnail can be generated with the key frame images from the key frame images in image sequence.
The extraction of key frame of video needs to identify the image in video based on image procossing mode, main to identify Object includes lane line, vehicle and warning sign.Wherein lane line is that this vehicle travels lane line, for demarcating incident area range; Warning sign is as after the accident, it is specified that the object that must be placed, has certain exclusiveness, can be used as the spy of place where the accident occurred Levy object.
Lane line (i.e. feasible area) extracts, and using the lane line detection method based on structured road, uses Hough Transformation clusters the pixel in image space with certain relationship, and searching can join a certain analytical form of these pixels What system got up, it is indicated in the form of accumulating in parameter space, realizes that the data of image space are mapped to parameter space, then can pass through letter Single cumulative statistic mixed-state straight line, for identifying area of feasible solutions.Image is pre-processed first, captured image is done into gray scale Change processing, obtains the less grayscale image of port number, is filtered later, reduces the noise jamming in image, then utilizes Sobel Operator does enhancing processing to edge, due on structuring road surface, lane line be all it is white, brightness is shown as in entire image Highest part carries out binary conversion treatment, finally extracts all straight lines using Hough transform, using the position of lane line, tiltedly Prophets' experience such as rate, length differentiates to obtain lane line.In feasible area, the image zooming-out of vehicle and warning sign is carried out, is adopted The profile that the two is extracted with the method for morphological image achievees the purpose that identify different objects.For example, structure base when chosen First B first carries out etching operation to identification image A, then subtracts Corrosion results with A, i.e., extractable image boundary, later according in advance The profile sample database of foundation, the vehicle and warning sign profile extracted in image are matched with the master sample in sample database, Distribution coefficient reaches a certain level, then it is assumed that successful match.
In the concrete realization, the key frame in video can also be extracted using other way, to generate thumbnail, and then held Row sub-step A3.
Sub-step A3: grading to video, generates evaluation information.
After generating thumbnail, it can also grade to whole video quality, for example, commenting from a star to five-pointed star Grade etc..Specifically, congestion video can be analyzed, obtains the thumbnail with vehicle and warning sign characteristic body, according to Article size threshold value and grading operation is carried out in feasible area position.
After grading is completed, corresponding evaluation information can be generated, and execute sub-step A4.
Sub-step A4: timestamp, the location information of video are extracted.
Timestamp information refers to the time that the scene in the time namely video of video record occurs, for example, handing over recording When logical congestion video, the time that traffic congestion happens is the time recorded, such as 2018-12-10, noon 12:12 etc..
Location information refers to the position that the scene in video occurs, for example, when recording traffic congestion video, it is available The section that traffic congestion occurs, such as: " the ZhongGuanCun south Street, Haidian District, BeiJing City street xx xx ".
After the timestamp and location information for extracting video, sub-step A5 is executed.
Sub-step A5: according to thumbnail, evaluation information, timestamp, location information, first object information is obtained.
After obtaining thumbnail, evaluation information, timestamp, location information, the first mesh can be generated according to above- mentioned information Mark information.
In embodiments of the present invention, the first automobile data recorder can also be bound with designated terminal, to obtain other notes The information that volume is recorded in the automobile data recorder of block chain network, the embodiments of the present invention are not limited thereto.Specifically, with following Preferred embodiment is described in detail.
In a preferred embodiment of an embodiment of the present invention, before above-mentioned steps 101, can also include:
Step S1: the search instruction of designated terminal is received;The designated terminal and first automobile data recorder are bound.
In embodiments of the present invention, designated terminal can be mobile phone, PAD (portable android device, plate Computer), the equipment such as portable computer.
Specified APP is downloaded in advance on designated terminal, in driver's driving conditions, it is desirable to obtain the traffic of certain road When condition information, specified APP can be opened, and search for the traffic congestion information that whether there is the road.
After the search instruction for receiving designated terminal transmission, step S2 is executed.
Step S2: in the block data of the block chain network, determining the second target with described search instructions match Information.
After the search instruction for receiving designated terminal transmission, it can be searched in the block data of block chain network With matched second target information of search instruction, and step S3 is executed.
Step S3: it according to third public key corresponding with second target information, sends to third automobile data recorder to institute State the request of the second target information.
It include third public key in the second target information, third public key is used to indicate the corresponding third of the second target information It the device address of automobile data recorder can be according to corresponding with the second target information after getting the second target information Three public keys send the request to the second target information to third automobile data recorder, and execute step S4.
Step S4: according to the intelligent contract of the block chain network, second target information is received.
It, can be according to the intelligence of block chain network after sending to third automobile data recorder to the request of the second target information Energy contract receives the second target information that third automobile data recorder is sent, and executes step S5.
Step S5: second target information is sent to the designated terminal.
After the first driving recording receives the second target information, the second target information can be sent to specified whole End, to check the traffic congestion situation of road by driver.
After obtaining first object information, step 102 is executed.
Step 102: receiving the first public key of certificate server distribution, first public key is for identifying first driving The device address of recorder.
Device address refers to the location of first automobile data recorder, and it is double to can be used for subsequent transaction according to device address Square video sharing and token clearing, specifically, will be described in detail in following step, and the embodiment of the present invention no longer adds herein To repeat.
Certificate server (Certification Authority, CA) is responsible for realizing the correlation function of certificate center module, The first public key is generated, the first public key can be used for identifying the device address of the first automobile data recorder.
Certainly, in the present invention, the first public key, which can be, is made of public key and private key, and public key is for identifying the first driving The device address of recorder, private key in subsequent step for the reception of first object information for being encrypted.For example, privacy number According to encryption and decryption process be that after generating public key and private key by CA server, public and private key is pushed in automobile data recorder, wherein private Key is used to that the data after the execution of intelligent contract to be encrypted and be obtained the token of public key account.
It is to be appreciated that above-mentioned example is merely to more fully understand the technical solution of the embodiment of the present invention and showing for enumerating Example, not as the sole limitation to the embodiment of the present invention.
First automobile data recorder can receive the first public key sent by CA server, and execute step 103.
Step 103: the first object information being encrypted using first public key, generates encryption data.
After obtaining the first public key, first object information can be encrypted using the first public key, and generate encryption Data, and then execute step 103.
Step 104: first public key and the encryption data being sent to block chain network, in the block link network After automobile data recorder node in network carries out common recognition certification to first public key and the encryption data, block data is generated; Wherein, first automobile data recorder is a node in the block chain network.
It in embodiments of the present invention, is that block chain network is constituted using the automobile data recorder of each registration, the first driving note Record instrument belongs to a module of block chain network, specifically, referring to Fig. 2, shows a kind of block provided in an embodiment of the present invention The schematic diagram of chain network topological structure, as shown in Fig. 2, system provided in an embodiment of the present invention may include CA server, driving Recorder and cell phone application (Application, application program) three parts entity composition, wherein the function of three parts entity is such as Under:
1, CA server
CA server is responsible for realizing the correlation function of certificate center module, generates public private key pair and registers the number card of equipment Book is supplied to the other modules of system and uses.The encryption and decryption process of private data is after generating public key and private key by CA server, to incite somebody to action Public and private key is pushed in automobile data recorder, and the data after wherein private key is used to execute intelligent contract are encrypted and obtained The token of public key account;Public key certificate is settled accounts for identifying device address for both parties' video sharing and token.
2, automobile data recorder
Automobile data recorder has voice control function, can be by voice, such as " starting to record ", control recorder recording are gathered around The case where stifled point, and after recording successfully, video and uploading position and timestamp information are voluntarily saved to block chain network;
Other automobile data recorders positioned at block chain network will confirm information, generate block data;
After receiving the shared video request of other automobile data recorders, autonomous operation intelligence contract voluntarily sends video And token is obtained, and the Transaction Information is uploaded into network and is stored in block chain network with this.
3, cell phone application
To realize that user's operation is convenient, need to be communicated using cell phone application with automobile data recorder, convenient for retrieval driving note The block chain information saved on record instrument, obtains the Hash Round Robin data partition of corresponding position video on demand, and controls automobile data recorder to the ground Location sends the request of shared video, will be sent to mobile phone after recorder gets video and check for user.Meanwhile can also it pass through The private key information of cell phone application storage reads account token situation from block chain.
Block chain is the chain block data structure as unit of block, will generate new block at every fixed time, Each of block chain block has recorded the All Activity data and operation data generated in creation time.
Block structure includes block head and block body.Block chain uses unique mark of the cryptographic Hash of block head as block Know, is stored in block head " cryptographic Hash of upper block head " field of next block, by the cryptographic Hash of recording areas build, The data chain that the first block is traced back to from newest block is formd, the system of ensure that can trace historical data foundation. Meanwhile " cryptographic Hash of data " field record cryptographic Hash of this block All Activity data and operation data in block body, it protects The trackability and reliability of each generic operation of card system, convenient for calling to account and supervising.
" the root node cryptographic Hash of Merkle tree " field in block head, is calculating that the data in block body iterate Cryptographic Hash, and final cryptographic Hash is recorded in block head." cryptographic Hash of upper block head " of block head and " Merkle The root node cryptographic Hash of tree " field, is utilized the one-way and anti-collision of hash algorithm, it is ensured that each data is not It can distort, once distorting can also position rapidly, improve the reliability and confidence level of system data.
Specifically, block structure can be stated using following table 1:
Table 1:
Next preferred embodiment is combined, intelligent contract is described in detail.
In a preferred embodiment of an embodiment of the present invention, after above-mentioned steps 104, can also include:
Step B1: the second automobile data recorder is received to the solicited message of the first object information, in the solicited message The second public key comprising second automobile data recorder, the equipment that second public key is used to identify second automobile data recorder Address.
In embodiments of the present invention, the second automobile data recorder refers to the automobile data recorder being registered in block link network, When two automobile data recorders need to obtain video, the request letter for corresponding to first object information can be sent to the first automobile data recorder It ceases, includes the second public key of the second automobile data recorder in solicited message, the second public key is for identifying the second automobile data recorder Device address.
After receiving the second automobile data recorder to the solicited message of first object information, step B2 is executed.
Step B2: according to the intelligent contract of the block chain network, remember according to second public key to second driving It records instrument and sends the first object information;Second automobile data recorder is a node in the block chain network.
It in systems also include intelligent contract module, intelligent contract module is responsible for providing interactive operation interface, main to wrap It includes contract and generates submodule and contract implementation sub-module, wherein contract generation submodule is responsible for the intelligent contract code portions that will be formulated It affixes one's name among block chain service module;Contract implementation sub-module is responsible for running intelligent contract code, receives from external transaction Request and event further generate new transaction and event, realize that video is shared and the operations such as disbursement and sattlement.
First automobile data recorder, can be according to block chain network after the solicited message for receiving the second automobile data recorder Intelligent contract, according to the second public key to the second driving recording send first object information.
It is also provided with communication module in systems, the first automobile data recorder is arrived by network insertions such as 4G or 5G Congestion information is broadcasted to each node device by cellular network and (is registered in other rows of block chain network by Internet Vehicle recorder), meanwhile, it is completed when the video of user is traded also by this communication module.Automobile data recorder may include GPS (or Beidou) module, while recorded video information, acquisition location information, and the foundation as video location information according to this.
It certainly, can also include the transaction data of first object data in the first automobile data recorder, then in above-mentioned steps B2 Later, can also include:
Step C1: token is obtained, and generates Transaction Information;
Step C2: the Transaction Information is uploaded to the slip condition database of the block chain network.
In embodiments of the present invention, token is stored in the first automobile data recorder in the account of block chain network, and account is logical Cross the first private key reading that certificate server is distributed to the first automobile data recorder.
It, can also be according to the token in first object information while sending first object information to the second driving recording Generate Transaction Information, and Transaction Information be uploaded to the slip condition database of block chain network, the second automobile data recorder complete After payment, first object information can be just downloaded from slip condition database.
After the first public key and encryption data are sent to block chain network by the first automobile data recorder, it is registered in the block Automobile data recorder node in chain network can carry out common recognition certification to the first public key and encryption data, to generate block counts According to.
It can be to solve block chain using common recognition mechanism, common recognition mechanism when other automobile data recorders carry out common recognition certification What Byzantium's general's problem of network proposed, realize some event or some transaction, in distributed, mutual mistrust environment, The process reached an agreement between each participant.Current main common recognition algorithm has proof of work algorithm (POW), equity to prove to calculate Method (POS), commission equity prove algorithm (DPOS), practical Byzantine failure tolerance algorithm (PBFT) and authorization Byzantine failure tolerance algorithm (DBFT).Considered based on network struction, the embodiment of the present invention realizes common recognition mechanism using PBFT.
Certainly, in the concrete realization, it can also realize that this is not added in common recognition mechanism, the embodiment of the present invention using other way With limitation.
The common recognition mechanism of PBFT is that the minority is subordinate to the majority, each after being intercoursed between distributed network interior joint according to information Node lists all obtained information, and one ticket of node on behalf selects most of result as solution.PBFT will hold Mistake amount control is the 1/3 of whole number of nodes, as long as having more than 2/3 normal node, whole system can normal operation.
It in embodiments of the present invention, can also be using the token information of private key inquiry account, specifically, with following preferred realities Example is applied to be described in detail.
In a preferred embodiment of an embodiment of the present invention, the method can also include:
Step N1: the inquiry instruction of the designated terminal is received;
Step N2: the token of first automobile data recorder account in the block chain network is inquired according to the first private key Information.
In embodiments of the present invention, the first private key is the private key that the first automobile data recorder is distributed to by CA server.
Inquiry instruction refers to the instruction for being used to inquire token sent with the designated terminal of the first automobile data recorder binding.
When receiving the inquiry instruction of designated terminal transmission, the first private key that can be distributed according to CA server, inquiry The token information of first automobile data recorder account in block chain network, and query result is returned to by CA server and is specified eventually End.
Information sharing method provided in an embodiment of the present invention, by obtaining first object information, first object information includes The description information of first object data and first object data, receives the first public key of certificate server distribution, and the first public key is used The device address of recorder is formed in mark first, first object information is encrypted using the first public key, generates encryption number According to the first public key and encryption data being sent to block chain network, with the position recorder node in block chain network to After one public key and encryption data carry out common recognition certification, block data is generated, wherein first stroke recorder is in block chain network A node.The embodiment of the present invention acquires video based on block chain technology, analyzes traffic condition and share traffic information is Congestion information is shared and is effectively combined with block chain and intelligent contract technology, it is ensured that congestion information by system and method Authenticity and confidence level prevent from illegally distorting.
Embodiment two
Referring to Fig. 3, a kind of structural schematic diagram of information sharing apparatus provided in an embodiment of the present invention is shown, the information is total Enjoying device can be applied to the first automobile data recorder, can specifically include:
The first information obtains module 210, and for obtaining first object information, the first object information includes first object The description information of data and the first object data;First public key receiving module 220, for receiving certificate server distribution First public key, first public key are used to identify the device address of first automobile data recorder;First information encrypting module 230, for encrypting using first public key to the first object information, generate encryption data;First public key and add Ciphertext data sending module 240, for first public key and the encryption data to be sent to block chain network, in the area After automobile data recorder node in block chain network carries out common recognition certification to first public key and the encryption data, block is generated Data;Wherein, first automobile data recorder is a node in the block chain network.
Preferably, further includes: solicited message receiving module believes the first object for receiving the second automobile data recorder The solicited message of breath, includes the second public key of second automobile data recorder in the solicited message, and second public key is used for Identify the device address of second automobile data recorder;First information sending module, for the intelligence according to the block chain network Energy contract sends the first object information to second automobile data recorder according to second public key;Second driving Recorder is a node in the block chain network.
It preferably, further include the transaction data of the first object data in the first object information, further includes: transaction Information generating module for obtaining token, and generates Transaction Information;Transaction Information uploading module is used for the Transaction Information It is uploaded to the slip condition database of the block chain network;Wherein, the token is stored in first automobile data recorder described In the account of block chain network, the account is distributed to the first private of first automobile data recorder by the certificate server Key is read.
Preferably, further includes: search instruction receiving module, for receiving the search instruction of designated terminal;The specified end It is bound with first automobile data recorder at end;Second information determination module, in the block data of the block chain network, Determining the second target information with described search instructions match;Request sending module, for basis and second target information Corresponding third public key sends the request to second target information to third automobile data recorder;Second information receiving module, For the intelligent contract according to the block chain network, second target information is received;Second information sending module, being used for will Second target information is sent to the designated terminal.
Preferably, the method also includes: inquiry instruction receiving module, the inquiry for receiving the designated terminal refer to It enables;Token information enquiry module, for inquiring first automobile data recorder in the block chain network according to the first private key The token information of account;Wherein, first private key is distributed to first automobile data recorder by the certificate server.
Preferably, it includes: video record submodule that the first information, which obtains module 210, is used for recorded video;Thumbnail Submodule is generated, for extracting the key frame in video, thumbnail of surviving;Evaluation information generates submodule, for commenting video Grade generates evaluation information;Time location information extraction submodule, for extracting timestamp, the location information of video;The first information Acquisition submodule, for obtaining first object information according to thumbnail, evaluation information, timestamp, location information.
Information sharing apparatus provided in an embodiment of the present invention, by obtaining first object information, first object information includes The description information of first object data and first object data, receives the first public key of certificate server distribution, and the first public key is used The device address of recorder is formed in mark first, first object information is encrypted using the first public key, generates encryption number According to the first public key and encryption data being sent to block chain network, with the position recorder node in block chain network to After one public key and encryption data carry out common recognition certification, block data is generated, wherein first stroke recorder is in block chain network A node.The embodiment of the present invention acquires video based on block chain technology, analyzes traffic condition and share traffic information is Congestion information is shared and is effectively combined with block chain and intelligent contract technology, it is ensured that congestion information by system and method Authenticity and confidence level prevent from illegally distorting.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, commodity or the equipment that include a series of elements not only include that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, commodity or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in process, method, commodity or the equipment for including the element.
Above to a kind of information sharing method provided by the present invention and a kind of information sharing apparatus, detailed Jie has been carried out It continues, used herein a specific example illustrates the principle and implementation of the invention, and the explanation of above embodiments is only It is to be used to help understand method and its core concept of the invention;At the same time, for those skilled in the art, according to this hair Bright thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not manage Solution is limitation of the present invention.

Claims (10)

1. a kind of information sharing method is applied to the first automobile data recorder characterized by comprising
First object information is obtained, the first object information includes the description of first object data and the first object data Information;
Receive the first public key of certificate server distribution, the equipment that first public key is used to identify first automobile data recorder Address;
The first object information is encrypted using first public key, generates encryption data;
First public key and the encryption data are sent to block chain network, with the driving note in the block chain network After record etiquette point carries out common recognition certification to first public key and the encryption data, block data is generated;Wherein, described first Automobile data recorder is a node in the block chain network.
2. the method according to claim 1, wherein first public key and the encryption data are sent out described After the step of sending to block chain network, further includes:
The second automobile data recorder is received to the solicited message of the first object information, includes described second in the solicited message Second public key of automobile data recorder, second public key are used to identify the device address of second automobile data recorder;
According to the intelligent contract of the block chain network, according to second public key to described in second automobile data recorder transmission First object information;Second automobile data recorder is a node in the block chain network.
3. according to the method described in claim 2, it is characterized in that, further including the first object in the first object information The transaction data of data, in the intelligent contract according to the block chain network, according to second public key to described second Automobile data recorder was sent after the step of first object information, further includes:
Token is obtained, and generates Transaction Information;
The Transaction Information is uploaded to the slip condition database of the block chain network;
Wherein, the token is stored in first automobile data recorder in the account of the block chain network, and the account is logical Cross the first private key reading that the certificate server is distributed to first automobile data recorder.
4. the method according to claim 1, wherein before the acquisition first object information the step of, also Include:
Receive the search instruction of designated terminal;The designated terminal and first automobile data recorder are bound;
In the block data of the block chain network, determining the second target information with described search instructions match;
According to third public key corresponding with second target information, is sent to third automobile data recorder and second target is believed The request of breath;
According to the intelligent contract of the block chain network, second target information is received;
Second target information is sent to the designated terminal.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
Receive the inquiry instruction of the designated terminal;
The token information of first automobile data recorder account in the block chain network is inquired according to the first private key;Wherein, First private key is distributed to first automobile data recorder by the certificate server.
6. the method according to any one of claims 1 to 5, which is characterized in that the step for obtaining first object information Suddenly, comprising:
Recorded video;
The key frame in video is extracted, thumbnail of surviving;
It grades to video, generates evaluation information;
Extract timestamp, the location information of video;
According to thumbnail, evaluation information, timestamp, location information, first object information is obtained.
7. a kind of information sharing apparatus is applied to the first automobile data recorder characterized by comprising
The first information obtains module, for obtaining first object information, the first object information include first object data and The description information of the first object data;
First public key receiving module, for receiving the first public key of certificate server distribution, first public key is for identifying institute State the device address of the first automobile data recorder;
First information encrypting module generates encryption for encrypting using first public key to the first object information Data;
First public key and encryption data sending module, for first public key and the encryption data to be sent to block link network Network carries out common recognition to first public key and the encryption data with the automobile data recorder node in the block chain network and recognizes After card, block data is generated;Wherein, first automobile data recorder is a node in the block chain network.
8. device according to claim 7, which is characterized in that further include:
Solicited message receiving module, it is described for receiving the second automobile data recorder to the solicited message of the first object information It include the second public key of second automobile data recorder in solicited message, second public key is for identifying the second driving note Record the device address of instrument;
First information sending module, for the intelligent contract according to the block chain network, according to second public key to described Second automobile data recorder sends the first object information;Second automobile data recorder is one in the block chain network Node.
9. device according to claim 8, which is characterized in that further include the first object in the first object information The transaction data of data, further includes:
Transaction Information generation module for obtaining token, and generates Transaction Information;
Transaction Information uploading module, for the Transaction Information to be uploaded to the slip condition database of the block chain network;
Wherein, the token is stored in first automobile data recorder in the account of the block chain network, and the account is logical Cross the first private key reading that the certificate server is distributed to first automobile data recorder.
10. device according to claim 7, which is characterized in that further include:
Search instruction receiving module, for receiving the search instruction of designated terminal;The designated terminal and first driving are remembered Record instrument binding;
Second information determination module, for determining and described search instructions match in the block data of the block chain network The second target information;
Request sending module, for being sent out to third automobile data recorder according to third public key corresponding with second target information Send the request to second target information;
Second information receiving module receives second target information for the intelligent contract according to the block chain network;
Second information sending module, for second target information to be sent to the designated 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 true CN109741482A (en) 2019-05-10
CN109741482B 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)

Cited By (6)

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

Citations (6)

* 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
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

Patent Citations (6)

* 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
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

Cited By (9)

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

Also Published As

Publication number Publication date
CN109741482B (en) 2022-01-25

Similar Documents

Publication Publication Date Title
CN109741482A (en) A kind of information sharing method and device
US11238669B2 (en) System and method for toll transactions utilizing a distributed ledger
US9253251B2 (en) System and method for determining a vehicle proximity to a selected address
Moosavi et al. Short and long-term pattern discovery over large-scale geo-spatiotemporal data
CN106485167A (en) Credit record system and method based on block chain
US20150009047A1 (en) Method and apparatus for vehicle parking spaces management using image processing
CN105825583A (en) Intelligent vending machine
WO2018225069A1 (en) Digitizing and mapping the public space using collaborative networks of mobile agents and cloud nodes
CN104361645A (en) Roadside parking charging management method and system
CN106981017A (en) A kind of big data precision marketing device and marketing method based on face recognition technology
US20190005739A1 (en) Systems and methods for arranging parking between parties using computing devices
CN112447041B (en) Method and device for identifying operation behavior of vehicle and computing equipment
US20190228429A1 (en) Safety index for the calculation of a rating based on user generated reports or actions and rewards system therefor
CN108924759B (en) Method, device and system for identifying mobile generator
CN106549902A (en) A kind of recognition methods of suspicious user and equipment
CN104123834A (en) Taxi calling management settlement system and method
CN111860865B (en) Model construction and analysis method, device, electronic equipment and medium
CN110942524A (en) Cloud edge end cooperative parking management timing charging system and method based on block chain
CN107248293A (en) Traffic offence mobile monitor analysis of information collection method and its system
CN110738147A (en) Face recognition system and method for rail transit
CN109859426A (en) A kind of community security protection management system
CN104408613A (en) Method and system for optimally processing distributed violation information
CN107506432A (en) A kind of object detection method and system based on edge calculations towards Vehicular video
Kasera et al. A smart indoor parking system
CN110060503A (en) Vehicle parking management system, method, apparatus, computer 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
GR01 Patent grant
GR01 Patent grant