Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts
Embodiment shall fall within the protection scope of the present invention.
It should be appreciated that ought use in this specification and in the appended claims, term " comprising " and "comprising" instruction
Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded
Body, step, operation, element, component and/or its presence or addition gathered.
It should be noted that the term used in embodiments of the present invention is only merely for the mesh of description specific embodiment
, it is not intended to limit the invention." the one of the embodiment of the present invention and singulative used in the attached claims
Kind ", " described " and "the" are also intended to including most forms, unless context clearly shows that other meanings.It is also understood that this
Term "and/or" used herein refers to and comprising one or more associated any or all possible group of list items purpose
It closes.
It should be noted that the block chain server in the embodiment of the present invention can be undertaken service and ensure service
It the General Server of ability or is registered in block chain, there is processor, hard disk, memory and system bus structure
Service can be undertaken and ensure the terminal device of service ability.The embodiment of the present invention is not especially limited.
It is understood that from the perspective of data, block chain is a kind of distributed database, can realize data
The distributed recording of information (is individually remembered by multiple memory node collectives record in system rather than by the mechanism of a centralization
Record) (it can be stored in all memory nodes for participating in record data rather than be centrally stored in centralization with distributed storage
In agency node), from the point of view of time angle, block chain includes multiple blocks, the letter generated in each block storage a period of time
Breath, and mark upper storage time, the beginning of the page of each block include a upper block so information, all block head and the tail phases
Even, so as to form block chain.So block chain be it is a kind of record the time have priority, can not distort, data trusty
Library.
Referring to Fig. 1, Fig. 1 is a kind of flow diagram of vehicle condition data managing method provided in an embodiment of the present invention, such as
Shown in Fig. 1, the vehicle condition data managing method includes:
101st, the vehicle condition data that data providing is submitted are received.
In embodiments of the present invention, after block chain server receives the vehicle condition data that the data providing provides,
The vehicle condition data will be registered in block chain.
Optionally, the data providing can be vehicle manufacturers, Car design company, 4S shops, insurance company, vehicle
Maintenance factory, car owner etc. or other organizations and individuals, the embodiment of the present invention are not especially limited.
Optionally, the vehicle condition data include but not limited to the model of vehicle, the grown place of vehicle, the size of vehicle, vehicle
Price or vehicle maintenance time etc., the embodiment of the present invention is not especially limited.
For example, the block chain server, which receives the vehicle manufacturers, can provide the X-type vehicle of its generation
The information such as grown place, engine, the 4S points can also be received, the average sales price of the X-type vehicle is provided, is monthly averaged out
Sell the information such as quantity, can also receive the vehicle salvage shop can provide the X-type vehicle average service time interval, often
See fault message etc..It is appreciated that the example above is only used for illustrating, specific restriction is not formed.
102nd, the intelligent contract of vehicle condition data trade condition generation set according to the data providing.
In embodiments of the present invention, the data providing provides the vehicle condition data and gives data user, makes data
With can all kinds of vehicles of solution much of that various true situation of remote, the data user to be helped to make correct judgement, institute
State the vehicle condition data trade condition that data providing can set the data user to use the vehicle condition data.
The vehicle condition data trade condition can be sent to the block chain, the block chain clothes by the data providing
Business device generates intelligent contract according to the vehicle condition data trade condition that the data providing is set, and is wrapped in the intelligence contract
Containing the terms of trade for using the vehicle condition data, only when the data user meets the intelligent contract, the block
The vehicle condition data could be sent to the data user by chain server.Wherein, the terms of trade make for the data
The data providing described in direction pays the means of payment and payment amount during expense.The means of payment includes but not limited to silver
Row is transferred accounts, digital cash payment, dummy payments etc..For example, the terms of trade can be to described by e-bank
Data providing transfer accounts two-spot or by Third-party payment platform to the data providing pay five yuan, it should be appreciated that
The example above is solely for illustrating, does not form specific restriction.
103rd, the vehicle condition data and the intelligent contract are handled to obtain the first data according to preset rules.
In embodiments of the present invention, the block chain server extracts the vehicle after the vehicle condition data are received
The corresponding vehicle condition data directory of condition data, wherein, the vehicle condition data directory searches the vehicle condition data for guiding;Then it is right
The vehicle condition data using unidirectionally can not inverse function carry out that the corresponding characteristic value of the vehicle condition data is calculated;Finally by described in
Vehicle condition data directory, the characteristic value value and the intelligent contract obtain first data after being encrypted.
In embodiments of the present invention, the vehicle condition data directory includes but not limited to corresponding vehicle in the vehicle condition data
Type, the keyword of the vehicle vehicle condition data, the vehicle condition data storage address etc..The data user can be according to institute
It states vehicle condition data directory and finds the vehicle for needing to check and corresponding vehicle condition data, and then send to the block chain server
Data extract the vehicle condition number according to the index information using request, the block chain server in the block chain
According to.
In embodiments of the present invention, the block chain server unidirectionally can not inverse function calculating by vehicle condition data utilization
Obtain the corresponding characteristic value of the vehicle condition data, wherein, it is described unidirectionally can not inverse function any one section of plaintext can be converted to
The characteristic value of regular length, but the plaintext can not be calculated by the characteristic value.It is described unidirectionally can not inverse function include but not
It is limited to Message-Digest Algorithm 5 (Message Digest Algorithm 5, MD5), Secure Hash Algorithm (Secure Hash
Algorithm, SHA), message authentication code (Message Authentication Code, MAC) function etc., the present invention implemented
Example is not especially limited.
In an embodiment of the present invention, the block chain server obtains the vehicle condition data directory, the vehicle condition data
After corresponding characteristic value, the vehicle condition data directory, the characteristic value and the intelligent contract are utilized into Encryption Algorithm meter
Calculation obtains first data, and the process of the Encryption Algorithm is to carry out processing by certain algorithm to the file or data of plaintext to make
It becomes one section of ciphertext, could be only reduced to the ciphertext in plain text using corresponding key.Wherein, the Encryption Algorithm packet
It includes but is not limited to data encryption standards (Data Encryption Standard, DES), Digital Signature Algorithm (Digital
Signature Algorithm, DSA), it is advanced encryption algorithm (Advanced Encryption Standard, AES), international
Data confidentiality algorithm (International Data Encryption Algorithm, IDES) etc., the embodiment of the present invention is not made
It is specific to limit.
104th, first data are registered in block chain.
In embodiments of the present invention, the block chain server vehicle condition is indexed, the characteristic value and the intelligence
First data are calculated using Encryption Algorithm in energy contract, and first data are registered in the block chain.Simultaneously
The block chain server by the vehicle condition data directory, broadcast by the whole network in block chain, in order to subsequently search the vehicle condition number
According to the corresponding vehicle condition data of index.
105th, the data for receiving the data user use request.
It in embodiments of the present invention, can be according to the vehicle when data user wants to check the vehicle condition data
Condition data directory searches the vehicle condition data, and the vehicle condition data directory can be that the data user searches for the vehicle condition number
During according to index, the vehicle condition data directory is sent to the data user or described by the block chain server
Block chain server detects that the data user is searching for vehicle condition data, and the block chain server is actively by the vehicle condition
Data directory is sent to the data user.The embodiment of the present invention is not especially limited.
In embodiments of the present invention, the vehicle condition data directory is sent to the data and used by the block chain server
After side, the data user according to the vehicle information for oneself wanting to check, searched in the vehicle condition data directory described in
The index of vehicle information.When the data user determines the vehicle condition data needed in the vehicle condition data directory, to institute
Stating block chain server submits the data of the vehicle condition data to use request, the block chain server reception data
The data of user use request.
Optionally, the data user can be vehicle manufacturers, Car design company, 4S shops, insurance company, vehicle
Maintenance factory, the individual etc. of vehicle to be bought or other organizations and individuals, the embodiment of the present invention are not especially limited.
106th, judge whether the data meet intelligent contract using request.
In an embodiment of the present invention, the intelligent contract defines the data user and uses the vehicle condition data
Data use condition.After the block chain server receives the data use request of the data user, institute is judged
State whether data meet the intelligent contract using request.
Judge whether the data meet the intelligent contract using request, specially judge that the data are used in request
Transaction promise whether meet terms of trade specified in the intelligent contract and the data are checked using request in request
The first vehicle whether matched with the vehicle information in the intelligent contract.Wherein, the transaction is promised to undertake uses for the data
Side is ready the amount of money of payment and the mode of payment, if the data user is ready the amount of money of payment more than or equal to described
The amount of money specified in intelligent contract, the means of payment meets the means of payment specified in the intelligent contract and the data use
When the vehicle information matches in the first vehicle checked and the intelligent contract are asked in request, the block chain server determines
The data meet the intelligent contract using request.It is appreciated that the citing of above-mentioned use condition is only used for
It is bright, specific restriction is not formed.
107th, if satisfied, the data then are sent to data user using request corresponding vehicle condition data.
If the block chain server determines that the data of the data user meet the intelligence using request and close
About, then the data that data user request is checked are used the corresponding vehicle condition data of request by the block chain server
Be sent to the data user, if the data user is unsatisfactory for the preset condition, the block chain server to
The data user sends the first prompt message, and the data user is prompted not check the permission of the vehicle condition data,
For example, first prompt message can be that " your account balance is insufficient, and no permission checks this information!”.On it should be understood that
It states example to be used only as illustrating, it is impossible to be interpreted as specifically limiting.
For example, if party A-subscriber is registered as the user of the block chain, the party A-subscriber possesses the vehicle of a H-type number
, after spark plug is damaged and replaces in use, the party A-subscriber can log in for the vehicle of the H-type number of the party A-subscriber
The block chain server, to the block chain server upload a repair message, this information can be " H-type vehicle,
Using six months 2 years, 13,000 km of mileage travelled number replaced spark plug in repair shop and spends x members ", the party A-subscriber exists
When the repair message is uploaded to the block chain server, it can be checked with the block chain server commitment other users
The terms of trade of described information, for example, the terms of trade can be other users must be to the bill payment one of the party A-subscriber
The repair message could be sent to the other users by yuan, the block chain server.The block chain server connects
It receives about after the vehicle condition data of repair and the terms of trade, extracts the vehicle condition data directory of the vehicle condition data, root
The vehicle condition data conversion is characterized value, and close according to the terms of trade generation intelligence according to unidirectional non-reversible algorithm
About, the block chain server is by the vehicle condition data, the vehicle condition data directory, the characteristic value and the intelligent contract
In registration to block chain, and the whole network is broadcasted in block chain by the vehicle condition data directory.When party B-subscriber searches for the vehicle condition data
During index, the vehicle condition data directory is sent to the party B-subscriber by the block chain server, and the party B-subscriber is according to the vehicle
When condition data directory finds the vehicle condition data that the party A-subscriber provides and wants to check, sent to the block chain server
Data determine that the data of the party B-subscriber use the vehicle for asking to check in request using request, the block chain server
Meet the intelligent contract and with the defined default means of payment after the party A-subscriber pays a yuan, the block chain clothes
The vehicle condition data are sent to the party B-subscriber by business device, so that the party B-subscriber refers to.It should be understood that above-mentioned example is used only as lifting
Example, it is impossible to be interpreted as specifically limiting.
By implementing the embodiment of the present invention, block chain server receives the vehicle condition data that data providing provides, according to institute
The intelligent contract of vehicle condition data trade condition generation of data providing setting is stated, the vehicle condition data and the intelligent contract are stepped on
Note, when the block chain server receives the data of data user using request, judges the data in block chain
Whether meet intelligent contract using request, if satisfied, then that the data are described using corresponding vehicle condition data is asked to be sent to
Data user.By will be registered in block chain after the vehicle condition data encryption, can not be distorted using data in block chain
Property, make consumer when checking the vehicle condition data, it can be seen that the true and reliable vehicle condition data purchase vehicle band to consumer
To facilitate, while also bring certain income to the data providing.
Referring to Fig. 2, Fig. 2 is the flow diagram of another vehicle condition data managing method provided in an embodiment of the present invention.
As shown in Fig. 2, the vehicle condition data managing method includes:
201st, the registration request of data providing is received, corresponding key and account are generated according to the registration request, and
The key and the account are sent to the data providing.
In embodiments of the present invention, the data providing needs are registered in the block chain server, described
After block chain server receives the registration request that the data providing provides, generated according to the registration request corresponding
Key and account, and it is sent to the data user by the key and with the account.Wherein, the account is used for completing
With the transaction of data user, to obtain the income for providing vehicle condition data band and coming, the key is tested for the block chain server
Demonstrate,prove the voucher of the data providing identity legitimacy.
Optionally, the data user can be vehicle manufacturers, Car design company, 4S shops, insurance company etc.,
Can also be other organizations and individuals, the present invention is not especially limited.
202nd, the vehicle condition data that data providing is submitted are received.
In embodiments of the present invention, after the data providing obtains the account and key, you can area described above
Block chain server submits vehicle condition data, and the block chain server receives the vehicle condition data that the data providing provides
Afterwards, it will the vehicle condition data are registered in block chain.
Optionally, the data providing can be vehicle manufacturers, Car design company, 4S shops, insurance company etc.,
Can also be other organizations and individuals, the present invention is not especially limited.
Optionally, the vehicle condition data include but not limited to the model of vehicle, the grown place of vehicle, the size of vehicle, vehicle
Price or vehicle maintenance time etc., the embodiment of the present invention is not especially limited.
For example, the block chain server, which receives the vehicle manufacturers, can provide the X-type vehicle of its generation
The information such as grown place, engine, the 4S points can also be received, the average sales price of the X-type vehicle is provided, is monthly averaged out
Sell the information such as quantity, can also receive the vehicle salvage shop can provide the X-type vehicle average service time interval, often
See fault message etc..It is appreciated that the example above is only used for illustrating, specific restriction is not formed.
203rd, the intelligent contract of vehicle condition data trade condition generation set according to the data providing.
In embodiments of the present invention, the data providing provides the vehicle condition data and gives data user, makes the number
The various true situation of remote of all kinds of vehicles can be understood according to user, are correctly sentenced so that the data user is helped to make
Disconnected, the data providing can set vehicle condition data trade condition of the data user using the vehicle condition data.
The vehicle condition data use condition can be sent to the block chain server, the area by the data providing
The intelligent contract of vehicle condition data trade condition generation that block chain server is set according to the data providing, the intelligence are closed
The terms of trade using the vehicle condition data are included in about, only when the data user meets the intelligent contract, institute
The data user could be sent to by the vehicle condition data by stating block chain server.Wherein, the terms of trade are described
Data providing described in data use direction pays the means of payment and payment amount during expense.The means of payment is included but not
It is limited to bank transfer, digital cash payment, dummy payments etc..For example, the terms of trade can pass through e-bank
To the data providing transfer accounts two-spot or by Third-party payment platform to the data providing pay five yuan,
It should be understood that the example above is solely for illustrating, specific restriction is not formed.
204th, the vehicle condition data and the intelligent contract are handled to obtain first data according to preset rules.
In embodiments of the present invention, the block chain server extracts the vehicle after the vehicle condition data are received
The corresponding vehicle condition data directory of condition data, wherein, the vehicle condition data directory searches the vehicle condition data for guiding;Then it is right
The vehicle condition data using unidirectionally can not inverse function carry out that the corresponding characteristic value of the vehicle condition data is calculated;Finally by described in
Vehicle condition data directory, the characteristic value value and the intelligent contract obtain first data after being encrypted.
In embodiments of the present invention, the vehicle condition data directory includes but not limited to corresponding vehicle in the vehicle condition data
Type, the keyword of the vehicle vehicle condition data, the vehicle condition data storage address etc..The data user can be according to institute
It states vehicle condition data directory and finds the vehicle for needing to check and corresponding vehicle condition data, and then send to the block chain server
Data extract the vehicle condition number according to the index information using request, the block chain server in the block chain
According to.
In embodiments of the present invention, the block chain server unidirectionally can not inverse function calculating by vehicle condition data utilization
Obtain the corresponding characteristic value of the vehicle condition data, wherein, it is described unidirectionally can not inverse function any one section of plaintext can be converted to
The characteristic value of regular length, but the plaintext can not be calculated by the characteristic value.It is described unidirectionally can not inverse function include but not
It is limited to MD5, SHA, MAC function etc., the embodiment of the present invention is not especially limited.
In an embodiment of the present invention, the block chain server obtains the vehicle condition data directory, the vehicle condition data
After corresponding characteristic value, the vehicle condition data directory, the characteristic value and the intelligent contract are utilized into Encryption Algorithm meter
Calculation obtains first data, and the process of the Encryption Algorithm is to carry out processing by certain algorithm to the file or data of plaintext to make
It becomes one section of ciphertext, could be only reduced to the ciphertext in plain text using corresponding key.Wherein, the Encryption Algorithm packet
It includes but is not limited to DES, DSA, AES, IDES etc., the embodiment of the present invention is not especially limited.
205th, first data are registered in block chain.
In embodiments of the present invention, the block chain server vehicle condition is indexed, the characteristic value and the intelligence
The first data are calculated using Encryption Algorithm in energy contract, and first data are registered in the block chain.It is described simultaneously
Block chain server by the vehicle condition data directory, broadcast by the whole network in block chain, in order to subsequently search the vehicle condition data rope
Draw the corresponding vehicle condition data.
206th, the data for receiving the data user use request.
It in embodiments of the present invention, can be according to the vehicle when data user wants to check the vehicle condition data
Condition data directory searches the vehicle condition data, and the vehicle condition data directory can be that the data user searches for the vehicle condition number
During according to index, the vehicle condition data directory is sent to the data user or described by the block chain server
Block chain server detects that the data user is searching for vehicle condition data, and the block chain server is actively by the vehicle condition
Data directory is sent to the data user.The embodiment of the present invention is not especially limited.
In embodiments of the present invention, the vehicle condition data directory is sent to the data and used by the block chain server
After side, the data user according to the vehicle information for oneself wanting to check, searched in the vehicle condition data directory described in
The index of vehicle information.When the data user determines the vehicle condition data needed in the vehicle condition data directory, to institute
Stating block chain server submits the data of the vehicle condition data to use request, the block chain server reception data
The data of user use request.
Optionally, the data user can be vehicle manufacturers, Car design company, 4S shops, insurance company etc.,
Can also be other organizations and individuals, the embodiment of the present invention is not especially limited.
207th, judge whether the data meet intelligent contract using request.
In an embodiment of the present invention, the intelligent contract defines the data user and uses the vehicle condition data
Data use condition.After the block chain server receives the data use request of the data user, institute is judged
State whether data meet the intelligent contract using request.
Judge whether the data meet the intelligent contract using request, specially judge that the data are used in request
Transaction promise whether meet terms of trade specified in the intelligent contract and the data are checked using request in request
The first vehicle whether matched with the vehicle information in the intelligent contract.Wherein, the transaction is promised to undertake uses for the data
Side is ready the amount of money of payment and the mode of payment, if the data user is ready the amount of money of payment more than or equal to described
The amount of money specified in intelligent contract, the means of payment meets the means of payment specified in the intelligent contract and the data use
When the vehicle information matches in the first vehicle checked and the intelligent contract are asked in request, the block chain server determines
The data meet the intelligent contract using request.It is appreciated that the citing of above-mentioned use condition is only used for
It is bright, specific restriction is not formed.
208th, if satisfied, the data then are sent to data user using request corresponding vehicle condition data.
If the block chain server determines that the data of the data user meet the intelligence using request and close
About, then the data that data user request is checked are used the corresponding vehicle condition data of request by the block chain server
It is sent to the data user.
For example, if party A-subscriber wishes the data providing as vehicle condition data to obtain income, the party A-subscriber thinks
The block chain server submission registration request, after the block chain server receives the registration request, generation is corresponding
Account and key, and the account and the key are sent to the party A-subscriber.The party A-subscriber possesses the vehicle of a H-type number
, after spark plug is damaged and replaces in use, the party A-subscriber can utilize for the vehicle of the H-type number of the party A-subscriber
The account and key log in the block chain server, and a repair message, this bar letter are uploaded to the block chain server
Breath can be that " H-type vehicle, using six months 2 years, 13,000 km of mileage travelled number replaces spark plug flower in repair shop
Take x members ", the party A-subscriber, can be with the block chain service when the repair message is uploaded to the block chain server
Device agreement other users check the terms of trade of described information, for example, the terms of trade can be other users must be to institute
One yuan of bill payment of party A-subscriber is stated, the repair message could be sent to the other users by the block chain server.
The block chain server is received about after the vehicle condition data of repair and the terms of trade, extracts the vehicle condition data
Vehicle condition data directory, the vehicle condition data conversion is characterized, and according to the transaction item by value according to unidirectional non-reversible algorithm
The part generation intelligent contract, the block chain server is by the vehicle condition data, the vehicle condition data directory, the characteristic value
And the intelligent contract is registered into block chain, and the whole network is broadcasted in block chain by the vehicle condition data directory.Work as party B-subscriber
When searching for the vehicle condition data directory, the vehicle condition data directory is sent to the party B-subscriber by the block chain server, described
When party B-subscriber finds the vehicle condition data of party A-subscriber's offer according to the vehicle condition data directory and wants to check, to the area
For block chain server transmission data using request, the block chain server determines that the data of the party B-subscriber are used in request
The vehicle checked is asked to meet the intelligent contract and a yuan is paid to the party A-subscriber with the defined default means of payment
Afterwards, the vehicle condition data are sent to the party B-subscriber by the block chain server, so that the party B-subscriber refers to.
By implementing Fig. 2 embodiment of the present invention, block chain server receives the vehicle condition data that data providing provides, according to
The intelligent contract of vehicle condition data trade condition generation of the data providing setting, by the vehicle condition data and the intelligent contract
It is registered in block chain, when the block chain server receives the data of data user using request, judges the number
According to using whether request meets intelligent contract, if satisfied, the data then are sent to institute using request corresponding vehicle condition data
State data user.By will be registered in block chain after the vehicle condition data encryption, can not be usurped using data in block chain
It is modified, make consumer when checking the vehicle condition data, it can be seen that the true and reliable vehicle condition data purchase vehicle to consumer
It brings convenience, while also brings certain income to the data providing.
The embodiment of the present invention also provides a kind of vehicle condition data administrator, is carried referring to Fig. 3, Fig. 3 is the embodiment of the present invention
A kind of structure diagram of the vehicle condition data administrator supplied, described device include:Receiving unit 301, generation unit 302, processing
Unit 303, registration unit 304, judging unit 305 and transmitting element 306.
Wherein, the receiving unit 301, for receiving the vehicle condition data of data providing submission and data user
Data use request.
In embodiments of the present invention, after block chain server receives the vehicle condition data that the data providing provides,
The vehicle condition data will be registered in block chain.
Optionally, the data providing can be vehicle manufacturers, Car design company, 4S shops, insurance company, vehicle
Maintenance factory, car owner etc. or other organizations and individuals, the embodiment of the present invention are not especially limited.
Optionally, the vehicle condition data include but not limited to the model of vehicle, the grown place of vehicle, the size of vehicle, vehicle
Price or vehicle maintenance time etc., the embodiment of the present invention is not especially limited.
For example, the block chain server, which receives the vehicle manufacturers, can provide the X-type vehicle of its generation
The information such as grown place, engine, the 4S points can also be received, the average sales price of the X-type vehicle is provided, is monthly averaged out
Sell the information such as quantity, can also receive the vehicle salvage shop can provide the X-type vehicle average service time interval, often
See fault message etc..It is appreciated that the example above is only used for illustrating, specific restriction is not formed.
The generation unit 302, the vehicle condition data trade condition for being set according to the data providing generate intelligence
Contract.
In embodiments of the present invention, the data providing provides the vehicle condition data and gives data user, makes data
With can all kinds of vehicles of solution much of that various true situation of remote, the data user to be helped to make correct judgement, institute
State the vehicle condition data trade condition that data providing can set the data user to use the vehicle condition data.
The vehicle condition data trade condition can be sent to the block chain, the block chain clothes by the data providing
Business device generates intelligent contract according to the vehicle condition data trade condition that the data providing is set, and is wrapped in the intelligence contract
Containing the terms of trade for using the vehicle condition data, only when the data user meets the intelligent contract, the block
The vehicle condition data could be sent to the data user by chain server.Wherein, the terms of trade make for the data
The data providing described in direction pays the means of payment and payment amount during expense.The means of payment includes but not limited to silver
Row is transferred accounts, digital cash payment, dummy payments etc..For example, the terms of trade can be to described by e-bank
Data providing transfer accounts two-spot or by Third-party payment platform to the data providing pay five yuan, it should be appreciated that
The example above is solely for illustrating, does not form specific restriction.
The processing unit 303, for handling to obtain according to preset rules by the vehicle condition data and the intelligent contract
First data.
In embodiments of the present invention, the block chain server extracts the vehicle after the vehicle condition data are received
The corresponding vehicle condition data directory of condition data, wherein, the vehicle condition data directory searches the vehicle condition data for guiding;Then it is right
The vehicle condition data using unidirectionally can not inverse function carry out that the corresponding characteristic value of the vehicle condition data is calculated;Finally by described in
Vehicle condition data directory, the characteristic value value and the intelligent contract obtain first data after being encrypted.
In embodiments of the present invention, the vehicle condition data directory includes but not limited to corresponding vehicle in the vehicle condition data
Type, the keyword of the vehicle vehicle condition data, the vehicle condition data storage address etc..The data user can be according to institute
It states vehicle condition data directory and finds the vehicle for needing to check and corresponding vehicle condition data, and then send to the block chain server
Data extract the vehicle condition number according to the index information using request, the block chain server in the block chain
According to.
In embodiments of the present invention, the block chain server unidirectionally can not inverse function calculating by vehicle condition data utilization
Obtain the corresponding characteristic value of the vehicle condition data, wherein, it is described unidirectionally can not inverse function any one section of plaintext can be converted to
The characteristic value of regular length, but the plaintext can not be calculated by the characteristic value.It is described unidirectionally can not inverse function include but not
It is limited to MD5, SHA, MAC function etc., the embodiment of the present invention is not especially limited.
In an embodiment of the present invention, the block chain server obtains the vehicle condition data directory, the vehicle condition data
After corresponding characteristic value, the vehicle condition data directory, the characteristic value and the intelligent contract are utilized into Encryption Algorithm meter
Calculation obtains first data, and the process of the Encryption Algorithm is to carry out processing by certain algorithm to the file or data of plaintext to make
It becomes one section of ciphertext, could be only reduced to the ciphertext in plain text using corresponding key.Wherein, the Encryption Algorithm packet
It includes but is not limited to DES, DSA, AES, IDES etc., the embodiment of the present invention is not especially limited.
The registration unit 304, for the vehicle condition data and the intelligent contract to be registered in block chain.
In embodiments of the present invention, the block chain server vehicle condition is indexed, the characteristic value and the intelligence
First data are calculated using Encryption Algorithm in energy contract, and first data are registered in the block chain.Simultaneously
The block chain server by the vehicle condition data directory, broadcast by the whole network in block chain, in order to subsequently search the vehicle condition number
According to the corresponding vehicle condition data of index.
The receiving unit 301, the data for being additionally operable to receive the data user use request.
It in embodiments of the present invention, can be according to the vehicle when data user wants to check the vehicle condition data
Condition data directory searches the vehicle condition data, and the vehicle condition data directory can be that the data user searches for the vehicle condition number
During according to index, the vehicle condition data directory is sent to the data user or described by the block chain server
Block chain server detects that the data user is searching for vehicle condition data, and the block chain server is actively by the vehicle condition
Data directory is sent to the data user.The embodiment of the present invention is not especially limited.
In embodiments of the present invention, the vehicle condition data directory is sent to the data and used by the block chain server
After side, the data user according to the vehicle information for oneself wanting to check, searched in the vehicle condition data directory described in
The index of vehicle information.When the data user determines the vehicle condition data needed in the vehicle condition data directory, to institute
Stating block chain server submits the data of the vehicle condition data to use request, the block chain server reception data
The data of user use request.
Optionally, the data user can be vehicle manufacturers, Car design company, 4S shops, insurance company, vehicle
Maintenance factory, the individual etc. of vehicle to be bought or other organizations and individuals, the embodiment of the present invention are not especially limited.
The judging unit 305, for judging whether the data meet intelligent contract using request.
In an embodiment of the present invention, the intelligent contract defines the data user and uses the vehicle condition data
Data use condition.After the block chain server receives the data use request of the data user, institute is judged
State whether data meet the intelligent contract using request.
Judge whether the data meet the intelligent contract using request, specially judge that the data are used in request
Transaction promise whether meet terms of trade specified in the intelligent contract and the data are checked using request in request
The first vehicle whether matched with the vehicle information in the intelligent contract.Wherein, the transaction is promised to undertake uses for the data
Side is ready the amount of money of payment and the mode of payment, if the data user is ready the amount of money of payment more than or equal to described
The amount of money specified in intelligent contract, the means of payment meets the means of payment specified in the intelligent contract and the data use
When the vehicle information matches in the first vehicle checked and the intelligent contract are asked in request, the block chain server determines
The data meet the intelligent contract using request.It is appreciated that the citing of above-mentioned use condition is only used for
It is bright, specific restriction is not formed.
The transmitting element 306, under conditions of meeting the intelligent contract using request in the data, by described in
Data are sent to data user using the corresponding vehicle condition data of request.
If the block chain server determines that the data of the data user meet the intelligence using request and close
About, then the data that data user request is checked are used the corresponding vehicle condition data of request by the block chain server
Be sent to the data user, if the data user is unsatisfactory for the preset condition, the block chain server to
The data user sends the first prompt message, and the data user is prompted not check the permission of the vehicle condition data,
For example, first prompt message can be that " your account balance is insufficient, and no permission checks this information!”.On it should be understood that
It states example to be used only as illustrating, it is impossible to be interpreted as specifically limiting.
Optionally, the receiving unit 301 is additionally operable to receive the registration request of the data providing;The generation is single
Member 302 is additionally operable to generate corresponding key and account according to the registration request;The transmitting element 306, being additionally operable to will be described
Key and the account are sent to the data providing.
In embodiments of the present invention, the data providing needs are registered in the block chain server, described
After block chain server receives the registration request that the data providing provides, generated according to the registration request corresponding
Key and account, and it is sent to the data user by the key and with the account.Wherein, the account is used for completing
With the transaction of data user, to obtain the income for providing vehicle condition data band and coming, the key is tested for the block chain server
Demonstrate,prove the voucher of the data providing identity legitimacy.
Referring to Fig. 4, Fig. 4 is a kind of server schematic block diagram that another embodiment of the present invention provides.This reality as depicted
Applying the server in example can include:One or more processors 401;One or more input equipments 402, it is one or more defeated
Go out equipment 403 and memory 404.Above-mentioned processor 401, input equipment 402, output equipment 403 and memory 404 pass through bus
405 connections.Memory 402 is for storing computer program, and the computer program includes program instruction, and processor 401 is used for
Perform the program instruction that memory 402 stores.Wherein, processor 401 is configured for that described program instruction is called to perform:
Receive the vehicle condition data that data providing is submitted;
The intelligent contract of vehicle condition data trade condition generation set according to the data providing;
The vehicle condition data and the intelligent contract are handled according to preset rules to obtain the first data;
First data are registered in block chain;
The data for receiving data user use request;
Judge whether the data meet intelligent contract using request;
If satisfied, the data are then sent to data user using the corresponding vehicle condition data of request.
Optionally, it is described by the vehicle condition data and the intelligent contract handles to obtain first number according to preset rules
According to specifically including:The corresponding vehicle condition data directory of the vehicle condition data is extracted, wherein, the vehicle condition data directory is used to guide
Search the vehicle condition data;It carries out that the vehicle condition data correspondence is calculated using vehicle condition data described in unidirectional irreversible function pair
Characteristic value;First number is obtained after the vehicle condition data directory, the characteristic value and the intelligent contract are encrypted
According to.
Optionally, it is described first data are registered in block chain after, further include:By the vehicle condition data directory
The whole network is broadcasted in block chain.
Optionally, judge that the data promise to undertake the transaction item for whether meeting the intelligent contract using the transaction in request
Part and judge the data using the first vehicle for asking to check in request and the vehicle information in the intelligent contract whether
Matching.
Optionally, before the vehicle condition data submitted in the reception data providing, the method further includes:Described in reception
The registration request of data providing;Corresponding key and account are generated according to the registration request;By the key and the account
Family is sent to the data providing.
It should be appreciated that in embodiments of the present invention, alleged processor 401 can be central processing unit (Central
Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital
Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit,
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic
Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at
It can also be any conventional processor etc. to manage device.
Input equipment 402 can include Trackpad, fingerprint and adopt sensor (for acquiring the finger print information of user and fingerprint
Directional information), microphone etc., output equipment 403 can include display (LCD etc.), loud speaker etc..
The memory 404 can include read-only memory and random access memory, and to processor 401 provide instruction and
Data.The a part of of memory 404 can also include nonvolatile RAM.For example, memory 404 can also be deposited
Store up the information of device type.
In the specific implementation, processor 401, input equipment 402, the output equipment 403 described in the embodiment of the present invention can
Perform the realization described in the first embodiment and second embodiment of vehicle condition data managing method provided in an embodiment of the present invention
Mode also can perform the realization method of the described server of the embodiment of the present invention, and details are not described herein.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium
In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
Above disclosed is only a kind of preferred embodiment of the present invention, cannot limit the power of the present invention with this certainly
Sharp range one of ordinary skill in the art will appreciate that realizing all or part of flow of above-described embodiment, and is weighed according to the present invention
Profit requires made equivalent variations, still falls within and invents covered range.