CN110516965A - The credible retrospect model of oil and foodstuffs full supply chain and construction method based on block chain - Google Patents

The credible retrospect model of oil and foodstuffs full supply chain and construction method based on block chain Download PDF

Info

Publication number
CN110516965A
CN110516965A CN201910798116.7A CN201910798116A CN110516965A CN 110516965 A CN110516965 A CN 110516965A CN 201910798116 A CN201910798116 A CN 201910798116A CN 110516965 A CN110516965 A CN 110516965A
Authority
CN
China
Prior art keywords
data
block
foodstuffs
oil
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910798116.7A
Other languages
Chinese (zh)
Inventor
张新
王小艺
董云峰
许继平
金学波
孔建磊
赵峙尧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Technology and Business University
Original Assignee
Beijing Technology and Business University
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 Technology and Business University filed Critical Beijing Technology and Business University
Priority to CN201910798116.7A priority Critical patent/CN110516965A/en
Publication of CN110516965A publication Critical patent/CN110516965A/en
Pending legal-status Critical Current

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
    • 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/067Enterprise or organisation modelling
    • 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
    • G06Q30/0185Product, service or business identity fraud
    • 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
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services
    • G06Q50/265Personal security, identity or safety

Abstract

The present invention is a kind of credible retrospect model of the oil and foodstuffs full supply chain based on block chain and construction method, belongs to food safety tracing technology field.The present invention use block chain and cloud data database storing, using in oil and foodstuffs full supply chain production, processing, storage, logistics and sale five links as an input node, node uploads data to block chain and cloud database according to intelligent contract.The data that node uploads carry out Hash operation together with the Product labelling data of oil and foodstuffs, obtain the cryptographic Hash of data block, then 32 traceability codes are formed with 16 codings of product batches.In retrospect, according to preceding 16 codings of the traceability code of input, all link data of same batch products are traced.The problems such as centralized architecture that the present invention solves current traceability system is serious, Information Security is low, there are information islands, retrospect at high cost, low efficiency, guarantees that full supply chain link data safety is reliable, tracing information is accurately credible.

Description

