CN111125754A - Tobacco source tracing method, equipment and medium based on block chain double-chain structure - Google Patents

Tobacco source tracing method, equipment and medium based on block chain double-chain structure Download PDF

Info

Publication number
CN111125754A
CN111125754A CN201911261459.6A CN201911261459A CN111125754A CN 111125754 A CN111125754 A CN 111125754A CN 201911261459 A CN201911261459 A CN 201911261459A CN 111125754 A CN111125754 A CN 111125754A
Authority
CN
China
Prior art keywords
chain
hash value
public
private
uploading
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
CN201911261459.6A
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.)
Shandong Inspur Quality Chain Technology Co Ltd
Original Assignee
Shandong ICity Information Technology Co., Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong ICity Information Technology Co., Ltd. filed Critical Shandong ICity Information Technology Co., Ltd.
Priority to CN201911261459.6A priority Critical patent/CN111125754A/en
Publication of CN111125754A publication Critical patent/CN111125754A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/6227Protecting 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 where protection concerns the structure of data, e.g. records, types, queries
    • 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
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

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

Abstract

The application discloses a tobacco traceability method based on a block chain double-chain structure, which comprises the following steps: constructing a block chain platform of a double-chain structure comprising a private chain and a public chain according to the block chain framework; performing hash operation on tracing data generated in the tobacco product tracing process to obtain a first hash value and uploading the first hash value to the private chain; uploading the tracing data and the first hash value to the public chain respectively, and performing hash operation on the tracing data to obtain a second hash value; and when the first hash value and the second hash value are the same, querying the public chain and/or the private chain through the digital object unique identifier corresponding to the tobacco product. The block chain of the double-chain structure is composed of the private chain and the public chain, the private chain and the public chain execute different functions respectively, and therefore the private chain can share the operation pressure of the public chain to a great extent, and the traceability efficiency of the whole block chain platform is improved.

Description

