CN111414429B - Block chain-based commodity information management method, electronic equipment and storage medium - Google Patents

Block chain-based commodity information management method, electronic equipment and storage medium Download PDF

Info

Publication number
CN111414429B
CN111414429B CN202010334191.0A CN202010334191A CN111414429B CN 111414429 B CN111414429 B CN 111414429B CN 202010334191 A CN202010334191 A CN 202010334191A CN 111414429 B CN111414429 B CN 111414429B
Authority
CN
China
Prior art keywords
commodity
information
identity
blockchain
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010334191.0A
Other languages
Chinese (zh)
Other versions
CN111414429A (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.)
Yuanguang Software Co Ltd
Original Assignee
Yuanguang Software 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 Yuanguang Software Co Ltd filed Critical Yuanguang Software Co Ltd
Priority to CN202010334191.0A priority Critical patent/CN111414429B/en
Publication of CN111414429A publication Critical patent/CN111414429A/en
Application granted granted Critical
Publication of CN111414429B publication Critical patent/CN111414429B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • G06F16/275Synchronous replication
    • 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/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0631Item recommendations

Abstract

The application discloses a commodity information management method based on a blockchain, electronic equipment and a storage medium, wherein the method comprises the following steps: the production node of the blockchain acquires production batch information of the commodity; generating an identity of the commodity based on the production batch information; the identity is registered on the blockchain, so that after the management node of the blockchain associates the commodity information of the commodity with the identity and broadcasts the commodity information to the blockchain network for distributed storage, a transaction party of the commodity can inquire the commodity information through the identity. By means of the method, the commodity information of the same batch of commodities can be stored in a uplink mode, the safety of the commodity information and the reliability of commodity information tracing are improved, and quality management of the commodities is facilitated.

Description

