CN109670327A - A kind of food safety common query system based on block chain - Google Patents

A kind of food safety common query system based on block chain Download PDF

Info

Publication number
CN109670327A
CN109670327A CN201811591153.2A CN201811591153A CN109670327A CN 109670327 A CN109670327 A CN 109670327A CN 201811591153 A CN201811591153 A CN 201811591153A CN 109670327 A CN109670327 A CN 109670327A
Authority
CN
China
Prior art keywords
data
block chain
cryptography infrastructure
main block
mobile terminal
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
CN201811591153.2A
Other languages
Chinese (zh)
Other versions
CN109670327B (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.)
Beijing Food Safety Chain Technology Co Ltd
Original Assignee
Beijing Food Safety Chain Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Food Safety Chain Technology Co Ltd filed Critical Beijing Food Safety Chain Technology Co Ltd
Priority to CN201811591153.2A priority Critical patent/CN109670327B/en
Publication of CN109670327A publication Critical patent/CN109670327A/en
Application granted granted Critical
Publication of CN109670327B publication Critical patent/CN109670327B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0639Performance analysis of employees; Performance analysis of enterprise or organisation operations
    • G06Q10/06395Quality analysis or management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products

Abstract

The embodiment of the present application provides a kind of food safety common query system based on block chain, it include: data acquisition module, the basic data of the preset kind for acquiring tested food, and basic data is encrypted, cryptography infrastructure data are generated, cryptography infrastructure data are sent to mobile terminal;Mobile terminal, the cryptography infrastructure data that acquisition module is sent for receiving data, and cryptography infrastructure data are sent in main block chain;Cryptography infrastructure data are stored in the block of main block chain by main block chain for receiving the cryptography infrastructure data of mobile terminal transmission;Terminal is detected, for extracting cryptography infrastructure data from the block of main block chain, cryptography infrastructure data is decrypted, and determine the qualitative data of tested food according to the cryptography infrastructure data after decryption, sends qualitative data in the correspondence block of main block chain.By being detected using safety of the block chain technology to food, so that detection process expends time end, convenient, testing result is reliable.

Description