The credible retrospect model of oil and foodstuffs full supply chain and construction method based on block chain
Technical field
The invention belongs to food safety tracing technology field, it is related to a kind of oil and foodstuffs full supply chain based on block chain Credible retrospect model and its construction method.
Background technique
In recent years, food safety accident, safety problem are commonplace, " tonyred duck's egg ", melamine milk powder ", " trench The events such as oil ", " cadmium rice " make us startling, and the health of consumer is seriously threatened safely, and the public is to food matter The requirement of amount safety is continuously improved.Oil and foodstuffs include finished product of grain, raw grain grease etc., are the necessitys in national life, covering All residents in China ensure the safety of oil and foodstuffs supply, have to national life and health, social harmonious development very great Meaning.Due to the features such as oil and foodstuffs supply chain is complicated, cycle period is long and risk factors are more, oil and foodstuffs supply ring at present Section is there are a large amount of safety problem, such as excessive pesticide residues, food origin disease problem caused by industrial pollution, produces and processes link It operates violation, is illegal using food additives, storing and transporting security problem, product fake and forged commodity etc..It is therefore desirable to improve food to supply The transparency of chain is answered, and carries out credible, accurately and effectively food safety trace back.
There is prolonged research and development in all respects for the safe traceability system of oil and foodstuffs.Pass through application Barcode technology, RFID (radio frequency identification) technology and wireless sensor network etc. are detected and are remembered to each link of supply chain Record, and formulates corresponding information traceable system and Legal System, gradually establish food is identified, is logged in, is tracked and The information system of retrospect, domestic five more influential agricultural product traceability systems: Shanghai eats agricultural quality safety Information query system, the retrospect of Beijing Municiple Agriculture Bureau's edible food (vegetables) quality safety, century agriculture-countryside-farmer " trace to the source management by food safety System ", Chinese beef cattle whole process quality safety system for tracing and managing, national vegetables quality safe tracing system.Tradition retrospect is crucial There are certain drawbacks, the traceability system established at present uses centralization, the control mode of centralization for technology, system and system, Acquisition, typing, storage and management from production to the data of the entire supply chain of sale are completed by part core enterprise, therefore number According to management, there is ability that is imaginary, distorting, delete in enterprise to data;All data are stored in central database, once middle calculation Attacked according to library, all data of whole system will be destroyed, therefore Information Security have it is to be hoisted;In supply chain link In section, the reliability that down-stream enterprise provides data to upstream firm is difficult to verify, so as to form the information between enterprise Isolated island needs to improve at the authentic and valid aspect for guaranteeing information transmitting.Consumer and regulator are to providing the true of information in system Property, reliability leave a question open.The retrospect of normal food supply chain is to one of agri-food supply chains or certain several link traces, and grain The supply chain of oil food is sufficiently complex, and risk factors are more, cycle period is long, involve a wide range of knowledge, and the derivative link of each link is many It is more, or even different link is alternately repeated circulation, such as production link also includes drying the processes such as preliminary working technique, storage, transport, And in logistics links, province, city, different enterprises at county level are also required to freight house to store product, therefore nested corresponding storage link. Therefore causing inside and outside source hazardous material to generate, process is complicated and changeable, active specific aim prevention and control difficulty is big.In face of so huge link With data volume, the resource consumption of traditional food traceability system is big, speed is slow, low efficiency.
The appearance of block chain technology is so that the above problem knows about certainly scheme, to realize that secure and trusted oil and foodstuffs chase after System of tracing back provides a practical way.Currently, research of the block chain technology in financial field has tended to be mature, and in recent years Being applied to foodstuff traceability field in block chain has certain research and exploration, but traces to the source in oil and foodstuffs that there has been no elder generations in field safely Example, the peer-to-peer network (P2P) that is related to, cryptographic algorithm and common recognition algorithm etc. determine block chain technology have decentralization, Data can not distort, information transparency, the characteristics such as traceable.Changed data can be navigated to step by step by hash function, protected The every data for having demonstrate,proved each main body in supply chain system can trace, convenient for calling to account and supervising.Common recognition algorithm can ensure that data Consistency, the data tampering behavior of single node will receive all monitoring nodes of the whole network and repulsion, therefore ensure that information flow It is logical and Trading parties data open and clear, broken problem of detached island of information existing for legacy system, realize supply chain circulation, The data record of transaction, information transmitting, can guarantee the reliability, accuracy and the transparency of data.Food safety thing is occurring Therefore when, food traceability system can be quickly and accurately positioned the link of problem generation, and find the root of problem, tracing problem production Product whereabouts, clearly defining responsibilities enterprise simultaneously call to account, and reduce adverse effect caused by food safety accident, ask food safety is solved Topic has a very important significance.
Summary of the invention
The present invention for how from production, processing, storage and transportation, sale full supply chain link effective guarantee oil and foodstuffs safety Problem is based on block chain technology, constructs the credible retrospect model of oil and foodstuffs full supply chain, and the modeling provides from production link Block chain technology is applied with intelligent contract and is traced back safely in oil and foodstuffs by the effective information of whole process in most Zhongdao consumer's hand On source, the centralized architecture that can solve current traceability system is serious, Information Security is low, there are information islands, retrospect cost The drawbacks such as height, low efficiency guarantee that full supply chain link data safety is reliable, and tracing information is accurately credible.
The credible retrospect model of a kind of oil and foodstuffs full supply chain based on block chain provided by the invention, using block chain and Cloud data database storing, wherein the model has five class data input nodes, respectively corresponds in oil and foodstuffs full supply chain Five production, processing, storage, logistics and sale links.The basic data of input node input is in the condition for meeting intelligent contract Cloud database is arrived in lower upload storage.The basic data that input node is inputted in moment t, by the Product labelling data with oil and foodstuffs It uploads in block chain and is broadcasted to the block chain node of the whole network together, all block chain nodes of the whole network pass through common recognition process verification It is stored in newest data block later, by Hash operation when storage, obtains a root cryptographic Hash, be stored in data block, number It is connected in chronological order according to block and constitutes the block chain database of chain-type.The father of link is recorded in the block head of data block Grade block cryptographic Hash, current block version number, timestamp etc..Obtained cryptographic Hash is the cryptographic Hash of data block, is 16 Position coding forms 32 identification codes plus 16 codings of corresponding product batch before the cryptographic Hash of data block;It will Each data block is formed by the deposit of 32 bit identification codes and is specifically used to store in the data block of identification code;Identification code namely chases after Trace back code.
In retrospect, according to preceding 16 codings of the traceability code of input, navigated in the data block of storage identification code Belong to the identification code of same batch products, and then is traced back to according to rear 16 codings of identification code and be stored in owning in block chain The data of link.
The present invention provides a kind of construction method of the credible retrospect model of oil and foodstuffs full supply chain based on block chain, packets Containing following steps:
Step 1, oil and foodstuffs full supply chain is divided into five production, processing, storage, logistics and sale links;
Step 2, using each link as an input node of block chain, the basic data of input node input needs full Foot intelligence treaty conditions can just be uploaded to cloud database;
Step 3, the basic data of input node input, which is saved in data block, is added in block chain;
Step 4, intelligent Contract Model is established, format, type and the length of the basic data that each node uploads are arranged.
Compared with the existing technology, the advantages and positive effects of the present invention are:
(1) the credible retrospect model in the oil and foodstuffs field that the present invention establishes, there has been no open report cases for direction research Example, the novelty having have certain directive function to follow-up study.
(2) the retrospect model in the present invention relates to trace to the source from production to the oil and foodstuffs full supply chain in consumer's hand, It may be implemented the complete retrospect to same batch products, previous system is only in some or part of production, logistics or sale Link is traced, and cannot achieve the retrospect of full supply chain.The present invention is to trace to the source safely field and from production in oil and foodstuffs Retrospect to the full supply chain of consumer provides new method.
(3) present invention considers the big and complicated situation of supply chain link data volume, proposes and is stored in a large amount of basic datas Cloud, then point ground storage mode through Hash operation deposit block catenary system, ensure that the operating cost and efficiency of traceability system.
(4) the credible retrospect of full supply chain can be achieved for different types of oil and foodstuffs in strong applicability of the present invention, With general applicability.
Detailed description of the invention
Fig. 1 is oil and foodstuffs full supply chain link schematic diagram;
Fig. 2 is the credible retrospect model schematic of oil and foodstuffs full supply chain;
Fig. 3 is block data structures schematic diagram;
Fig. 4 is intelligent contract implementation procedure schematic diagram;
Fig. 5 is the intelligent Contract Model schematic diagram in oil and foodstuffs;
Fig. 6 is agri-food supply chains block serobila system structure;
Fig. 7 is the credible retrospect prototype system framework of oil and foodstuffs full supply chain;
Fig. 8 is the credible retrospect platform of oil and foodstuffs full supply chain;
Fig. 9 is the credible traceability system client input window schematic diagram of oil and foodstuffs full supply chain;
Figure 10 is the credible traceability system query result schematic diagram of oil and foodstuffs full supply chain.
Specific embodiment
Below with reference to example, the present invention is described in further detail.
The embodiment of the present invention realizes the building process of the credible retrospect model of the oil and foodstuffs full supply chain based on block chain, packet Following steps one are included to step 5, illustrate each step below.
Step 1: analysis oil and foodstuffs full supply chain link.
By understanding related grain and edible oil mills, and field research oil and foodstuffs factory, such as certain flour mill Production and processing process, design are eaten by the grain and oil that production link, processing link, storage link, logistics links and sales section form Product full supply chain link, as shown in Figure 1.
The information of each link acquisition is by being stored in the traceability system based on this model construction after verifying, to establish true Real reliable full database, may be implemented to carry out the entire supply chain of same batch products complete supervision and retrospect. Production link, which refers to, harvests oil and foodstuffs, records its relevant information, including implantation time, harvest time, product batches etc.. Processing link includes the work such as drying process, decladding, processing to harvest product and records information, including product number, processing Process etc..Storage link records its storehouse information, such as storehouse numbers, enters the outbound time.Logistics links include harvest product And after processing finished product logistics transportation, such as haulage vehicle, conveying people.Sales section, which refers to, carries out the finished product completed the process Sale, record selling spot, salesman etc..To complete the prison of the entire supply system from oil and foodstuffs harvest to sale of finished goods Pipe and retrospect.
Step 2: establishing the credible retrospect model of oil and foodstuffs full supply chain, cloud database is uploaded data to.
For oil and foodstuffs production and the supervision and trace back process of intermediate links, in conjunction with block chain technology, design and supply The corresponding enterprise's node of chain link establishes the credible retrospect model of oil and foodstuffs full supply chain, as shown in Fig. 2, production link, plus Work link, storage link, logistics links and sales section respectively correspond node 1, node 2, node 3, node 4 and node 5.
Due to oil and foodstuffs full supply chain be in agri-food supply chains it is most complicated, based on the more feature of its link, from life Producing sale needs acquisition, record, the total data amount of upload very huge and complicated, and being stored on block chain will appear cost High, the problem of burden is big, low efficiency, therefore huge product basic data is stored in cloud database by the present invention, then by cloud data Basic data in library carries out the cryptographic Hash deposit block chain that Hash operation obtains together with the label data of Product labelling information In, to guarantee the cost and efficiency of block catenary system operation.
The oil and foodstuffs data that each enterprise's node is uploaded to block chain will follow the constraint of intelligent contract, only meet intelligence The data that energy treaty conditions require could upload success.Since the data format that different enterprise's nodes upload is not quite similar, The multi-source heterogeneous data of different enterprise's nodes carry out the unification of data format by intelligent contract, and basic data passes through number again Signature technology is verified data and is uploaded and stored to cloud database.Basic data is uploaded to the detailed process of cloud database Are as follows: Hash operation is carried out to obtain data summarization to a large amount of basic datas of product, system is generated by Asymmetric Cryptography Public key and private key encrypt data summarization by private key, and encrypted data summarization is as signature value together with basic data After uploading to cloud database, cloud database can be decrypted the encrypted data summarization (signature value) received by public key, Data summarization after the completion of decryption is compared with to basic data with the data summarization that same Hash operation method obtains, if right It is more consistent than result, it proves that data are true and reliable and is not tampered, a large amount of basic datas are smoothly stored in cloud database;If result is not Unanimously illustrate that data have passed through to distort then not by verifying, database can not be stored in.By digital signature technology, each enterprise's section The data of point deposit cloud database are effectively credible, therefore the authenticity of a large amount of basic datas is guaranteed in cloud database.
Step 3: the structure of design data block.
The cryptographic Hash of basic data in the Product labelling data and database of each link in oil and foodstuffs full supply chain Common operation obtains root cryptographic Hash, and enterprise's node through safeguarding alone is uploaded and broadcasted to the block chain node of the whole network, the whole network institute Have block chain node by common recognition process verification after be stored in newest data block, and on chain to upper level data block to It completes by the process of data deposit block chain, as shown in Figure 3.Wherein block head encapsulates parent block cryptographic Hash, current block version This number, timestamp, the cryptographic Hash of current block etc., block body include the brief information data (day by a certain link of verifying Phase, product batches etc.) and database cryptographic Hash.
Trace back process are as follows: the traceability system of consumer-user or regulatory agency model through the invention inputs to be checked batch Secondary product code is traced, and product code is directly targeted to the given zone build comprising this product information, recalls this product All intermediate links data carry out product back-tracing.
The data of node input are stored in data block by uploading and after verifying of knowing together, the number generated to different links According to the identification code for forming 32 before the root cryptographic Hash in the block head of block plus 16 codings of corresponding batch products, every number One is stored according to the corresponding 32 bit identification code of block to be specifically used to store in the data block of identification code.Before same batch products 16 codings are identical, and rear 16 codings of different links are different, and the traceability code in consumer's hand is finally generated according to identification code.In When retrospect, for consumer by inputting traceability code in system, system navigates to identification code area automatically according to identical preceding 16 codings The identification code of same batch products in block identifies the corresponding data block of all link data of this batch products, passes through ratio All data of storage within a block are traced back to identification code, while being shown data in Web system by server end, Complete the retrospect to product.
Step 4: establishing intelligent Contract Model.
For a large amount of multi-source heterogeneous oil and foodstuffs data, data are handled by intelligent contract, it will not apposition It can be uploaded after formula, different type, the data of different length are unified, do further common recognition verifying.
The implementation procedure of intelligent contract is as shown in figure 4, the business manager of each link is according to actual requirement system in supply chain Determine terms of agreement content, intelligent contract is set according to terms of agreement to the preset trigger condition of data processing, when data upload, Judge whether data meet the call format of upload, if the data format that the acquisition of current enterprise node uploads, which meets, is deployed to block The prerequisite of catenary system intelligence contract, then data can be uploaded and continue the integrity verification of next step.If number Prerequisite is not met according to format, then data is handled by preset code and is judged again, can be carried out later next The data integrity validation of step.For the full supply chain of oil and foodstuffs, transaction, information transmitting between links etc. according to It is carried out according to the intelligent contract made.
Intelligent Contract Model framework is write and is generated contract code as shown in figure 5, the specified treaty content of contract each side, compile It is published to after translating on all nodes of block catenary system, each node verifies the validity of treaty content, and all nodes are logical The whole network casting completion deployment is carried out after crossing common recognition verifying, the contract after deployment is stored in block catenary system, reaches trigger condition every time When can call and run automatically.The data format of some node is verified the intelligent contract-defined interface of calling to execute, and data upload When reach trigger condition contract and start to execute, whether each node verification result correct after being finished, after being verified, area Block catenary system can broadcast the result of execution to each node of the whole network, and the data of upload are deposited into newest data block In.
Step 5: forming agri-food supply chains block serobila system structure.
In agri-food supply chains field, the framework of block chain can be divided into: data Layer, network layer, common recognition layer, contract layer and application Layer.As shown in Figure 6.Data Layer includes that different enterprises upload the food related data verified by common recognition mechanism, is stored in distribution The data block of database, data block is connected in chronological order constitutes block catenary system.By specific hash algorithm and Merkle data tree structure, by deposits such as the Food circulation data, the transaction data that are received in a period of time with timestamp and The data block of root cryptographic Hash;Network layer encapsulates networking mode (P2P network) and data authentication mechanism of block catenary system etc. Element;Common recognition layer is built a consensus mechanism, is known together algorithm comprising PoW, PoS, BFT, PBFT etc., alliance's block linkwork of field of food System, realizes each node needle using share authorisation verification (DPoS) and practical Byzantine failure tolerance algorithm (PBFT) more agreed with etc. The validity of food data is reached common understanding;Contract layer encapsulates the contract script generation that each node executes on the agri-food supply chains of foundation Code, the execution of the intelligent contract based on block chain execute automatically when reaching expected trigger condition;Application layer includes food supply Each enterprise client of chain and user and supervision department carry out the client of retrospect inquiry.
Embodiment 1:
By carrying out research study on the spot to Hebei flour mill, the data of each production link are obtained, this grain and oil is eaten Product full supply chain is credible retrospect model feasibility carry out analysis verifying.Using the credible retrospect model of oil and foodstuffs full supply chain as core The heart builds the credible retrospect prototype system framework of oil and foodstuffs full supply chain according to the flour mill is practical, including oil and foodstuffs P2P network, cloud database and the traceability system groups of clients that data collection station, the distributed node of full supply chain link are constituted At as shown in Figure 7.The flour mill is related to the complete supply chain link sold from harvesting wheat to flour, comprising harvesting wheat, does Dry working process, storage, flour processing, packaging, storage, Product transport and sale etc..Since flour mill's intermediate links are examined It is low, not tight to check on to look into dynamics, and enterprises operation violation, interests manage not in place, final milling product caused by driving There are quality problems, in addition the data from production to sale are excessively huge, it is difficult to carry out data query, defective in quality is a certain Batch products can not navigate to specific link, can not precise responsibilities main body, caused by consequence be seriously but difficult to solve.
In conjunction with the credible retrospect model of oil and foodstuffs full supply chain provided by the invention and system architecture, it is complete to build oil and foodstuffs The prototype system for retrospect that supply chain is credible, as shown in figure 8, providing solution for the above problem.
Prototype system is made of front end webpage, server, cloud database and block chain network.Front end webpage uses front end language Speech (HTML, CSS, JavaScript) is simultaneously aided with Bootstrap+AngularJS Development of Framework, server section by WebService technology realizes that block chain network is developed based on Hyperledger Fabric Open Framework.In data input ring Section, uploads product relevant test data, and when data format is legal, database is written after verifying.Harvesting wheat it Afterwards, test lot product data make unique product IDs to block catenary system according to the present invention, and product IDs follow this batch to produce The production and processing of product requires to be passed to next link, and processing, storage, logistics and sales section scan the product batch of a upper link Subcategory number, and information is uploaded into block catenary system.If artificially being modified in processing link traceability code, due to traceability code according to The cryptographic Hash of product batches code and data block obtains, therefore can not be with the Kazakhstan in database when storing in a warehouse link scanning traceability code Uncommon value corresponds to, and cannot be verified by common recognition in block catenary system, data can not be stored in database.So appointing in supply chain link What data tampering behavior can be all detected, and guarantee the authentic and valid of data.Finally when detecting, pass through traceability system client Input traceability code carries out the total data that inquiry obtains product, as shown in Figure 9, Figure 10, since storage link processing is improper, causes Product quality is not up to standard, can be with precise positioning to the storage link to go wrong by data comparison.
If the inspection of flour occurs slipping and defective product is not arrived by supervision department's sampling observation, defective product is sold to consumption It is whether consistent by retrospect contrast product ID in person's hand, if the product IDs in consumer's hand by distorting, are tracing results page It can position rapidly to corresponding problem Risk factor, recall defective product to reduce damage sequence and punish to owner, Reinforce the quality safety for guaranteeing the supervision of problem Risk factor milling product.Therefore oil and foodstuffs full supply chain of the invention can Letter retrospect model come realize product traceability be it is feasible, all links of flour mill's products in circulation can be covered, can ensure grain and oil eat Quality and consumers' rights and interests and health.