Block chain-based commodity information management method, electronic equipment and storage medium
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a blockchain-based commodity information management method, an electronic device, and a storage medium.
Background
The commodity is often operated by a plurality of merchants in the process from raw material acquisition to production and then to consumer acquisition, and a large amount of related commodity information can be generated in each commodity circulation. At present, the management of commodity information in the market is often independently collected and managed by each merchant, and due to lack of credible supervision, the authenticity of the commodity information is doubtful, so that a responsibility main body is difficult to determine when a problem occurs in the commodity, and the commodity information is randomly disposed and can be maliciously utilized, so that counterfeit commodities flow into the market to influence the economic order of the market.
Blockchains are novel application modes of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanisms, encryption algorithms, and the like. Blockchains are essentially a de-centralized database with the features of de-centralization, openness, independence and security. Because of the characteristic that the blockchain account book data cannot be tampered, the information stored on the blockchain is safer and more reliable.
Disclosure of Invention
The application mainly solves the technical problems that: the commodity information management method, the electronic equipment and the storage medium based on the blockchain are provided, the commodity information of the same batch of commodities can be stored in a uplink mode, the safety of the commodity information and the reliability of commodity information tracing are improved, and quality management of the commodities is facilitated.
In order to solve the technical problems, the application adopts a technical scheme that: provided is a blockchain-based commodity information management method, comprising: the production node of the blockchain acquires production batch information of the commodity; generating an identity of the commodity based on the production batch information; the identity is registered on the blockchain, so that after the management node of the blockchain associates the commodity information of the commodity with the identity and broadcasts the commodity information to the blockchain network for distributed storage, a transaction party of the commodity can inquire the commodity information through the identity.
Optionally, generating the identity of the commodity based on the production lot information further comprises: configuring corresponding numbers of each commodity in the same batch of commodities; and generating an identity based on the production batch information and the serial number of the commodity.
Optionally, registering the identity on the blockchain includes: the identification is broadcast to the blockchain network for distributed storage after hash encryption.
In order to solve the technical problems, the application adopts another technical scheme that: provided is a blockchain-based commodity information management method, comprising: the management node of the blockchain acquires the identity of the commodity; the identification mark is generated by a production node of the blockchain based on the production batch information of the commodity, and is registered on the blockchain; acquiring commodity information of commodities; and associating the commodity information with the identity and broadcasting the commodity information to a blockchain network for distributed storage so that a transaction party of the commodity can inquire the commodity information through the identity.
Optionally, the commodity information includes environmental information and quality information of the commodity; the method further comprises the following steps of: judging whether the environment information and the quality information meet the preset commodity requirement or not; and if the information is satisfied, executing the step of associating the commodity information with the identity and broadcasting the commodity information to the blockchain network for distributed storage.
Optionally, before associating the commodity information with the identity and broadcasting to the blockchain network for distributed storage, the method further comprises: inquiring historical information of commodities corresponding to the identity marks in the blockchain; judging whether the historical information meets the preset commodity requirement or not; if yes, the step of associating the commodity information with the identity and broadcasting the commodity information to the blockchain network for distributed storage is executed.
Optionally, if the management node determines that the environmental information and/or the quality information do not meet the preset commodity requirement, or if the management node determines that the history information does not meet the preset commodity requirement, then: further determining the identity of the same batch of commodities associated with the identity; acquiring environmental information, quality information or history information of the same batch of commodities by using the identity of the same batch of commodities, and judging whether the environmental information, the quality information or the history information of the same batch of commodities meets the preset commodity requirement; and/or generating unqualified information of the commodity; and associating the unqualified information with the identity of the commodity and broadcasting the unqualified information to the blockchain network.
Optionally, the acquiring commodity information of the commodity further includes: screening and format conversion are carried out on commodity information to form key commodity information; encrypting the key commodity information to form encrypted electronic data; associating and broadcasting the commodity information with the identity to the blockchain network for distributed storage further comprises: and associating the encrypted electronic data with the identity mark and broadcasting the encrypted electronic data to a blockchain network for distributed storage.
In order to solve the technical problems, the application adopts another technical scheme that: there is provided an electronic device comprising a processor, a memory, and a communication circuit, the processor being coupled to the memory and the communication circuit; the communication circuit is used for communicating the electronic equipment with the external equipment; the memory is used for storing program instructions; the processor is configured to execute program instructions to implement the blockchain-based merchandise information management method of the present application described above.
In order to solve the technical problems, the application adopts a further technical scheme that: there is provided a computer storage medium for storing program instructions executable by a processor to implement the blockchain-based merchandise information management method of the present application as described above.
The beneficial effects of the application are as follows: the application can correlate the same batch of commodities by generating the identity of the commodity by utilizing the production batch information of the commodity, is convenient for timely determining the correlated same batch of commodities when the commodity has problems, and is beneficial to quality control of the commodity; the commodity information is broadcast to the blockchain network for distributed storage, so that the commodity information cannot be tampered, the safety degree of the commodity information and the credibility of the commodity are effectively improved, the commodity information stored in the uplink can be used for tracing the commodity, and the accuracy and the reliability of the tracing information are effectively improved.
Drawings
FIG. 1 is a schematic diagram of a merchandise information management system according to an embodiment of the present application;
FIG. 2 is a flowchart of a first embodiment of a blockchain-based merchandise information management method of the present application;
FIG. 3 is a flowchart of a second embodiment of a blockchain-based merchandise information management method of the present application;
FIG. 4 is a flowchart of a third embodiment of a blockchain-based merchandise information management method of the present application;
FIG. 5 is a flowchart of a fourth embodiment of a blockchain-based merchandise information management method of the present application;
FIG. 6 is a flowchart of a fifth embodiment of a blockchain-based merchandise information management method of the present application;
FIG. 7 is a schematic diagram of an embodiment of an electronic device of the present application;
fig. 8 is a schematic structural view of an embodiment of the storage medium of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The inventor of the present application has long studied to find that: commodity information is currently collected and used by various merchants individually from the production, transportation, distribution, retail, to distribution to consumers. Because the commodity information independently managed by each merchant lacks trusted guarantee, the possibility that the commodity information is tampered maliciously easily occurs, and the reliability of the acquired commodity information is reduced. And because trust gap among various merchants causes the commodity information to be difficult to be trusted and shared, once quality problems occur to a certain commodity, the problem root cannot be quickly found from scattered commodity information, so that the processing time of the commodity problem is prolonged, and property loss of consumers and reputation loss of merchants are easily caused. Moreover, merchants often need to fully recall or reimburse the same type of merchandise during subsequent processing, resulting in greater losses. In order to solve these problems, the present application proposes at least the following embodiments.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an embodiment of a merchandise information management system according to the present application. The present embodiment management system 10 may include a set of blockchain systems 110 and transaction parties 120.
In this embodiment, the blockchain system 110 may include a plurality of blockchain nodes 111 for implementing distributed storage of merchandise information. Transaction parties 120 involved in the various links of the product from production to sale may also be included in the management system 10, including, for example, producers, distributors, carriers, resellers, consumers, insurers, etc. The transaction part 120 may include a person or thing or a collection thereof involved in the transaction of the commodity. The transacting party 120 may obtain the identity of the commodity and query the commodity information stored on the blockchain using the identity.
The blockchain node 111 of the blockchain system 110 may also include a production node 1111 and a management node 1112. Production node 1111 is, for example, blockchain node 111 operated by the commodity producer, and may be used to implement the interaction of the commodity producer with the blockchain network. The production node 1111 may collect production lot information of the commodity and generate an identity of the commodity based on the production lot information. The identity may be used to distinguish between each batch of goods. The production node 1111 may also register the identity of the commodity to the blockchain, for example, broadcast the identity of the commodity to the blockchain network so that other blockchain nodes 111 may store the identity after verifying it is valid.
Management node 1112 may be used for management of merchandise information. For example, the management node 1112 can obtain the identity of the commodity and the commodity information, and broadcast the commodity information to the blockchain network for distributed storage after associating the identity, so that the same batch of commodities can be associated, the associated same batch of commodities can be determined in time when the commodities are problematic, and quality control of the commodities is facilitated. In this embodiment, the management nodes 1112 may include a plurality of blockchain nodes 111 operated by a dealer, a carrier, a manager, etc., and the plurality of management nodes 1112 may be used to respectively manage the commodity information of the transaction party 120 or to query other commodity information on the blockchain.
In the present application, "production node" and "management node" are used for description only, and are not limited to only executable functions or steps, and in some cases, production node 1111 may also execute steps of management node 1112, or management node 1112 may also execute steps of production node 1111. For example, the production node 1111 may also act as a management node 1112 of the producer for collecting production information of the commodity and associating and broadcasting the production information with the identity of the commodity to the blockchain network for distributed storage.
The blockchain nodes 111 in the blockchain system 110 may also be organized according to corresponding rules. For example, each transaction party 120 involved in each link of commodity circulation may run at least one blockchain node 111, and these blockchain nodes 111 may also form a corresponding organization according to the transaction party 120 to which they belong, so that orderly management of blockchain nodes 111 of a plurality of transaction parties 120 participating in the blockchain system 110 is facilitated. At least one management node 1112 may also be provided within the organization for collecting and broadcasting commodity information to ordering nodes in the blockchain network for distributed storage. The blockchain node 111 of the transacting party 120 may also synchronize the complete blockchain to enable trusted sharing of merchandise information.
In this embodiment, the blockchain system 110 may further be provided with a dedicated ordering node for ordering and packaging the commodity information into blocks according to the generation rules of the blocks in the blockchain system 110, and broadcasting the new blocks to the blockchain network for distributed storage. The ordering node may store complete blockchain data to facilitate the traceability and querying of the commodity information stored in the blockchain by the transacting party 120. The sorting nodes can sort and pack commodities in sequence without depending on calculation competition, so that resource waste can be reduced, and packing efficiency is improved.
In this embodiment, the transaction party 120 may query the stored merchandise information on the blockchain using the identity of the merchandise. The commodity can be configured with an identity tag, and the transaction party 120 can use the obtained identity tag to query the corresponding blockchain node 111 or the information query platform 130 for commodity information, so as to be used for tracing the commodity information or identifying or anti-counterfeiting the commodity.
The transaction party 120 may also include an internet of things device 121 for gathering and processing merchandise information and enabling interaction with the blockchain network. The internet of things device 121 may include a code scanning device, a mobile terminal, a client, a positioning apparatus, and the like. The internet of things device 121 of the transaction party 120 may be configured to collect commodity information and send the commodity information to the corresponding management node 1112, which may help the management node 1112 obtain more complete commodity information.
In some embodiments, the management system 10 may further provide a corresponding information query platform 130, and the transaction party 120 may query the information of the commodity through the information query platform 130 by using the identity of the commodity without participating in the blockchain network. For example, the consumer of the commodity may scan the identity tag of the commodity with a terminal device or the like to obtain the identity of the commodity, and transmit the identity to the information query platform 130 to obtain the commodity information corresponding to the identity.
The commodity information management system 10 of the embodiment enables the commodity information not to be tampered by associating and carrying out distributed storage on the identity of the commodity, effectively improves the safety degree of the commodity information and the credibility of the commodity, is convenient for determining the associated commodity in the same batch in time when the commodity has problems, and is beneficial to quality control of the commodity; each transaction party 120 in the commodity circulation process can also operate the corresponding blockchain node 111 to realize the trusted sharing of commodity information; the commodity information stored on the blockchain can also be used for tracing the commodity, so that the accuracy and reliability of the tracing information are effectively improved.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a blockchain-based merchandise information management method according to the present application. The embodiment comprises the following steps:
S101: the production node obtains production batch information of the commodity.
In this embodiment, the production lot information of the commodity may include related production information of the same lot of commodity, for example, including related information such as producer information, production lot number, production time, total production amount, production equipment information, producer information, production responsibility information, and the like. The same batch of goods may comprise one or more goods, or may also comprise multiple assembled parts of goods, etc.
The production node obtains the production batch information of the commodity, for example, the production batch information sent by receiving other devices, such as the internet of things device of the producer. Or the production node may also provide a man-machine interaction interface through which production lot information input by the producer is received. The production node may also be configured with an information acquisition unit for acquiring production lot information of the commodity.
S102: the production node generates an identity of the commodity based on the production lot information.
In this embodiment, after the production node obtains the production lot information of the commodity, the production node may generate the identity of the commodity based on some or all of the information in the production lot information. The identity comprises, for example, a character string, a graphic code, etc. The identity of the article may be used to identify each article individually or each batch of articles separately from other articles.
The identification of the commodity generated by the production node based on the production lot information may be generated by combining part of the information in the production lot information. For example, the production node may generate the identity of the commodity according to the manufacturer name or code number, the production time, and the production equipment number of the commodity in the production lot information. For example, in a specific embodiment, in the production batch information, the producer of the commodity is XX, the production time is 2020, month 4 and 1, and the corresponding production equipment number is E07, so that the production node may generate the identity of the commodity is XXE0720200401.
In some embodiments, each batch of goods may include multiple goods, and the production node may further separately configure the identity of each of the goods to distinguish between the goods. For example, S102 may further include: the production node configures corresponding numbers of each commodity in the same batch of commodities; and generating an identity based on the production batch information and the serial number of the commodity.
The serial numbers of the commodities can be character strings in any form, and the commodity numbers of the commodities are different from one another so as to distinguish the commodities. For example, the total number of commodities in a certain batch is 100, and the production node can sequentially configure the serial numbers of the commodities to be 001-100; or the production node may also generate a random string that is not repeated, serving as the number for each commodity. The production node may also combine the serial number of the commodity with the production lot information to form an identification. For example, in the above specific embodiment, the number of the batch of commodities is 100, and a certain commodity is 007, the production node may configure the identity of the commodity to be XXE0720200401007. The production node is favorable for distinguishing each commodity by configuring the serial number for each commodity in the same batch of commodities, and the identity mark generated based on the production batch information and the serial number of the commodity can be used for distinguishing each commodity, and the identity mark of the same batch of commodities is relevant, so that the related same batch of commodities can be determined in time when the commodities are in a problem, and the quality control of the commodities is favorable.
Optionally, after the production node obtains the production batch information of the commodity, the production batch information can be encrypted to generate a character string with a specific length, the character strings formed by encrypting different production batch information are different, and the character string can be used as the identity of the commodity. Therefore, the privacy of commodity production batch information can be effectively protected, and commodities in each batch can be effectively distinguished. The production node can also use the character string formed by encrypting the production batch information and the serial number of the commodity as the identity of the commodity so as to effectively distinguish each commodity.
In some embodiments, after the production node generates the identity of the commodity based on the production batch information, the producer may also imprint the identity on the commodity, or form a corresponding identity tag based on the identity, and configure the corresponding identity tag on the commodity for identification and distinction of the commodity. Identity tags include, but are not limited to, electronic tags and graphic codes, such as RFID tags, NFC tags, zigBee tags, bar codes, two-dimensional codes, and the like. The identity tag can be used for identifying each commodity, so that the discrimination and anti-counterfeiting of the commodity are facilitated.
S103: the production node registers the identity with the blockchain.
In this embodiment, the production node may register the identity of the commodity to the blockchain, for example, the production node may broadcast the identity of the commodity to the blockchain network, and when the identity is verified to be legal and correctly stored in a distributed manner, the identity of the commodity is indicated to be legal and valid.
After the identity is registered in the blockchain, the identity can be used for being associated with commodity information of corresponding commodities stored in the blockchain, so that the blockchain node can store and manage the commodity information orderly. And the blockchain node can search the related commodity information stored in the blockchain through the identity according to the corresponding query rule, thereby being beneficial to improving the query efficiency of the commodity information.
In some embodiments, the production node may configure an independent identity for each commodity of the same batch of commodities, and when registering the identity on the blockchain, the production node may also associate and register the identity of the same batch of commodities on the blockchain, so that the commodity information of each commodity can be distinguished on the blockchain, and tracing of the commodity information of the same batch of commodities is facilitated. For example, the production node can form the identity of the same batch of commodities into a list or an array, and then register the formed list or array to the blockchain, so that the identity of each commodity can be registered to the blockchain, the operation steps of registering a plurality of identities by the production node can be saved, and the registration efficiency can be improved.
When registering the identity mark on the blockchain, the production node can also sign the identity mark by using a private key, so that the validity of the identity mark and the validity of the identity of a corresponding producer can be verified by other blockchain link points. Other blockchain nodes can perform distributed storage on the identity after verifying that the identity is valid.
S104: the management node obtains the identity of the commodity.
In this embodiment, the management node may obtain the identity of the commodity by identifying the identity imprinted on the outer package of the commodity; or the management node can also receive the identity identifier transmitted by the internet of things device or receive the input identity identifier through the man-machine interaction interface.
In some embodiments, the article may also be configured with an identity tag for obtaining an identity of the article via the identity tag. Identity tags include, but are not limited to, electronic tags and graphic codes, such as RFID tags, NFC tags, zigBee tags, bar codes, two-dimensional codes, and the like. The management node can also obtain the identity of the commodity by scanning the identity tag.
For example, the article may be configured with an RFID tag. RFID tags may be used to hold the identity of the article and some related information. The management node can be further configured with a corresponding RFID read-write unit for performing read-write operation on the RFID tag. For example, in this embodiment, S104 may further include: and the management node reads the RFID tag of the commodity by using the RFID read-write unit to obtain the identity.
The management node reads the RFID tag of the commodity by using the RFID read-write unit without manual intervention, so that the authenticity and the effectiveness of the obtained identity can be ensured. The RFID tag can be a passive tag, and after the RFID tag of the commodity enters a magnetic field emitted by the RFID read-write unit, the energy obtained by the induction current can be used for sending the identity mark or other relevant information stored in the RFID read-write unit. The RFID tag can also be an active tag, and can automatically send the identity mark or other relevant information stored in the RFID read-write unit.
In some embodiments, after acquiring the identity of the commodity, the management node may also acquire a commodity identity list registered on the blockchain to verify whether the identity of the commodity is correct and valid, so that the possibility of counterfeiting the commodity can be effectively reduced. For example, the management node may match the identity with identities in a list of identities on the blockchain, and query whether the identities are properly registered on the blockchain. The management node may further verify whether the identity of the commodity is revoked to verify whether the identity is valid. If the management node verifies that the identity of the commodity is correct and effective, the following steps can be continuously executed; if the management node verifies that the identity is incorrect or invalid, the following steps can be refused to be executed.
S105: and the management node acquires commodity information of the commodity.
In this embodiment, the commodity information may include information about the commodity full link from raw material acquisition to final to consumer. The management node can collect relevant information of the commodities in each link respectively to form commodity information. The management node may receive the commodity information of the commodity through the man-machine interaction interface, or may also receive the commodity information transmitted by other internet of things devices; or the management node can be also configured with a corresponding information acquisition unit for acquiring commodity information of the commodity.
The merchandise information may include production information, logistics information, sales information, warranty information, and the like. The production information includes, for example, producer information, raw material information, production lot number, production time, production total amount, production equipment information, producer information, production responsibility information, warehouse entry information, and the like. The logistics information includes, for example, shipping time, shipper information, dealer information, shipment information, carrier information, transportation path, invoice number, stream express bill number, receipt information, and the like. The sales information includes, for example, retailer information, consumer information, total amount of goods, sales mode, and the like. The warranty information includes, for example, warranty merchant information, transaction party information, warranty time, warranty amount, and the like. The management node can receive the input commodity information through the man-machine interaction interface, or can also receive commodity information sent by other devices.
The merchandise information may also include various types of information such as paper documents or electronic data. The paper document of the commodity includes, for example, raw material purchase receipts or contracts of the commodity, production records, logistics transportation receipts, transportation orders, warehouse slips, sales receipts, identification documents of transaction parties, other paper notes, and the like. The electronic data of the commodity comprises electronic data received by the management node through a man-machine interaction interface or electronic data sent to the management node by other internet of things equipment.
In some embodiments, the management node obtains the paper documents of the commodity, and can also electronically form commodity data, so that the storage and management of the paper documents of the commodity can be facilitated, and the commodity information can be more complete by storing the electronic paper documents.
The merchandise data may include data in a variety of formats including, for example, data of pictures, audio, video, electronic documents, and the like. The management node may be provided with a corresponding electronic unit for electronically forming the paper document to form commodity data in a corresponding format. For example, the management node may include a scanning unit, and the management node may further scan the paper document with the scanning unit to form the commodity data. The management node can integrate commodity data formed by a plurality of paper files of the commodity. For example, the management node can integrate a plurality of electronic documents obtained by scanning a plurality of paper documents of the commodity into one electronic document according to a corresponding sequence, so that the storage space of commodity data is saved, and the commodity data of a plurality of commodities are managed in order.
In this embodiment, the steps of S104 and S105 are only described in order, and are not limited to the execution order of the management node, and the management node may execute the two steps simultaneously, or may execute the two steps sequentially, for example, the management node may acquire the identity of the commodity first and then acquire the commodity information; or the commodity information can be acquired first and then the identity mark can be acquired.
S106: the management node associates the commodity information with the identity and broadcasts the commodity information to the blockchain network for distributed storage.
In this embodiment, the management node may associate the commodity information with the identity and broadcast the commodity information to the blockchain network for distributed storage. For example, the management node may associate the commodity information with the identity and then send the commodity information to the sorting node in the blockchain system, the sorting node may sort and package the commodity information into blocks, and then broadcast the new blocks to the blockchain network, and other blockchain nodes may store the blocks after verifying that the blocks are correct, so that the commodity information packaged into the blocks may implement distributed storage on the blockchain.
The management node can also sign the commodity information by utilizing the private key before broadcasting the correlated commodity information to the blockchain network, so that the effectiveness of the identity of the management node can be verified by the blockchain link point, and the identity of the corresponding transaction party can be conveniently determined through the identity of the management node when the commodity information is checked later.
The commodity information can not be tampered after being stored on the blockchain, so that the safety and reliability of the commodity information can be effectively improved, and the trading parties in all links of commodity flow can synchronize the blockchain data through the blockchain nodes so as to realize the trusted sharing of the commodity information. The management node correlates the commodity information with the identity mark and then performs distributed storage, which is beneficial to orderly storage and management of the commodity information, and is convenient for quickly searching corresponding commodity information in the blockchain through the identity mark when the commodity information is searched later. In addition, in the embodiment, the identity of the commodity is generated based on the production batch of the commodity, once a certain commodity has a problem, the commodity in the same batch can be traced back on the blockchain rapidly, all similar commodities are prevented from being put down, and the loss of a transaction party is effectively reduced.
S107: the transaction party obtains the identity of the commodity.
In this embodiment, the identity of the commodity obtained by the transaction party may be obtained by identifying the identity imprinted on the outer package of the commodity. Or when the commodity is configured with the identity tag, the transaction party can also scan the identity tag by using the corresponding scanning equipment to obtain the identity tag of the commodity. The specific content of this step may refer to the step of obtaining the identity by the management node in S104, which is not described herein.
S108: the transaction party inquires commodity information through the identity.
In this embodiment, after the transaction party obtains the identity of the commodity, the identity of the commodity can be used to query the commodity information for verifying the commodity information or authenticating or anti-counterfeiting the commodity. The transaction party can request to acquire commodity information corresponding to the identity stored on the blockchain by sending the identity to a blockchain node, such as a management node. Or the transaction party can also participate in the blockchain network as a blockchain link point to synchronize the complete blockchain, and after the transaction party obtains the identity of the commodity, the transaction party can also directly inquire the corresponding commodity information from the blockchain stored by the transaction party.
In some embodiments, the management system is further provided with a corresponding information inquiry platform, and the transaction party can also inquire the commodity information through the information inquiry platform by utilizing the identity of the commodity. For example, the transaction party can scan the identity tag of the commodity by using the terminal equipment and the like to obtain the identity tag of the commodity, and transmit the identity tag to the information inquiry platform to obtain commodity information corresponding to the identity tag, so that the consumer of the commodity can inquire the commodity information quickly.
According to the embodiment, the identity of the commodity is generated by utilizing the production batch information of the commodity, so that the same batch of commodities can be associated, the associated same batch of commodities can be determined in time when the problem occurs to the commodities, and the quality control of the commodities is facilitated; the commodity information is broadcast to the blockchain network for distributed storage, so that the commodity information cannot be tampered, the safety degree of the commodity information and the credibility of the commodity are effectively improved, the commodity information stored in the uplink can be used for tracing the commodity, and the accuracy and the reliability of the tracing information are effectively improved.
In the present embodiment, the order of steps S101 to S108 is the description order in the present embodiment, and is not limited to the order of the blockchain-based commodity information management method in the present embodiment during execution, and some steps may be replaced, executed simultaneously, or executed separately on the premise that the method can be implemented.
Referring to fig. 3, fig. 3 is a flowchart illustrating a second embodiment of a blockchain-based merchandise information management method according to the present application. The present embodiment is further described on the basis of the first embodiment of the blockchain-based commodity information management method of the present application, and the same steps as those of the first embodiment of the blockchain-based commodity information management method of the present application are not described herein again. The embodiment comprises the following steps:
S201: the production node obtains production batch information of the commodity.
S202: the production node generates an identity of the commodity based on the production lot information.
S203: the production node registers the identity with the blockchain.
In this embodiment, when the production node registers the identity to the blockchain, the identity may also be encrypted to protect the privacy of the identity of the commodity. For example, S103 may further include: the production node hashes the identity and broadcasts the hashed identity to a blockchain network for distributed storage. After the production node hashes the identity mark, the relevant information of the commodity in the identity mark can be effectively hidden, and other block link points can not directly acquire the relevant information of the commodity from the encrypted ciphertext after the identity mark is registered to the block chain due to the irreversibility of the hash encryption, so that the privacy security of commodity information can be facilitated.
S204: the management node obtains the identity of the commodity and commodity information.
S205: the management node screens and format converts the commodity information to form key commodity information.
In this embodiment, after the management node obtains the commodity information, the management node may also screen and format convert the commodity information so as to extract the key commodity information, and then store the key commodity information in a distributed manner, so that it is not only ensured that the key commodity information is not tamperable, but also the storage space of the blockchain node may be saved.
The management node can screen commodity information according to the corresponding rule. For example, the management node may filter the commodity information, and filter repeated information, erroneous information or incomplete information in the commodity information, or filter information with incorrect type or format in the commodity information, so as to improve the effectiveness and accuracy of the commodity information.
The management node can also select important data to be stored in a distributed manner according to the corresponding function of the transaction party. For example, the management node of the producer can screen the commodity data and extract relevant commodity information such as the identity of the producer, the production batch number of the commodity, the production time, the production equipment information and the like; the management node of the carrier can screen the commodity information and extract the related commodity information such as carrier identification, logistics personnel identification, logistics transportation bill, transportation route and the like. The management node can extract important commodity information for distributed storage by screening commodity information, so that the effectiveness of the commodity information can be ensured, and the simplified commodity information is beneficial to the follow-up high-efficiency inquiry of the commodity information.
The management node can also perform format conversion on the screened commodity information so as to integrate the commodity information into a required data format. For example, the commodity information screened by the management node has two types of picture format and video format, the management node converts the commodity information in the picture format into the information in the corresponding video format through format conversion and integrates the commodity information into a whole to form key commodity information, so that the ordered management of the commodity information is facilitated, and the calculation amount of the block chain link point for carrying out distributed storage on the commodity information can be saved.
S206: the management node encrypts the critical merchandise information to form encrypted electronic data.
In this embodiment, before broadcasting the key commodity information to the blockchain network, the management node may further encrypt the key commodity information by using a corresponding encryption algorithm to form encrypted electronic data, so that the commodity information may be effectively hidden, and the function of protecting the security and privacy of the commodity information is played.
The management node may encrypt the merchandise information in a variety of encryption manners. For example, the management node can encrypt the commodity information by adopting a symmetrical encryption method to form encrypted electronic data, and the encryption operation is simple and quick and has high safety. Or the management node can encrypt the commodity information by adopting an asymmetric encryption method. For example, the management node can encrypt commodity information by using the private key to form encrypted electronic data, and when the other party needs to acquire the content in the encrypted electronic data, the encrypted electronic data can be decrypted by using the authorized public key, so that the encryption key of the management node can be effectively protected, and the security is improved.
In some embodiments, the management node may encrypt the commodity information according to a hash encryption manner to form a corresponding hash value, and the management node may send the hash value as encrypted electronic data to the block link point for distributed storage, so that a storage space occupied by the block chain account book may be effectively saved, and an accounting efficiency of the block chain node is improved. And due to the characteristic of hash encryption, once commodity information is modified, the value of the commodity information after hash encryption can be changed. When other blockchain nodes verify the authenticity of commodity information, whether the commodity information is authentic or not can be verified by comparing a hash value formed by carrying out hash encryption on the commodity information with a hash value stored on a blockchain, so that the commodity information is effectively protected from being tampered, and the authenticity of the commodity information is improved.
S207: the management node associates the encrypted electronic data with the identity and broadcasts the encrypted electronic data to the blockchain network for distributed storage.
In this embodiment, when the management node performs distributed storage on the commodity information, the management node may also broadcast encrypted electronic data formed after encryption to the blockchain network for distributed storage, so that the privacy of the commodity information can be effectively protected. The management node may also hash encrypt the identity of the commodity, and then associate the encrypted electronic data with a hash value corresponding to the identity.
The management node can also sign the associated encrypted electronic data and the identity by using a private key before broadcasting the encrypted electronic data and the identity to the blockchain network, so that the effectiveness of the identity of the management node can be verified by the blockchain link point, and the source of the corresponding commodity information can be conveniently determined through the identity of the management node when the commodity information is checked later.
S208: the transaction party obtains the identity of the commodity.
S209: the transaction party inquires commodity information through the identity.
In this embodiment, when a transaction party queries commodity information, the transaction party may request corresponding commodity information from any blockchain node or a corresponding information query platform through an identity. Because the encrypted electronic data is stored on the blockchain, the transaction party can decrypt the obtained encrypted electronic data to obtain key commodity information corresponding to the encrypted electronic data.
In some embodiments, stored in the blockchain is a hash value that hashes merchandise information. The transaction party can also obtain the hash value of the commodity through the blockchain node, or when the transaction party itself is used as the blockchain node to store the complete blockchain, the transaction party can also inquire the corresponding hash value from the stored blockchain, and the management node corresponding to the commodity information can be determined through the signature of the commodity information. The transaction party can also request corresponding commodity information from the management node for verification. Optionally, after the obtained commodity information, the transaction party can also carry out hash encryption on the commodity information so as to verify whether the encrypted hash value is consistent with the corresponding hash value stored on the blockchain, thereby determining whether the commodity information is modified or not, and effectively improving the credibility of the commodity information.
The management node of the embodiment can extract important information in commodity information by screening the commodity information, and can integrate the extracted commodity information into key commodity information through format conversion, so that the effectiveness and accuracy of the commodity information can be improved, ordered management of the commodity information on the blockchain can be facilitated, and the calculated amount and storage space of the blockchain link point when the commodity information is stored in a distributed mode can be saved; the key commodity information can be stored in the blockchain after being encrypted, so that the safety and privacy of the commodity information can be effectively protected.
In this embodiment, the order of steps S201 to S209 is the description order in this embodiment, and is not limited to the order in the execution process of the blockchain-based commodity information management method in this embodiment, and on the premise that the method can be implemented, some steps may be exchanged, executed simultaneously, or executed separately.
Referring to fig. 4, fig. 4 is a flowchart illustrating a third embodiment of a blockchain-based merchandise information management method according to the present application. The present embodiment is further described on the basis of the first embodiment of the blockchain-based commodity information management method of the present application, and the same steps as those of the first embodiment of the blockchain-based commodity information management method of the present application are not described herein again. The embodiment comprises the following steps:
S301: the production node obtains production batch information of the commodity.
S302: the production node generates an identity of the commodity based on the production lot information.
S303: the production node registers the identity with the blockchain.
In this embodiment, the production node may configure an independent identity for each commodity of the same batch of commodities, and when registering the identity on the blockchain, the production node may also associate and register the identity of the same batch of commodities on the blockchain, so that the commodity information of each commodity can be distinguished on the blockchain, and tracing of the commodity information of the same batch of commodities is facilitated.
S304: the management node obtains the identity of the commodity and commodity information.
In this embodiment, the commodity information may further include environmental information and quality information of the commodity. The environmental information of the commodity includes, for example, information about the environment in which the commodity is produced, stored, or transported, such as temperature, humidity, air pressure, sealability, air quality, and the like. The quality information includes, for example, performance, yield, immune quarantine, appearance quality, and the like. The management node can receive the environment information and the quality information of the commodities acquired and transmitted by other equipment; or the management node can be also configured with a corresponding information acquisition unit for acquiring the environment information and the quality information of the commodity.
In some embodiments, the article may also be configured with an RFID tag having an environmental detection module. The RFID tag can automatically measure environmental information such as temperature or humidity of the environment where the commodity is located. The management node can also read the environmental information stored in the RFID of the commodity through the RFID read-write unit, and the environmental information of the commodity obtained in this way is more accurate and effective. The management node can also read the temperature data and the humidity data together when the RFID read-write unit is used for reading the identity of the commodity in the RFID tag, so that the operation steps of the management node can be saved. Optionally, the environment detection module of the RFID tag can also measure the temperature and humidity of the environment where the commodity is located at a time at preset intervals, and store the temperature data and the humidity data measured for a plurality of times, so that the environment change of the commodity in the process of multiple times of running or long-distance transportation can be conveniently monitored, and the problem cause can be timely determined when the quality problem of the commodity is caused by the environment change.
Optionally, the quality information of the commodity may include quality information formed after the transaction party to which the management node belongs performs quality detection on the commodity, and the management node may receive the input quality information of the commodity through the man-machine interaction interface. Or the quality information of the commodity can also comprise the quality information written into the RFID label of the commodity after the quality detection of the commodity by other quality detection parties, and the management node can read the quality information of the commodity in the RFID label by utilizing the RFID read-write unit.
S305: the management node judges whether the environment information and the quality information of the commodity meet the preset commodity requirement.
In this embodiment, after acquiring the commodity information, the management node may further verify the commodity information to determine whether the commodity meets the requirement. For example, the management node may determine whether the environmental information and the quality information of the commodity meet the preset commodity requirement, so as to determine whether the commodity is unqualified or illegal.
The preset commodity demand can be used for standardizing the rules of management and operation of commodities by each transaction party in the commodity circulation process. The preset commodity demand comprises related rules of environment information and quality information of various links of commodity production, transportation, storage and sales, for example. For example, in the commodity production process, the production environment, raw materials, performance detection modes and the like of the commodity can be specified in preset commodity demands; for another example, in the commodity transportation process, the transportation time, the transportation mode, the transportation environment, the commodity package, etc. of the commodity can be specified in the preset commodity demand.
The management node determines whether the environmental information and the quality information of the commodity meet the preset commodity requirement, for example, the environmental information and the quality information can be extracted to be corresponding to the corresponding information in the environmental information and the quality information, and the environmental information and the quality information can be compared with the corresponding rule in the preset commodity requirement. For example, the temperature range of the preset commodity in the commodity demand is 0-10 ℃ when the commodity is transported, the management node obtains the environment information of the commodity and then determines that the temperature in the commodity transportation process is 7 ℃, and then the management node determines that the temperature in the commodity transportation process meets the preset commodity demand.
In this embodiment, if the management node determines that both the environmental information and the quality information of the commodity meet the preset commodity requirement, the following step S308 may be performed. If the management node determines that the environmental information and/or quality information of the commodity do not meet the preset commodity requirement, the steps of S309 to S311 and/or the steps of S312 to S313 may also be performed.
In some embodiments, the management node may further determine whether the historical information of the commodity meets the preset commodity requirement, for example, performing steps S306 to S307.
S306: the management node inquires the historical information of the commodity corresponding to the identity.
The history information of the commodity is, for example, commodity information of the past commodity stored in the blockchain. The historical information of the commodity may be commodity information uploaded by management nodes of other transaction parties. The management node can acquire commodity information uploaded by any management node before on the blockchain. For example, the management node of the dealer queries the historical information of the merchandise, which may include merchandise information uploaded by the production node or the management node of the carrier.
The historical information of the commodity can comprise commodity information which is broadcasted to the blockchain network by the management node of each link in the commodity circulation process and is stored in a distributed mode, and the commodity information comprises production information, logistics information, sales information, warranty information and the like of the commodity. The management node is used as one of the block chain link points, can synchronize complete block chain data, and can quickly inquire the history information of corresponding commodities through the identity. Or the management node can not synchronize the complete blockchain data, the management node can request corresponding historical information by sending the identity of the commodity to an accounting node in the blockchain system.
In some embodiments, when the hash value of the commodity information is stored in the blockchain, the management node may further determine the management node corresponding to the commodity information according to the signature corresponding to the hash value of the commodity information corresponding to the identity after querying the hash value of the commodity information corresponding to the identity, and request the corresponding commodity information from the management node.
S307: the management node judges whether the historical information of the commodity meets the preset commodity requirement.
After the management node obtains the historical information of the commodity, the historical information of the commodity can be verified to judge whether the commodity meets the requirement or not. For example, the management node may determine whether the production information, the logistics information, the sales information, the warranty information, or the like of the commodity meets the preset commodity requirement, so as to determine whether the commodity is unqualified or illegal.
In this embodiment, the management node determining whether the historical information of the commodity meets the preset commodity requirement may also include determining whether the previous environmental information and quality information of the commodity meet the preset commodity requirement, and the specific operation and details may refer to the description of S305, which is not repeated herein.
In this embodiment, if the management node determines that the history information of the commodity meets the preset commodity requirement, the following step S308 may be performed. If the management node determines that the history information of the commodity does not meet the preset commodity requirement, the steps of S309 to S311 and/or the steps of S312 to S313 may be executed.
S308: the management node associates the commodity information with the identity and broadcasts the commodity information to the blockchain network for distributed storage.
In this embodiment, if the management node determines that the environmental information and the quality information of the commodity meet the preset commodity requirement, or if the management node determines that the history information of the commodity meets the preset commodity requirement, the commodity information and the identity can be associated and broadcasted to the blockchain network for distributed storage.
S309: the management node determines the identity of the same batch of commodities associated with the identity of the commodity.
In this embodiment, if the management node determines that the environmental information and the quality information of the commodity do not meet the preset commodity requirement, or the management node determines that the history information of the commodity does not meet the preset commodity requirement, the management node may further determine whether the commodity information of other commodities in the same batch as the commodity meets the preset commodity requirement, so that it is beneficial to timely find out the commodity problem and dispose, and reduce the loss. For example, the management node may query the identity of other commodities of the same batch of commodities associated on the blockchain through the identity of the commodity, and then query the commodity information of the same batch of commodities by using the identity.
S310: the management node acquires environmental information, quality information or history information of the same batch of commodities.
In this embodiment, the management node may obtain corresponding environmental information, quality information or history information by using the identity of the same batch of commodities, and may refer to the contents of S304 and S306 specifically, which are not described herein again.
S311: the management node judges whether the environmental information, quality information or history information of the same batch of commodities meet the preset commodity requirement.
After the management node obtains the environmental information, the quality information or the history information of the same batch of commodities, the management node can further judge whether the information meets the preset commodity requirement, so as to further determine whether unqualified commodities exist in the same batch of commodities. The specific content of this step may also refer to the descriptions of S305 and S307, which are not described herein.
The management node can comprehensively and effectively identify unqualified commodities in the same batch of commodities by verifying the environmental information, the quality information or the historical information of the same batch of commodities, and can prevent all the commodities from being put off the shelf when a certain number of commodities are in problem, so that the quality of the put-on commodities can be effectively ensured, and the loss can be reduced. The management node can record the identification of the commodity corresponding to the commodity information which does not meet the preset commodity requirement after judging, so that the qualified and unqualified commodities can be distinguished conveniently, and the ordered and efficient processing of the unqualified commodities is facilitated.
S312: the management node generates reject information for the commodity.
In this embodiment, if the management node determines that the environmental information, quality information or history information of the commodity does not meet the preset commodity requirement, the management node may also generate unqualified information of the commodity and broadcast the unqualified information to the blockchain network for warning the other transaction parties that receive the same batch of commodity.
The reject message of the article may include specific information that the article does not meet the preset article requirement, information of the inspection party, information of the inspection time, and the like. The management node may generate a reject message of the commodity based on a result of the determination of the environmental information, the quality information, or the history information of the commodity.
S313: the management node associates the unqualified information with the identity of the commodity and broadcasts the unqualified information to the blockchain network.
The management node can also correlate the unqualified information of the commodity with the identity of the commodity and broadcast the unqualified information to the blockchain network, so that other management nodes in the blockchain network can timely check the commodity information of the corresponding same batch of commodity after receiving the unqualified information, and thus similar problems can be quickly found and damage can be timely stopped.
In this embodiment, after the management node broadcasts the unqualified information to the blockchain network, other blockchain nodes may perform distributed storage on the unqualified information after verifying that the unqualified information is correct, so as to facilitate subsequent inspection and responsibility tracing of the commodity.
S314: the transaction party obtains the identity of the commodity.
S315: the transaction party inquires commodity information through the identity.
In this embodiment, when the transaction party queries the commodity information by using the identity, the corresponding blockchain node or the information query platform can also transmit the unqualified information of the same batch of commodities to the transaction party together, so that the transaction party can timely check the commodities and timely take solving measures when the same problem is found, thereby reducing loss.
The management node in the embodiment can determine whether quality disqualification or illegal operation occurs in the commodity circulation process by checking the environment information, the quality information and the historical information of the commodity, so that quality control of the commodity is facilitated, and when the disqualification commodity is found, the management node can determine the related commodity in the same batch through the identity of the commodity and verify the commodity information of the commodity in the same batch, so that the disqualification commodity in the same batch can be comprehensively and effectively determined, and the problem that all commodities are put down when a certain commodity number is out of order is avoided; the management node can also generate an unqualified message of the commodity and broadcast the unqualified message to the blockchain network after being associated with the identity mark when the unqualified commodity is found, so that other management nodes can be effectively warned to inspect the same batch of commodities and stop damage in time.
In this embodiment, the order of steps S301 to S315 is the description order in this embodiment, and is not limited to the order in the execution process of the blockchain-based commodity information management method in this embodiment, and some steps may be replaced, executed simultaneously, or executed separately on the premise that the method can be implemented. This embodiment may be combined with the second embodiment of the blockchain-based commodity information management method of the present application.
Referring to fig. 5, fig. 5 is a flowchart illustrating a fourth embodiment of a blockchain-based merchandise information management method according to the present application. The embodiment takes a production node as an execution main body, and comprises the following steps:
s401: the production node obtains production batch information of the commodity.
S402: the production node generates an identity of the commodity based on the production lot information.
S403: the production node registers the identity on the blockchain.
In this embodiment, the production node may register the identity of the commodity on the blockchain, so that after the management node of the blockchain associates and broadcasts the commodity information of the commodity with the identity to the blockchain network for distributed storage, the transaction party of the commodity can query the commodity information through the identity.
In this embodiment, for more functions and execution steps of the production node, reference may be made to the descriptions of the first to third embodiments of the blockchain-based commodity information management method according to the present application, and the description is omitted herein.
Referring to fig. 6, fig. 6 is a flowchart of a fifth embodiment of a blockchain-based merchandise information management method according to the present application. The embodiment takes a management node as an execution main body, and includes:
s501: the management node obtains the identity of the commodity.
In this embodiment, the identification is generated by the production node of the blockchain based on the production lot information of the commodity, and the identification is registered on the blockchain.
S502: and the management node acquires commodity information of the commodity.
S503: the management node associates the commodity information with the identity and broadcasts the commodity information to the blockchain network for distributed storage.
In this embodiment, the management node associates and broadcasts the commodity information with the identity to the blockchain network for distributed storage, so that the transaction party of the commodity can query the commodity information through the identity.
In this embodiment, regarding more functions and execution steps of the management node, reference may be made to the descriptions of the first to third embodiments of the blockchain-based commodity information management method according to the present application, and the description is omitted herein.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an embodiment of an electronic device according to the present application. The electronic device 70 of the present embodiment includes a processor 71, a memory 72 and a communication circuit 73, and the processor 71 is coupled to the memory 72 and the communication circuit 73.
In the present embodiment, the communication circuit 73 is used for the electronic device 70 to communicate with an external device. The memory 72 is used to store program instructions. The processor 71 is configured to execute program instructions to implement the steps of the production node and/or the management node in the first through fifth embodiments of the blockchain-based merchandise information management method of the present application.
In this embodiment, the processor 71 may also be referred to as a CPU (Central Processing Unit ). The processor 71 may be an integrated circuit chip with signal processing capabilities. Processor 71 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Further execution processes and functions of the electronic device 70 in this embodiment may refer to the descriptions of the first to fifth embodiments of the blockchain-based commodity information management method according to the present application, and are not repeated here.
Referring to fig. 8, fig. 8 is a schematic diagram illustrating a structure of a storage medium according to an embodiment of the present application. The storage medium 80 in this embodiment is for storing program instructions 81. The program instructions 81 can be executed by a processor to implement the steps of the production node and/or the management node in the first to fifth embodiments of the blockchain-based commodity information management method of the present application described above. The description of the first to fifth embodiments of the blockchain-based commodity information management method according to the present application may be referred to, and will not be repeated here.
The methods according to the first to fifth embodiments of the blockchain-based commodity information management methods of the present application may be stored in a computer-readable storage medium if implemented in the form of software functional units and sold or used as independent products. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium 80 includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random-access Memory (RAM, random Access Memory), a magnetic disk or an optical disk, or other devices including a mobile terminal or the like that can store program codes.
The foregoing description is only of embodiments of the present application, and is not intended to limit the scope of the application, and all equivalent structures or equivalent processes using the descriptions and the drawings of the present application or directly or indirectly applied to other related technical fields are included in the scope of the present application.

Claims (9)

1. A blockchain-based commodity information management method, comprising:
the production node of the blockchain acquires production batch information of the commodity;
generating an identity of the commodity based on the production batch information;
Registering the identity mark on the blockchain, so that the management node of the blockchain can send commodity information of the commodity and the identity mark to a sorting node in a correlated mode, and the sorting node can sort and broadcast the commodity information to a blockchain network for distributed storage, so that a transaction party of the commodity can inquire the commodity information through the identity mark; the management node verifies that the identity is valid based on a commodity identity list registered on the blockchain, and sends commodity information of the commodity and the identity to the sequencing node after determining that historical information of the commodity corresponding to the identity on the blockchain meets preset commodity requirements.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
The generating the identity of the commodity based on the production lot information further includes:
configuring corresponding numbers of each commodity in the same batch of commodities;
and generating the identity mark based on the production batch information and the serial number of the commodity.
3. The method of claim 1, wherein the step of determining the position of the substrate comprises,
The registering the identity on the blockchain includes:
and broadcasting the identification mark to the blockchain network after hash encryption so as to perform distributed storage.
4. A blockchain-based commodity information management method, comprising:
the management node of the blockchain acquires the identity of the commodity; the identification mark is generated by a production node of the blockchain based on the production batch information of the commodity, and is registered on the blockchain;
Acquiring commodity information of the commodity;
Verifying whether the identity is valid based on a commodity identity list registered on the blockchain;
inquiring historical information of the commodity corresponding to the identity in the blockchain;
Judging whether the history information meets the preset commodity requirement or not; and responding to the fact that the identity mark is effective and the history information meets the preset commodity demand, and sending the commodity information and the identity mark to a sequencing node in a correlated mode, so that the sequencing node can broadcast the commodity information to a blockchain network for distributed storage after sequencing, and a transaction party of the commodity can inquire the commodity information through the identity mark.
5. The method of claim 4, wherein the commodity information includes environmental information and quality information of the commodity;
the step of acquiring commodity information of the commodity further comprises the following steps:
Judging whether the environment information and the quality information meet the preset commodity requirement or not;
And if the commodity information and the identity are satisfied, executing the step of associating the commodity information with the identity and broadcasting the commodity information to a blockchain network for distributed storage.
6. The method of claim 5, wherein the method further comprises:
If the management node judges that the environmental information and/or the quality information do not meet the preset commodity demand, or if the management node judges that the history information does not meet the preset commodity demand, then:
further determining the identity of the same batch of commodities associated with the identity; acquiring the environmental information, quality information or history information of the same batch of commodities by using the identity of the same batch of commodities, and judging whether the environmental information, quality information or history information of the same batch of commodities meets the preset commodity requirement; and/or the number of the groups of groups,
Generating unqualified information of the commodity; and associating the unqualified information with the identity of the commodity and broadcasting the unqualified information to the blockchain network.
7. The method of claim 4, wherein the step of determining the position of the first electrode is performed,
The step of acquiring commodity information of the commodity further comprises the following steps:
Screening and format conversion are carried out on the commodity information to form key commodity information;
encrypting the key commodity information to form encrypted electronic data;
The associating and broadcasting the commodity information with the identity to a blockchain network for distributed storage further comprises:
And associating the encrypted electronic data with the identity and broadcasting the encrypted electronic data to a blockchain network for distributed storage.
8. An electronic device comprising a processor, a memory, and a communication circuit, the processor coupled to the memory and the communication circuit; wherein,
The communication circuit is used for communicating the electronic equipment with external equipment;
the memory is used for storing program instructions;
The processor is configured to execute the program instructions to implement the method of any one of claims 1-7.
9. A computer storage medium storing program instructions executable by a processor to implement the method of any one of claims 1 to 7.
CN202010334191.0A 2020-04-24 2020-04-24 Block chain-based commodity information management method, electronic equipment and storage medium Active CN111414429B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010334191.0A CN111414429B (en) 2020-04-24 2020-04-24 Block chain-based commodity information management method, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010334191.0A CN111414429B (en) 2020-04-24 2020-04-24 Block chain-based commodity information management method, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111414429A CN111414429A (en) 2020-07-14
CN111414429B true CN111414429B (en) 2024-04-26

Family

ID=71492093

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010334191.0A Active CN111414429B (en) 2020-04-24 2020-04-24 Block chain-based commodity information management method, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111414429B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111858774A (en) * 2020-08-03 2020-10-30 北京东港瑞宏科技有限公司 Temporary license plate management system, method and device for motor vehicle
CN111881482B (en) * 2020-08-05 2023-03-28 黄灿楠 User identity privacy encryption method based on block chain technology
CN112446611A (en) * 2020-11-25 2021-03-05 杭州趣链科技有限公司 Crowdsourcing service management system and method based on block chain
CN112435042A (en) * 2020-11-30 2021-03-02 重庆文理学院 Supply chain service platform based on block chain
CN113034731B (en) * 2021-03-24 2022-01-11 哈尔滨市科佳通用机电股份有限公司 Working method of intelligent management system for machine account of locomotive signal box
CN114785517B (en) * 2022-04-06 2024-03-19 浙江数秦科技有限公司 Associated service data sharing method based on block chain
CN114881748B (en) * 2022-07-11 2022-12-13 深圳市深信信息技术有限公司 Block chain electronic commerce system, method and storage medium
CN115545667A (en) * 2022-10-28 2022-12-30 青服(深圳)技术研究有限公司 Software product information management system and method based on big data
CN116071090B (en) * 2023-03-06 2023-07-04 安徽深迪科技有限公司 Product production information traceability system based on block chain

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107704493A (en) * 2017-08-23 2018-02-16 中链科技有限公司 It is a kind of to be used to provide the method and system that product is traced to the source
CN109360000A (en) * 2018-08-28 2019-02-19 顺丰科技有限公司 A kind of system that commodity counterfeit prevention is traced to the source, method, equipment and storage medium
CN109816408A (en) * 2019-03-25 2019-05-28 浙江数链科技有限公司 Commodity based on block chain deposit card method and apparatus
CN109919490A (en) * 2019-03-08 2019-06-21 重庆工商大学 Chrysanthemum quality tracing system and method based on block chain
CN110543787A (en) * 2019-09-05 2019-12-06 佛山市顺德区平行互联网信息科技有限公司 Storage and acquisition method, storage system and acquisition device for commodity traceability data
CN110991573A (en) * 2019-11-04 2020-04-10 北京海益同展信息科技有限公司 Product management method, system, client node and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018052972A1 (en) * 2016-09-15 2018-03-22 Bext Holdings, Inc. Systems and methods of use for commodities analysis, collection, resource-allocation, and tracking

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107704493A (en) * 2017-08-23 2018-02-16 中链科技有限公司 It is a kind of to be used to provide the method and system that product is traced to the source
CN109360000A (en) * 2018-08-28 2019-02-19 顺丰科技有限公司 A kind of system that commodity counterfeit prevention is traced to the source, method, equipment and storage medium
CN109919490A (en) * 2019-03-08 2019-06-21 重庆工商大学 Chrysanthemum quality tracing system and method based on block chain
CN109816408A (en) * 2019-03-25 2019-05-28 浙江数链科技有限公司 Commodity based on block chain deposit card method and apparatus
CN110543787A (en) * 2019-09-05 2019-12-06 佛山市顺德区平行互联网信息科技有限公司 Storage and acquisition method, storage system and acquisition device for commodity traceability data
CN110991573A (en) * 2019-11-04 2020-04-10 北京海益同展信息科技有限公司 Product management method, system, client node and storage medium

Also Published As

Publication number Publication date
CN111414429A (en) 2020-07-14

Similar Documents

Publication Publication Date Title
CN111414429B (en) Block chain-based commodity information management method, electronic equipment and storage medium
CN109345264B (en) Wine product traceability anti-counterfeiting system and method based on block chain
US20200364817A1 (en) Machine type communication system or device for recording supply chain information on a distributed ledger in a peer to peer network
Ahmadi et al. Drug governance: IoT-based blockchain implementation in the pharmaceutical supply chain
CN106779737B (en) Product traceability verification method based on block chain technology
WO2020000707A1 (en) Anti-fake method and system based on block chain, computer device, and storage medium
RU2639015C1 (en) Authenticity and quality control procedure of production in the process of manufacture and implementation
JP6189454B2 (en) Unlicensed product detection techniques
Choi et al. RFID tag data processing in manufacturing for track-and-trace anti-counterfeiting
JP2019220188A (en) Tracking unitization occurring in supply chain
US20160098730A1 (en) System and Method for Block-Chain Verification of Goods
Azuara et al. Improving RFID traceability systems with verifiable quality
US20070215685A1 (en) System and Method of Product Identification Using a URL
CN111414430A (en) Commodity information management method based on block chain, electronic device and storage medium
JP2015511750A (en) Managing objects in the supply chain using secure identifiers
US20090144199A1 (en) Detection of counterfeited products based on sensor measurements
KR20070074589A (en) Methods and systems for marking, tracking and authentication of products
US20190197562A1 (en) System and method for product authentication
CN102184506A (en) Digital anti-counterfeiting method based on chaos password encryption
CN109951427B (en) Product tracing method and system and cloud tracing platform
CN104835045A (en) Method and system for merchandise anti-counterfeiting authentication based on internet of things identity service
CN108492119A (en) Information anti-fake authentication method, device, equipment and medium based on block chain
Chitre et al. Monitoring counterfeit drugs using counterchain
CN110874749A (en) Certified tracing method based on block chaining
CN103065244A (en) Two-dimensional barcode anti-counterfeiting, checking and service method

Legal Events

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