A kind of food safety common query system based on block chain
Technical field
This application involves block chain technical field more particularly to a kind of food safety common query systems based on block chain System.
Background technique
Block chain is a kind of novel decentralization agreement, can safely store digital cash transaction or other data, information It can not forge and distort, the trade confirmation on block chain is completed jointly by all nodes on block chain, is guaranteed by common recognition algorithm Its consistency safeguards a public account book, the account of all users in memory block chain network, public account on block chain This is located at any node in memory block as it can be seen that guarantee that it can not forge and distort.With the development of block chain technology, area Block chain is also more and more extensive in the application of every field.
China is global first big food products market, with the continuous improvement of people's living standards, the requirement to food quality Also higher and higher.Currently, the food-safety problem to emerge one after another annoyings owner.Traditional food safety quality testing mode It is product of being sampled on the market by the food safety department of government or enterprise itself, then takes back the progress of use for laboratory professional equipment Detection, this is difficult to meet the needs of various aspects, and traditional sampling, inspection, detection, report manner time is long, at high cost, mistake Journey is cumbersome, and test result obtains not convenient.Existing another kind food safety safeguard mean is implementation registration tracing technology, such as By food production, factory, transport, restocking, the time for selling links, place, operation mode and the inspection of the quality in each stage Data etc. are tested, by the online system of operator's typing of links, confirm two dimensional code in food casing, consumer passes through barcode scanning Online system is logged in trace to the source inquiry;But since the data in each stage are voluntarily acquired and uploaded by operator, it is easy pseudo- It makes or distorts, so that consumer lacks trust to the current mode of tracing to the source.
As it can be seen that lacking convenient, at low cost, reliable disappear in the prior art for the inspection of food safety quality The person's of expense detection means.
Summary of the invention
In view of this, the purpose of the application is to propose a kind of reliable food safety of convenient, at low cost and testing result Detection system, to solve to lack consumer's detection means convenient, at low cost in the prior art, consumer is to current detection side Formula lacks the technical issues of trusting.
Based on above-mentioned purpose, the food safety common query system based on block chain that present applicant proposes a kind of, comprising:
Data acquisition module, the basic data of the preset kind for acquiring tested food, and to the basic data into Row encryption, generates cryptography infrastructure data, the cryptography infrastructure data is sent to mobile terminal;
Mobile terminal, the cryptography infrastructure data sent for receiving the data acquisition module, and by the cryptography infrastructure Data are sent in main block chain;
Main block chain, the cryptography infrastructure data sent for receiving the mobile terminal, by the cryptography infrastructure number According to being stored in the block of the main block chain;
Terminal is detected, for extracting the cryptography infrastructure data from the block of the main block chain, to the encryption base Plinth data are decrypted, and the qualitative data of the tested food is determined according to the cryptography infrastructure data after decryption, by institute Qualitative data is stated to be sent in the correspondence block of the main block chain.
In some embodiments, the qualitative data is sent in the detection terminal correspondence area of the main block chain Before in block, the detection terminal will be also used to:
The qualitative data is encrypted;
In the correspondence block for sending the qualitative data on the main block chain, including by the encrypted product Prime number evidence is sent in the correspondence block of the main block chain.
In some embodiments, the main block chain is also used to:
It sends the qualitative data in the mobile terminal;
The mobile terminal is also used to after receiving the qualitative data, is shown to the qualitative data.
In some embodiments, it is provided with certificate store in the data acquisition module, it is described for storing The digital certificate of data acquisition module, the digital certificate is for being signed and being encrypted to the basic data.
In some embodiments, the data acquisition module, comprising:
The cryptography infrastructure data are sent to shifting for connecting with the communication of mobile terminal by the first bluetooth unit Dynamic terminal.
In some embodiments, the mobile terminal, comprising:
Second bluetooth unit is communicated to connect for establishing with first bluetooth unit, to receive the mobile terminal hair The cryptography infrastructure data sent.
In some embodiments, further includes:
Food safety big data platform, for receiving the qualitative data for being used for transmission, and to received qualitative data process Storage and display.
In some embodiments, the food safety big data platform, further includes:
Integral feedback unit, for being integrated to corresponding user feedback, institute after receiving the qualitative data of user's transmission State the integral numerical value active for characterization user.
In some embodiments, the main block chain further include:
Cache unit, for being cached to the received cryptography infrastructure data, the node in the main block chain After getting the power of the book keeping operation to the cryptography infrastructure data, which extracts the cryptography infrastructure number from the cache unit According to.
In some embodiments, the node in the main block chain proves mechanism by BFT to obtain to the encryption base The book keeping operation of plinth data is weighed.
In some embodiments, the main block chain further includes data age prediction supervision unit, for predicting encryption base The effective timeliness of plinth data;According to the effectual time of cryptography infrastructure data, by the almost the same cryptography infrastructure number of effectual time According to being encapsulated as block and block chain be written.It is saved in described data age prediction supervision unit segmentation supervision each section of block of block chain Cryptography infrastructure data timeliness, when be located at front end a section in block in be more than predetermined ratio cryptography infrastructure number According to effectual time it is expired, then the not yet expired cryptography infrastructure data of timeliness are extracted from this section of block chain, by these Cryptography infrastructure data are encapsulated as the end that new block is written to block chain again, then by the block of the front end from block chain It deletes.
The embodiment of the present application provides a kind of food safety common query system based on block chain, comprising: data acquisition module Block, the basic data of the preset kind for acquiring tested food, and the basic data is encrypted, generate cryptography infrastructure The cryptography infrastructure data are sent to mobile terminal by data;Mobile terminal, for receiving the data acquisition module transmission Cryptography infrastructure data, and the cryptography infrastructure data are sent in main block chain;Main block chain, it is described mobile whole for receiving The cryptography infrastructure data sent are held, the cryptography infrastructure data are stored in the block of the main block chain;Detection is eventually End, for extracting the cryptography infrastructure data from the block of the main block chain, is decrypted the cryptography infrastructure data, And the qualitative data of the tested food is determined according to the cryptography infrastructure data after decryption, it sends the qualitative data to In the correspondence block of the main block chain.By being detected using safety of the block chain technology to food, so that detection process Time end, convenient is expended, testing result is reliable.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is the structural schematic diagram of the food safety common query system based on block chain of the embodiment of the present application one;
Fig. 2 is the structural schematic diagram of the food safety common query system based on block chain of the embodiment of the present application two.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
As one embodiment of the application, as shown in Figure 1, being the food peace based on block chain of the embodiment of the present application one The structural schematic diagram of full common query system.From figure 1 it appears that the food safety provided in this embodiment based on block chain Common query system may include:
Data acquisition module 101, the basic data of the preset kind for acquiring tested food, and to the basic data It is encrypted, generates cryptography infrastructure data, the cryptography infrastructure data are sent to mobile terminal.
In the present embodiment, the data acquisition module 101 can be probe, accordingly tested food can be meat, Vegetables and fruits or liquid, such as beef, mutton, pork, the flesh of fish of people's daily consumption etc., are also possible to drinking water, beverage etc..It is logical It crosses and inserts probes into meat or liquid, the basic data of available preset kind presets class for different food The basic data of type is different.By taking meat as an example, the basic data of preset kind can be Bacteria Detection, water filling detection or fresh Degree detecting etc.;Detecting Pesticide may include for vegetables and fruits.The data acquisition module 101 is also possible to test paper or each Other detecting instruments of kind etc., will not enumerate explanation here.When the data acquisition module 101 collects tested food After the basic data of preset kind, in order to guarantee the authenticity of the basic data and not be tampered forgery, the data acquisition module Block 101 can encrypt collected basic data, generate cryptography infrastructure data, and can establish logical with mobile terminal The cryptography infrastructure data are sent to mobile terminal by letter connection.The data acquisition module 101 can be held by consumer, disappear The person of expense can acquire the basic data of tested food in shopping.Certainly, which can also be by government, enterprise Portion or third-party food safety and Quality People are held in the industry.
Mobile terminal 102, the cryptography infrastructure data sent for receiving the data acquisition module, and by the encryption base Plinth data are sent in main block chain.
In the present embodiment, the mobile terminal 102 can be the intelligence such as smart phone, Intelligent bracelet and tablet computer Mobile device, the accessible internet of the mobile terminal 102.When the mobile terminal 102 receives the data acquisition module After the cryptography infrastructure data that block 101 is sent, the content of cryptography infrastructure data cannot be shown in the mobile terminal 102, therefore, moved Dynamic terminal 102 can not distort the cryptography infrastructure data, ensure that the authenticity of basic data.The mobile terminal 102 are sent to the cryptography infrastructure data received in main block chain.
Main block chain 103, the cryptography infrastructure data sent for receiving the mobile terminal, by the cryptography infrastructure Data are stored in the block of the main block chain.
Main block chain 103 includes multiple block nodes, and multiple block nodes form distributed network, the number in each node According to all can be to the nodes sharing of other in distributed network, so that the data for being stored in the main block chain 103 are not easy to be tampered. Main block chain 103 deposits the cryptography infrastructure data after receiving the cryptography infrastructure data that the mobile terminal is sent Storage is in the block of the main block chain.And the cryptography infrastructure data are stored by the block, and after storing by institute Cryptography infrastructure data sharing is stated to other blocks.
Terminal 104 is detected, for extracting the cryptography infrastructure data from the block of the main block chain, to the encryption Basic data is decrypted, and the qualitative data of the tested food is determined according to the cryptography infrastructure data after decryption, will The qualitative data is sent in the correspondence block of the main block chain.
After the cryptography infrastructure data are stored in the block of the main block chain by the main block chain 103, detection Terminal 104 can extract the cryptography infrastructure data from the correspondence block of the main block chain 103, and to the cryptography infrastructure Data are decrypted, and after the cryptography infrastructure data are decrypted, extract the basic data of corresponding preset kind, and will The basic data is compared with itself pre-stored standard base data, and the quality of tested food is judged with this, according to The quality of tested food, determines the qualitative data of tested food, and sends the main block chain 103 for the qualitative data In corresponding block.
In the present embodiment, the data acquisition module 101 and the detection terminal 104 can be using hash algorithms to institute Basic data is stated encrypt or be decrypted with regard to the cryptography infrastructure data.In addition, the detection terminal 104 can basis The quality of tested food carries out grade classification, such as level-one food, second level food, three-level food etc. to tested food, can also be with It is scored according to the quality of tested food tested food, such as the score of tested food is 85 points etc..
The food safety common query system based on block chain of the embodiment of the present application, by utilizing block chain technology to food The safety of product is detected, so that detection process expends time end, convenient, testing result is reliable.
As shown in Fig. 2, being that the structure of the food safety common query system based on block chain of the embodiment of the present application two is shown It is intended to.From figure 2 it can be seen that the food safety common query system based on block chain of the present embodiment, may include:
Data acquisition module 201, the basic data of the preset kind for acquiring tested food, and to the basic data It is encrypted, generates cryptography infrastructure data, the cryptography infrastructure data are sent to mobile terminal.
In the present embodiment, the data acquisition module 201 can be probe, accordingly tested food can be meat or Person's liquid, such as beef, mutton, pork, the flesh of fish, the fruits and vegetables of people's daily consumption etc., are also possible to drinking water, beverage etc..It is logical It crosses and inserts probes into meat or liquid, the basic data of available preset kind presets class for different food The basic data of type is different.After the basic data for the preset kind that the data acquisition module 201 collects tested food, it is Guarantee the authenticity of the basic data, the data acquisition module 201 can encrypt collected basic data, raw It at cryptography infrastructure data, and can establish the communication connection with mobile terminal, the cryptography infrastructure data be sent to mobile whole End.
Mobile terminal 202, the cryptography infrastructure data sent for receiving the data acquisition module, and by the encryption base Plinth data are sent in main block chain.
After the mobile terminal 202 receives the cryptography infrastructure data that the data acquisition module 201 is sent, the shifting The content of cryptography infrastructure data cannot be shown in dynamic terminal 202, therefore, mobile terminal 202 can not be to the cryptography infrastructure number According to being distorted, the authenticity of basic data ensure that.The mobile terminal 202 sends out the cryptography infrastructure data received It send into main block chain.
Main block chain 203, the cryptography infrastructure data sent for receiving the mobile terminal, by the cryptography infrastructure Data are stored in the block of the main block chain.
Main block chain 203 includes multiple block nodes, and multiple block nodes form distributed network, protect in each node There is identical block chain.Block chain is one and is protected stored linked data structure in the form of hash chain, and carrying needs The basic unit of the information of preservation is block, and each block includes to protect stored payload portions and for verifying the area The verifying Hash head whether block is tampered.The total data of block chain can all make the nodes sharing of other in distributed network The data that the main block chain 203 must be stored in are not easy to be tampered.With the continuous generation for the information for needing to save, all compositions The node of main block chain constantly verifies information, and finds suitable block and store to information, then by the area The block chain of each nodes sharing is added in block, and the chain structure of block chain can constantly increase extension.To which main block chain 203 exists After receiving the cryptography infrastructure data that the mobile terminal is sent, the cryptography infrastructure data are stored in the block chain Block in.And the cryptography infrastructure data are stored by the block, and be after storing total to the cryptography infrastructure data It enjoys and gives other blocks.
The process of the block of main block chain is written in cryptography infrastructure data by lower mask body introduction.In the present embodiment, described Main block chain 203 further includes cache unit 2031, and the cache unit 2031 is used for from the received institute of the mobile terminal 202 Cryptography infrastructure data are stated to be cached in advance.Whole block nodes competition book keeping operation power that main block chain 203 includes, in the primary area After any node in block chain gets the power of the book keeping operation to the cryptography infrastructure data, which extracts from the cache unit The cryptography infrastructure data.Specifically, the node in the main block chain 203 can prove mechanism by BFT to obtain to institute The book keeping operation power of cryptography infrastructure data is stated, any node in the main block chain 203 is got to the cryptography infrastructure data Book keeping operation power after, the cryptography infrastructure data of corresponding certain bit quantity can be extracted from the cache unit 2031, will be described Cryptography infrastructure data increase verifying Hash head, assemble as block, and the payload portions of block are used for extracted encryption base Plinth data are stored, and are shared the block for carrying the cryptography infrastructure data into other nodes by the node, by each Node carries out common recognition verifying to block.In BFT common recognition verification process, each node is verified and is confirmed to the block, if Some node signs to the block after confirming the block and is sent to accounting nodes.When accounting nodes receive at least three/ After the signature of two different nodes, then the verifying that the block completes all nodes becomes irreversible block and is connected in series to block chain In, which is increased to the tail portion of saved block chain by each node respectively.
In order to realize verifying to block and build consensus between whole nodes, have on each node one complete Block chain derives that is, by original block to a huge hash chain of current block, and new when obtaining one Block, each node also needs to trace whole block chain, to verify the validity of the block Hash head, due to main block chain 203 will save the cryptography infrastructure data of the food quality detection of magnanimity towards the majority of consumers and supervisor, when tired on chain When long-pending data super large, reading and writing delay caused by data to block chain every time can be bigger.In addition, if will be to block chain It reads and writes data and keeps local block chain consistent with the block chain that main block chain 203 is shared, each node is being initially added When main block chain 203, need to download the complete block chain comprising total data.In order to solve block chain technology or more Mechanism and the magnanimity basic data of food quality quickly access between contradiction, the present invention devises the data for main block chain Mechanism is simplified, according to the timeliness for the cryptography infrastructure data for indicating food quality, is periodically directed to no longer valid encryption base Plinth data are purged from block chain, to re-create original block and more new block chain.In order to realize this mechanism, institute It states main block chain 203 and data age prediction supervision unit is set, also, safeguard several for delaying in cache unit 2031 Deposit the queue of cryptography infrastructure data.When data age prediction supervision unit obtain data acquisition module 201 for beef, mutton, After the cryptography infrastructure data of the preset kind of the food such as pork, the flesh of fish, fruits and vegetables, drinking water, beverage acquisition, according to the encryption base The corresponding food type of plinth data predicts the effective timeliness of the data;Due to examined food be largely consumables and With relatively short freshness date, thus can according to the cryptography infrastructure data of the type prediction of the food food it is effective when Section then food or was purchased and has consumed or because expired and undercarriage is destroyed, correspondingly encrypted more than the period Basic data has not had meaning with a grain of salt;In turn, data age prediction supervision unit according to cryptography infrastructure data it is effective when The cryptography infrastructure data, are put into the queue of corresponding cache unit by section, so that block to be written in the same buffer queue The effectual time of cryptography infrastructure data is almost the same (i.e. expired time deviation is within the default time difference);Then it is situated between according still further to above The mode to continue extracts cryptography infrastructure data from each queue, is encapsulated as block and block chain is written.In turn, data age prediction prison Superintend and direct the timeliness of the cryptography infrastructure data saved in unit segmentation supervision each section of block of block chain;By block chain according to fixed area Block number is divided into several segments, a certain number of in every section since block chain is written one by one as unit of each block The effectual time for the cryptography infrastructure data that block is saved should be substantially close to;When in the block in a section for being located at front end Effectual time more than predetermined ratio (such as 90% or more) cryptography infrastructure data is expired, then extracts from this section of block chain The not yet expired cryptography infrastructure data of timeliness, by these cryptography infrastructure data be divided into cache unit 2,031 one it is special Queue is then encapsulated into the end that new block is written to block chain again, then deletes the block of the front end from block chain It removes, to realize the block chain length periodically reduced and data volume, advantageously reduces and block chain is written and read and common recognition is tested The delay of card process solves the problems, such as that there are bigger block chain data to need to download when node enters block chain for the first time.
Terminal 204 is detected, for extracting the cryptography infrastructure data from the block of the main block chain, to the encryption Basic data is decrypted, and the qualitative data of the tested food is determined according to the cryptography infrastructure data after decryption, will The qualitative data is sent in the correspondence block of the main block chain.
After the cryptography infrastructure data are stored in the block of the main block chain by the main block chain 203, detection Terminal 204 can extract the cryptography infrastructure data from the correspondence block of the main block chain 203, and to the cryptography infrastructure Data are decrypted, and after the cryptography infrastructure data are decrypted, extract the basic data of corresponding preset kind, and will The basic data is compared with itself pre-stored standard base data, and the quality of tested food is judged with this, according to The quality of tested food, determines the qualitative data of tested food, and sends the main block chain 203 for the qualitative data In corresponding block.The cache unit of main block chain 203 has another special queue, for obtaining from the detection module 204 The qualitative data is taken, and a certain amount of qualitative data is encapsulated as an independent block, only includes quality in the block Data, and special flag bit is set to show that this block specially saves the product in the head end of the block payload portions Prime number evidence.The block of Storing quality data can not be simplified with block chain and is removed, while by the way that special mark is arranged Position is conducive to the retrieval to qualitative data.After the main block chain 203 receives qualitative data, qualitative data can also be sent out Be sent in the mobile terminal 202, the mobile terminal 202 after receiving the qualitative data, to the qualitative data into Row display, to enable user obtain corresponding food quality data.
In addition, detecting it in the correspondence block that the qualitative data is sent the main block chain by terminal 204 described Before, the qualitative data can also be encrypted, and send the main block chain for the encrypted qualitative data In corresponding block.It, can also be by encrypted qualitative data after the main block chain 203 receives encrypted qualitative data It is sent in the mobile terminal 202.The mobile terminal 202, can be first to adding after receiving encrypted qualitative data Qualitative data after close is decrypted, and shows to the qualitative data after decryption.
In the present embodiment, certificate store can be set in the data acquisition module 201, for storing The digital certificate of the data acquisition module, after the data acquisition module 201 collects the basic data of tested food, benefit The basic data is signed and encrypted with the digital certificate.Specifically, the certificate store can band There is the TF card of electronic chip, the digital certificate of the data acquisition module 201 is stored in the TF card.In addition, the data Acquisition module 201 can also include the first bluetooth unit 2011, for connecting with the communication of mobile terminal, by the encryption Basic data is sent to mobile terminal.The mobile terminal 202 can also include the second bluetooth unit 2021, for described the One bluetooth unit 2011 establishes communication connection, to receive the cryptography infrastructure data that the mobile terminal is sent.Due to the prior art In mobile terminal generally all have Bluetooth function, pass through bluetooth realize data acquisition module 201 and mobile terminal 202 communication Connection, it is convenient and efficient.
In addition, the food safety common query system based on block chain of the present embodiment, can also include that food safety is big Data platform 205 is stored and is shown for receiving the qualitative data for being used for transmission, and to received qualitative data process.Work as institute It states after main block chain 203 receives qualitative data and send the mobile terminal 202 for qualitative data, user's property of can choose The qualitative data is sent the food safety big data platform 205 by ground, and the food safety big data platform 205 is connecing After the qualitative data for receiving user's transmission, the qualitative data can be stored, and form database, in case other users Inquiry, and then distinguish ropy food.The food safety big data platform 205 may include integral feedback unit 2051, For being integrated after receiving the qualitative data of user's transmission to corresponding user feedback, the integral is active for characterization user Numerical value, and then encourage user to the food safety big data platform 205 send qualitative data.In this way, possessing the number such as probe According to the consumer of acquisition module 201, it can use the data acquisition module 201 and test to the quality of some food, And qualitative data is obtained by mobile terminal 202, and qualitative data can be contributed to food safety big data and put down by the user Platform, it is thus possible to spontaneously form to third party's independent detection of food quality and supervision.The data acquisition is carried for no For the user of module 201, the qualitative data of food can also be obtained from the food safety big data platform 205.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (10)

1. a kind of food safety common query system based on block chain characterized by comprising
Data acquisition module, the basic data of the preset kind for acquiring tested food, and the basic data is added It is close, cryptography infrastructure data are generated, the cryptography infrastructure data are sent to mobile terminal;
Mobile terminal, the cryptography infrastructure data sent for receiving the data acquisition module, and by the cryptography infrastructure data It is sent in main block chain;
Main block chain, the cryptography infrastructure data sent for receiving the mobile terminal, the cryptography infrastructure data are deposited Storage is in the block of the main block chain;
Terminal is detected, for extracting the cryptography infrastructure data from the block of the main block chain, to the cryptography infrastructure number According to being decrypted, and the qualitative data of the tested food is determined according to the cryptography infrastructure data after decryption, by the product Prime number evidence is sent in the correspondence block of the main block chain.
2. system according to claim 1, which is characterized in that send institute for the qualitative data in the detection terminal Before stating in the correspondence block of main block chain, the detection terminal will be also used to:
The qualitative data is encrypted;
In the correspondence block for sending the qualitative data on the main block chain, including by the encrypted quality number According to being sent in the correspondence block of the main block chain.
3. system according to claim 2, which is characterized in that the main block chain is also used to:
It sends the qualitative data in the mobile terminal;
The mobile terminal is also used to after receiving the qualitative data, is shown to the qualitative data.
4. system according to claim 2, which is characterized in that be provided with digital certificate store in the data acquisition module Unit, for storing the digital certificate of the data acquisition module, the digital certificate is for signing the basic data Name and encryption.
5. system according to claim 4, which is characterized in that the data acquisition module, comprising:
The cryptography infrastructure data are sent to mobile whole by the first bluetooth unit for connecting with the communication of mobile terminal End.
6. system according to claim 5, which is characterized in that the mobile terminal, comprising:
Second bluetooth unit is communicated to connect for establishing with first bluetooth unit, to receive the mobile terminal transmission Cryptography infrastructure data.
7. system according to claim 6, which is characterized in that further include:
Food safety big data platform is stored for receiving the qualitative data for being used for transmission, and to received qualitative data process And display.
8. system according to claim 7, which is characterized in that the food safety big data platform, further includes:
Integral feedback unit, for being integrated to corresponding user feedback, the product after receiving the qualitative data of user's transmission It is divided into the active numerical value of characterization user.
9. system according to claim 8, which is characterized in that the main block chain further include:
Cache unit, for caching to the received cryptography infrastructure data, the node in the main block chain is obtained To after the book keeping operation power to the cryptography infrastructure data, which extracts the cryptography infrastructure data from the cache unit.
10. system according to claim 9, which is characterized in that the node in the main block chain proves mechanism by BFT To obtain the power of the book keeping operation to the cryptography infrastructure data.
CN201811591153.2A 2018-12-25 2018-12-25 Food safety public query system based on block chain Active CN109670327B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811591153.2A CN109670327B (en) 2018-12-25 2018-12-25 Food safety public query system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811591153.2A CN109670327B (en) 2018-12-25 2018-12-25 Food safety public query system based on block chain

Publications (2)

Publication Number Publication Date
CN109670327A true CN109670327A (en) 2019-04-23
CN109670327B CN109670327B (en) 2020-11-03

Family

ID=66147190

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811591153.2A Active CN109670327B (en) 2018-12-25 2018-12-25 Food safety public query system based on block chain

Country Status (1)

Country Link
CN (1) CN109670327B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111680105A (en) * 2020-06-15 2020-09-18 浙江创邻科技有限公司 Block chain-based distributed relational database management method and system
CN115314288A (en) * 2022-08-08 2022-11-08 广州晁沓科技有限公司 Data tracing system and method based on block chain technology

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105210695A (en) * 2015-10-05 2016-01-06 上海大学 A kind of intelligent green house of vegetables long distance control system
CN106779742A (en) * 2016-12-05 2017-05-31 华迪计算机集团有限公司 A kind of method and system for carrying out complete monitoring safely to drug quality based on block chain
AU2018101359A4 (en) * 2018-09-15 2018-10-18 Abu Shanab, Nadeem MR NutriBlock, an innovative, specialised Blockchain solution for food safety traceability in the agri-food & nutraceutical products industries
CN108681600A (en) * 2018-05-21 2018-10-19 浪潮软件集团有限公司 Food tracing information display method, device and system
CN109034831A (en) * 2018-05-23 2018-12-18 栾友祥 A kind of foodstuff traceability supervisory systems and its implementation based on block chain

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105210695A (en) * 2015-10-05 2016-01-06 上海大学 A kind of intelligent green house of vegetables long distance control system
CN106779742A (en) * 2016-12-05 2017-05-31 华迪计算机集团有限公司 A kind of method and system for carrying out complete monitoring safely to drug quality based on block chain
CN108681600A (en) * 2018-05-21 2018-10-19 浪潮软件集团有限公司 Food tracing information display method, device and system
CN109034831A (en) * 2018-05-23 2018-12-18 栾友祥 A kind of foodstuff traceability supervisory systems and its implementation based on block chain
AU2018101359A4 (en) * 2018-09-15 2018-10-18 Abu Shanab, Nadeem MR NutriBlock, an innovative, specialised Blockchain solution for food safety traceability in the agri-food & nutraceutical products industries

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李乔宇等: "区块链在农业中的应用展望", 《农学学报》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111680105A (en) * 2020-06-15 2020-09-18 浙江创邻科技有限公司 Block chain-based distributed relational database management method and system
CN111680105B (en) * 2020-06-15 2023-09-22 浙江创邻科技有限公司 Management method and system of distributed relational database based on block chain
CN115314288A (en) * 2022-08-08 2022-11-08 广州晁沓科技有限公司 Data tracing system and method based on block chain technology
CN115314288B (en) * 2022-08-08 2023-11-10 上海好剧影视发行有限公司 Data tracing system and method based on encryption verification technology

Also Published As

Publication number Publication date
CN109670327B (en) 2020-11-03

Similar Documents

Publication Publication Date Title
US20230281406A1 (en) Authentication Systems and Methods
AU2002244117B2 (en) System and method for depicting on-line transactions
ES2221710T3 (en) VERIFICATION OF AUTHENTICITY OF ARTICLES USING RANDOM NUMBERS.
CN104835045B (en) A kind of commodity antifake check method and system based on Internet of Things mark service
KR101948721B1 (en) Method and apparatus for examining forgery of file by using file hash value
AU2002244117A1 (en) System and method for depicting on-line transactions
CN105608573B (en) The querying method and device of a kind of smart card information
CN104852892B (en) A kind of autonomous login method of novel Internet of Things web station system
CN109670327A (en) A kind of food safety common query system based on block chain
CN107784502A (en) A kind of new product source tracing method and device
CN105957274B (en) Hand-held electronic business transaction POS machine
CN109447530A (en) A kind of foodsafety automatically analyzes and Warning System and method
CN108985410A (en) The anti-fake source tracing method of steamed crab and device
CN104574119B (en) A kind of method that commodity Jianzhen traces to the source
Martin et al. Anomaly detection in blockchain using network representation and machine learning
CN108876405A (en) Product traceability records processing method, device and electronic equipment
CN110634015A (en) Consumption habit analysis system based on computer software
CN110244573A (en) Storage system and intelligent appliance based on intelligent appliance
CN109697267A (en) CMS recognition methods and device
CN108492119A (en) Information anti-fake authentication method, device, equipment and medium based on block chain
Ting et al. A two-factor authentication system using Radio Frequency Identification and watermarking technology
CN104751234B (en) A kind of prediction technique and device of user's assets
Bhushan et al. Security magnification in supply chain management using blockchain technology
CN104376314B (en) A kind of constructive method towards Google glass Internet of Things web station system
CN110011805A (en) Two-way authentication anti-counterfeiting system and method based on low-power consumption bluetooth system

Legal Events

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