Claims (3)

1. a kind of oil and foodstuffs full supply chain based on block chain is credible retrospect model, using block chain and cloud database purchase number According to, which is characterized in that the model has five class data input nodes, respectively corresponds the life in oil and foodstuffs full supply chain It produces, processing, five storage, logistics and sale links;The basic data of input node input is under conditions of meeting intelligent contract It uploads storage and arrives cloud database;The basic data that input node is inputted in moment t, by the Product labelling data one with oil and foodstuffs It rises, by Hash operation, obtains a root cryptographic Hash, be stored in a data block, which uploads in block chain simultaneously It broadcasts to the block chain node of the whole network, all block chain nodes of the whole network are by being stored in newest data field after common recognition process verification Block;Obtained cryptographic Hash is the cryptographic Hash of data block, for 16 codings, is added before the cryptographic Hash of data block 16 codings of corresponding product batch, form 32 identification codes;The deposit of 32 bit identification codes corresponding to each data block is special Door is used to store in the data block of identification code;Identification code i.e. traceability code;Data block is connected in chronological order to be constituted Block catenary system;
In retrospect, according to preceding 16 codings of the traceability code of input, navigates to and belong in the data block of storage identification code The identification code of same batch products, and then all links being stored in block chain are traced back to according to rear 16 codings of identification code Data.
2. model according to claim 1, which is characterized in that uploaded in the block body of the data block comprising node Basic data summary info;Be packaged in the block head of data block parent block cryptographic Hash, current block version number, when Between stamp, current block cryptographic Hash.
3. a kind of oil and foodstuffs full supply chain based on block chain is credible retrospect model construction method, which is characterized in that including Following steps:
Step 1, oil and foodstuffs full supply chain is divided into five production, processing, storage, logistics and sale links;
Step 2, using each link as an input node of block chain, the basic data of input node input needs to meet intelligence Energy treaty conditions can just be uploaded to cloud database;
Basic data is uploaded to the process of cloud database are as follows: carries out Hash operation to basic data to obtain data summarization, passes through Asymmetric Cryptography generates public key and private key, is encrypted to data summarization by private key, and encrypted data summarization is as label Name value uploads to cloud database together with basic data, and cloud database is decrypted the signature value received by public key, will solve Close obtained data summarization is compared with to basic data with the data summarization that same Hash operation obtains, if comparing result one Cause then proves that data are true and reliable and is not tampered that basic data is stored in cloud database;If result is inconsistent to illustrate that data are passed through It distorts, not by verifying, cloud database can not be stored in;
Step 3, the basic data of input node input, which is saved in a data block, is added in block chain;
To the basic data for meeting intelligent treaty conditions, together with the Product labelling data of oil and foodstuffs, by Hash operation, obtain To one 16 root cryptographic Hash, as the final hash value of data block, and plus 16 codings of product batches, 32 are formed The traceability code of position;32 traceability codes corresponding to each data block are stored in special data block;
The summary info of the basic data of node upload is recorded in the block body of data block, is packaged with parent area in block head Block cryptographic Hash, current block version number, timestamp and current block cryptographic Hash;
Step 4, intelligent Contract Model is established, format, type and the length of the basic data that each node uploads are arranged;
When establishing intelligent Contract Model, contract each side specifies treaty content, writes and generates contract code, be published to area after compiling On all nodes of block catenary system, each node verifies the validity of treaty content, and all nodes pass through common recognition verifying The whole network casting is carried out afterwards and completes deployment, and the contract after deployment is stored in block catenary system, calls automatically when reaching trigger condition every time And it runs;When node carries out basic data upload, reach trigger condition, intelligent contract-defined interface is called to test to execute data format Card, after being verified, the result of execution is broadcasted to each node of the whole network, and the basic data of upload is deposited by block catenary system Enter into newest data block.
CN201910798116.7A 2019-08-27 2019-08-27 The credible retrospect model of oil and foodstuffs full supply chain and construction method based on block chain Pending CN110516965A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910798116.7A CN110516965A (en) 2019-08-27 2019-08-27 The credible retrospect model of oil and foodstuffs full supply chain and construction method based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910798116.7A CN110516965A (en) 2019-08-27 2019-08-27 The credible retrospect model of oil and foodstuffs full supply chain and construction method based on block chain

Publications (1)

Publication Number Publication Date
CN110516965A true CN110516965A (en) 2019-11-29

Family

ID=68628138

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910798116.7A Pending CN110516965A (en) 2019-08-27 2019-08-27 The credible retrospect model of oil and foodstuffs full supply chain and construction method based on block chain

Country Status (1)

Country Link
CN (1) CN110516965A (en)

Cited By (41)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110706001A (en) * 2019-09-24 2020-01-17 江西景旺精密电路有限公司 Tracing method, device, system, equipment and storage medium for PCB product
CN111080213A (en) * 2020-01-02 2020-04-28 航天信息股份有限公司 Container grain sealing inspection coding block chain data acquisition method and system
CN111080212A (en) * 2020-01-02 2020-04-28 航天信息股份有限公司 Container grain historical logistics code-assigning block chain data acquisition method and system
CN111091399A (en) * 2020-03-24 2020-05-01 四川百酒堂科技有限公司 Block chain-based fidelity traceability method and system for fast-selling goods
CN111092896A (en) * 2019-12-23 2020-05-01 北京工商大学 Food traceability distributed data synchronization method based on optimized PAXOS
CN111126869A (en) * 2019-12-30 2020-05-08 航天信息股份有限公司 Workload accounting method and system in grain circulation process
CN111145025A (en) * 2019-12-30 2020-05-12 北京工商大学 Supply chain data double-chain storage optimization method based on block chain
CN111178912A (en) * 2019-12-30 2020-05-19 航天信息股份有限公司 Grain quality tracing method and system based on block chain
CN111242530A (en) * 2020-01-02 2020-06-05 航天信息股份有限公司 Container grain storage state code-assigning block chain data acquisition equipment and method
CN111369267A (en) * 2020-03-05 2020-07-03 广州宏算信息科技有限公司 Fruit and vegetable agricultural product tracing method, device and system based on block chain and storage medium
CN111400779A (en) * 2020-01-07 2020-07-10 李蕴光 High-dimensional data encryption method and system
CN111429153A (en) * 2020-03-20 2020-07-17 南京优物链科技有限公司 Traceability management system based on block chain technology
CN111445269A (en) * 2020-03-30 2020-07-24 深圳前海量子云码科技有限公司 Industrial hemp traceability supervision method, system, equipment and storage medium
CN111695851A (en) * 2020-05-11 2020-09-22 宁波奥克斯电气股份有限公司 Material management method based on block chain
CN111833077A (en) * 2020-07-14 2020-10-27 南开大学 Food anti-counterfeiting method based on block chain technology and gene sequencing technology
CN112035469A (en) * 2020-08-27 2020-12-04 贵州大学 Food data tracing method based on block chain
CN112150149A (en) * 2020-09-24 2020-12-29 深圳市中装智链科技有限公司 Data tracing method and device based on block chain, computer equipment and storage medium
CN112184023A (en) * 2020-09-29 2021-01-05 山东浪潮通软信息科技有限公司 Grain and oil quality tracing method and device and readable medium
CN112200690A (en) * 2020-10-27 2021-01-08 西安纸贵互联网科技有限公司 Ship quality traceability system based on block chain
CN112288451A (en) * 2020-11-26 2021-01-29 山东特检鲁安工程技术服务有限公司 Food quality safety tracing system and tracing method
CN112380555A (en) * 2020-11-27 2021-02-19 南京知麦信息科技有限公司 Agricultural product traceability information chaining method based on block chain intelligent contract
CN112435042A (en) * 2020-11-30 2021-03-02 重庆文理学院 Supply chain service platform based on block chain
CN112435038A (en) * 2020-10-13 2021-03-02 申聪 Food safety monitoring system based on block chain network
CN112488271A (en) * 2020-12-16 2021-03-12 北京鑫创佳业科技股份有限公司 Product tracing code and generation method and generation system thereof, and product tracing method
CN112632060A (en) * 2020-08-31 2021-04-09 上海墨珩网络科技有限公司 Block chain based hierarchical traceability batch information recording method and device
CN112819483A (en) * 2020-12-30 2021-05-18 杭州趣链科技有限公司 Block chain-based product traceability management method and device and related equipment
CN112950227A (en) * 2021-03-02 2021-06-11 北京交通大学 Block chain-based information tracing system and method for Chinese-European-land-sea express line cross-country supply chain
CN112967075A (en) * 2021-03-29 2021-06-15 北京工商大学 DEMATEL-ISM (DeModel-industrial scientific medical science) -based grain and oil quality safety block chain risk analysis and optimization method
CN112967074A (en) * 2021-03-29 2021-06-15 北京工商大学 Block chain driven rice supply chain information supervision model construction method
CN113160888A (en) * 2020-01-07 2021-07-23 中芯未来(北京)科技有限公司 DNA synthetic sequence supervision method based on block chain
CN113256226A (en) * 2021-06-28 2021-08-13 浙江数秦科技有限公司 Agricultural product box coding system based on block chain
CN113469713A (en) * 2021-07-21 2021-10-01 贵州大学 Block chain-based food data anti-counterfeiting tracing method and system
CN113487337A (en) * 2021-07-13 2021-10-08 中国联合网络通信集团有限公司 Product information storage method, tracing method and block chain platform
CN113538019A (en) * 2021-09-14 2021-10-22 支付宝(杭州)信息技术有限公司 Food traceability information evidence storing method and device
CN113888064A (en) * 2021-12-09 2022-01-04 航天云网数据研究院(广东)有限公司 Product quality tracing method, device and equipment in food and beverage industry
CN114520747A (en) * 2022-04-21 2022-05-20 山东省计算中心(国家超级计算济南中心) Data security sharing system and method taking data as center
CN115983726A (en) * 2023-03-21 2023-04-18 厦门微亚智能科技有限公司 Enterprise product quality closed-loop tracing management system
CN117195298A (en) * 2023-09-18 2023-12-08 淮阴工学院 Cold chain product tracing method and device based on block chain mixed consensus
CN117575630A (en) * 2023-11-23 2024-02-20 农业农村部科技发展中心 Block chain-based biotechnological product traceability system construction method
CN117574409A (en) * 2024-01-15 2024-02-20 北京易油互联科技有限公司 Chemical product transportation data encryption method
CN117195298B (en) * 2023-09-18 2024-05-17 淮阴工学院 Cold chain product tracing method and device based on block chain mixed consensus

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105608588A (en) * 2016-01-04 2016-05-25 布比(北京)网络技术有限公司 Tracing record processing method and apparatus
US20180284093A1 (en) * 2017-03-29 2018-10-04 Innit International S.C.A. Trusted Food Traceability System and Method and Sensor Network
CN109034833A (en) * 2018-06-16 2018-12-18 复旦大学 A kind of product back-tracing information management system and method based on block chain
CN109360000A (en) * 2018-08-28 2019-02-19 顺丰科技有限公司 A kind of system that commodity counterfeit prevention is traced to the source, method, equipment and storage medium
CN109377244A (en) * 2018-10-24 2019-02-22 武汉珞樱联创信息科技有限公司 A kind of quick traceability system of food and method based on multichain interconnection block chain network
CN109872019A (en) * 2017-12-05 2019-06-11 航天信息股份有限公司 Agricultural product quality and safety retroactive method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105608588A (en) * 2016-01-04 2016-05-25 布比(北京)网络技术有限公司 Tracing record processing method and apparatus
US20180284093A1 (en) * 2017-03-29 2018-10-04 Innit International S.C.A. Trusted Food Traceability System and Method and Sensor Network
CN109872019A (en) * 2017-12-05 2019-06-11 航天信息股份有限公司 Agricultural product quality and safety retroactive method and system
CN109034833A (en) * 2018-06-16 2018-12-18 复旦大学 A kind of product back-tracing information management system and method based on block chain
CN109360000A (en) * 2018-08-28 2019-02-19 顺丰科技有限公司 A kind of system that commodity counterfeit prevention is traced to the source, method, equipment and storage medium
CN109377244A (en) * 2018-10-24 2019-02-22 武汉珞樱联创信息科技有限公司 A kind of quick traceability system of food and method based on multichain interconnection block chain network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
欧阳丽炜: "智能合约:架构及进展", 《自动化学报》 *

Cited By (52)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110706001A (en) * 2019-09-24 2020-01-17 江西景旺精密电路有限公司 Tracing method, device, system, equipment and storage medium for PCB product
CN111092896A (en) * 2019-12-23 2020-05-01 北京工商大学 Food traceability distributed data synchronization method based on optimized PAXOS
CN111092896B (en) * 2019-12-23 2022-08-26 北京工商大学 Food source tracing distributed data synchronization method based on optimized PAXOS
CN111145025B (en) * 2019-12-30 2023-07-14 北京工商大学 Supply chain data double-chain storage optimization method based on blockchain
CN111126869A (en) * 2019-12-30 2020-05-08 航天信息股份有限公司 Workload accounting method and system in grain circulation process
CN111145025A (en) * 2019-12-30 2020-05-12 北京工商大学 Supply chain data double-chain storage optimization method based on block chain
CN111178912A (en) * 2019-12-30 2020-05-19 航天信息股份有限公司 Grain quality tracing method and system based on block chain
CN111126869B (en) * 2019-12-30 2024-03-15 航天信息股份有限公司 Workload accounting method and system for grain circulation process
CN111080213A (en) * 2020-01-02 2020-04-28 航天信息股份有限公司 Container grain sealing inspection coding block chain data acquisition method and system
CN111080212A (en) * 2020-01-02 2020-04-28 航天信息股份有限公司 Container grain historical logistics code-assigning block chain data acquisition method and system
CN111242530A (en) * 2020-01-02 2020-06-05 航天信息股份有限公司 Container grain storage state code-assigning block chain data acquisition equipment and method
CN111400779A (en) * 2020-01-07 2020-07-10 李蕴光 High-dimensional data encryption method and system
CN113160888B (en) * 2020-01-07 2024-01-19 中芯未来(北京)科技有限公司 DNA synthesis sequence supervision method based on block chain
CN113160888A (en) * 2020-01-07 2021-07-23 中芯未来(北京)科技有限公司 DNA synthetic sequence supervision method based on block chain
CN111369267A (en) * 2020-03-05 2020-07-03 广州宏算信息科技有限公司 Fruit and vegetable agricultural product tracing method, device and system based on block chain and storage medium
CN111429153A (en) * 2020-03-20 2020-07-17 南京优物链科技有限公司 Traceability management system based on block chain technology
CN111091399A (en) * 2020-03-24 2020-05-01 四川百酒堂科技有限公司 Block chain-based fidelity traceability method and system for fast-selling goods
CN111445269A (en) * 2020-03-30 2020-07-24 深圳前海量子云码科技有限公司 Industrial hemp traceability supervision method, system, equipment and storage medium
CN111695851A (en) * 2020-05-11 2020-09-22 宁波奥克斯电气股份有限公司 Material management method based on block chain
CN111695851B (en) * 2020-05-11 2023-10-27 宁波奥克斯电气股份有限公司 Material management method based on block chain
CN111833077A (en) * 2020-07-14 2020-10-27 南开大学 Food anti-counterfeiting method based on block chain technology and gene sequencing technology
CN112035469A (en) * 2020-08-27 2020-12-04 贵州大学 Food data tracing method based on block chain
CN112632060A (en) * 2020-08-31 2021-04-09 上海墨珩网络科技有限公司 Block chain based hierarchical traceability batch information recording method and device
CN112632060B (en) * 2020-08-31 2022-10-11 上海墨珩网络科技有限公司 Block chain based hierarchical traceability batch information recording method and device
CN112150149A (en) * 2020-09-24 2020-12-29 深圳市中装智链科技有限公司 Data tracing method and device based on block chain, computer equipment and storage medium
CN112184023A (en) * 2020-09-29 2021-01-05 山东浪潮通软信息科技有限公司 Grain and oil quality tracing method and device and readable medium
CN112435038A (en) * 2020-10-13 2021-03-02 申聪 Food safety monitoring system based on block chain network
CN112200690A (en) * 2020-10-27 2021-01-08 西安纸贵互联网科技有限公司 Ship quality traceability system based on block chain
CN112288451A (en) * 2020-11-26 2021-01-29 山东特检鲁安工程技术服务有限公司 Food quality safety tracing system and tracing method
CN112380555A (en) * 2020-11-27 2021-02-19 南京知麦信息科技有限公司 Agricultural product traceability information chaining method based on block chain intelligent contract
CN112380555B (en) * 2020-11-27 2024-03-12 南京知麦信息科技有限公司 Agricultural product traceability information uplink method based on blockchain intelligent contract
CN112435042A (en) * 2020-11-30 2021-03-02 重庆文理学院 Supply chain service platform based on block chain
CN112488271A (en) * 2020-12-16 2021-03-12 北京鑫创佳业科技股份有限公司 Product tracing code and generation method and generation system thereof, and product tracing method
CN112819483A (en) * 2020-12-30 2021-05-18 杭州趣链科技有限公司 Block chain-based product traceability management method and device and related equipment
CN112950227A (en) * 2021-03-02 2021-06-11 北京交通大学 Block chain-based information tracing system and method for Chinese-European-land-sea express line cross-country supply chain
CN112967074A (en) * 2021-03-29 2021-06-15 北京工商大学 Block chain driven rice supply chain information supervision model construction method
CN112967074B (en) * 2021-03-29 2023-08-22 北京工商大学 Block chain driven rice supply chain information supervision model construction method
CN112967075B (en) * 2021-03-29 2023-09-01 北京工商大学 Grain and oil quality safety block chain risk analysis and optimization method based on DEMATEL-ISM
CN112967075A (en) * 2021-03-29 2021-06-15 北京工商大学 DEMATEL-ISM (DeModel-industrial scientific medical science) -based grain and oil quality safety block chain risk analysis and optimization method
CN113256226A (en) * 2021-06-28 2021-08-13 浙江数秦科技有限公司 Agricultural product box coding system based on block chain
CN113487337A (en) * 2021-07-13 2021-10-08 中国联合网络通信集团有限公司 Product information storage method, tracing method and block chain platform
CN113487337B (en) * 2021-07-13 2024-02-09 中国联合网络通信集团有限公司 Product information storage method, tracing method and blockchain platform
CN113469713A (en) * 2021-07-21 2021-10-01 贵州大学 Block chain-based food data anti-counterfeiting tracing method and system
CN113538019A (en) * 2021-09-14 2021-10-22 支付宝(杭州)信息技术有限公司 Food traceability information evidence storing method and device
CN113888064A (en) * 2021-12-09 2022-01-04 航天云网数据研究院(广东)有限公司 Product quality tracing method, device and equipment in food and beverage industry
CN114520747A (en) * 2022-04-21 2022-05-20 山东省计算中心(国家超级计算济南中心) Data security sharing system and method taking data as center
CN115983726A (en) * 2023-03-21 2023-04-18 厦门微亚智能科技有限公司 Enterprise product quality closed-loop tracing management system
CN117195298A (en) * 2023-09-18 2023-12-08 淮阴工学院 Cold chain product tracing method and device based on block chain mixed consensus
CN117195298B (en) * 2023-09-18 2024-05-17 淮阴工学院 Cold chain product tracing method and device based on block chain mixed consensus
CN117575630A (en) * 2023-11-23 2024-02-20 农业农村部科技发展中心 Block chain-based biotechnological product traceability system construction method
CN117574409A (en) * 2024-01-15 2024-02-20 北京易油互联科技有限公司 Chemical product transportation data encryption method
CN117574409B (en) * 2024-01-15 2024-04-12 北京易油互联科技有限公司 Chemical product transportation data encryption method