Tobacco source tracing method, equipment and medium based on block chain double-chain structure
Technical Field
The present application relates to the field of tobacco tracing technologies, and in particular, to a tobacco tracing method, device, and medium based on a blockchain double-chain structure.
Background
In view of the national situation of large population base in China, the demand of people for tobacco is also large. On the other hand, the tobacco currently distributed in the market is not poor in counterfeit products due to the consideration of personal interests. In order to prevent the rampant circulation of counterfeit and shoddy products in the market, the traditional tobacco traceability technology has the risk that data is tampered.
The prior art combines the blockchain technology with the tobacco traceability field based on the property that data uploaded to a blockchain cannot be tampered. The mode can realize the anti-counterfeiting tracing of the tobacco products and can ensure the benefits of consumers to a certain extent. However, such blockchain-based tobacco tracking is often implemented using single-chain structured blockchains, and data needs to pass through a consensus of a plurality of nodes in the blockchain before being written into the single-chain structured blockchain. This results in a great reduction in the efficiency of the blockchain of the single-chain structure when processing a large amount of data, thereby affecting the use experience of the consumer.
Based on this, there is a need for a method that can effectively trace the source of tobacco products.
Disclosure of Invention
In view of the above, the present invention provides a tobacco traceability method, apparatus and medium based on blockchain double-chain structure, which overcomes or at least partially solves the above problems.
The embodiment of the specification adopts the following technical scheme:
in a first aspect, an embodiment of the present invention provides a tobacco traceability method based on a block chain double-chain structure, including:
constructing a block chain platform of a double-chain structure comprising a private chain and a public chain according to the block chain framework;
performing hash operation on tracing data generated in the tobacco product tracing process to obtain a first hash value and uploading the first hash value to the private chain;
uploading the tracing data and the first hash value to the public chain respectively, and performing hash operation on the tracing data to obtain a second hash value;
and when the first hash value and the second hash value are the same, querying the public chain and/or the private chain through the digital object unique identifier corresponding to the tobacco product.
Further, still include: and when the first hash value and the second hash value are different, querying the public chain through the digital object unique identifier corresponding to the tobacco product.
Further, uploading the first hash value to the private chain includes: performing consensus on the first hash value in the private chain through a consensus algorithm; and uploading the first hash value to the private chain after more than half of the first nodes in the private chain are in consensus.
Further, the first node is each node in the circulation process of the tobacco products, and comprises at least one of the following: raw material suppliers, manufacturers, logistics carriers, distributors.
Further, when the tracing data and the first hash value are respectively uploaded to the public chain, the method includes: performing consensus on the tracing data and the first hash value in the public chain through a consensus algorithm; and after more than half of second nodes in the public chain are identified together, respectively uploading the tracing data and the first hash value to the public chain.
Further, the second node is each node in the blockchain platform, and includes at least one of the following: raw material providers, producers, logistics carriers, distributors, consumers, third party testing facilities, governments, regulatory bodies.
Further, uploading the traceable data and the first hash value to the public chain respectively, including: uploading the traceable data and the first hash value to the public chain through an intelligent contract respectively while the first hash value is uploaded to the private chain.
Further, the source data includes at least one of: raw material components, raw material production places, production processes, production dates, production batches, dealer qualifications, logistics information, warehouse entry and exit times, sales prices and sales areas.
In a second aspect, an embodiment of the present invention provides a tobacco traceability device based on a block chain dual-chain structure, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
constructing a block chain platform of a double-chain structure comprising a private chain and a public chain according to the block chain framework;
performing hash operation on tracing data generated in the tobacco product tracing process to obtain a first hash value and uploading the first hash value to the private chain;
uploading the tracing data and the first hash value to the public chain respectively, and performing hash operation on the tracing data to obtain a second hash value;
and when the first hash value and the second hash value are the same, querying the public chain and/or the private chain through the digital object unique identifier corresponding to the tobacco product.
In a third aspect, an embodiment of the present invention provides a non-volatile computer storage medium for tobacco tracing based on a blockchain dual-chain structure, where computer-executable instructions are stored, and the computer-executable instructions are configured to:
constructing a block chain platform of a double-chain structure comprising a private chain and a public chain according to the block chain framework;
performing hash operation on tracing data generated in the tobacco product tracing process to obtain a first hash value and uploading the first hash value to the private chain;
uploading the tracing data and the first hash value to the public chain respectively, and performing hash operation on the tracing data to obtain a second hash value;
and when the first hash value and the second hash value are the same, querying the public chain and/or the private chain through the digital object unique identifier corresponding to the tobacco product.
The embodiment of the specification adopts at least one technical scheme which can achieve the following beneficial effects:
the invention provides a tobacco traceability method based on a blockchain double-chain structure, and a blockchain technology is a distrusted, decentralized and non-falsifiable shared account book technology. Distrust is guaranteed by consensus algorithms and single-chain data structures. In order to prevent data tampering and data change tracing, the introduction of the public and private key mechanism of the block chain enables each record in the chain to be properly encrypted and stored. The decentralization is achieved by blocks of data stored in time-ordered arrangement on each node. Due to the special data organization mode and the scattered storage, the failure of individual nodes on the chain does not affect the whole data system, and the data security is improved. In addition, the block chain of the double-chain structure is composed of a private chain and a public chain, and the private chain and the public chain respectively execute different functions, so that the private chain can share the operation pressure of the public chain to a great extent, and the traceability efficiency of the whole block chain platform is improved. And storing the tracing data in the public chain to prevent the data from being tampered, and further ensuring the authenticity and reliability of the tracing data through comparison of hash values in the public chain and the private chain.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a flowchart of a tobacco traceability method based on a blockchain double-chain structure according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a double-stranded structure provided in the examples herein;
fig. 3 is a schematic flowchart illustrating uploading of a first hash value to a private chain according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart illustrating a process of uploading trace data and a first hash value to a public chain according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a tobacco traceability device based on a block chain dual-chain structure according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the present disclosure more apparent, the technical solutions of the present disclosure will be clearly and completely described below with reference to the specific embodiments of the present disclosure and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person skilled in the art without making any inventive step based on the embodiments in the description belong to the protection scope of the present application.
The blockchain technology plays an increasingly important role in the fields of data management, audit, internet of things and the like due to the characteristics of decentralization, openness, independence, anonymity, non-falsification and the like. The method is based on the double-chain structure block chain technology, not only can effectively trace the source of the tobacco product, but also can greatly improve the efficiency of tobacco tracing due to the form of the double-chain structure.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
The scheme of the application provides a tobacco traceability method based on a block chain double-chain structure, which is described with reference to fig. 1 and comprises the following steps:
and S11, constructing a block chain platform of the double-chain structure comprising the private chain and the public chain according to the block chain framework.
Common mainstream block chain frameworks include Bittercoin framework, EtherFarforFrame, Fabric framework, Onchain Distributed Networks Architecture (Onchain Distributed Networks Architecture), and Corda framework. Different blockchain architectures have different characteristics, for example, bitcoin architectures have characteristics of being able to sell money without a central authority, being able to pay without an intermediary authority, maintaining user anonymity, being unable to revoke transactions, etc.; the Ethengfang framework has the characteristics of complete contract language of pictures, built-in persistent state storage and the like; the Fabric architecture has the characteristics of modular design, replaceable components and the like. Based on the different features of the different blockchain architectures, a blockchain platform that better meets the user requirements can be constructed, and based on this, the blockchain of the double-chain structure according to the embodiment of the present invention can be constructed according to any kind of blockchain framework, which is not limited in the embodiment of the present invention.
For ease of understanding, the relationship between the "public chain" and the "private chain" in this embodiment may be as shown in fig. 2. The blockchain of the double-chain structure in this embodiment is composed of a "public chain" and a "private chain", where the "private chain" is essentially a solution across blockchains, a merging mechanism that allows secure transfer and possible return of digital assets from one blockchain to another blockchain. By the solution, bidirectional anchoring can be realized, and the digital assets are safely transferred between a public chain and a private chain. The private chain can provide functions that the public chain lacks and can be implemented by transferring portions of the functions of the public chain to the private chain when the public chain is inefficient to operate. It should be noted that, in this embodiment, the block chain that implements the main data storage function is referred to as a "public chain", and the other block chain is referred to as a "private chain", but this designation is merely an exemplary designation and does not constitute a limitation on the specific functions of the "public chain" and the "private chain". Other designations may also be, for example, "main chain" and "side chain", "root chain" and "business chain", "a chain" and "B chain", etc.
S12, performing hash operation on the tracing data generated in the tobacco product tracing process to obtain a first hash value and uploading the first hash value to the private chain.
The traceability data in step S12 is data generated by the tobacco product in each circulation stage during the traceability process, and includes at least one of the following: raw material components, raw material production places, production processes, production dates, production batches, dealer qualifications, logistics information, warehousing and ex-warehousing time, sales prices, sales areas and the like.
And S13, uploading the tracing data and the first hash value to a public chain respectively, and performing hash operation on the tracing data to obtain a second hash value.
The intelligent contract is a protocol which can automatically execute tasks which need to be completed manually, and contains a set of preset rules. In this embodiment, for example, the traceability data and the first hash value may be uploaded to the public chain through the intelligent contract while the first hash value is uploaded to the private chain, or the traceability data and the first hash value may be uploaded to the public chain within a preset time (e.g., 30 minutes, 1 hour, etc.) after the first hash value is uploaded to the private chain.
S14, judging whether the first hash value and the second hash value are the same; if yes, go to step S15; if not, go to step S16.
Since the first hash value and the second hash value are obtained by performing hash operation on the tracing data, theoretically, the first hash value and the second hash value should be the same. However, in the actual operation process, after the first hash value and the tracing data are uploaded to the public chain, the tracing data is tampered, which may cause the first hash value in the private chain to change. Specifically, although the data stored in the blockchain needs to be tampered with through consensus of more than half of nodes, since the nodes in the private chain are limited, the consensus of more than half of nodes can be realized, which also causes the risk that the traceability data in the private chain is tampered with, and further, the authenticity of the traceability data cannot be ensured.
The source tracing data is uploaded to the public chain for storage at the same time when the private chain generates the first hash value. Besides the nodes involved in the tobacco product circulation process, the nodes in the public chain also have the participation of a plurality of nodes such as third-party main bodies, consumers and the like, so that the data in the public chain hardly has the possibility of being tampered. Whether the first hash value changes or not is determined by comparing the first hash value with the second hash value, so that whether the traceable data is tampered or not is determined, and authenticity and reliability of the traceable data can be guaranteed to the greatest extent.
And S15, inquiring the public chain and/or the private chain through the unique identifier of the digital object corresponding to the tobacco product.
When the first hash value and the second hash value are the same, the second hash value in the public chain can be queried, the first hash value in the private chain can also be queried, and the real tracing data can be obtained no matter who is queried.
The digital object unique identifier may be, for example, a two-dimensional code, a barcode, or a digital ID, which is not limited in this embodiment. In addition, when assigning a digital object unique identifier to a tobacco product corresponding thereto, it may assign a digital object unique identifier corresponding to each node in the tobacco product supply chain to the tobacco product of that node. That is, at each stage in the tobacco product circulation process, such as the production stage, the logistics stage, the distribution stage, the retail stage, the consumption stage, etc., each stage assigns a digital object unique identifier of the stage to the tobacco product; the tobacco products of all nodes in the tobacco product supply chain can also be uniformly distributed with a same digital object unique identifier, for example, the tobacco products are distributed with a digital object unique identifier in the production stage, and the digital object unique identifier is also used in other stages in the circulation process; any number of digital object unique identifiers may even be assigned to nodes at any number of stages in the tobacco product supply chain, as embodiments of the present invention are not limited in this respect.
When the user scans the unique identifier of the Digital object, for example, the user may scan the unique identifier by using a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), a two-dimensional code scanning gun, a two-dimensional code reader, and the like, which is not limited in this embodiment.
And S16, inquiring the public chain through the unique identifier of the digital object corresponding to the tobacco product.
And when the first hash value is different from the second hash value, the first hash value in the private chain is considered to be changed, and only the second hash value and the tracing data in the public chain are queried to obtain the truest tracing data.
As a preferred implementation manner of the embodiment of the present invention, when uploading the first hash value to the private chain in step S12, as shown in fig. 3, the method further includes the following steps:
and S31, performing consensus on the first hash value in the private chain through a consensus algorithm.
And S32, uploading the first hash value to the private chain after more than half of the first nodes in the private chain pass the consensus.
Wherein, the first node is each node in the tobacco product circulation process, and it includes following at least one: raw material suppliers, producers, logistics carriers, distributors, consumers.
The consensus is that the verification and confirmation of the transaction or data are completed in a relatively long time through the voting of the consensus node. The common consensus algorithm may be, for example, a workload proving algorithm, a rights proving algorithm, a practical byzantine algorithm, and the like, which is not limited in this embodiment.
As a preferred implementation manner of the embodiment of the present invention, when the tracing data and the first hash value are respectively uploaded to the public chain in step S13, as shown in fig. 4, the method further includes the following steps:
and S41, recognizing the tracing data in the public chain and the first hash value through a recognition algorithm.
And S42, after more than half of second nodes in the public chain pass the consensus, respectively uploading the tracing data and the first hash value to the public chain.
The second node is each node in the blockchain platform, and comprises at least one of the following nodes: raw material providers, producers, logistics carriers, distributors, consumers, third party testing facilities, governments, regulatory bodies.
The invention provides a tobacco traceability method based on a blockchain double-chain structure, and a blockchain technology is a distrusted, decentralized and non-falsifiable shared account book technology. Distrust is guaranteed by consensus algorithms and single-chain data structures. In order to prevent data tampering and data change tracing, the introduction of the public and private key mechanism of the block chain enables each record in the chain to be properly encrypted and stored. The decentralization is achieved by blocks of data stored in time-ordered arrangement on each node. Due to the special data organization mode and the scattered storage, the failure of individual nodes on the chain does not affect the whole data system, and the data security is improved. In addition, the block chain of the double-chain structure is composed of a private chain and a public chain, and the private chain and the public chain respectively execute different functions, so that the private chain can share the operation pressure of the public chain to a great extent, and the traceability efficiency of the whole block chain platform is improved. And storing the tracing data in the public chain to prevent the data from being tampered, and further ensuring the authenticity and reliability of the tracing data through comparison of hash values in the public chain and the private chain.
Based on the same inventive concept, some embodiments of the present application further provide a device and a non-volatile computer storage medium corresponding to the tobacco traceability method based on the blockchain double-chain structure.
Referring to fig. 5, an embodiment of the present invention provides a tobacco traceability device based on a block chain dual-chain structure, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
constructing a block chain platform of a double-chain structure comprising a private chain and a public chain according to the block chain framework;
performing hash operation on tracing data generated in the tobacco product tracing process to obtain a first hash value and uploading the first hash value to the private chain;
uploading the tracing data and the first hash value to the public chain respectively, and performing hash operation on the tracing data to obtain a second hash value;
and when the first hash value and the second hash value are the same, querying the public chain and/or the private chain through the digital object unique identifier corresponding to the tobacco product.
The embodiment of the invention also provides a nonvolatile computer storage medium for tobacco tracing based on a block chain double-chain structure, which stores computer executable instructions, wherein the computer executable instructions are set as follows:
constructing a block chain platform of a double-chain structure comprising a private chain and a public chain according to the block chain framework;
performing hash operation on tracing data generated in the tobacco product tracing process to obtain a first hash value and uploading the first hash value to the private chain;
uploading the tracing data and the first hash value to the public chain respectively, and performing hash operation on the tracing data to obtain a second hash value;
and when the first hash value and the second hash value are the same, querying the public chain and/or the private chain through the digital object unique identifier corresponding to the tobacco product.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is directed to methods, apparatus (systems), and computer program products according to embodiments of the present invention
A flowchart and/or block diagram of an article. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A tobacco source tracing method based on a block chain double-chain structure is characterized by comprising the following steps:
constructing a block chain platform of a double-chain structure comprising a private chain and a public chain according to the block chain framework;
performing hash operation on tracing data generated in the tobacco product tracing process to obtain a first hash value and uploading the first hash value to the private chain;
uploading the tracing data and the first hash value to the public chain respectively, and performing hash operation on the tracing data to obtain a second hash value;
and when the first hash value and the second hash value are the same, querying the public chain and/or the private chain through the digital object unique identifier corresponding to the tobacco product.
2. The method of claim 1, further comprising:
and when the first hash value and the second hash value are different, querying the public chain through the digital object unique identifier corresponding to the tobacco product.
3. The method of claim 1, wherein uploading the first hash value to the private chain comprises:
performing consensus on the first hash value in the private chain through a consensus algorithm;
and uploading the first hash value to the private chain after more than half of the first nodes in the private chain are in consensus.
4. A method according to claim 3, wherein the first node is a respective node in the circulation of the tobacco product, comprising at least one of: raw material suppliers, manufacturers, logistics carriers, distributors.
5. The method of claim 1, wherein uploading the traceable data and the first hash value, respectively, to the public chain comprises:
performing consensus on the tracing data and the first hash value in the public chain through a consensus algorithm;
and after more than half of second nodes in the public chain are identified together, respectively uploading the tracing data and the first hash value to the public chain.
6. The method of claim 5, wherein the second node is a respective node in the blockchain platform comprising at least one of: raw material providers, producers, logistics carriers, distributors, consumers, third party testing facilities, governments, regulatory bodies.
7. The method of claim 1, wherein uploading the traceable data and the first hash value, respectively, to the public chain comprises:
uploading the traceable data and the first hash value to the public chain through an intelligent contract respectively while the first hash value is uploaded to the private chain.
8. The method of claim 1, wherein the traceability data comprises at least one of: raw material components, raw material production places, production processes, production dates, production batches, dealer qualifications, logistics information, warehouse entry and exit times, sales prices and sales areas.
9. A tobacco source tracing device based on a block chain double-chain structure is characterized by comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
constructing a block chain platform of a double-chain structure comprising a private chain and a public chain according to the block chain framework;
performing hash operation on tracing data generated in the tobacco product tracing process to obtain a first hash value and uploading the first hash value to the private chain;
uploading the tracing data and the first hash value to the public chain respectively, and performing hash operation on the tracing data to obtain a second hash value;
and when the first hash value and the second hash value are the same, querying the public chain and/or the private chain through the digital object unique identifier corresponding to the tobacco product.
10. A non-transitory computer storage medium for tobacco traceability based on a blockchain dual-chain structure, storing computer-executable instructions configured to:
constructing a block chain platform of a double-chain structure comprising a private chain and a public chain according to the block chain framework;
performing hash operation on tracing data generated in the tobacco product tracing process to obtain a first hash value and uploading the first hash value to the private chain;
uploading the tracing data and the first hash value to the public chain respectively, and performing hash operation on the tracing data to obtain a second hash value;
and when the first hash value and the second hash value are the same, querying the public chain and/or the private chain through the digital object unique identifier corresponding to the tobacco product.
CN201911261459.6A 2019-12-10 2019-12-10 Tobacco source tracing method, equipment and medium based on block chain double-chain structure Pending CN111125754A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911261459.6A CN111125754A (en) 2019-12-10 2019-12-10 Tobacco source tracing method, equipment and medium based on block chain double-chain structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911261459.6A CN111125754A (en) 2019-12-10 2019-12-10 Tobacco source tracing method, equipment and medium based on block chain double-chain structure

Publications (1)

Publication Number Publication Date
CN111125754A true CN111125754A (en) 2020-05-08

Family

ID=70498224

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911261459.6A Pending CN111125754A (en) 2019-12-10 2019-12-10 Tobacco source tracing method, equipment and medium based on block chain double-chain structure

Country Status (1)

Country Link
CN (1) CN111125754A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112559819A (en) * 2020-12-16 2021-03-26 深圳市德邦物流有限公司 Logistics information query method and device, electronic equipment and storage medium
CN113411348A (en) * 2021-07-02 2021-09-17 江西农业大学 Data protection method and system for 1+ N multi-chain traceability system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112559819A (en) * 2020-12-16 2021-03-26 深圳市德邦物流有限公司 Logistics information query method and device, electronic equipment and storage medium
CN113411348A (en) * 2021-07-02 2021-09-17 江西农业大学 Data protection method and system for 1+ N multi-chain traceability system
CN113411348B (en) * 2021-07-02 2022-02-11 江西农业大学 Data protection method and system for 1+ N multi-chain traceability system

Similar Documents

Publication Publication Date Title
Tasatanattakool et al. Blockchain: Challenges and applications
US11341490B2 (en) Carbon footprint blockchain network
Tieman et al. Leveraging blockchain technology for halal supply chains
Nzuva Smart contracts implementation, applications, benefits, and limitations
TWI771618B (en) Method and device for distribution of copyright of works based on blockchain
CN110458631B (en) Bill number distribution method and device based on block chain and electronic equipment
Al-Bahri et al. Smart system based on DOA & IoT for products monitoring & anti-counterfeiting
CN111815420B (en) Matching method, device and equipment based on trusted asset data
CN111144753A (en) Land use right circulation management method, device and medium based on block chain
CN111008853A (en) Block chain-based fast-selling product tracing method, equipment and medium
CN111143309A (en) Method, equipment and medium for sharing enterprise financial data based on block chain
CN111127216A (en) Method, equipment and medium for realizing bank financing product based on block chain
CN110930578A (en) Voting method, equipment and medium based on block chain
Harshavardhan et al. Blockchain technology in cloud computing to overcome security vulnerabilities
CN110930168A (en) Anti-counterfeiting method and device for anti-counterfeiting label based on block chain and storage medium
CN111125754A (en) Tobacco source tracing method, equipment and medium based on block chain double-chain structure
CN111274322A (en) Block chain-based insurance management method, equipment and medium
CN111161030A (en) Block chain-based dealer supply chain finance implementation method, equipment and medium
CN111443894A (en) Random number generation method, device and medium based on block chain
CN111292097A (en) Supply chain tracing method, equipment and medium based on block chain
CN111091353A (en) Loving public interest management method, equipment and medium based on block chain
CN111292071A (en) Contract settlement management method, device and medium based on block chain
CN114493583A (en) Member management method and device based on decentralized peer-to-peer network technology
CN111008847A (en) Block chain-based educational resource acquisition method, equipment and medium
CN111143748A (en) Method, device and medium for sorting E-commerce commodities based on block chain

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200817

Address after: Room 1-2301, Building 7, North District, Shandong Design and Creative Industry Park, No. 868 Tangye West Road, Licheng District, Jinan City, Shandong Province, 250102

Applicant after: SHANDONG INSPUR QUALINK TECHNOLOGY Co.,Ltd.

Address before: Room 3110, S01 building, Langchao building, No. 1036, Langchao Road, high tech Zone, Jinan City, Shandong Province 250101

Applicant before: Shandong Aicheng Network Information Technology Co.,Ltd.

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination