CN111160931A - Wine information tracing method, device, equipment and storage medium based on block chain - Google Patents

Wine information tracing method, device, equipment and storage medium based on block chain Download PDF

Info

Publication number
CN111160931A
CN111160931A CN201911409470.2A CN201911409470A CN111160931A CN 111160931 A CN111160931 A CN 111160931A CN 201911409470 A CN201911409470 A CN 201911409470A CN 111160931 A CN111160931 A CN 111160931A
Authority
CN
China
Prior art keywords
counterfeiting
wine
information
counterfeiting information
block chain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911409470.2A
Other languages
Chinese (zh)
Inventor
王超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Forms Syntron Information Co ltd
Original Assignee
Shenzhen Forms Syntron Information 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 Shenzhen Forms Syntron Information Co ltd filed Critical Shenzhen Forms Syntron Information Co ltd
Priority to CN201911409470.2A priority Critical patent/CN111160931A/en
Publication of CN111160931A publication Critical patent/CN111160931A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products
    • G06Q30/0185Product, service or business identity fraud
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting 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
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Bioethics (AREA)
  • Computer Security & Cryptography (AREA)
  • General Health & Medical Sciences (AREA)
  • Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Finance (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Strategic Management (AREA)
  • Medical Informatics (AREA)
  • Databases & Information Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method, a device, equipment and a storage medium for tracing wine information based on a block chain, wherein the method comprises the following steps: establishing a alliance chain; acquiring first anti-counterfeiting information corresponding to the anti-counterfeiting code of the wine bottle body by using a wine manufacturer node, and uploading the first anti-counterfeiting information to a block chain for storage after the first anti-counterfeiting information is signed by a wine manufacturer private key; acquiring second anti-counterfeiting information obtained by calculation according to anti-counterfeiting codes of the wine bottle bodies acquired by the agent and the retailer; acquiring third anti-counterfeiting information obtained by calculation according to anti-counterfeiting codes of wine bottle bodies purchased by consumers, inquiring whether corresponding first anti-counterfeiting information and second anti-counterfeiting information exist in a block chain according to the third anti-counterfeiting information, calculating fourth anti-counterfeiting information according to original information, judging whether the fourth anti-counterfeiting information is consistent with the first anti-counterfeiting information and the second anti-counterfeiting information, and feeding back a judgment result to the consumers. The whole process that the wine circulates to the consumer can be traced, and the anti-counterfeiting data of the wine is prevented from being tampered.

Description

Wine information tracing method, device, equipment and storage medium based on block chain
Technical Field
The invention relates to the technical field of block chain application, in particular to a method, a device, equipment and a storage medium for wine information tracing based on a block chain.
Background
The anti-counterfeiting of the high-end white spirit at present is a centralized system, an enterprise independently develops or purchases an anti-counterfeiting chip, the enterprise automatically carries out anti-counterfeiting treatment, and the anti-counterfeiting information is stored in the centralized system of the manufacturer. Therefore, although the current anti-counterfeiting system can achieve the anti-counterfeiting effect, the current technology has the following problems:
1. the identification of the anti-counterfeiting chip requires specific equipment identification, and the popularization rate is not high
2. The anti-counterfeiting data is stored in a centralized manner and is easy to be attacked by hackers or tampered with by internal works
3. The source tracing operation of the anti-counterfeiting information can not be carried out
4. Chip procurement research and development and verification cost
The information disclosed in this background section is only for enhancement of understanding of the general background of the invention and should not be taken as an acknowledgement or any form of suggestion that this information forms the prior art already known to a person skilled in the art.
Based on the reasons, the invention provides a method, a device, equipment and a storage medium for tracing the source of the wine information based on the block chain.
Disclosure of Invention
In order to meet the requirements, the first object of the present invention is to provide a wine information tracing method based on a block chain, and the method mainly aims to establish a federation chain between a wine manufacturer and a monitoring authority by using the distributed, non-falsifiable and non-repudiatable characteristics of the block chain, establish a trust relationship based on data, and implement wine tracing.
The second purpose of the invention is to provide a wine information tracing device based on a block chain.
The third purpose of the invention is to provide a block chain-based wine information traceability computer device.
It is a fourth object of the invention to provide a non-transitory computer readable storage medium having a computer program stored thereon.
In order to achieve the purpose, the invention adopts the following technical scheme:
in a first aspect, a wine information tracing method based on a block chain is provided, which includes the following steps:
establishing a alliance chain comprising a plurality of wine factory nodes and monitoring organization nodes by using a block chain bottom platform;
acquiring first anti-counterfeiting information corresponding to the anti-counterfeiting code of the wine bottle body by using a wine manufacturer node, and uploading the first anti-counterfeiting information to a block chain for storage after the first anti-counterfeiting information is signed by a wine manufacturer private key;
acquiring second anti-counterfeiting information obtained by calculation according to anti-counterfeiting codes of the wine bottle bodies acquired by an agent and a retailer, and uploading the second anti-counterfeiting information to a block chain for storage after the second anti-counterfeiting information is signed by a private key of the agent or the retailer;
acquiring third anti-counterfeiting information obtained by calculation according to anti-counterfeiting codes of wine bottle bodies purchased by consumers, inquiring whether corresponding first anti-counterfeiting information and second anti-counterfeiting information exist in a block chain according to the third anti-counterfeiting information, inquiring original information of wine in private databases of wine manufacturers, agents and retailers according to the third anti-counterfeiting information, calculating fourth anti-counterfeiting information according to the original information, judging whether the fourth anti-counterfeiting information is consistent with the first anti-counterfeiting information and the second anti-counterfeiting information, and feeding back a judgment result to the consumers.
In one possible embodiment, the step of obtaining the first anti-counterfeiting information corresponding to the anti-counterfeiting code of the wine bottle body by using the wine manufacturer node further comprises calculating the anti-counterfeiting code of the wine bottle body by using a hash operation to obtain a hash value of the anti-counterfeiting code of the wine bottle body.
In a possible implementation manner, after the step of uploading the first anti-counterfeiting information to the block chain for storage after the wine manufacturer private key signature is completed, the method further includes storing the anti-counterfeiting code of the wine bottle body and the original information of the wine in a private database of the wine manufacturer.
In one possible embodiment, the step of obtaining the second anti-counterfeiting information calculated from the anti-counterfeiting codes of the wine bottles obtained by the agent and the retailer further comprises calculating the anti-counterfeiting codes of the wine bottles obtained by the agent and the retailer by using a hash operation to obtain a hash value of the anti-counterfeiting codes of the wine bottles obtained by the agent and the retailer by the hash operation.
In a possible embodiment, the step of uploading the second anti-counterfeiting information to the block chain for storage after being signed by the agent or the retailer through a private key further comprises storing the anti-counterfeiting codes and the original information of the wine bottles obtained by the agent and the retailer into private databases of the agent and the retailer.
In one possible embodiment, the step of obtaining the third anti-counterfeiting information calculated according to the anti-counterfeiting code of the wine bottle body purchased by the consumer further comprises calculating the anti-counterfeiting code of the wine bottle body purchased by the consumer by using a hash operation to obtain a hash value of the anti-counterfeiting code of the wine bottle body purchased by the consumer.
In a possible embodiment, the step of feeding back the determination result to the consumer further includes writing the verification result into the block chain and the private database of the corresponding node if the fourth anti-counterfeiting information is consistent with the first anti-counterfeiting information and the second anti-counterfeiting information, and querying the private database of the wine manufacturer, the agency or the retailer for the original information about the anti-counterfeiting code of the wine bottle body and feeding back the original information to the consumer.
In another aspect, the present invention provides a wine information tracing apparatus based on a block chain, including the following units:
the alliance chain establishing unit is used for establishing an alliance chain comprising a plurality of wine factory nodes and monitoring organization nodes by utilizing a block chain bottom platform;
the first anti-counterfeiting unit is used for acquiring first anti-counterfeiting information corresponding to the anti-counterfeiting code of the wine bottle body by using a wine factory node, and uploading the first anti-counterfeiting information to a block chain for storage after the first anti-counterfeiting information is signed by a wine factory private key;
the second anti-counterfeiting unit is used for acquiring second anti-counterfeiting information obtained by calculation according to anti-counterfeiting codes of the wine bottle bodies acquired by the agent and the retailer, and uploading the second anti-counterfeiting information to the block chain for storage after the second anti-counterfeiting information is signed by a private key of the agent or the retailer;
and the authenticity query unit is used for acquiring third anti-counterfeiting information obtained by calculation according to anti-counterfeiting codes of wine bottle bodies purchased by consumers, querying whether corresponding first anti-counterfeiting information and second anti-counterfeiting information exist in a block chain according to the third anti-counterfeiting information, querying original information of wine in private databases of wine manufacturers, agents and retailers according to the third anti-counterfeiting information, calculating fourth anti-counterfeiting information according to the original information, judging whether the fourth anti-counterfeiting information is consistent with the first anti-counterfeiting information and the second anti-counterfeiting information, and feeding back a judgment result to the consumers.
In another aspect, the invention further discloses a block chain-based wine information traceability computer device, which is characterized by comprising a memory, a processor and a block chain-based wine information traceability program, wherein the block chain-based wine information traceability program is stored in the memory and can be run on the processor, and when being executed by the processor, the block chain-based wine information traceability program realizes any one of the above block chain-based wine information traceability methods.
In another aspect, the present invention also discloses a non-transitory computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the method for tracing wine information based on block chains as described in any one of the above.
Compared with the prior art, the invention has the beneficial effects that: by adopting the method of the scheme, a union chain is established between a drinks manufacturer and a supervision authority by utilizing the distributed, non-falsifiable and non-repudiatable characteristics of the block chain technology, and a trust relationship based on data is established, so that the following technical effects are realized:
1. full flow traceability of wine circulation to consumers
2. The anti-counterfeiting data of the wine is prevented from being falsified, the authenticity and the effectiveness are ensured, and the purchasing confidence of consumers is improved
3. Hash value information is stored in the block chain, detailed data information is not available, and privacy information of enterprises can be well protected.
The invention is further described below with reference to the accompanying drawings and specific embodiments.
Drawings
FIG. 1 is a schematic flow chart of a wine information tracing method based on a block chain according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps S2-S3 of FIG. 1 according to one embodiment;
FIG. 3 is a flowchart illustrating an embodiment of step S4 of FIG. 1;
FIG. 4 is a schematic flow chart illustrating the uploading of data in steps S1-S4 of FIG. 1;
FIG. 5 is a block chain-based schematic diagram of a wine information tracing apparatus according to an embodiment of the present invention;
FIG. 6 is a block chain-based wine information traceability computer system, in accordance with an embodiment of the present invention;
FIG. 7 is a block diagram of one embodiment of a non-transitory computer readable storage medium according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
As shown in the method flowchart of fig. 1, a flowchart of a specific embodiment of a wine information tracing method based on a block chain provided by the present invention includes the following steps:
s1, establishing a alliance chain comprising a plurality of wine factory nodes and supervision agency nodes by using a block chain bottom platform;
step S2, acquiring first anti-counterfeiting information corresponding to the anti-counterfeiting code of the wine bottle body by using a wine factory node, and uploading the first anti-counterfeiting information to a block chain for storage after the first anti-counterfeiting information is signed by a wine factory private key;
step S3, second anti-counterfeiting information obtained through calculation according to anti-counterfeiting codes of the wine bottle bodies obtained by the agent and the retailer is obtained, and the second anti-counterfeiting information is uploaded to a block chain for storage after being signed by the agent or the retailer through a private key;
step S4, third anti-counterfeiting information obtained through calculation according to anti-counterfeiting codes of wine bottle bodies purchased by consumers is obtained, whether corresponding first anti-counterfeiting information and second anti-counterfeiting information exist in a block chain is inquired according to the third anti-counterfeiting information, original information of wine in private databases of wine manufacturers, agents and retailers is inquired according to the third anti-counterfeiting information, fourth anti-counterfeiting information is calculated according to the original information, whether the fourth anti-counterfeiting information is consistent with the first anti-counterfeiting information and the second anti-counterfeiting information is judged, and a judgment result is fed back to the consumers.
Specifically, the step S1 is to combine multiple winery manufacturers and third-party monitoring agencies, each agency establishes one or more block chain nodes, and forms a block chain network together, and maintains data in the block chain through a P2P protocol, so as to identify the data together, thereby ensuring that the data of each node is consistent, and the data is indelible and cannot be tampered.
Nodes for information uploading and inquiring can be respectively set for consumers, agents and retailers, so that the consumers or the agents can conveniently trace the source of the wine and inquire the authenticity of the wine.
In a preferred embodiment, the step S2 further includes calculating the bottle body anti-counterfeit code by a hash operation to obtain a hash value of the bottle body anti-counterfeit code.
The hash operation is to convert an input (also called pre-mapped pre-image) of an arbitrary length into an output of a fixed length by a hash algorithm, and the output is a hash value. This transformation is a kind of compression mapping, i.e. the space of hash values is usually much smaller than the space of inputs, different inputs may hash to the same output, so it is not possible to determine a unique input value from a hash value. In short, it is a function of compressing a message of an arbitrary length to a message digest of a certain fixed length.
The first forgery prevention information in the present embodiment is information including a hash value obtained by hash operation (it is also understood that the second forgery prevention information, the third forgery prevention information, and the fourth forgery prevention information related to steps S3 and S4 are all of this type).
In a preferred embodiment, the step S2 further includes storing the anti-counterfeit code of the wine bottle and the original information of the wine in a private database of the wine manufacturer.
Specifically, the original information is stored for the purpose of facilitating retrieval by a user during tracing, wherein the uplink data format may adopt but is not limited to { anti-counterfeiting code hash, information hash } (the hash is the hash value calculated above).
In a preferred embodiment, the step S3 further includes calculating the anti-counterfeit code of the bottle body obtained by the agent and the retailer by using a hash operation to obtain a hash value of the anti-counterfeit code of the bottle body obtained by the agent and the retailer by the hash operation.
Similarly, the anti-counterfeiting code is not directly uploaded in the data processing in step S3, so as to protect the privacy information of the drinks manufacturer, prevent the anti-counterfeiting code from being leaked, and prevent illegal persons from performing illegal behaviors such as counterfeiting.
In a preferred embodiment, the step S3 further includes storing the anti-counterfeit code and the original information of the wine bottle body obtained by the agent and the retailer in private databases of the agent and the retailer.
When the consumer goes back to the source to inquire the authenticity, the information about the wine taken by the agent or the retailer, i.e. the original information in the embodiment, also needs to be displayed.
As an alternative embodiment, as shown in fig. 2, the flow of the anti-counterfeiting processing steps performed by the nodes such as the white spirit enterprises and the dealers by using the traceability method of the present invention is shown as follows:
a white spirit manufacturer firstly generates an anti-counterfeiting code, stores the anti-counterfeiting code in a spirit bottle body and calculates the hash value of the anti-counterfeiting code. And secondly, calculating the hash value of the wine production information. And then the two generated data are uploaded to a block chain system for storage after the private key signature of the wine enterprise is completed. The data format on the chain is { anti-counterfeiting code hash, information hash }, and the anti-counterfeiting code and the original information of the wine are stored in the internal system of the wine enterprise.
After the dealers and the retailers take the wine, the anti-counterfeiting code information of the wine is read. And similarly, calculating the hash value of the anti-counterfeiting code, and then calculating the hash value of the anti-counterfeiting code according to the self information. After being signed by the private key of the own organization, the signature is uploaded to a block chain system for storage. The on-chain data format is similar to the production mechanism. Similarly, agents and retailers also store raw information in their own internal systems.
In a preferred embodiment, the step S4 further includes calculating the anti-counterfeit code of the bottle body purchased by the consumer by using a hash operation to obtain a hash value of the anti-counterfeit code of the bottle body purchased by the consumer, similarly to the first anti-counterfeit information and the second anti-counterfeit information.
Preferably, the step S4 further includes writing the verification result into the private database of the blockchain and the corresponding node if the fourth anti-counterfeit information is consistent with the first anti-counterfeit information and the second anti-counterfeit information, and querying the private database of the wine manufacturer, the agency or the retailer for the original information about the anti-counterfeit code of the wine bottle body and feeding the information back to the consumer.
Specifically, the step of the consumer performing query tracing is as shown in fig. 3, the consumer may input the anti-counterfeiting code according to the APP, then the APP performs the query of the hash value according to the processing step of step S4, and finally the result of the judgment (for example, original information is not queried or original information about wine is queried about wine manufacturers and agents) is displayed to the consumer, and the consumer may judge the authenticity according to the result of the query.
As a preferred embodiment, the present invention processes data by using a private key signature, specifically, the private key signature is intended to realize the identity authentication of a user, in the digital signature, a public key is an identity flag, and when the private key signature is used, if a receiving party or a verifying party verifies and passes through the public key, it can be determined that a signer is the person who owns the private key, because the private key is known only by the signer. By the method, whether the data are uploaded by wine manufacturers or dealers and the like can be effectively verified, and authenticity of the data is guaranteed.
As an optional implementation manner, the above steps S1-S2-S3-S4 further need to use a data uploading step, as shown in fig. 4, including five links of production, logistics, distribution, retail and consumer, and in combination with the steps S1-S4 of the tracing method of the present invention, the relevant information of each link is calculated by a hash operation method and then uploaded to the blockchain system, so that the tracing effect is better achieved, and the following defects in the conventional technology are also avoided:
the identification of the anti-counterfeiting chip requires specific equipment identification, and the popularization rate is not high
The anti-counterfeiting data is stored in a centralized manner and is easy to be attacked by hackers or tampered with by internal works
The source tracing operation of the anti-counterfeiting information can not be carried out
Chip procurement development and verification require costs.
In another aspect, as shown in fig. 5, the present invention provides a wine information tracing apparatus based on a block chain, including the following units:
a alliance chain establishing unit 100, configured to establish an alliance chain including a plurality of wine manufacturer nodes and a monitoring authority node by using a block chain bottom platform;
the first anti-counterfeiting unit 200 is used for acquiring first anti-counterfeiting information corresponding to the anti-counterfeiting code of the wine bottle body by using a wine factory node, and uploading the first anti-counterfeiting information to a block chain for storage after the first anti-counterfeiting information is signed by a wine factory private key;
the second anti-counterfeiting unit 300 is used for acquiring second anti-counterfeiting information obtained by calculation according to anti-counterfeiting codes of the wine bottle bodies acquired by the agent and the retailer, and uploading the second anti-counterfeiting information to the block chain for storage after the second anti-counterfeiting information is signed by a private key of the agent or the retailer;
the authenticity query unit 400 is configured to acquire third anti-counterfeiting information calculated according to anti-counterfeiting codes of wine bottle bodies purchased by consumers, query whether corresponding first anti-counterfeiting information and second anti-counterfeiting information exist in a block chain according to the third anti-counterfeiting information, query original information of wine in private databases of wine manufacturers, agents and retailers according to the third anti-counterfeiting information, calculate fourth anti-counterfeiting information according to the original information, judge whether the fourth anti-counterfeiting information is consistent with the first anti-counterfeiting information and the second anti-counterfeiting information, and feed back a judgment result to the consumers.
The alliance chain establishing unit 100, the first anti-counterfeit unit 200, the second anti-counterfeit unit 300, and the authenticity querying unit 400 are configured to perform the steps S1-S4, where the units include, but are not limited to, an operation interface, a display interface, or an APP or other operation platform.
In another aspect, as shown in fig. 6, the present invention further discloses a block chain-based wine information traceability computer device, including a memory 500, a processor 600, and a block chain-based wine information traceability program stored on the memory 500 and executable on the processor 600, wherein the block chain-based wine information traceability program, when executed by the processor 600, implements any one of the block chain-based wine information traceability methods described above.
The Memory 500 may be a Read-Only Memory (ROM) or other types of static storage devices that can store static information and instructions, a Random Access Memory (RAM) or other types of dynamic storage devices that can store information and instructions, an Electrically Erasable Programmable Read-Only Memory (EEPROM), a compact disc Read-Only Memory (CD-ROM) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disks, blu-ray disks, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory may be self-contained and coupled to the processor via a communication bus. The memory may also be integral to the processor.
In another aspect, as shown in fig. 7, the present invention further discloses a non-transitory computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the method for tracing wine information based on block chains as described in any one of the above.
The storage medium may be an internal storage unit of the aforementioned server, such as a hard disk or a memory of the server. The storage medium may also be an external storage device of the device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the device. Further, the storage medium may also include both an internal storage unit and an external storage device of the apparatus.
It should be noted that, as will be clear to those skilled in the art, specific implementation processes of the above apparatus and each unit may refer to corresponding descriptions in the foregoing method embodiments, and for convenience and brevity of description, no further description is provided herein.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention. It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, more than one unit or component may be combined or may be integrated into another computer device, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Accordingly, the scope of the present invention should be determined by the appended claims and their equivalents, which are to be construed as broadly as possible, and in order to clearly illustrate this interchangeability of hardware and software, various illustrative components and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention. It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the computer devices and units described above may refer to corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided by the present invention, it should be understood that the disclosed computer apparatus and method may be implemented in other ways. For example, the computer device embodiments described above are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, more than one unit or component may be combined or may be integrated into another computer device, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the computer equipment of the embodiment of the invention can be merged, divided and deleted according to actual needs.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A wine information tracing method based on a block chain is characterized by comprising the following steps:
establishing a alliance chain comprising a plurality of wine factory nodes and monitoring organization nodes by using a block chain bottom platform;
acquiring first anti-counterfeiting information corresponding to the anti-counterfeiting code of the wine bottle body by using a wine manufacturer node, and uploading the first anti-counterfeiting information to a block chain for storage after the first anti-counterfeiting information is signed by a wine manufacturer private key;
acquiring second anti-counterfeiting information obtained by calculation according to anti-counterfeiting codes of the wine bottle bodies acquired by an agent and a retailer, and uploading the second anti-counterfeiting information to a block chain for storage after the second anti-counterfeiting information is signed by a private key of the agent or the retailer;
acquiring third anti-counterfeiting information obtained by calculation according to anti-counterfeiting codes of wine bottle bodies purchased by consumers, inquiring whether corresponding first anti-counterfeiting information and second anti-counterfeiting information exist in a block chain according to the third anti-counterfeiting information, inquiring original information of wine in private databases of wine manufacturers, agents and retailers according to the third anti-counterfeiting information, calculating fourth anti-counterfeiting information according to the original information, judging whether the fourth anti-counterfeiting information is consistent with the first anti-counterfeiting information and the second anti-counterfeiting information, and feeding back a judgment result to the consumers.
2. The method of claim 1, wherein the step of obtaining the first anti-counterfeiting information corresponding to the anti-counterfeiting code of the wine bottle body by using the wine manufacturer node further comprises calculating the anti-counterfeiting code of the wine bottle body by using a hash operation to obtain a hash value of the anti-counterfeiting code of the wine bottle body.
3. The wine information tracing method based on block chain as claimed in claim 1, wherein the step of uploading the first anti-counterfeiting information to the block chain for storage after the wine manufacturer private key signature is completed further comprises storing the anti-counterfeiting code of the wine bottle body and the original information of the wine in a private database of the wine manufacturer.
4. The method for wine information tracing according to claim 1, wherein the step of obtaining the second anti-counterfeiting information calculated from the anti-counterfeiting codes of the wine bottles obtained by the agent and the retailer further comprises calculating the anti-counterfeiting codes of the wine bottles obtained by the agent and the retailer by using a hash operation to obtain a hash value of the anti-counterfeiting codes of the wine bottles obtained by the agent and the retailer by the hash operation.
5. The wine information tracing method based on block chain as claimed in claim 1, wherein the step of uploading the second anti-counterfeiting information after being signed by the private key of the agent or the retailer to the block chain for storage further comprises the step of storing the anti-counterfeiting codes and the original information of the wine bottles obtained by the agent and the retailer into the private databases of the agent and the retailer.
6. The wine information tracing method based on blockchain according to claim 1, wherein the step of obtaining the third anti-counterfeiting information calculated according to the anti-counterfeiting code of the wine bottle body purchased by the consumer further comprises calculating the anti-counterfeiting code of the wine bottle body purchased by the consumer by using a hash operation to obtain a hash value of the anti-counterfeiting code of the wine bottle body purchased by the consumer.
7. The wine information tracing method based on block chain as claimed in claim 1, wherein the step of feeding back the judgment result to the consumer further comprises writing the verification result into the block chain and the private database of the corresponding node if the fourth anti-counterfeiting information is consistent with the first anti-counterfeiting information and the second anti-counterfeiting information, and querying the private database of the wine manufacturer, the agent or the retailer for the original information of the anti-counterfeiting code of the wine bottle body and feeding back the same to the consumer.
8. The wine information tracing device based on the block chain is characterized by comprising the following units:
the alliance chain establishing unit is used for establishing an alliance chain comprising a plurality of wine factory nodes and monitoring organization nodes by utilizing a block chain bottom platform;
the first anti-counterfeiting unit is used for acquiring first anti-counterfeiting information corresponding to the anti-counterfeiting code of the wine bottle body by using a wine factory node, and uploading the first anti-counterfeiting information to a block chain for storage after the first anti-counterfeiting information is signed by a wine factory private key;
the second anti-counterfeiting unit is used for acquiring second anti-counterfeiting information obtained by calculation according to anti-counterfeiting codes of the wine bottle bodies acquired by the agent and the retailer, and uploading the second anti-counterfeiting information to the block chain for storage after the second anti-counterfeiting information is signed by a private key of the agent or the retailer;
and the authenticity query unit is used for acquiring third anti-counterfeiting information obtained by calculation according to anti-counterfeiting codes of wine bottle bodies purchased by consumers, querying whether corresponding first anti-counterfeiting information and second anti-counterfeiting information exist in a block chain according to the third anti-counterfeiting information, querying original information of wine in private databases of wine manufacturers, agents and retailers according to the third anti-counterfeiting information, calculating fourth anti-counterfeiting information according to the original information, judging whether the fourth anti-counterfeiting information is consistent with the first anti-counterfeiting information and the second anti-counterfeiting information, and feeding back a judgment result to the consumers.
9. A block chain-based wine information traceability computer device, comprising a memory, a processor and a block chain-based wine information traceability program stored on the memory and capable of running on the processor, wherein the block chain-based wine information traceability program when executed by the processor realizes the block chain-based wine information traceability method of any one of claims 1-7.
10. A non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the blockchain-based wine information traceability method according to any one of claims 1 to 7.
CN201911409470.2A 2019-12-31 2019-12-31 Wine information tracing method, device, equipment and storage medium based on block chain Pending CN111160931A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911409470.2A CN111160931A (en) 2019-12-31 2019-12-31 Wine information tracing method, device, equipment and storage medium based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911409470.2A CN111160931A (en) 2019-12-31 2019-12-31 Wine information tracing method, device, equipment and storage medium based on block chain

Publications (1)

Publication Number Publication Date
CN111160931A true CN111160931A (en) 2020-05-15

Family

ID=70559876

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911409470.2A Pending CN111160931A (en) 2019-12-31 2019-12-31 Wine information tracing method, device, equipment and storage medium based on block chain

Country Status (1)

Country Link
CN (1) CN111160931A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111815337A (en) * 2020-07-15 2020-10-23 深圳市中选科技有限公司 Block chain-based full-link anti-counterfeiting tracing method and system, intelligent terminal and storage medium
CN112348533A (en) * 2020-10-26 2021-02-09 成都商通时代数字科技有限公司 Wine bottle cap capable of tracing digital assets and digital asset tracing method
CN112365271A (en) * 2020-11-04 2021-02-12 广东未来信息有限公司 Liquefied petroleum gas cylinder traceability system and method based on block chain, information data processing terminal and computer readable storage medium
CN113657914A (en) * 2021-08-26 2021-11-16 卓尔智联(武汉)研究院有限公司 Commodity tracing method based on block chain, computer device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108197952A (en) * 2017-12-28 2018-06-22 上海唯链信息科技有限公司 A kind of anti-fake and traceability system of the red wine based on block chain technology
CN109034851A (en) * 2018-09-05 2018-12-18 深圳正品创想科技有限公司 Commodity counterfeit prevention source tracing method and its device, block chain node based on block chain
CN109146516A (en) * 2018-08-02 2019-01-04 佛山鑫达智汇科技有限公司 A kind of white wine traceability system based on block chain
CN109345264A (en) * 2018-08-21 2019-02-15 太原理工大学 A kind of alcohol product traceability anti-fake system and method based on block chain
CN110490604A (en) * 2018-05-11 2019-11-22 陈小荣 A kind of drinks of drinking based on data-link are traced to the source anti-counterfeiting information system and method
CN110599209A (en) * 2019-09-25 2019-12-20 北京艾摩瑞策科技有限公司 Wine circulation information tracing method and device based on block chain

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108197952A (en) * 2017-12-28 2018-06-22 上海唯链信息科技有限公司 A kind of anti-fake and traceability system of the red wine based on block chain technology
CN110490604A (en) * 2018-05-11 2019-11-22 陈小荣 A kind of drinks of drinking based on data-link are traced to the source anti-counterfeiting information system and method
CN109146516A (en) * 2018-08-02 2019-01-04 佛山鑫达智汇科技有限公司 A kind of white wine traceability system based on block chain
CN109345264A (en) * 2018-08-21 2019-02-15 太原理工大学 A kind of alcohol product traceability anti-fake system and method 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
CN110599209A (en) * 2019-09-25 2019-12-20 北京艾摩瑞策科技有限公司 Wine circulation information tracing method and device based on block chain

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111815337A (en) * 2020-07-15 2020-10-23 深圳市中选科技有限公司 Block chain-based full-link anti-counterfeiting tracing method and system, intelligent terminal and storage medium
CN111815337B (en) * 2020-07-15 2024-04-09 深圳市中选科技有限公司 Block chain-based full-link anti-counterfeiting traceability method, system, intelligent terminal and storage medium
CN112348533A (en) * 2020-10-26 2021-02-09 成都商通时代数字科技有限公司 Wine bottle cap capable of tracing digital assets and digital asset tracing method
CN112365271A (en) * 2020-11-04 2021-02-12 广东未来信息有限公司 Liquefied petroleum gas cylinder traceability system and method based on block chain, information data processing terminal and computer readable storage medium
CN113657914A (en) * 2021-08-26 2021-11-16 卓尔智联(武汉)研究院有限公司 Commodity tracing method based on block chain, computer device and storage medium

Similar Documents

Publication Publication Date Title
CN111160931A (en) Wine information tracing method, device, equipment and storage medium based on block chain
CN107274139B (en) Bill data management method and computer-readable medium
US11341490B2 (en) Carbon footprint blockchain network
CN107342867B (en) Signature verification method and device
CN112132292A (en) Block chain-based longitudinal federated learning data processing method, device and system
CN109034845A (en) Commodity based on block chain trace to the source code generate, verifying and querying method and device
CN110335055B (en) Service data tracing method and device based on cloud platform
CN113656780B (en) Cross-chain access control method and device
CN112567716B (en) Secure data transmission system and method
CN111815321A (en) Transaction proposal processing method, device, system, storage medium and electronic device
CN111445209A (en) Block chain-based electronic contract signing method and device and storage medium
CN106204182A (en) Digital transaction method and device
CN111460400A (en) Data processing method and device and computer readable storage medium
CN111914279B (en) Efficient and accurate privacy intersection system, method and device
EP3282402A1 (en) Merchandise anti-counterfeiting and authentication method and the non-transitory computer readable medium thereof
CN109918874B (en) Physical information storage method and device and physical information searching method and device
JP2020197937A (en) Authenticity determining apparatus, authenticity determining system, and authenticity determining method
CN107730432B (en) Picture processing method and application server
CN113159952B (en) Method, system, device and storage medium for storing digital assets based on blockchain
CN110598479A (en) Data processing method and device and computer readable storage medium
CN114240436A (en) Electronic certificate verification and cancellation method and device, computer equipment and storage medium
CN114187063A (en) Supplier qualification verification method based on commodity purchase, storage medium and terminal
CN114066708A (en) Traceable picture authorization method and device
CN113094732A (en) Certificate storage data verification method, verification device, certificate storage method and certificate storage device
CN110941745A (en) Electronic contract management method and device, storage medium and electronic equipment

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