Similar Documents

Publication Publication Date Title
CN110516965A (en) The credible retrospect model of oil and foodstuffs full supply chain and construction method based on block chain
Lin et al. Blockchain and IoT based food traceability for smart agriculture
Wang et al. Smart contract-based agricultural food supply chain traceability
Yang et al. A trusted blockchain-based traceability system for fruit and vegetable agricultural products
Xiong et al. Blockchain technology for agriculture: applications and rationale
CN108629602A (en) A kind of food safety management System and method for based on block chain technology
CN103530808A (en) Whole-process tracing system for quality safety of fruit logistics
CN109214750A (en) A kind of method and system based on Internet of Things and block chain technical management agricultural product
Khan et al. ShrimpChain: A blockchain-based transparent and traceable framework to enhance the export potentiality of Bangladeshi shrimp
Kler et al. Optimization of meat and poultry farm inventory stock using data analytics for green supply chain network
Zhang et al. Research on cold chain logistics traceability system of fresh agricultural products based on blockchain
Zhang et al. A traceability public service cloud platform incorporating IDcode system and colorful QR code technology for important product
Li et al. An exploratory study on the design and management model of traditional chinese medicine quality safety traceability system based on blockchain technology
CN109492949A (en) The supervisory systems that calm and peaceful Gallus domesticlus brisson, calm and peaceful black-bone chicken egg conservation are traced to the source
Srikanth et al. Block chain enable for Smallholder’s farmer’s Crop Transaction Using Peer-to-Peer
Chuntang et al. Using blockchain and smart contract for traceability in agricultural products supply chain
Adow et al. Analysis of agriculture and food supply chain through blockchain and IoT with light weight cluster head
Singh et al. Application of blockchain technology in agri-food supply chains: opportunities and challenges
Ling et al. Research on Intelligent Supervision and Application System of Food Traceability Based on Blockchain and Artificial intelligence
Xie et al. Agricultural product traceability system based on blockchain technology
Zarpelão et al. On the use of blockchain for agrifood traceability
CN114219510A (en) Agricultural product traceability system based on Internet of things and block chain
CN114298721A (en) Portable credible device of tracing to source towards chinese-medicinal material
Chu Optimization method of fresh agricultural products cross-border e-commerce supply chain based on blockchain technology
Liu et al. Modeling and efficiency analysis of blockchain agriculture products E-commerce cold chain traceability system based on Petri net

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