CN108805585B - Distributed commodity data storage system based on block chain, circulation and tracing method - Google Patents

Distributed commodity data storage system based on block chain, circulation and tracing method Download PDF

Info

Publication number
CN108805585B
CN108805585B CN201810524649.1A CN201810524649A CN108805585B CN 108805585 B CN108805585 B CN 108805585B CN 201810524649 A CN201810524649 A CN 201810524649A CN 108805585 B CN108805585 B CN 108805585B
Authority
CN
China
Prior art keywords
block chain
tracing
code
commodity
traceability
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810524649.1A
Other languages
Chinese (zh)
Other versions
CN108805585A (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.)
Guangzhou Zhongke Yide Technology Co Ltd
Original Assignee
Guangzhou Zhongke Yide 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 Guangzhou Zhongke Yide Technology Co ltd filed Critical Guangzhou Zhongke Yide Technology Co ltd
Priority to CN201810524649.1A priority Critical patent/CN108805585B/en
Publication of CN108805585A publication Critical patent/CN108805585A/en
Application granted granted Critical
Publication of CN108805585B publication Critical patent/CN108805585B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products

Abstract

The invention discloses a distributed commodity data storage system based on a block chain, a circulation and tracing method, and relates to the field of data tracing; the system is deployed in a alliance chain mode and comprises a plurality of super nodes and a plurality of common nodes; the invention solves the problem that the transaction data in the current commodity production and circulation chain is not transparent, and reduces trust friction between enterprises and between the enterprises and supervision departments by utilizing the characteristic that a block chain can not be tampered; the problem of high storage pressure of a centralized tracing platform is solved, detailed information of production and circulation links is dispersedly stored in a database of each enterprise node, and meanwhile, the data are guaranteed not to be tampered by enterprises without authorization through hash codes; the problem that supply chain traceability data is incomplete and responsibility is difficult to locate is solved, traceability codes are used as cores, box code correlation, mobile payment and other means are combined, all information in the whole life cycle is recorded, responsibility parties are rapidly located when quality problems occur, and recall notifications are sent to relevant enterprises and consumers.

Description

Distributed commodity data storage system based on block chain, circulation and tracing method
Technical Field
The invention relates to the field of data tracing, in particular to a distributed commodity data storage system based on a block chain and a circulation and tracing method.
Background
With the increasingly deepening of globalization and division of labor, the production and circulation chains of modern commodities are continuously prolonged, and the characteristics of zero fragmentation, complication, geographical decentralization and the like appear, so that great challenges are brought to supply chain management, production circulation supervision and product tracing. This situation leads to opacity and information asymmetry in the production and distribution chain, causing distrust and friction between the chain members. In addition, the range of product production and circulation chain is extremely wide, supervision is weak, and the public lacks a reliable way to verify the quality and the source of the commodity. For such current situation, there are two similar schemes currently available:
the first scheme is as follows:
a commodity tracing platform is established by the government, enterprises in the jurisdiction are required to report production and circulation data regularly and are stored in a government data center in a centralized mode, and when tracing information of one commodity needs to be inquired, related records are directly called according to the batch or production date of the commodity to form a tracing chain.
Scheme II:
a large enterprise self-establishes a commodity tracing system and requires cooperation of upstream and downstream cooperative enterprises. The traceability system registers a unique traceability code for each commodity, information such as production raw material batches, circulation chains, temperature and humidity in the transportation process is bound to the traceability code in the production and circulation link through code scanning, and a consumer can identify the authenticity information of the commodity when scanning the code and know detailed traceability data in the commodity production and circulation process.
The technical disadvantages of the above scheme are as follows:
1. data cannot be guaranteed not to be tampered, and authenticity of the traced data is difficult to verify;
2. when problems occur, liability parties are difficult to locate, and the situation that the liability parties can not prove by deducting deniability is often encountered;
3. the tracing code has the problem of 'information island', the uniqueness of the tracing code cannot be ensured, and a production enterprise can generate a large amount of same tracing codes;
4. the centralized tracing platform is high in construction cost and needs a large amount of data storage space;
5. the anti-attack capability is weak, and once the central server is attacked by a hacker, the whole system is paralyzed;
6. the commodity tracking chain does not reach the consumers of the terminal, and the recall is difficult when the quality problem occurs.
Disclosure of Invention
The invention provides a distributed commodity data storage system based on a block chain, a circulation and tracing method, aiming at the technical defects, the ideas of the block chain and the distributed data storage are introduced, a block chain alliance tracing system is established by organically integrating data resources of supervision departments, industry associations, production enterprises and circulation enterprises, all parties of the whole supply chain from raw materials to retailers participate in information entry and maintenance of the block chain together, and the data are ensured to be real, ordered and not to be forged. The forward traceable, reverse traceable and risk controllable functions are realized, products can be recalled, reasons can be found, responsibility can be found when quality safety problems occur, the responsibility of a quality safety main body is practically implemented, and a credible, transparent and efficient collaborative distributed industry alliance ecology is constructed.
In order to achieve the above object, the present invention provides a distributed commodity data storage system based on a block chain, which includes a plurality of super nodes and a plurality of common nodes;
the super node comprises: the system is used for examining and approving the joining qualification of a new member of the alliance in the block chain and verifying the validity of the transaction submitted by the member, storing the basic data of the common node in the block chain and the hash code generated according to the key control link information and reported by the common node, and maintaining an unencrypted account book for generating a traceability chain;
when a tracing request exists, the method is also used for verifying the consistency of the stored hash code and the hash code corresponding to the key control link information reported by the common node, and forming the key control link information and the tracing chain into complete commodity tracing information;
the common node comprises: the method comprises the steps that data information of the whole block chain is obtained and verified in an authorized mode, transaction records of the block chain are checked through a secret key, new transaction data are added into the block chain after the super node is verified, key control link information in a production and circulation link is recorded according to the requirements of laws and regulations, and a hash code is generated and reported to the super node;
and when a tracing request exists, reporting the recorded key control link information to the super node.
Preferably, the corresponding members of the super node at least comprise government regulatory departments and industry associations; the common nodes at least comprise a production enterprise, a raw material supplier, a distributor and a retailer.
Preferably, the super node includes:
an approval module: the system is used for examining and approving the joining qualification of a new member of the alliance in the blockchain and verifying the legality of the member submitting transaction;
account book module: the system comprises a node, a block chain and a source chain, wherein the node is used for generating an encrypted account book according to a transaction record of a common node, broadcasting the encrypted account book to the block chain and maintaining an unencrypted account book for generating the source chain;
a storage module: the hash code is used for storing basic data of a common node in a block chain and is generated according to key control link information and reported by the common node;
a tracing module: the system is used for receiving a traceability request of a traceability person, splicing traceability chains in transaction records of an account book according to time, verifying the consistency of the stored hash codes and the hash codes corresponding to the key control link information reported by the common node, and forming complete commodity traceability information by the key control link information and the traceability chains to send the commodity traceability information to the traceability person.
Preferably, the common node includes:
a data acquisition module: the method comprises the steps of acquiring and checking data information in the whole block chain;
a data reporting module: the system is used for adding new block data into the block chain after the super node verification;
a storage module: the system is used for storing key control link information;
a hash code generation module: and the hash code is generated according to the key control link information and is reported to the super node.
Preferably, the common node further includes:
the encryption signature module: for encrypting and signing the transaction record;
trace back code and case code generation module: the tracing code is used for generating a tracing code of the commodity and a box code of the packing box;
a binding module: the box code scanning and binding device is used for scanning and binding the box code corresponding to the packing box and the tracing code corresponding to the commodity in the box body according to the commodity packing condition.
Preferably, the key control link information at least includes a raw material detection report, a finished product detection report and a used raw material batch number of each batch.
The invention also provides a distributed commodity circulation method based on the block chain, which comprises the following steps:
s10, generating a hash code by the common node of the production enterprise in the block chain according to the key control link information, and generating a commodity tracing code and a packing box code;
s20, the super node in the block chain saves the hash code and verifies the tracing code and the box code;
s30, according to the commodity packing condition, scanning and binding box codes corresponding to packing boxes and tracing codes corresponding to commodities in a box body, and storing the association relationship between the box codes and the tracing codes into super nodes in a block chain;
s40, encrypting and signing the transaction record by the common node of the production enterprise in the block chain, and verifying the validity of the verification by the super node;
s50, scanning box codes by common nodes of circulation enterprises in the block chain to determine the goods feeding, and adding an encrypted transaction record to the super node and broadcasting the encrypted transaction record;
s60, scanning the sold commodity tracing code by the common nodes of the retailers in the block chain to generate an order, and associating the payment account number with the commodity tracing code and storing the payment account number and the commodity tracing code to the super node in the block chain when the consumer pays.
The invention also provides a distributed commodity tracing method based on the block chain, which comprises the following steps:
s100, scanning a tracing code of a commodity by a tracer, and initiating a tracing request to a super node;
s200, inquiring a box code to which the tracing code belongs in the circulation link in the record;
s300, searching circulation link transaction records corresponding to the box codes in the transaction records;
s400, sequentially splicing the super nodes into a tracing chain according to time in the circulation link transaction record;
s500, inquiring the production enterprise of the commodity through the tracing code, and initiating a key control link information inquiry request to a common node of the production enterprise;
s600, reporting the recorded key control link information to a super node, and verifying whether the hash value of the reported information is consistent with that recorded before by the super node;
and S700, combining the production key control link information with the traceability chain to form complete commodity traceability information, and returning the complete commodity traceability information to a traceability person.
The invention provides a distributed commodity data storage system based on a block chain and a circulation and tracing method, wherein the distributed commodity data storage system comprises three key contents, namely: block chaining, distributed storage, and tracing methods; the block chain solves the problem that transaction data in the current commodity production and circulation chain are not transparent, the credibility and authority of the data are ensured by means of the characteristic that the block chain can not be tampered, and trust friction between enterprises and between the enterprises and supervision departments is reduced; the distributed storage solves the problem of high storage pressure of a centralized tracing platform, the detailed information of the production and circulation links is dispersedly stored in the database of each enterprise node, and meanwhile, the data are ensured not to be tampered by enterprises through hash codes; finally, the tracing method provided by the invention solves the problems of incomplete supply chain tracing data and difficult positioning of responsibility, takes the tracing code as a core, and records all relevant information of the commodity from raw materials to consumers in the whole life cycle by combining means such as box code association, mobile payment and the like, so that when the quality problem occurs, a responsible party can be quickly positioned, and a recall notice is sent to relevant enterprises and consumers.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
FIG. 1 is a schematic structural diagram of a super node and a normal node according to a first embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a super node and a normal node according to a second embodiment of the present invention;
FIG. 3 is a flowchart illustrating a distributed commodity circulation method based on blockchains according to a fourth embodiment of the present invention;
FIG. 4 is a flow chart of signal interaction between nodes in a fourth embodiment of the present invention;
fig. 5 is a flowchart of a distributed commodity tracing method based on a blockchain according to a fifth embodiment of the present invention;
fig. 6 is a flowchart of signal interaction of each node of the commodity tracing in the fifth embodiment of the present invention;
FIG. 7 is a block data structure diagram according to the present invention;
the implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that, if directional indications (such as up, down, left, right, front, and back … …) are involved in the embodiment of the present invention, the directional indications are only used to explain the relative positional relationship between the components, the movement situation, and the like in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indications are changed accordingly.
In addition, if there is a description of "first", "second", etc. in an embodiment of the present invention, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
The invention provides a distributed commodity data storage system based on a block chain; the invention adopts a mode of alliance chain for deployment, government supervision departments (quality supervision bureau, food and drug administration, industry and commerce bureau, and the like) and industry associations are super nodes of a block chain, and have approval authority, and each time a new node is brought into the alliance chain, the new node is required to be agreed by the super nodes. The authorized access node is called as a common node, new tracing information block data can be added, the newly added data can be formally added into the chain after the validity of the newly added data is verified by the super node, and the data can not be changed once the chain is linked. The data on the block chain is disclosed to the full alliance members, but because the data is encrypted by the enterprise secret key, each enterprise can only check the own transaction data through the secret key, and therefore the safety of business privacy is guaranteed.
In a first preferred embodiment of the present invention, the system comprises a plurality of super nodes (government regulators and industry associations) and a plurality of regular nodes (manufacturing enterprises, raw material suppliers, distributors and retailers);
the super node comprises: the system is used for examining and approving the joining qualification of a new member of the alliance in the block chain and verifying the validity of the transaction submitted by the member, storing the basic data of the common node in the block chain and the hash code generated according to the key control link information and reported by the common node, and maintaining an unencrypted account book for generating a traceability chain; when a tracing request exists, the method is also used for verifying the consistency of the stored hash code and the hash code corresponding to the key control link information reported by the common node, and forming the key control link information and the tracing chain into complete commodity tracing information;
in the embodiment of the invention, the super node is responsible for approving the joining qualification of the new member of the alliance and verifying whether the transaction submitted by the member is legal. Each super node stores basic data such as basic information of the alliance enterprise, commodity type information, correlation information of the commodity tracing code and the box code and the like. Besides the encrypted account book on the public chain, an unencrypted account book is maintained on the super node, and a traceability chain can be generated through the account book when the public and the supervision personnel perform traceability. In order to save the storage space of the super node, the key control link information in the production and circulation link, such as raw material batches, inspection reports, environmental monitoring data in the transportation process and the like, is stored in a server of an enterprise, the super node only stores hash codes generated by the information, and the hash codes are changed if the enterprise modifies the information without permission.
The common node comprises: the system comprises a super node, a block chain, a data link and a data link, wherein the data link is used for acquiring and verifying data information in the whole block chain, adding new block data into the block chain after the super node is verified, recording key control link information in a production and circulation link according to a regulation requirement, generating a hash code and reporting the hash code to the super node; and when a tracing request exists, reporting the recorded key control link information and the generated hash code to the super node.
In the embodiment of the invention, the production enterprises, raw material suppliers, distributors, retailers and the like which join in the alliance belong to common nodes. The common node has the authority to acquire and check the data information of the whole block chain, but only can check the transaction record of the common node through an enterprise key, the common node can add new block data into the chain block, and the new data is formally added into the block chain after being confirmed by the confirmation super node. The common node needs to record key control link information in a production and circulation link according to the regulation requirement, generate a hash code and report the hash code to the super node.
In a second preferred embodiment of the present invention, as shown in fig. 1, the super node includes:
an approval module: the system is used for examining and approving the joining qualification of a new member of the alliance in the blockchain and verifying the legality of the member submitting transaction;
account book module: the system comprises a node, a block chain and a source chain, wherein the node is used for generating an encrypted account book according to a transaction record of a common node, broadcasting the encrypted account book to the block chain and maintaining an unencrypted account book for generating the source chain;
a storage module: the hash code is used for storing basic data of a common node in the block chain and is generated according to key control link information reported by the common node;
a tracing module: the system is used for receiving a traceability request of a traceability person, splicing traceability chains in transaction records of an account book according to time, verifying the consistency of the stored hash codes and the hash codes corresponding to the key control link information reported by the common node, and forming complete commodity traceability information by the key control link information and the traceability chains to send the commodity traceability information to the traceability person.
The common node comprises:
a data acquisition module: the method comprises the steps of acquiring and checking data information in the whole block chain;
a data reporting module: the system is used for adding new block data into the block chain after the super node verification;
a storage module: the system is used for storing key control link information;
a hash code generation module: and the hash code is generated according to the key control link information and is reported to the super node.
In a third preferred embodiment of the present invention, as shown in fig. 2, the common node further includes:
and an encryption signature module: for encrypting and signing the transaction record;
trace back code and box code generation module: the tracing code is used for generating a tracing code of the commodity and a box code of the packing box;
a binding module: the box code scanning and binding device is used for scanning and binding the box code corresponding to the packing box and the tracing code corresponding to the commodity in the box body according to the commodity packing condition.
The invention also provides a distributed commodity circulation method based on the block chain;
in a fourth preferred embodiment of the present invention, as shown in fig. 3 and 4, the method comprises the following steps:
s10, generating a hash code by the common node of the production enterprise in the block chain according to the key control link information, and generating a commodity tracing code and a packing box code;
in the embodiment of the invention, a production enterprise formulates a production plan, produces commodities according to batches, records key control link information such as raw material detection reports, finished product detection reports, raw material batch numbers and the like of each batch, connects the information in series to generate a hash code, and stores the association relationship between the hash code and the production batch by a super node; a production enterprise generates a certain number of tracing codes and box codes according to batch yield, and a template of the generated codes can be configured by the enterprise in a self-defined way;
s20, the super node in the block chain saves the hash code and verifies the tracing code and the box code;
in the embodiment of the invention, the association relationship between the hash code and the production batch is stored, and the uniqueness and the legality of the tracing code and the box code are verified;
s30, according to the commodity packing condition, scanning and binding box codes corresponding to packing boxes and tracing codes corresponding to commodities filled in the boxes, and storing the association relationship between the box codes and the tracing codes into super nodes in a block chain;
in the embodiment of the invention, the verified traceability codes and box codes are respectively attached to the commodities and the packing boxes by production enterprises, and it is worth mentioning that the box codes can also be not associated with batches, but directly generated in batches before production scheduling and printed on the packing boxes.
The method comprises the following steps that a production enterprise carries out boxing on commodities, and the operation steps during boxing are as follows:
setting the number of commodities put in each box, such as 6;
firstly, scanning the tracing codes of 6 commodities, and then automatically switching the system to a box code scanning mode;
thirdly, scanning the box codes to finish the binding operation;
and fourthly, automatically switching the system back to the tracing code scanning mode, and continuously scanning the next 6 tracing codes.
The whole process does not need any click operation, and binding can be completed only by continuously scanning the codes. And the association relation between the box code and the tracing code is stored in the super node.
S40, encrypting and signing the transaction record by the common node of the production enterprise in the block chain, and verifying the validity of the verification by the super node.
In the embodiment of the invention, a production enterprise fills in a sales order, inputs information such as a client name, a commodity name, a quantity, an amount and the like, scans and inputs a commodity box code corresponding to the sales order, and finally encrypts and signs a transaction record through an enterprise private key, so that a super node verifies the legality of the transaction.
S50, scanning box codes by common nodes of circulation enterprises in the block chain to determine the goods feeding, and adding an encrypted transaction record to the super node and broadcasting the encrypted transaction record;
in the embodiment of the invention, a circulation enterprise fills in a purchase order, scans box codes to complete purchase confirmation, and after two transaction parties complete confirmation, a super node adds an encrypted transaction record on an open block chain and broadcasts the encrypted transaction record to the whole network. Note: the figure omits the multi-stage distribution relation of the circulation link, and in practical application, when the intermediate circulation trader delivers goods to the downstream, the sales order and the scanning box code also need to be filled, and the specific flow is consistent with the sales of the production enterprises.
S60, scanning the sold commodity tracing code by the common nodes of the retailers in the block chain to generate an order, and associating the payment account number with the commodity tracing code and storing the payment account number and the commodity tracing code to the super node in the block chain when the consumer pays.
In the embodiment of the invention, after the commodity arrives at the terminal retailer and is sold on shelves, the retailer scans the tracing code of the commodity selected by the consumer to form an order, if the consumer pays through the mobile terminal, the system pays the association relationship between the account and the commodity tracing code and stores the association relationship in the super node, and if the commodity has quality problems and needs to be recalled, a supervision department can find the consumer who purchases the problem batch according to the records and remind the consumer.
The invention also provides a distributed commodity tracing method based on the block chain,
in a fifth preferred embodiment of the present invention, as shown in fig. 5 and 6, the method comprises the following steps:
s100, scanning a tracing code of a commodity by a tracer (consumer), and initiating a tracing request to a super node;
s200, inquiring a box code to which the tracing code belongs in a circulation link in a record;
in the embodiment of the invention, a tracing request is sent to a super node firstly, and the super node finds a box code to which a tracing code belongs in a circulation link in a tracing code-box code incidence relation table recorded before;
s300, searching circulation link transaction records corresponding to the box codes in the transaction records;
s400, sequentially splicing the super nodes into a tracing chain according to time in the circulation link transaction record;
s500, inquiring the production enterprise of the commodity through the tracing code, and initiating a key control link information inquiry request to a common node of the production enterprise;
s600, reporting the recorded key control link information and the generated hash code to a super node for verification, and verifying whether the hash value of the information returned by the production enterprise is consistent with the hash value recorded before;
and S700, combining the production key control link information with the traceability chain to form complete commodity traceability information, and returning the complete commodity traceability information to the consumer.
In the present invention, as shown in fig. 7, a block chain organizes data in units of blocks, and a block is a data structure for recording transactions. Each block consists of a block header and a block body, and the block header of each block except the created block contains the hash code of the previous block, the timestamp generated by the block, and the mercker root generated from the transaction data in the block body.
The Merck root is the root node of the Merck tree, and assuming that there are 8 transaction records in the block, the Merck root is constructed in the following way:
1. performing hash operation on the transaction records 1-8;
2. connecting two adjacent transaction records in series, and then performing hash operation to obtain 2-1-2-4;
3. repeating the second step to obtain 3-1 and 3-2;
4. repeating the second step to obtain 4-1, namely the mercker root.
The block body comprises a field of transaction amount and a transaction record list. The data fields of the transaction record are designed as follows:
Figure BDA0001675614620000081
Figure BDA0001675614620000091
according to the invention, a block chain transformation experiment is carried out on the basis of a food traceability platform in Guangdong province, transaction data of the traceability platform is obtained in real time through an API (application program interface) and then is encrypted and stored on a block chain, a food traceability block chain with 8 nodes is established at present, the functions of a purchase order, a sales order, a return order query and commodity traceability are realized, under the condition of the height of 1000 thousands of block areas, the concurrency number supported by the block chain APIs is more than 100, the response time is less than 1 second, and the commercial-grade transaction frequency can be met.
In summary, the transaction record of the present invention is written into the blockchain and then is published to all the federation members, each node in the federation keeps a complete ledger, and entries in the ledger can only be added, and cannot be tampered and deleted. The data in the public account book is encrypted, and enterprises can only check the transaction records of the enterprises through the secret keys; the key control link information in the production and circulation process is dispersedly stored in enterprise nodes, and the super nodes only store hash codes to check whether the hash codes are tampered; the generation of the tracing code and the box code needs to be verified through the super node for the uniqueness and the legality; and during boxing, the incidence relation between the box codes and the tracing codes is established, and the goods entering and exiting conditions can be recorded only by scanning the box codes in the circulation process. When the commodity tracing code is scanned, firstly, the box code to which the tracing code belongs in the circulation link is found through the association relation table, then, the circulation link transaction records corresponding to the box code are searched in the transaction records of the block chain, and the tracing chain is spliced according to time; the operation flow of associating the box codes with the tracing codes is improved, no click operation is needed in the whole box packing process, and the box packing efficiency is greatly improved; when a consumer purchases goods through mobile payment, the incidence relation between the goods tracing code and the consumer payment account is recorded, and a recall notice can be sent to the corresponding consumer when a certain batch of goods have quality problems.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (7)

1. A distributed commodity data storage system based on a block chain is characterized by comprising a plurality of super nodes and a plurality of common nodes;
the super node comprises: the system is used for examining and approving the joining qualification of a new member of the alliance in the block chain and verifying the validity of the transaction submitted by the member, storing the basic data of the common node in the block chain and the hash code generated according to the key control link information and reported by the common node, and maintaining an unencrypted account book for generating a traceability chain;
when a tracing request exists, the method is also used for verifying the consistency of the stored hash code and the hash code corresponding to the key control link information reported by the common node, and forming the key control link information and the tracing chain into complete commodity tracing information;
the common node comprises: the method comprises the steps that data information of the whole block chain is obtained and verified in an authorized mode, transaction records of the block chain are checked through a secret key, new transaction data are added into the block chain after the super node is verified, key control link information in a production and circulation link is recorded according to the requirements of laws and regulations, and a hash code is generated and reported to the super node;
when a tracing request exists, reporting the recorded key control link information to the super node;
the super node comprises:
an approval module: the system is used for examining and approving the joining qualification of a new member of the alliance in the blockchain and verifying the legality of the member submitting transaction;
account book module: the system comprises a node, a block chain and a source chain, wherein the node is used for generating an encrypted account book according to a transaction record of a common node, broadcasting the encrypted account book to the block chain and maintaining an unencrypted account book for generating the source chain;
a storage module: the hash code is used for storing basic data of a common node in a block chain and is generated according to key control link information and reported by the common node;
a tracing module: the system is used for receiving a traceability request of a traceability person, splicing traceability chains in transaction records of an account book according to time, verifying the consistency of the stored hash codes and the hash codes corresponding to the key control link information reported by the common node, and forming complete commodity traceability information by the key control link information and the traceability chains to send the commodity traceability information to the traceability person.
2. The blockchain-based distributed commodity data storage system according to claim 1, wherein the supernodes have corresponding members comprising at least government regulators and industry associations; the common nodes at least comprise a production enterprise, a raw material supplier, a distributor and a retailer.
3. The distributed commodity data storage system based on the block chain according to claim 1, wherein the common node comprises:
a data acquisition module: the method comprises the steps of acquiring and checking data information in the whole block chain;
a data reporting module: the system is used for adding new block data into the block chain after the super node verification;
a storage module: the system is used for storing key control link information;
a hash code generation module: and the hash code is generated according to the key control link information and is reported to the super node.
4. The distributed commodity data storage system based on the block chain according to claim 1, wherein the common node further comprises:
the encryption signature module: for encrypting and signing the transaction record;
trace back code and case code generation module: the tracing code is used for generating a tracing code of the commodity and a box code of the packing box;
a binding module: the box code scanning and binding device is used for scanning and binding the box code corresponding to the packing box and the tracing code corresponding to the commodity in the box body according to the commodity packing condition.
5. The distributed commodity data storage system based on a block chain according to claim 1 or 3, wherein the critical control link information at least comprises a raw material inspection report, a finished product inspection report, and a used raw material batch number of each batch.
6. A distributed commodity circulation method based on a block chain is characterized by comprising the following steps:
s10, generating a hash code by the common node of the production enterprise in the block chain according to the key control link information, and generating a commodity tracing code and a packing box code;
s20, the super node in the block chain saves the hash code and verifies the tracing code and the box code;
s30, according to the commodity packing condition, scanning and binding box codes corresponding to packing boxes and tracing codes corresponding to commodities filled in the boxes, and storing the association relationship between the box codes and the tracing codes into super nodes in a block chain;
s40, encrypting and signing the transaction record by the common node of the production enterprise in the block chain, and verifying the validity of the verification by the super node;
s50, scanning box codes by common nodes of circulation enterprises in the block chain to determine the goods feeding, and adding an encrypted transaction record to the super node and broadcasting the encrypted transaction record;
s60, scanning the sold commodity tracing code by the common nodes of the retailers in the block chain to generate an order, and associating the payment account number with the commodity tracing code and storing the payment account number and the commodity tracing code to the super node in the block chain when the consumer pays;
the super node comprises:
an approval module: the system is used for examining and approving the joining qualification of a new member of the alliance in the blockchain and verifying the legality of the member submitting transaction;
account book module: the system comprises a node, a block chain and a source chain, wherein the node is used for generating an encrypted account book according to a transaction record of a common node, broadcasting the encrypted account book to the block chain and maintaining an unencrypted account book for generating the source chain;
a storage module: the hash code is used for storing basic data of a common node in a block chain and is generated according to key control link information and reported by the common node;
a tracing module: the system is used for receiving a traceability request of a traceability person, splicing traceability chains in transaction records of an account book according to time, verifying the consistency of the stored hash codes and the hash codes corresponding to the key control link information reported by the common node, and forming complete commodity traceability information by the key control link information and the traceability chains to the traceability person.
7. A distributed commodity tracing method based on a block chain is characterized by comprising the following steps:
s100, a tracer scans a tracing code of a commodity and initiates a tracing request to a super node;
s200, inquiring a box code to which the tracing code belongs in the circulation link in the record;
s300, searching circulation link transaction records corresponding to the box codes in the transaction records;
s400, sequentially splicing the super nodes into a tracing chain according to time in the circulation link transaction record;
s500, inquiring the production enterprise of the commodity through the tracing code, and initiating a key control link information inquiry request to a common node of the production enterprise;
s600, reporting the recorded key control link information to a super node, and verifying whether the hash value of the reported information is consistent with that recorded before by the super node;
s700, merging the production key control link information and the traceability chain to form complete commodity traceability information, and returning the complete commodity traceability information to a traceability person;
the super node comprises:
an approval module: the system is used for examining and approving the joining qualification of a new member of the alliance in the blockchain and verifying the legality of the member submitting transaction;
account book module: the system comprises a node, a block chain and a source chain, wherein the node is used for generating an encrypted account book according to a transaction record of a common node, broadcasting the encrypted account book to the block chain and maintaining an unencrypted account book for generating the source chain;
a storage module: the hash code is used for storing basic data of a common node in a block chain and is generated according to key control link information and reported by the common node;
a tracing module: the system is used for receiving a traceability request of a traceability person, splicing traceability chains in transaction records of an account book according to time, verifying the consistency of the stored hash codes and the hash codes corresponding to the key control link information reported by the common node, and forming complete commodity traceability information by the key control link information and the traceability chains to send the commodity traceability information to the traceability person.
CN201810524649.1A 2018-05-28 2018-05-28 Distributed commodity data storage system based on block chain, circulation and tracing method Active CN108805585B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810524649.1A CN108805585B (en) 2018-05-28 2018-05-28 Distributed commodity data storage system based on block chain, circulation and tracing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810524649.1A CN108805585B (en) 2018-05-28 2018-05-28 Distributed commodity data storage system based on block chain, circulation and tracing method

Publications (2)

Publication Number Publication Date
CN108805585A CN108805585A (en) 2018-11-13
CN108805585B true CN108805585B (en) 2022-07-05

Family

ID=64090647

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810524649.1A Active CN108805585B (en) 2018-05-28 2018-05-28 Distributed commodity data storage system based on block chain, circulation and tracing method

Country Status (1)

Country Link
CN (1) CN108805585B (en)

Families Citing this family (48)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111275449A (en) * 2018-11-16 2020-06-12 顺丰科技有限公司 Commodity tracing method and system
CN109615034B (en) * 2018-11-20 2022-06-17 广州市格利网络技术有限公司 Information tracing method and device for reusable catering tool
CN109343429B (en) * 2018-11-21 2021-05-11 广州天源信息科技股份有限公司 Cold chain product circulation process parameter recording system and method
CN109472701A (en) * 2018-11-22 2019-03-15 西昌学院 A kind of pesticide herd product life cycle traceability system and its operation method
CN109409784A (en) * 2018-11-28 2019-03-01 杭州云象网络技术有限公司 A kind of supervision of petroleum oil mass and method for quality control based on block chain
CN109684875A (en) * 2018-11-30 2019-04-26 深圳灵图慧视科技有限公司 Cloth detects recording method, device, equipment and storage medium
CN111429146B (en) * 2018-12-24 2023-05-02 阿里巴巴集团控股有限公司 Tracing processing method, tracing processing system, service platform and electronic equipment
CN109727043A (en) * 2018-12-29 2019-05-07 厦门物之联智能科技有限公司 A kind of product traceability method, system and storage medium based on block chain
CN109636622B (en) * 2019-01-03 2024-03-29 平安科技(深圳)有限公司 Block chain-based fund data sharing method and system and electronic equipment
CN109767247A (en) * 2019-01-15 2019-05-17 武汉费米坊科技有限公司 A kind of distribution commodity traceability system and source tracing method
CN109886707A (en) * 2019-02-01 2019-06-14 立旃(上海)科技有限公司 Quality guarantee data processing equipment and method based on block chain
CN109918926B (en) * 2019-02-28 2023-03-14 浪潮软件股份有限公司 Data classification authentication method based on block chain, node and block chain system
CN109981794B (en) * 2019-04-09 2021-08-17 广州蚁比特区块链科技有限公司 Processing method and device based on block chain node point network and electronic equipment
CN110084622A (en) * 2019-04-18 2019-08-02 西安邮电大学 A kind of commodity are traced to the source block catenary system and code key saves and method for retrieving
CN110084626B (en) * 2019-05-08 2023-04-18 湖南大学 Vaccine production supervision method based on block chain
CN110222053B (en) * 2019-05-21 2023-03-21 深圳壹账通智能科技有限公司 Traceability data acquisition method based on block chain and related equipment
CN110335049A (en) * 2019-06-14 2019-10-15 左燕 A kind of block chain arithmetic facility based on computer
CN110428328A (en) * 2019-06-18 2019-11-08 广州中科易德科技有限公司 A kind of key right-safeguarding complaint system and method based on block chain technology
CN110335125A (en) * 2019-07-12 2019-10-15 政采云有限公司 A kind of information reporting method and device
CN110428268A (en) * 2019-08-02 2019-11-08 北京磁云唐泉金服科技有限公司 Article trace to the source approaches to IM, device, calculate equipment and medium
CN110796452A (en) * 2019-08-07 2020-02-14 南京中诚区块链研究院有限公司 Supply chain traceability system and method based on block chain and big data
CN110708280B (en) * 2019-08-21 2021-02-09 北京邮电大学 Root block chain authentication system and method formed by integrating multiple independent units
CN110750604A (en) * 2019-09-09 2020-02-04 中国平安财产保险股份有限公司 Block chain-based transfer route recording method and device and computer equipment
CN110751491A (en) * 2019-09-18 2020-02-04 复旦大学 Dangerous chemical supervision system based on block chain
CN110619524A (en) * 2019-10-12 2019-12-27 链农(深圳)信息科技有限公司 Transaction method based on block chain
CN110706008A (en) * 2019-10-14 2020-01-17 北京慧眼智行科技有限公司 Traceability processing method based on block chain and block chain distributed traceability system
CN110895763A (en) * 2019-11-01 2020-03-20 苏宁云计算有限公司 Commodity supply chain tracing method and device
CN112134913B (en) * 2019-11-15 2021-09-10 北京天德科技有限公司 Composite block chain
CN110969447B (en) * 2019-11-25 2024-02-09 江苏省农业科学院 Product depth traceability system based on block chain technology
CN110933167A (en) * 2019-11-28 2020-03-27 武汉奥恒胜科技有限公司 Block chain-based environment data storage system and tracing method
CN111159287B (en) * 2019-12-13 2023-05-23 广东工业大学 Production data tracing and tamper-proof method based on block chain guarantee
CN111091396A (en) * 2019-12-24 2020-05-01 云南唯恒基业科技有限公司 Chinese-medicinal material system of traceing back based on block chain technique
CN111127044B (en) * 2019-12-25 2023-09-26 河北山庄老酒股份有限公司 Production flow tracing method of wine products and terminal equipment
CN111311283B (en) * 2020-02-20 2021-02-05 宁波甜宝生物信息技术有限公司 Cosmetic source tracing production process method based on block chain and cloud computing
CN111415114A (en) * 2020-03-16 2020-07-14 四川百酒堂科技有限公司 Block chain-based method and system for generating fidelity traceability codes of fast-selling goods
CN111597191A (en) * 2020-03-16 2020-08-28 浙江明度智控科技有限公司 Method and system for managing drug informatization tracing data
CN111325564B (en) * 2020-03-17 2024-02-02 河南佼荣网络科技有限公司 Method and system for realizing supply chain tracing by using block chain
CN111461742B (en) * 2020-03-25 2023-04-25 广东省智能制造研究所 Manufacturing data graphic management system based on block chain
CN111626752B (en) * 2020-05-18 2023-08-29 深圳市沃客非凡科技有限公司 E-commerce product information tracing method and system based on block chain and Internet of things coupling
CN111626680B (en) * 2020-06-02 2023-07-25 重庆云创科技有限公司 Transaction data chain type storage method and blockchain type storage method for reputation evaluation
CN111652727A (en) * 2020-06-15 2020-09-11 深圳证券通信有限公司 Block chain infrastructure construction method for share platform in securities future industry
CN112200585B (en) * 2020-11-10 2021-08-20 支付宝(杭州)信息技术有限公司 Service processing method, device, equipment and system
CN112288451A (en) * 2020-11-26 2021-01-29 山东特检鲁安工程技术服务有限公司 Food quality safety tracing system and tracing method
CN113257397A (en) * 2021-05-18 2021-08-13 河北博健科技有限公司 Hospital consumable distribution system capable of automatically tracing source and robot
CN115456631B (en) * 2022-09-30 2023-07-21 佛山众陶联供应链服务有限公司 Multi-level supply chain credit cross-level verification method and system based on blockchain
CN116843353B (en) * 2023-02-15 2024-02-02 厦门智康力奇数字科技有限公司 Agricultural product traceability system and method based on blockchain and Internet of things
CN116071090B (en) * 2023-03-06 2023-07-04 安徽深迪科技有限公司 Product production information traceability system based on block chain
CN116383859B (en) * 2023-06-06 2023-08-22 四川省建筑科学研究院有限公司 Detection report generation method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105844505A (en) * 2016-03-17 2016-08-10 深圳市新世纪启航科技开发有限公司 Method of carrying out digital currency trading through block chain technology
CN106503994A (en) * 2016-11-02 2017-03-15 西安电子科技大学 Block chain private data access control method based on encryption attribute
CN106529969A (en) * 2016-10-08 2017-03-22 惠州Tcl移动通信有限公司 Method and system for carrying out fake checking and tracing by using NFC (near field communication)
CN106548091A (en) * 2016-10-14 2017-03-29 北京爱接力科技发展有限公司 A kind of data deposit card, the method and device of checking
CN106952124A (en) * 2017-03-16 2017-07-14 北京牛链科技有限公司 Electronic bill management system and method based on distribution book keeping operation
CN107909372A (en) * 2017-10-25 2018-04-13 复旦大学 A kind of agricultural product source tracing method based on block chain technology

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10176481B2 (en) * 2015-12-21 2019-01-08 Beston Technologies Pty Ltd Method and apparatus for managing and providing provenance of product using blockchain

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105844505A (en) * 2016-03-17 2016-08-10 深圳市新世纪启航科技开发有限公司 Method of carrying out digital currency trading through block chain technology
CN106529969A (en) * 2016-10-08 2017-03-22 惠州Tcl移动通信有限公司 Method and system for carrying out fake checking and tracing by using NFC (near field communication)
CN106548091A (en) * 2016-10-14 2017-03-29 北京爱接力科技发展有限公司 A kind of data deposit card, the method and device of checking
CN106503994A (en) * 2016-11-02 2017-03-15 西安电子科技大学 Block chain private data access control method based on encryption attribute
CN106952124A (en) * 2017-03-16 2017-07-14 北京牛链科技有限公司 Electronic bill management system and method based on distribution book keeping operation
CN107909372A (en) * 2017-10-25 2018-04-13 复旦大学 A kind of agricultural product source tracing method based on block chain technology

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
"Blockchain Technologies: The Foreseeable Impact on Society and Industry";Tomaso Aste等;《Computer》;20170922;第50卷(第9期);全文 *
"Design of Network Media’s Digital Rights Management Scheme Based on Blockchain Technology";Ruzhi Xu等;《2017 IEEE 13th International Symposium on Autonomous Decentralized System (ISADS)》;20170608;全文 *
"区块链技术在产品质量监管中的应用研究";吴行惠等;《网络空间安全》;20180430;第09卷(第4期);全文 *
"区块链视角下的B2C电商平台产品信息追溯和防伪模型";丁庆洋等;《中国流通经济》;20171231;第31卷(第12期);全文 *
"基于双链架构的医药商业资源公有区块链";毕娅等;《计算机科学》;20180228;第45卷(第2期);全文 *

Also Published As

Publication number Publication date
CN108805585A (en) 2018-11-13

Similar Documents

Publication Publication Date Title
CN108805585B (en) Distributed commodity data storage system based on block chain, circulation and tracing method
Agrawal et al. Blockchain-based framework for supply chain traceability: A case example of textile and clothing industry
CN108805656B (en) Supply and demand matching method, platform, system and computer readable storage medium
Benčić et al. DL-Tags: DLT and smart tags for decentralized, privacy-preserving, and verifiable supply chain management
US20190116185A1 (en) Access authority management method, access authority management system, and access authority management apparatus
WO2020098373A1 (en) Method and device for storing merchant authentication data into blockchain, and method and device for obtaining merchant authentication data from blockchain
US20210390549A1 (en) Systems and methods for building blockchains for verifying assets for smart contracts
Habib et al. Blockchain-based supply chain for the automation of transaction process: Case study based validation
CN111177275A (en) Block chain-based management method, terminal, device and storage medium
CN110490282A (en) Source tracing method, device of tracing to the source, traceability system and storage medium
CN111177253A (en) Power big data protection method and system based on identity digital authentication
CN111798209A (en) Engineering project management method based on block chain, electronic equipment and storage medium
CN108876364A (en) A kind of band buries in oblivion the block catenary system of mechanism
CN111899072B (en) Block chain-based product sales method and system
CN111445272A (en) Agricultural product traceability information processing system and method based on block chain
CN112328689A (en) Universal asset business ecosystem based on block chain
CN115968481A (en) Smart assertion token for authenticating and controlling network communications using distributed ledgers
Koirala et al. Supply chain using smart contract: A blockchain enabled model with traceability and ownership management
Dzobo et al. Proposed framework for blockchain technology in a decentralised energy network
CN112200690A (en) Ship quality traceability system based on block chain
CN111339550A (en) Comment information credibility method based on block chain technology
CN111612484A (en) Block chain logistics traceability system
CN111784254A (en) Block chain-based bulk commodity electronic warehouse receipt issuing system
CN111340530A (en) Block chain-based digital rights and interests system
CN113657911A (en) Safe and efficient traceability system based on block chain

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20190409

Address after: 510000 Room 1921, 27 Huanshi Avenue Center, Nansha District, Guangzhou City, Guangdong Province

Applicant after: Guangzhou Zhongke Yide Technology Co., Ltd.

Address before: Room 701, Building A, 1121 Haibin Road, Nansha District, Guangzhou City, Guangdong Province

Applicant before: Institute of Software Application Technology, Guangzhou & Chinese Academy of Sciences

CB02 Change of applicant information
CB02 Change of applicant information

Address after: 510000 Room 501, no.221-1, Huanshi Avenue West, Nansha District, Guangzhou City, Guangdong Province (self compiled room 01)

Applicant after: Guangzhou Zhongke Yide Technology Co.,Ltd.

Address before: 510000 Room 1921, 27 Huanshi Avenue Center, Nansha District, Guangzhou City, Guangdong Province

Applicant before: Guangzhou Zhongke Yide Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant