CN110543787A - Storage and acquisition method, storage system and acquisition device for commodity traceability data - Google Patents
Storage and acquisition method, storage system and acquisition device for commodity traceability data Download PDFInfo
- Publication number
- CN110543787A CN110543787A CN201910836351.9A CN201910836351A CN110543787A CN 110543787 A CN110543787 A CN 110543787A CN 201910836351 A CN201910836351 A CN 201910836351A CN 110543787 A CN110543787 A CN 110543787A
- Authority
- CN
- China
- Prior art keywords
- block chain
- commodity
- information
- private key
- contract address
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/21—Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/2107—File encryption
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
the invention discloses a storage method of commodity traceability information; acquiring commodity information by acquiring a first block chain private key; uploading the commodity information to a first block chain node of a block chain according to the first block chain private key, and synchronizing the commodity information to all nodes of a block chain network to realize storage of the commodity information, wherein the first block chain node corresponds to the first block chain private key; receiving a contract address of the commodity information returned by the blockchain network, wherein the contract address is a storage index of the commodity information in the blockchain, and the contract address is used for inquiring the commodity information stored in the blockchain network from the blockchain network through a blockchain browser; the storage of the commodity tracing information in the block chain network is realized; due to the fact that the commodity information is stored in the block chain, due to the characteristics of data of the block chain technology, such as non-falsification and time stamp, the stored commodity source tracing data has authenticity and reliability.
Description
Technical Field
The invention relates to the technical field of block chains, in particular to a storage and acquisition method, a storage system and an acquisition device for commodity traceability data.
background
The block chain is a chain data structure formed by combining data blocks in a sequential connection mode according to a time sequence, and is a distributed account book which is guaranteed in a cryptographic mode and cannot be tampered and forged. The blockchain technology is a brand new distributed infrastructure and computing mode that uses blockchain data structures to verify and store data, uses distributed node consensus algorithms to generate and update data, uses cryptography to secure data transmission and access, and uses intelligent contracts composed of automated script codes to program and manipulate data.
At present, commodity traceability data is mainly recorded into a traditional database through self-entry of a supplier, logistics circulation is recorded, and the storage mode causes the problems that data communication between suppliers is difficult, effective consensus does not exist, a credit system is not perfect, the possibility of data tampering is high and the like, so that consumers are difficult to trust the obtained traceability data. Therefore, a storage method for commodity information and logistics circulation record data, which can be applied to a commodity supply chain, can effectively prevent commodity information and logistics circulation information data from being tampered, and has high data reliability, is needed.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a storage and acquisition method, a storage system and an acquisition device of commodity traceability data, which are used for preventing commodity information and logistics circulation information data from being falsified and improving the reliability of the commodity information and logistics circulation record data.
a first aspect of the embodiments of the present invention provides a method for storing commodity traceability data, including: acquiring a first block chain private key and commodity information; uploading the commodity information to a first block chain node of a block chain according to the first block chain private key, and synchronizing the commodity information to all nodes of a block chain network to realize storage of the commodity information, wherein the first block chain node corresponds to the first block chain private key; and receiving a contract address of the commodity information returned by the blockchain network, wherein the contract address is a storage index of the commodity information in the blockchain, and the contract address is used for inquiring the commodity information stored in the blockchain network from the blockchain network through a blockchain browser.
preferably, the storage method of the commodity traceability data further comprises: acquiring a second block chain private key and acquiring commodity circulation information; and uploading the commodity circulation information to a second block chain node of the block chain through the second block chain private key and the contract address, synchronizing the commodity information to all nodes of the block chain network, wherein the second block chain node corresponds to the second block chain private key so as to realize the storage of the commodity circulation information, and the contract address is used for inquiring the commodity information and/or the commodity circulation information stored in the block chain network from the block chain network through a block chain browser.
preferably, the storage method of the commodity traceability data further comprises: generating an identifiable identifier from the contract address; providing the contract address when the identifiable identity is identified; or, the identifiable identity, when identified, provides the contract address and the blockchain browser address; the identifiable mark is at least one of a two-dimensional code and an RFID label.
preferably, in the storage method of the commodity traceability data, the obtaining of the first block chain private key and the second block chain private key is requesting to add to a block chain from all other block chain link points in the block chain, obtaining a block chain certificate through authorization of all other block chain link points, and uploading user information to the block chain through the block chain certificate to obtain the first block chain private key and the second block chain private key; or, obtaining the first block chain private key and the second block chain private key which are already stored in a local storage medium of a user; the block chain is a alliance chain, and the block chain nodes are alliance chain nodes.
A second aspect of the embodiments of the present invention provides a method for obtaining commodity traceability information, including:
Acquiring a contract address of commodity information; the contract address is a storage index of the commodity information in the blockchain, and is used for inquiring the commodity information and/or commodity circulation information stored in the blockchain network from the blockchain network through a blockchain browser; the commodity information is uploaded to information stored in the block chain network by a manufacturer according to the first block chain private key; the commodity circulation information is information uploaded to a block chain network by a supplier according to a second block chain private key and the contract address and stored in the block chain network; and acquiring commodity information and/or commodity circulation information stored in the blockchain network through a blockchain browser according to the contract address.
Preferably, the contract address for acquiring the commodity information is: acquiring a contract address of commodity information through the identifiable identifier; providing the contract address when the identifiable identity is identified; or, the identifiable identity, when identified, provides the contract address and blockchain browser address; the identifiable identification is at least one of a two-dimensional code and/or an RFID label.
Preferably, the first blockchain private key and the second blockchain private key are obtained by: a manufacturer or a supplier requests all other block chain link points in the block chain to join the block chain, obtains a block chain certificate through authorization of all other block chain link points, and uploads user information to the block chain through the block chain certificate to obtain the first block chain private key and the second block chain private key; or, the manufacturer or the supplier obtains the first block chain private key and the second block chain private key which are already stored in the local storage medium of the user; the block chain is a alliance chain, and the block chain nodes are alliance chain nodes.
a third party in the embodiments of the present invention provides a storage system for commodity traceability data, including a first device, where the first device includes at least one processor and a memory capable of storing a computer program running on the processor; wherein the processor is configured to run the computer program to implement the steps of: acquiring a first block chain private key and commodity information; uploading the commodity information to a first block chain node of a block chain according to the first block chain private key, and synchronizing the commodity information to all nodes of a block chain network to realize storage of the commodity information, wherein the first block chain node corresponds to the first block chain private key; and receiving a contract address of the commodity information returned by the blockchain network, wherein the contract address is a storage index of the commodity information in the blockchain, and the contract address is used for inquiring the commodity information stored in the blockchain network from the blockchain network through a blockchain browser.
preferably, the storage system for commodity traceability data further comprises a second device, wherein the second device comprises at least one processor and a memory capable of storing a computer program running on the processor; wherein the processor is configured to run the computer program to implement the steps of: acquiring a second block chain private key and acquiring commodity circulation information; and uploading the commodity circulation information to a second block chain node of the block chain through the second block chain private key and the contract address, synchronizing the commodity information to all nodes of a block chain network, wherein the second block chain node corresponds to the second block chain private key so as to realize the storage of the commodity circulation information, and the contract address is used for inquiring the commodity circulation information stored in the block chain network from the block chain network through a block chain browser.
a fourth aspect of the embodiments of the present invention provides an apparatus for acquiring commodity tracing information, where the apparatus for acquiring commodity tracing information includes at least one processor and a memory capable of storing a computer program running on the processor; wherein the processor is configured to run the computer program to implement the steps of: acquiring a contract address of commodity information, wherein the contract address is a storage index of the commodity information in the block chain, and the contract address is used for inquiring the commodity information and/or commodity circulation information stored in the block chain network from the block chain network through a block chain browser; the commodity information is uploaded to information stored in the block chain network by a manufacturer according to a first block chain private key, and the commodity circulation information is uploaded to information stored in the block chain network by a supplier according to a second block chain private key and the contract address; and acquiring commodity information and/or commodity circulation information stored in the blockchain network through a blockchain browser according to the contract address.
the invention has the beneficial effects that: acquiring commodity information by acquiring a first block chain private key; uploading the commodity information to a first block chain node of a block chain according to the first block chain private key, and synchronizing the commodity information to all nodes of a block chain network to realize storage of the commodity information, wherein the first block chain node corresponds to the first block chain private key; receiving a contract address of the commodity information returned by the blockchain network, wherein the contract address is a storage index of the commodity information in the blockchain, and the contract address is used for inquiring the commodity information stored in the blockchain network from the blockchain network through a blockchain browser; the storage of the commodity tracing information in the block chain network is realized; due to the fact that the commodity information is stored in the block chain, due to the characteristics of data of the block chain technology, such as non-falsification and time stamp, the stored commodity source tracing data has authenticity and reliability.
drawings
In order to more clearly illustrate the detailed description of the invention or the technical solutions in the prior art, the drawings that are needed in the detailed description of the invention or the prior art will be briefly described below. Throughout the drawings, like elements or portions are generally identified by like reference numerals. In the drawings, elements or portions are not necessarily drawn to scale.
fig. 1 is a block chain network according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of the function of a blockchain network in each link of a commodity supply chain according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a commodity traceability data storage method according to an embodiment of the present invention;
Fig. 4 is a schematic flow chart of a commodity traceability data acquisition method according to a second embodiment of the present invention;
fig. 5 is a schematic diagram of a first device of a storage system for commodity traceability data according to a third embodiment of the present invention;
fig. 6 is a schematic diagram of a second device of the storage system for commodity traceability data according to the third embodiment of the present invention;
Fig. 7 is a schematic diagram of a traceability information acquisition apparatus of a product traceability system according to a fourth embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and therefore are only examples, and the protection scope of the present invention is not limited thereby.
it is to be noted that, unless otherwise specified, technical or scientific terms used herein shall have the ordinary meaning as understood by those skilled in the art to which the invention pertains.
the method, the system and the device for storing and acquiring the commodity traceability data are applied to the following block chain network provided by the invention.
As shown in fig. 1 and 2, the blockchain network includes:
the system comprises a first block chain node corresponding to a commodity manufacturer, at least one second block chain node corresponding to a commodity supplier, and a block chain network formed by the first block chain node and the second block chain node;
the commodity manufacturer acquires a first block chain private key, and the commodity manufacturer acquires commodity information; the commodity manufacturer uploads the commodity information to a first block chain node of the block chain network according to the first block chain private key, and the block chain network synchronizes the commodity information to all nodes of the block chain network; the first block link point corresponds to the first block chain private key; the commodity manufacturer receives a contract address of the commodity information returned by the block chain network;
the commodity supply obtains a second block chain private key, the commodity supplier obtains a contract address of commodity information, the commodity supplier uploads commodity circulation information to a second block chain node of the block chain network through the second block chain private key and the contract address, the block chain network synchronizes the commodity information to all nodes of the block chain network, and the second block chain node corresponds to the second block chain private key;
the contract address is a storage index of the commodity information in the block chain, and a consumer can inquire the commodity information and/or commodity circulation information stored in the block chain network from the block chain network through a block chain browser according to the contract address;
The block chain is a alliance chain, and the block chain nodes are alliance chain nodes.
The contract address is stored in the identifiable identifier, and the contract address is acquired by identifying the identifiable identifier so as to inquire the commodity information and/or commodity circulation information stored in the blockchain network from the blockchain network through a blockchain browser according to the contract address;
the identifiable identification is at least one of a two-dimensional code and/or an RFID label.
Specifically, alliance nodes are established for different manufacturers and suppliers in the whole supply chain to form an alliance chain, and the suppliers comprise main bodies of all circulation links on the whole supply chain, including but not limited to sellers, logistics merchants, dealers, e-commerce platforms and the like. A plurality of block chain link points corresponding to suppliers and manufacturers form a alliance chain, and multiple parties of the supply chain participate together. The commodity information and/or commodity circulation information of commodities are stored in each block in a storage layer of a block chain, each supplier block chain node can store a block copy of the whole block chain at present, when a supplier uploads the commodity circulation information to the block chain, other block chain nodes can verify the data, and the data are synchronized to the block chain network after the data are confirmed to be correct, so that when block chain link data of a certain supplier is tampered, other supplier block chain link points can be collated with the block chain copies stored by the supplier block chain nodes, and when the data are abnormal, malicious uploaded data can be discarded by the block chain, and the integrity and the non-tampering characteristic of the block chain data are ensured.
specifically, in the blockchain network provided by the invention, respective blockchain certificates of manufacturers or suppliers are generated by blockchains, the added blockchain nodes need to be confirmed by other blockchain link points in the alliance chain, suppliers in a non-current supply chain can be removed by other supplier nodes, each supplier in the supply chain forms an alliance chain to form consensus, and the consensus mechanism can ensure the cooperation of all the parties in the blockchain.
Specifically, the producer or the supplier adds in the blockchain and uploads the producer or the supplier information to obtain a private key, and the private key of the blockchain of the producer or the supplier is stored in the local storage medium by the producer or the supplier, and the private key represents the identity of the producer or the supplier.
Specifically, commodity information is linked up at the beginning of the whole supply chain by a manufacturer, namely the commodity information is uploaded to a block chain node and is synchronized to all nodes of the whole block chain, a commodity block chain contract address is obtained after the commodity block chain contract address is linked up, the block chain contract address represents a commodity identity, and the contract address points to a storage position where the commodity information is stored in the block chain; the merchandise information includes but is not limited to: production date, composition, batch number, expiration date, time stamp, and the like.
Specifically, a recognizable identifier is generated according to the contract address, and when the recognizable identifier is recognized, the contract address and/or the block chain browser address are/is provided; the identifiable Identification is a two-dimensional code and/or an RFID (Radio Frequency Identification) label; the identifiable mark and the contract address correspond to commodities one by one, a consumer obtains commodity information and/or the contract address corresponding to commodity circulation information by scanning the two-dimensional code or identifying the RFID label information, and obtains the commodity information and/or the commodity circulation information by the block chain browser.
specifically, when the commodity object is circulated in each link of the supply chain, the supplier in each link signs the circulated data and records the declaration information on the data, and then links the data.
as shown in fig. 3, a method for storing commodity traceability data according to an embodiment of the present invention includes:
s110, acquiring a first block chain private key and commodity information;
S120, uploading the commodity information to a first block chain node of a block chain according to the first block chain private key, and synchronizing the commodity information to all nodes of a block chain network to realize storage of the commodity information, wherein the first block chain node corresponds to the first block chain private key;
S130, receiving a contract address of the commodity information returned by the block chain network, wherein the contract address is a storage index of the commodity information in the block chain, and the contract address is used for inquiring the commodity information stored in the block chain network from the block chain network through a block chain browser.
In a specific implementation manner, a commodity manufacturer maintains a block chain node of the block chain network, and uploads manufacturer information to a block chain to obtain an encrypted character string which is specific to the manufacturer, namely a first block chain private key; the commodity manufacturer obtains commodity information, uploads the commodity information to a block chain node according to a first block chain private key, stores the commodity information in a block corresponding to the block chain node, synchronizes the commodity information to the whole block chain network, obtains an encrypted character string specially belonging to the current commodity, namely a block chain contract address of the commodity information, and can inquire the commodity information belonging to the current contract address in a block chain browser according to the contract address; due to the fact that the commodity information is stored in the block chain, due to the characteristics of data of the block chain technology, such as non-falsification and time stamp, the stored commodity source tracing data has authenticity and reliability.
preferably, the storage method of the commodity traceability data further comprises:
Acquiring a second block chain private key and acquiring commodity circulation information;
and uploading the commodity circulation information to a second block chain node of the block chain through the second block chain private key and the contract address, synchronizing the commodity information to all nodes of the block chain network, wherein the second block chain node corresponds to the second block chain private key so as to realize the storage of the commodity circulation information, and the contract address is used for inquiring the commodity information and/or the commodity circulation information stored in the block chain network from the block chain network through a block chain browser.
In a specific embodiment, suppliers in the supply chain include, but are not limited to: main bodies such as a seller, a logistics dealer, a distributor, an e-commerce platform and the like; each supplier maintains a block chain node, and the suppliers upload supplier information to the block chain and acquire a second block chain private key maintained by the corresponding supplier; a supplier acquires a contract address of commodity information, uploads transfer information to a block corresponding to a block link point of a block chain through a block chain private key and the contract address, and synchronously transfers the information to the whole block chain network; therefore, the characteristics of data stored by using the block chain network, such as non-falsification, time stamp and the like, are achieved, and the stored commodity tracing data has authenticity and reliability.
Preferably, the storage method of the commodity traceability data further comprises: generating an identifiable identifier from the contract address; providing the contract address when the identifiable identity is identified; or, the identifiable identity, when identified, provides the contract address and the blockchain browser address; the identifiable mark is at least one of a two-dimensional code and an RFID label.
specifically, after obtaining a contract address, a manufacturer stores a character string corresponding to the contract address in a two-dimensional code and/or an RFID tag; or directly providing two-dimensional code and/or RFID label information containing contract addresses by a blockchain network; the manufacturer places the two-dimensional code label and the RFID label at a position where the commodity is easy to view, such as adhering or hanging on the outer surface of the commodity, so that the two-dimensional code label and/or the RFID label can be identified by a subsequent supplier or consumer by using an identification device; the two-dimension code and/or the RFID label can simultaneously bear contract addresses and blockchain browser addresses; when a supplier or a consumer uses the identification device to identify the two-dimensional code and/or the RFID label, the identification device directly jumps to a browser corresponding to a blockchain browser borne by the two-dimensional code and/or the RFID label, and obtains commodity traceability information, namely commodity information and/or commodity circulation information, from a contract address borne by the two-dimensional code and/or the RFID label. The contract address is borne by the two-dimensional code and/or the RFID label, or the contract address and the address of the block chain browser, so that a manufacturer can distribute the contract address conveniently, and subsequent suppliers or consumption difference can use or inquire the contract address conveniently.
preferably, in the storage method of the commodity traceability data, the obtaining of the first block chain private key and the second block chain private key is requesting to add to a block chain from all other block chain link points in the block chain, obtaining a block chain certificate through authorization of all other block chain link points, and uploading user information to the block chain through the block chain certificate to obtain the first block chain private key and the second block chain private key; or, obtaining the first block chain private key and the second block chain private key which are already stored in a local storage medium of a user; the block chain is a alliance chain, and the block chain nodes are alliance chain nodes.
As shown in fig. 4, a second embodiment of the present invention provides a method for obtaining commodity traceability information, including:
S210, acquiring a contract address of the commodity information; the contract address is a storage index of the commodity information in the blockchain, and is used for inquiring the commodity information and/or commodity circulation information stored in the blockchain network from the blockchain network through a blockchain browser; the commodity information is uploaded to information stored in the block chain network by a manufacturer according to the first block chain private key; the commodity circulation information is information uploaded to a block chain network by a supplier according to a second block chain private key and the contract address and stored in the block chain network;
And S220, obtaining commodity information and/or commodity circulation information stored in the blockchain network through a blockchain browser according to the contract address.
The consumer or the supplier obtains the contract address of the commodity information through the network, the commodity package or a medium capable of bearing the contract address, the commodity information and/or the commodity circulation information can be obtained by inputting the contract address into the block chain browser, the stored commodity traceability data has authenticity and reliability due to the characteristics of non-falsification, time stamp and the like of data of the block chain technology, the commodity traceability information can be inquired through the contract address, convenience is provided for the consumer or the supplier to inquire the commodity circulation information, and the efficiency is improved.
preferably, in the traceability information acquisition method, the contract address for acquiring the commodity information is:
Acquiring a contract address of commodity information through the identifiable identifier; providing the contract address when the identifiable identity is identified; or, the identifiable identity, when identified, provides the contract address and blockchain browser address; the identifiable identification is at least one of a two-dimensional code and/or an RFID label.
Specifically, after a consumer or a supplier obtains a commodity, the two-dimension code and/or the RFID label are identified by using two-dimension code and/or RFID label identification equipment, and then a commodity information contract address can be obtained; or the two-dimension code and/or the RFID label are identified by using the two-dimension code and/or the RFID label identification equipment, so that the commodity information contract address and the block chain browser address can be obtained; the identification equipment jumps to the block chain browser and fills in the contract address, and a consumer or a supplier can quickly inquire commodity traceability information, namely commodity information and/or commodity circulation information. The entrance of the commodity traceability information and the contract address are issued in a recognizable identification mode, so that consumers or suppliers can inquire the commodity traceability information more conveniently, and the efficiency is improved.
Preferably, in the tracing information obtaining method, the first blockchain private key and the second blockchain private key are obtained by the following method:
a manufacturer or a supplier requests all other block chain link points in the block chain to join the block chain, obtains a block chain certificate through authorization of all other block chain link points, and uploads user information to the block chain through the block chain certificate to obtain the first block chain private key and the second block chain private key; or the like, or, alternatively,
The manufacturer or the supplier obtains the first block chain private key and the second block chain private key which are already stored in the local storage medium of the user;
the block chain is a alliance chain, and the block chain nodes are alliance chain nodes.
As shown in fig. 5, a storage system for commodity traceability data according to a third embodiment of the present invention includes a first device 31, where the first device 31 includes at least one processor 3100 and a memory 3101 capable of storing a computer program 3102 running on the processor 3100; wherein the processor 3100 is adapted to run the computer program 3102 to implement the steps of the method of:
acquiring a first block chain private key and commodity information;
Uploading the commodity information to a first block chain node of a block chain according to the first block chain private key, and synchronizing the commodity information to all nodes of a block chain network to realize storage of the commodity information, wherein the first block chain node corresponds to the first block chain private key;
And receiving a contract address of the commodity information returned by the blockchain network, wherein the contract address is a storage index of the commodity information in the blockchain, and the contract address is used for inquiring the commodity information stored in the blockchain network from the blockchain network through a blockchain browser.
Specifically, the first device is a computer, a mobile terminal or other devices which have a memory and a processor and can implement the steps of the method; the manufacturer communicates with the block chain network through the first device to obtain a first block chain private key and commodity information; uploading the commodity information to a first block chain node of a block chain according to the first block chain private key, and synchronizing the commodity information to all nodes of a block chain network to realize storage of the commodity information, wherein the first block chain node corresponds to the first block chain private key; receiving a contract address of the commodity information returned by the blockchain network, wherein the contract address is a storage index of the commodity information in the blockchain, and the contract address is used for inquiring the commodity information stored in the blockchain network from the blockchain network through a blockchain browser; due to the characteristics of data non-tampering, time stamping and the like of the block chain technology, the stored commodity source tracing data has authenticity and reliability.
as shown in fig. 6, a storage system for commodity traceability data according to the fourth embodiment of the present invention includes a second device 32, where the second device 31 includes at least one processor 3200 and a memory 3201 capable of storing a computer program 3201 running on the processor 3200; wherein the processor 3200 is adapted to run the computer program 3202 to implement the steps of the method:
acquiring a second block chain private key and acquiring commodity circulation information;
And uploading the commodity circulation information to a second block chain node of the block chain through the second block chain private key and the contract address, synchronizing the commodity information to all nodes of a block chain network, wherein the second block chain node corresponds to the second block chain private key so as to realize the storage of the commodity circulation information, and the contract address is used for inquiring the commodity circulation information stored in the block chain network from the block chain network through a block chain browser.
specifically, the first device is a computer, a mobile terminal or other devices which have a memory and a processor and can implement the steps of the method; the supplier including but not limited to the main body such as the seller, the logistics dealer, the distributor, the e-commerce platform, etc. communicates with the block chain network through the second device, obtains the second block chain private key, and obtains the commodity circulation information; uploading the commodity circulation information to a second block chain node of the block chain through the second block chain private key and the contract address, synchronizing the commodity information to all nodes of a block chain network, wherein the second block chain node corresponds to the second block chain private key so as to realize storage of the commodity circulation information, and the contract address is used for inquiring the commodity circulation information stored in the block chain network from the block chain network through a block chain browser; therefore, the characteristics of data stored by using the block chain network, such as non-falsification, time stamp and the like, are achieved, and the stored commodity tracing data has authenticity and reliability.
It should be understood by those skilled in the art that the preferred embodiments of the present invention in the above embodiments can be applied to the present embodiment.
as shown in fig. 7, a fifth embodiment of the present invention provides a product traceability information acquisition apparatus 41, where the product traceability information acquisition apparatus 41 includes at least one processor 4100 and a memory 4101 capable of storing a computer program 4102 running on the processor 4100; wherein the processor 4100 is configured to run the computer program 4102 to implement the steps of:
Acquiring a contract address of commodity information, wherein the contract address is a storage index of the commodity information in the block chain, and the contract address is used for inquiring the commodity information and/or commodity circulation information stored in the block chain network from the block chain network through a block chain browser; the commodity information is uploaded to information stored in the block chain network by a manufacturer according to a first block chain private key, and the commodity circulation information is uploaded to information stored in the block chain network by a supplier according to a second block chain private key and the contract address; and acquiring commodity information and/or commodity circulation information stored in the blockchain network through a blockchain browser according to the contract address.
Specifically, a consumer acquires a commodity information contract address through the commodity traceability information acquisition device, wherein the acquisition device is a computer, a mobile terminal, a special terminal and the like with a scanning identification identifiable identification device; the identifiable mark is at least one of a two-dimensional code and/or an RFID label; the contract address is a storage index of the commodity information in the blockchain, and is used for inquiring the commodity information and/or commodity circulation information stored in the blockchain network from the blockchain network through a blockchain browser; the commodity information is uploaded to information stored in the block chain network by a manufacturer according to a first block chain private key, and the commodity circulation information is uploaded to information stored in the block chain network by a supplier according to a second block chain private key and the contract address; obtaining commodity information and/or commodity circulation information stored in a block chain network through a block chain browser according to the contract address; therefore, the characteristics of non-falsification, time stamp and the like of the block chain network storage data are utilized, and the commodity tracing data inquired by the consumer has authenticity and reliability.
It should be understood by those skilled in the art that the preferred embodiments of the present invention in the above embodiments can be applied to the present embodiment.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present invention, and they should be construed as being included in the following claims and description.
Claims (10)
1. A storage method of commodity traceability data is characterized by comprising the following steps:
Acquiring a first block chain private key and commodity information;
uploading the commodity information to a first block chain node of a block chain according to the first block chain private key, and synchronizing the commodity information to all nodes of a block chain network to realize storage of the commodity information, wherein the first block chain node corresponds to the first block chain private key;
and receiving a contract address of the commodity information returned by the blockchain network, wherein the contract address is a storage index of the commodity information in the blockchain, and the contract address is used for inquiring the commodity information stored in the blockchain network from the blockchain network through a blockchain browser.
2. The method for storing commodity traceability data according to claim 1, further comprising:
Acquiring a second block chain private key and acquiring commodity circulation information;
And uploading the commodity circulation information to a second block chain node of the block chain through the second block chain private key and the contract address, synchronizing the commodity information to all nodes of the block chain network, wherein the second block chain node corresponds to the second block chain private key so as to realize the storage of the commodity circulation information, and the contract address is used for inquiring the commodity information and/or the commodity circulation information stored in the block chain network from the block chain network through a block chain browser.
3. The method for storing commodity traceability data according to claim 1, further comprising:
Generating an identifiable identifier from the contract address;
providing the contract address when the identifiable identity is identified; or the like, or, alternatively,
providing the contract address and the blockchain browser address when the identifiable identity is identified;
the identifiable mark is at least one of a two-dimensional code and an RFID label.
4. The method for storing the commodity traceability data of claim 2, wherein the obtaining of the first block chain private key and the second block chain private key is requesting to join the block chain to all other block chain link points in the block chain, obtaining a block chain certificate through authorization of all other block chain link points, and uploading user information to the block chain through the block chain certificate to obtain the first block chain private key and the second block chain private key; or the like, or, alternatively,
obtaining the first blockchain private key and the second blockchain private key which are already stored in a local storage medium of a user;
The block chain is a alliance chain, and the block chain nodes are alliance chain nodes.
5. a method for acquiring commodity traceability information is characterized by comprising the following steps:
Acquiring a contract address of commodity information; the contract address is a storage index of the commodity information in the blockchain, and is used for inquiring the commodity information and/or commodity circulation information stored in the blockchain network from the blockchain network through a blockchain browser; the commodity information is uploaded to information stored in the block chain network by a manufacturer according to the first block chain private key; the commodity circulation information is information uploaded to a block chain network by a supplier according to a second block chain private key and the contract address and stored in the block chain network;
and acquiring commodity information and/or commodity circulation information stored in the blockchain network through a blockchain browser according to the contract address.
6. the traceability information acquisition method of claim 5, wherein the contract address for acquiring the commodity information is:
Acquiring a contract address of commodity information through the identifiable identifier;
Providing the contract address when the identifiable identity is identified; or the like, or, alternatively,
providing the contract address and blockchain browser address when the identifiable identity is identified;
the identifiable identification is at least one of a two-dimensional code and/or an RFID label.
7. The method of claim 6, wherein the first blockchain private key and the second blockchain private key are obtained by:
A manufacturer or a supplier requests all other block chain link points in the block chain to join the block chain, obtains a block chain certificate through authorization of all other block chain link points, and uploads user information to the block chain through the block chain certificate to obtain the first block chain private key and the second block chain private key; or the like, or, alternatively,
The manufacturer or the supplier obtains the first block chain private key and the second block chain private key which are already stored in the local storage medium of the user;
The block chain is a alliance chain, and the block chain nodes are alliance chain nodes.
8. A storage system for commodity traceability data, comprising a first device, wherein the first device comprises at least one processor and a memory capable of storing a computer program running on the processor; wherein the processor is configured to run the computer program to implement the steps of:
acquiring a first block chain private key and commodity information;
uploading the commodity information to a first block chain node of a block chain according to the first block chain private key, and synchronizing the commodity information to all nodes of a block chain network to realize storage of the commodity information, wherein the first block chain node corresponds to the first block chain private key;
and receiving a contract address of the commodity information returned by the blockchain network, wherein the contract address is a storage index of the commodity information in the blockchain, and the contract address is used for inquiring the commodity information stored in the blockchain network from the blockchain network through a blockchain browser.
9. the system for storing commodity traceability data of claim 8, further comprising a second device, wherein the second device comprises at least one processor and a memory capable of storing a computer program running on the processor; wherein the processor is configured to run the computer program to implement the steps of:
acquiring a second block chain private key and acquiring commodity circulation information;
And uploading the commodity circulation information to a second block chain node of the block chain through the second block chain private key and the contract address, synchronizing the commodity information to all nodes of a block chain network, wherein the second block chain node corresponds to the second block chain private key so as to realize the storage of the commodity circulation information, and the contract address is used for inquiring the commodity circulation information stored in the block chain network from the block chain network through a block chain browser.
10. the device for acquiring the commodity traceability information is characterized by comprising at least one processor and a memory capable of storing a computer program running on the processor; wherein the processor is configured to run the computer program to implement the steps of:
Acquiring a contract address of commodity information, wherein the contract address is a storage index of the commodity information in the block chain, and the contract address is used for inquiring the commodity information and/or commodity circulation information stored in the block chain network from the block chain network through a block chain browser; the commodity information is uploaded to information stored in the block chain network by a manufacturer according to a first block chain private key, and the commodity circulation information is uploaded to information stored in the block chain network by a supplier according to a second block chain private key and the contract address;
And acquiring commodity information and/or commodity circulation information stored in the blockchain network through a blockchain browser according to the contract address.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910836351.9A CN110543787A (en) | 2019-09-05 | 2019-09-05 | Storage and acquisition method, storage system and acquisition device for commodity traceability data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910836351.9A CN110543787A (en) | 2019-09-05 | 2019-09-05 | Storage and acquisition method, storage system and acquisition device for commodity traceability data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110543787A true CN110543787A (en) | 2019-12-06 |
Family
ID=68712672
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910836351.9A Pending CN110543787A (en) | 2019-09-05 | 2019-09-05 | Storage and acquisition method, storage system and acquisition device for commodity traceability data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110543787A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111414429A (en) * | 2020-04-24 | 2020-07-14 | 远光软件股份有限公司 | Commodity information management method based on block chain, electronic device and storage medium |
CN111611292A (en) * | 2020-04-22 | 2020-09-01 | 淮阴工学院 | Supply chain management and control method for assembly type building component |
CN112199719A (en) * | 2020-10-10 | 2021-01-08 | 深圳前海微众银行股份有限公司 | Data processing method, device, equipment and computer readable storage medium |
CN112396527A (en) * | 2020-10-23 | 2021-02-23 | 安徽中科晶格技术有限公司 | Cross-border commodity tracing method based on block chain |
CN113222084A (en) * | 2021-05-11 | 2021-08-06 | 支付宝(杭州)信息技术有限公司 | Block chain based date labeling and querying method and device |
CN113657609A (en) * | 2021-08-18 | 2021-11-16 | 深圳技术大学 | Data management method and system based on block chain and federal transfer learning |
CN114255047A (en) * | 2020-09-25 | 2022-03-29 | 续科天下(北京)科技有限公司 | Pork traceability system based on block chain technology |
WO2022237385A1 (en) * | 2021-05-12 | 2022-11-17 | 北京京东乾石科技有限公司 | Goods transfer information processing method and apparatus, device, and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107730384A (en) * | 2017-11-13 | 2018-02-23 | 深圳大学 | Art sales method and server, server end and system based on block chain |
CN108694594A (en) * | 2018-05-29 | 2018-10-23 | 阿里巴巴集团控股有限公司 | Commodity source tracing method and device, electronic equipment based on block chain |
CN109034851A (en) * | 2018-09-05 | 2018-12-18 | 深圳正品创想科技有限公司 | Commodity counterfeit prevention source tracing method and its device, block chain node based on block chain |
US20190018867A1 (en) * | 2017-07-13 | 2019-01-17 | International Business Machines Corporation | Rule based data processing |
CN109325785A (en) * | 2018-09-29 | 2019-02-12 | 中山大学 | A kind of multi-model source tracing method based on alliance's chain |
CN109801080A (en) * | 2018-12-27 | 2019-05-24 | 链极智能科技(上海)有限公司 | A kind of luxury goods based on block chain are traced to the source true power method |
CN109872019A (en) * | 2017-12-05 | 2019-06-11 | 航天信息股份有限公司 | Agricultural product quality and safety retroactive method and system |
CN110097376A (en) * | 2019-04-12 | 2019-08-06 | 阿里巴巴集团控股有限公司 | Commodity source tracing method, device, equipment and storage medium |
-
2019
- 2019-09-05 CN CN201910836351.9A patent/CN110543787A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190018867A1 (en) * | 2017-07-13 | 2019-01-17 | International Business Machines Corporation | Rule based data processing |
CN107730384A (en) * | 2017-11-13 | 2018-02-23 | 深圳大学 | Art sales method and server, server end and system based on block chain |
CN109872019A (en) * | 2017-12-05 | 2019-06-11 | 航天信息股份有限公司 | Agricultural product quality and safety retroactive method and system |
CN108694594A (en) * | 2018-05-29 | 2018-10-23 | 阿里巴巴集团控股有限公司 | Commodity source tracing method and device, electronic equipment based on block chain |
CN109034851A (en) * | 2018-09-05 | 2018-12-18 | 深圳正品创想科技有限公司 | Commodity counterfeit prevention source tracing method and its device, block chain node based on block chain |
CN109325785A (en) * | 2018-09-29 | 2019-02-12 | 中山大学 | A kind of multi-model source tracing method based on alliance's chain |
CN109801080A (en) * | 2018-12-27 | 2019-05-24 | 链极智能科技(上海)有限公司 | A kind of luxury goods based on block chain are traced to the source true power method |
CN110097376A (en) * | 2019-04-12 | 2019-08-06 | 阿里巴巴集团控股有限公司 | Commodity source tracing method, device, equipment and storage medium |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111611292A (en) * | 2020-04-22 | 2020-09-01 | 淮阴工学院 | Supply chain management and control method for assembly type building component |
CN111414429A (en) * | 2020-04-24 | 2020-07-14 | 远光软件股份有限公司 | Commodity information management method based on block chain, electronic device and storage medium |
CN111414429B (en) * | 2020-04-24 | 2024-04-26 | 远光软件股份有限公司 | Block chain-based commodity information management method, electronic equipment and storage medium |
CN114255047A (en) * | 2020-09-25 | 2022-03-29 | 续科天下(北京)科技有限公司 | Pork traceability system based on block chain technology |
CN112199719A (en) * | 2020-10-10 | 2021-01-08 | 深圳前海微众银行股份有限公司 | Data processing method, device, equipment and computer readable storage medium |
CN112396527A (en) * | 2020-10-23 | 2021-02-23 | 安徽中科晶格技术有限公司 | Cross-border commodity tracing method based on block chain |
CN113222084A (en) * | 2021-05-11 | 2021-08-06 | 支付宝(杭州)信息技术有限公司 | Block chain based date labeling and querying method and device |
CN113222084B (en) * | 2021-05-11 | 2022-07-08 | 支付宝(杭州)信息技术有限公司 | Block chain-based date labeling and querying method and device |
WO2022237385A1 (en) * | 2021-05-12 | 2022-11-17 | 北京京东乾石科技有限公司 | Goods transfer information processing method and apparatus, device, and storage medium |
CN113657609A (en) * | 2021-08-18 | 2021-11-16 | 深圳技术大学 | Data management method and system based on block chain and federal transfer learning |
CN113657609B (en) * | 2021-08-18 | 2024-05-03 | 深圳技术大学 | Data management method and system based on block chain and federation transfer learning |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110543787A (en) | Storage and acquisition method, storage system and acquisition device for commodity traceability data | |
US9641342B2 (en) | Tracking unitization occurring in a supply chain | |
US10868676B2 (en) | Computerized apparatus for secure serialization of supply chain product units | |
EP3227853A1 (en) | Cryptographic verification of provenance in a supply chain | |
CN111062731A (en) | Block chain-based food safety tracing system and method | |
EP3740924A1 (en) | Methods, application server, block chain node and media for logistics tracking and source tracing | |
AU2020279093A1 (en) | Method and system for generalized provenance solution for blockchain supply chain applications | |
CN100520794C (en) | Method for servicing an electronic certificate for a big-name brand | |
CN112037057B (en) | Correction method and device for block chain data | |
CN111047335A (en) | Article circulation system tracing method and system | |
CN108305079A (en) | A kind of electronic product circulation retroactive method and system | |
RU2216776C2 (en) | Method and system for identifying and accounting marked objects | |
CN111091399A (en) | Block chain-based fidelity traceability method and system for fast-selling goods | |
CN116385023A (en) | Drug traceability system and method based on blockchain | |
CN115330400A (en) | Block chain tracing method, device, system, computing equipment and storage medium | |
CN113657609B (en) | Data management method and system based on block chain and federation transfer learning | |
CN110796457A (en) | Central kitchen product traceability system | |
CN117709981A (en) | Tobacco product monitoring method, device and management system | |
CN112396527A (en) | Cross-border commodity tracing method based on block chain | |
CN110991961A (en) | Block chain-based article inspection method, device, equipment and readable storage medium | |
CN116596551A (en) | Supply chain product tracing method based on block chain, storage medium and electronic equipment | |
RU2322692C1 (en) | Method for identification and accounting of movement of marked objects and informational system for realization of the method | |
CN105938601A (en) | Goods verification method, system and device | |
ES2865973B2 (en) | DISTRIBUTED CERTIFICATION SYSTEM THROUGH NEAR FIELD COMMUNICATION | |
CN112187749B (en) | Production transaction management method and system based on intelligent contract |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191206 |