Baijiu product carbon label generation method and system based on block chain
By using a blockchain-based approach, carbon emission data throughout the entire lifecycle of baijiu (Chinese liquor) is collected and QR code carbon labels are generated, solving the problem of the lack of unified accounting standards in the baijiu industry and realizing credible verification of the entire lifecycle accounting and labeling.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-25
- Publication Date
- 2026-03-27
AI Technical Summary
The liquor industry lacks a unified standard for carbon footprint accounting, and existing carbon labels lack full lifecycle data collection and effective anti-counterfeiting verification mechanisms, resulting in a lack of comparability in calculation results and difficulty in verifying the authenticity of label information.
Using a blockchain-based approach, carbon emission activity data of liquor products throughout their entire lifecycle are collected by accessing the blockchain network. The carbon footprint is calculated and a structured data hash value is generated and stored on the blockchain. A carbon label is generated by combining the hash with a QR code, and the authenticity of the label is verified through blockchain transaction hash.
It enables full life-cycle carbon emission accounting from raw materials to waste disposal, ensuring data immutability, enhancing the credibility and timeliness of carbon labels, and providing a convenient verification mechanism.
Smart Images

Figure CN121745969A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of carbon footprint calculation and digital label generation, in particular to a liquor product carbon label generation method and system based on a blockchain. BACKGROUND
[0002] Carbon footprint refers to the total amount of greenhouse gas emissions directly and indirectly generated by goods and services throughout their entire life cycle, including the entire process from raw materials, production, transportation, use, and end-of-life disposal. All greenhouse gas emissions are usually expressed in terms of carbon dioxide equivalent (CO2e). With the development of low-carbon economy, carbon labels have become an important indicator of international trade and green consumption. The United Kingdom, France, Japan and other countries have successively introduced carbon label systems.
[0003] However, the current liquor industry lacks a unified product carbon footprint accounting standard, resulting in a lack of comparability in the results of different enterprises. At present, China is developing the "Greenhouse Gas Product Carbon Footprint Quantification Method and Requirements for Liquor" national standard, but it has not yet been implemented. The carbon footprint of liquor products involves raw material planting, fermentation, distillation, aging, packaging, transportation, and other links, and the data collection workload is large and the sources are scattered. Existing carbon footprint accounting focuses on the production stage and lacks a whole life cycle perspective from "cradle to grave" (including raw material procurement, manufacturing, transportation, use, and disposal). Traditional carbon labels lack effective anti-counterfeiting and verification mechanisms, making it difficult for consumers to confirm the authenticity and accuracy of the label information. SUMMARY
[0004] To make up for the above shortcomings, the present application provides a liquor product carbon label generation method and system based on a blockchain, which at least solves the technical problem that the current liquor industry lacks a unified accounting standard, and the general carbon footprint model cannot accurately reflect the carbon emissions of the unique fermentation, aging, and distillation processes of liquor.
[0005] In a first aspect, the present application provides a liquor product carbon label generation method based on a blockchain, comprising the following steps: Access a blockchain network and collect product information of a liquor product and carbon emission activity data of each stage of its entire life cycle; Based on the carbon emission activity data and the pre-set emission factors of the liquor industry, calculate the carbon footprint of the liquor product using life cycle assessment; Encode the carbon footprint and the product information into structured data and calculate the hash value of the structured data, upload the hash value to the blockchain network for notarization to obtain the corresponding blockchain transaction hash; Generate a two-dimensional code containing the structured data and the blockchain transaction hash as the carbon label of the liquor product; In response to a user scanning operation on the carbon label, the structured data and the blockchain transaction hash are parsed, the structured data is verified for authenticity based on the blockchain transaction hash, and then the verification result and carbon footprint information are displayed to the user.
[0006] Preferably, the process of collecting product information of the liquor product and carbon emission activity data of each stage of the product's life cycle includes: Collecting product information of the liquor product, the product information at least including product name, specification and production batch; Collecting carbon emission activity data of raw material planting, the data including pesticide usage, fertilizer usage and agricultural machinery energy consumption; Collecting carbon emission activity data of the liquor production process, the production process including koji preparation, fermentation, distillation, aging and packaging, the data including power consumption, fuel consumption and water consumption; Collecting transportation data of the product circulation process, and collecting packaging material recycling data of the product disposal process.
[0007] Preferably, the calculation process of the carbon footprint of the liquor product includes: Determining the calculation boundary of the carbon footprint as covering the whole process from raw material planting, production, transportation, use to final disposal; For by-products generated in the liquor production process, quality allocation method or economic value allocation method is selected for carbon emission allocation; Multiplying the carbon emission activity data of each stage with the corresponding emission factor preset in the liquor industry, respectively, and summing up the product results of all stages to obtain the initial carbon footprint; Based on the data collected in the liquor production process related to fermentation, aging or distillation process, the initial carbon footprint is corrected.
[0008] Preferably, the calculation process of the hash value of the structured data includes: Organizing the numerical value of the carbon footprint and the product information according to the pre-defined key-value pair format to form a data object; Serializing the data object into a JSON format string to generate the structured data; Using SHA-256 hash algorithm to calculate the JSON format string to generate a unique hash value.
[0009] Preferably, the process of obtaining the blockchain transaction hash includes: Calling the smart contract interface of the blockchain network to create a notarization transaction, the core data field of the notarization transaction containing the hash value; sending the evidence storage transaction to one or more nodes in the blockchain network and broadcasting by the nodes in the blockchain network; waiting for a consensus node in the blockchain network to package the evidence storage transaction into a new block and attach to the blockchain; after the evidence storage transaction is successfully chained, extracting a unique transaction hash from the transaction receipt returned from the blockchain network as the blockchain transaction hash.
[0010] Preferably, the carbon label acquisition process includes: combining the structured data with the blockchain transaction hash to form a complete data load; calling a two-dimensional code generation algorithm to encode the data load into a two-dimensional code image; combining the two-dimensional code image with a preset label template, the label template including at least the carbon footprint value of the liquor product and the product name, to generate a final carbon label file.
[0011] Preferably, the structured data and the blockchain transaction hash analysis process includes: acquiring the two-dimensional code image of the carbon label through the camera of the user terminal and calling a two-dimensional code decoding library to decode the two-dimensional code image to obtain a data string; extracting the structured data content and the blockchain transaction hash from the decoded data string, respectively.
[0012] Preferably, the structured data authenticity verification process includes: submitting the blockchain transaction hash to the blockchain network or its block browser to query the corresponding evidence storage transaction; acquiring the stored on-chain hash value from the queried evidence storage transaction and calculating the local hash value of the current structured data, and comparing the on-chain hash value with the local hash value; if the on-chain hash value and the local hash value are consistent, it is determined that the structured data is authentic and credible, and a verification success verification result is generated, and if they are not consistent, it is determined that the structured data has been tampered with, and a verification failure verification result is generated; synchronously displaying the verification result and the carbon footprint information parsed from the structured data on the display interface of the user terminal.
[0013] In a second aspect, the present application provides the following technical solution: a liquor product carbon label generation system based on a blockchain, the system including the following modules: A data preparation module is configured to access a blockchain network and collect product information of a liquor product and carbon emission activity data of each stage in the whole life cycle of the liquor product; A carbon footprint calculation module is configured to calculate the carbon footprint of the liquor product based on the carbon emission activity data and preset emission factors in the liquor industry by using a life cycle assessment method; A storage and chain module is configured to encode the carbon footprint and the product information into structured data, calculate a hash value of the structured data, upload the hash value to the blockchain network for storage, and obtain a corresponding blockchain transaction hash; A label generation module is configured to generate a two-dimensional code containing the structured data and the blockchain transaction hash as a carbon label of the liquor product; A query verification module is configured to parse the structured data and the blockchain transaction hash in response to a scanning operation of the carbon label by a user, verify the authenticity of the structured data based on the blockchain transaction hash, and then show the user the verification result and carbon footprint information.
[0014] The present application has the following advantages: 1. In the present application, the calculation method from cradle to grave is adopted to cover the whole process carbon emission of the liquor product from raw material procurement, production and manufacturing, logistics transportation to consumer use and waste disposal.
[0015] 2. In the present application, the key carbon footprint data is stored by using the blockchain technology to ensure that the data cannot be tampered with and to enhance the public credibility of the carbon label information.
[0016] 3. In the present application, the system supports dynamic updating of carbon footprint data according to factors such as production process improvement and energy structure optimization to ensure the timeliness of the label information.
[0017] 4. In the present application, a special carbon emission factor library is established for the special process and microbial ecosystem in the liquor brewing process to improve the calculation accuracy. BRIEF DESCRIPTION OF DRAWINGS
[0018] Figure 1 The flowchart of the liquor product carbon label generation method based on the blockchain proposed in the present application; Figure 2 The framework diagram of the liquor product carbon label generation system based on the blockchain proposed in the present application. DETAILED DESCRIPTION
[0019] With reference to the accompanying drawings, the technical solutions in the embodiments of the present application will be described clearly and completely. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
[0020] Embodiment one: In the first embodiment of the present application, the present application provides a white spirit product carbon label generation method based on a blockchain, as shown in Figure 1 The method comprises the following steps: Access a blockchain network and collect product information of a white spirit product and carbon emission activity data of each stage of the whole life cycle of the white spirit product.
[0021] Further, the process of collecting product information of a white spirit product and carbon emission activity data of each stage of the whole life cycle of the white spirit product comprises: Collecting product information of the white spirit product, the product information at least comprising product name, specification and production batch; Collecting carbon emission activity data of raw material planting links, the data comprising pesticide usage, fertilizer usage and agricultural machinery energy consumption; Collecting carbon emission activity data of white spirit production links, the production links comprising koji preparation, fermentation, distillation, aging and packaging, the data comprising power consumption, fuel consumption and water resource consumption; Collecting transportation data of product circulation links, and collecting packaging material recycling data of product waste disposal links.
[0022] Specifically, the system first accesses a predefined blockchain network, which can be a public chain or a consortium chain, as a trust basis for subsequent carbon footprint data non-tamperable storage; Subsequently, the system collects the data necessary for generating carbon labels through various channels. Specifically, the basic information of liquor products is obtained from the enterprise resource planning system, including at least the product name for uniquely identifying the product, the specification for clearly indicating the product capacity, and the production batch for tracing the production batch. For the planting process of brewing raw materials such as sorghum and wheat, data on carbon emissions during the planting stage are collected through agricultural Internet of Things sensors or manual input, including pesticide usage, fertilizer usage, and agricultural machinery energy consumption such as diesel consumption. Production link data collection covers the liquor brewing process, including koji preparation, fermentation, distillation, aging, and packaging. The system monitors and collects power consumption in real time through Internet of Things devices such as smart meters and flow meters deployed on the production line, records fuel consumption such as coal or natural gas through a fuel management system, and accurately measures water consumption of process water and clean water. For the circulation link, product transportation data including transportation distance and transportation mode are collected from the logistics management system. For the waste link, recycling data such as packaging material recycling rate are collected based on industry average data or recycling reports to estimate carbon emissions during waste disposal. All the collected data are transmitted and stored in the database server of the system, providing data for subsequent carbon footprint calculation. Through the above steps, the blockchain can be systematically accessed and full life cycle data can be collected, providing a comprehensive data foundation for subsequent construction of a reliable and accurate liquor product carbon footprint accounting.
[0023] Based on the carbon emission activity data and the pre-set emission factors in the liquor industry, the life cycle assessment method is used to calculate the carbon footprint of liquor products.
[0024] Further, the calculation process of the carbon footprint of liquor products includes: The calculation boundary of the carbon footprint is determined to cover the entire process from raw material planting, production, transportation, use to final waste disposal; For by-products generated during the production of liquor, the quality allocation method or economic value allocation method is selected for carbon emission allocation; The carbon emission activity data of each stage is multiplied by the corresponding pre-set emission factor in the liquor industry, and the sum of the product results of all stages is calculated to obtain the initial carbon footprint; Based on the data collected during the production of liquor related to fermentation, aging, or distillation processes, the initial carbon footprint is corrected.
[0025] Specifically, the system determines the calculation boundary of the carbon footprint as covering the whole process from raw material planting, production, transportation, use to final disposal, that is, adopts the accounting mode from cradle to grave, ensures the comprehensiveness of the evaluation, and in the calculation process, for the by-products such as alcohol or feed produced in the production process of the liquor, the system adopts the mass distribution method or the economic value distribution method to reasonably distribute the total carbon emissions in the production process between the main products and by-products, so as to ensure the fairness and accuracy of the accounting results, then the system performs core calculation, based on the basic principle of life cycle assessment, calculates the initial carbon footprint of the product according to the following formula: ; Wherein, represents the initial carbon footprint calculated, in kilograms of carbon dioxide equivalent per 500 milliliters, represents the activity data of the i-th resource or energy, such as power consumption, coal consumption or water consumption, which is provided by the data preparation module, represents the pre-set emission factor of the i-th resource or energy corresponding to the liquor industry, which is stored in the special database built in the system; Finally, the system corrects the above initial carbon footprint for industry specificity, the system calls the corresponding correction factor to correct the initial result according to the specific data collected from the production link related to the fermentation, aging or distillation process, in an embodiment, for example, based on the research results of a certain product wine fermentation process of a certain team of a certain university, a microbial carbon emission correction factor is introduced, according to the aging time and container type of the pottery jar, a volatile organic emission correction factor in the aging process is introduced, based on the distillation efficiency and the type of energy used, a distillation energy correction factor is introduced, and finally a more accurate product carbon footprint value is obtained after correction; Through the above steps, the whole life cycle assessment combined with the industry-specific correction of liquor is realized, which realizes the leap from macro-accounting to accurate correction of the carbon footprint of liquor products, and improves the accuracy and industry applicability of the accounting results.
[0026] The carbon footprint and product information are coded into structured data, and the hash value of the structured data is calculated, and the hash value is uploaded to the blockchain network for notarization to obtain the corresponding blockchain transaction hash.
[0027] Further, the calculation process of the hash value of the structured data includes: The numerical value of the carbon footprint and the product information are organized according to the pre-defined key-value pair format to form a data object; The data object is serialized into a JSON format string to generate structured data; The SHA-256 hash algorithm is used to calculate the JSON format string to generate a unique hash value.
[0028] Further, the acquisition process of the blockchain transaction hash includes: Calling the smart contract interface of the blockchain network, creating a notarization transaction, and the core data field of the notarization transaction containing the hash value; Sending the notarization transaction to one or more nodes in the blockchain network, and broadcasting by the nodes in the blockchain network; Waiting for the consensus nodes in the blockchain network to package the notarization transaction into a new block and attach it to the blockchain; After the notarization transaction is successfully chained, a unique transaction hash is extracted from the transaction receipt returned by the blockchain network as the blockchain transaction hash.
[0029] Specifically, the system organizes the final carbon footprint value calculated, product name, specifications and other product information according to the pre-defined key-value pair format to form a complete data object. Then, the system serializes the data object into a standard and universal JSON format string to generate the final structured data. To ensure the uniqueness and tamper resistance of the structured data, the system uses the industry standard SHA-256 encryption hash algorithm to calculate the aforementioned JSON format string and generates a fixed-length, unique hash value string. Next, the system performs the blockchain notarization process. Specifically, the system calls the smart contract interface provided by the connected blockchain network to create a new notarization transaction. The core data field of the notarization transaction includes the hash value calculated in the previous step. After the creation of the notarization transaction, the system sends it to one or more nodes in the blockchain network. These nodes then broadcast the transaction in the peer-to-peer network. The broadcasted notarization transaction enters the pending queue, waiting for the consensus nodes in the blockchain network to package it into a newly generated block according to their consensus mechanism. When the block is verified by network consensus and attached to the blockchain, it means that the notarization transaction has been successfully chained. After the transaction is successfully chained, the system extracts a globally unique transaction hash from the transaction receipt returned by the blockchain network. This transaction hash is the blockchain transaction hash, which serves as the unique proof and query index for the permanent existence of the carbon footprint data on the chain.
[0030] Through the above steps, the carbon footprint information can be encoded and calculated for hash value anchoring to the blockchain, building an immutable and traceable function for carbon label data, ensuring the credibility and public trust of the label information.
[0031] Generating a two-dimensional code containing structured data and a blockchain transaction hash as a carbon label for the liquor product.
[0032] Further, the acquisition process of the carbon label includes: combining the structured data with the blockchain transaction hash forms a complete data load; calling a two-dimensional code generation algorithm encodes the data load into a two-dimensional code image; synthesizing the two-dimensional code image with a preset label template, the label template at least including the carbon footprint value of the liquor product and the product name, to generate a final carbon label file.
[0033] Specifically, the system first combines the structured data including the carbon footprint and product information with the blockchain transaction hash as the on-chain notarization certificate, splices to form a complete data load string, which ensures that all key information, including readable data content and verifiable trust anchor, is completely encapsulated. Subsequently, the system calls a standard two-dimensional code generation algorithm, such as the QR Code generation library, to encode the above data load string as input and convert it to generate a machine-readable two-dimensional code image, which has the characteristics of large storage capacity and strong fault tolerance. Finally, the system performs visual finalization of the label, which synthesizes the generated two-dimensional code image with a preset and designed label template that at least includes the clear and readable carbon footprint value of the liquor product and the product name, such as “Carbon footprint: 2.40 kg CO2e / 500ml” and “Product name: certain product”. The final carbon label file generated after synthesis is a complete visual label with machine readability and human readability, which can be directly used for printing on product packaging or signboards. Through the above steps, the trusted data and verification entry can be encoded into a two-dimensional code and synthesized with visual information to generate a composite carbon label with machine readability and human readability, which significantly reduces application costs while achieving efficient transmission and convenient verification of carbon footprint information.
[0034] In response to the user's scanning operation on the carbon label, the structured data and the blockchain transaction hash are parsed, and the structured data is verified for authenticity based on the blockchain transaction hash, and then the user is shown the verification result and the carbon footprint information.
[0035] Further, the parsing process of the structured data and the blockchain transaction hash includes: acquiring the two-dimensional code image of the carbon label through the camera of the user terminal, and calling a two-dimensional code decoding library to decode the two-dimensional code image to obtain a data string; extracting the structured data content and the blockchain transaction hash from the decoded data string, respectively.
[0036] Further, the process of verifying the authenticity of the structured data includes: submitting the blockchain transaction hash to the blockchain network or its block explorer to query the corresponding notarization transaction; obtaining the stored on-chain hash value from the queried storage transaction, and calculating the local hash value of the current structured data, comparing whether the on-chain hash value and the local hash value are consistent; If the on-chain hash value and the local hash value are consistent, it is determined that the structured data is authentic and credible, and a verification success result is generated, and if they are not consistent, it is determined that the structured data has been tampered with, and a verification failure result is generated; On the display interface of the user terminal, the verification result and the carbon footprint information parsed from the structured data are synchronously displayed.
[0037] Specifically, the user uses an application program on a terminal such as a smartphone to scan the two-dimensional code on the carbon label of the liquor product. The application program first decodes the two-dimensional code, and from the data string obtained by decoding, extracts the structured data content encapsulating the carbon footprint and product information, and the blockchain transaction hash as the on-chain query index; Subsequently, the system performs a authenticity verification process, and the application program submits the blockchain transaction hash to the corresponding blockchain network or public block explorer to query the on-chain storage transaction record corresponding to the hash. After a successful query, the system obtains the original hash value stored on the chain, i.e. the on-chain hash value, from the storage transaction. At the same time, the system calculates the local hash value of the structured data parsed from the two-dimensional code in real time. The system compares the on-chain hash value with the local hash value. If they are completely consistent, it proves that the carbon footprint information in the current two-dimensional code has not been tampered with since storage, and the system determines that it is authentic and credible, and generates a verification success result. If they are not consistent, it proves that the data has been tampered with, and the system generates a verification failure result; Finally, on the application display interface of the user terminal, the system synchronously displays the above verification result, such as a green check mark and the words "blockchain verified" indicating success, or a red cross and the words "information not verified" indicating failure. At the same time, the interface clearly parses and displays the carbon footprint information of the liquor product from the structured data, including the total carbon footprint value and the carbon emission proportion of each life cycle stage, etc. Thus, the whole process from scanning to obtaining credible information is completed. Through the above steps, an automatic verification and information display process triggered by the user based on blockchain hash comparison can be constructed, providing consumers with an intuitive, convenient and highly credible carbon footprint information query experience.
[0038] Embodiment Two: However, the current liquor industry lacks unified product carbon footprint accounting standards, resulting in a lack of comparability in the results of different enterprises. At present, China is formulating the "Greenhouse Gas Product Carbon Footprint Quantification Method and Requirements for Liquor" national standard, but it has not been published and implemented. The carbon footprint of liquor products involves multiple links such as raw material planting, fermentation, distillation, aging, packaging, transportation, etc. The data collection workload is large and the sources are scattered. The existing carbon footprint accounting focuses on the production stage, lacks a whole life cycle perspective from "cradle to grave" (including raw material procurement, manufacturing, transportation, use and disposal), and the traditional carbon label lacks an effective anti-counterfeiting and verification mechanism, making it difficult for consumers to confirm the authenticity and accuracy of the label information. To solve the above problems, the present application provides a liquor product carbon label generation system based on blockchain, as shown in the structure of Figure 2 The specific implementation process of the system is as follows: The data preparation module accesses a blockchain network and collects product information of liquor products and carbon emission activity data of each stage of the whole life cycle; The carbon footprint calculation module calculates the carbon footprint of liquor products based on carbon emission activity data and pre-set emission factors in the liquor industry using life cycle assessment; The storage and chain module encodes the carbon footprint and product information into structured data, calculates the hash value of the structured data, uploads the hash value to the blockchain network for storage, and obtains the corresponding blockchain transaction hash; The label generation module generates a two-dimensional code containing structured data and blockchain transaction hash as a carbon label for liquor products; The query verification module responds to the user's scanning operation on the carbon label, parses the structured data and blockchain transaction hash, and based on the blockchain transaction hash, verifies the authenticity of the structured data, and then displays the verification result and carbon footprint information to the user.
[0039] Specifically, in one preferred embodiment of the present application, the hardware basis of the liquor product carbon label generation system based on blockchain includes a database server, a two-dimensional code label generation device, a two-dimensional code label printing device and a network device. The system is logically composed of the following functional modules: The data preparation module is used to access a pre-defined blockchain network as the basis for global trusted storage. This module collects product information of liquor products by interfacing with enterprise resource planning systems, calling Internet of Things sensor interfaces and providing manual input interfaces, and systematically collects carbon emission activity data of each stage of the whole life cycle. The product information at least includes product name, specification and production batch, and the carbon emission activity data covers the use amount of pesticides and fertilizers in the raw material planting link, the energy consumption and material consumption from liquor starter preparation to packaging in the production link, the transportation data in the circulation link and the packaging material recycling data in the waste link; The carbon footprint calculation module is connected with the data preparation module, calls the carbon emission activity data provided by the data preparation module, the module has a carbon emission factor database specially established for the liquor industry, and integrates a life cycle assessment algorithm, the module first determines the whole process from raw materials to waste as the calculation boundary, adopts the mass or economic value distribution method for by-products in production, then calculates the initial carbon footprint by multiplying the activity data and the corresponding emission factor and summing, and finally modifies the initial result in combination with specific process parameters such as fermentation, aging and distillation, and outputs the final carbon footprint value with high precision; The storage chain module is connected with the carbon footprint calculation module, obtains the carbon footprint value output by the carbon footprint calculation module, the module organizes and serializes the carbon footprint value and product information into a JSON string in the form of key-value pairs, generates structured data, then the module calculates the hash value of the structured data by using the SHA-256 algorithm, and creates, broadcasts and executes a storage transaction containing the hash value by calling the smart contract interface of the blockchain network, and finally extracts the unique blockchain transaction hash from the transaction receipt returned from the blockchain network; The label generation module is connected with the storage chain module and the carbon footprint calculation module respectively, the module combines the structured data and the blockchain transaction hash into data payload, calls a two-dimensional code generation algorithm to encode it into a two-dimensional code image, then the module synthesizes the two-dimensional code image with a preset label template, the template at least clearly marks the carbon footprint value and the product name, finally generates a carbon label file that can be directly used for printing, and can be output by the connected printing device; The query verification module is deployed in the user query platform in the form of software, the module responds to the scanning operation of the user on the carbon label, first parses the structured data and the blockchain transaction hash, then the module submits the blockchain transaction hash to the blockchain network to query the original storage, compares whether the hash value stored on the chain is consistent with the local hash value calculated in real time to determine the authenticity of the data, and generates a verification result, finally the module synchronously shows the verification result and the detailed carbon footprint information parsed from the structured data to the user on the display interface of the user terminal.
[0040] Finally, it should be noted that: the above is only the preferred embodiment of the present application, and is not used to limit the present application, although the present application has been described in detail with reference to the foregoing embodiments, for those skilled in the art, the technical solutions recorded in the foregoing embodiments can be modified, or some technical features can be replaced, any modification, equivalent replacement, improvement, etc. within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A method for generating carbon labels for liquor products based on blockchain, characterized in that, Includes the following steps: Connect to a blockchain network and collect product information of liquor products and carbon emission activity data at each stage of their entire life cycle; Based on the carbon emission activity data and the emission factors pre-set in the liquor industry, the carbon footprint of the liquor products is calculated using the life cycle assessment method. The carbon footprint and product information are encoded into structured data, and the hash value of the structured data is calculated. The hash value is then uploaded to the blockchain network for notarization to obtain the corresponding blockchain transaction hash. Generate a QR code containing the structured data and the blockchain transaction hash, as a carbon label for the liquor product; In response to the user's scanning operation of the carbon tag, the structured data and the blockchain transaction hash are parsed out, and the authenticity of the structured data is verified based on the blockchain transaction hash. Then, the verification result and carbon footprint information are displayed to the user.
2. The method for generating carbon labels for liquor products based on blockchain according to claim 1, characterized in that, The process for collecting product information of liquor products and carbon emission activity data at each stage of their entire life cycle includes: Collect product information for the liquor products, including at least the product name, specifications, and production batch. Collect carbon emission data from the raw material planting process, including pesticide usage, fertilizer usage, and agricultural machinery energy consumption. Collect carbon emission data on the production process of baijiu (Chinese liquor), which includes the preparation of yeast, fermentation, distillation, aging and packaging. The data includes electricity consumption, fuel consumption and water consumption. Collect transportation data during the product distribution process, and collect data on the recycling of packaging materials during the product disposal process.
3. The method for generating carbon labels for liquor products based on blockchain according to claim 2, characterized in that, The calculation process for the carbon footprint of the liquor product includes: The calculation boundary for carbon footprint is defined as covering the entire process from raw material planting, production, transportation, use to final waste disposal; For by-products generated during the production of baijiu (Chinese liquor), carbon emissions can be allocated using either the quality allocation method or the economic value allocation method. The carbon emission activity data for each stage are multiplied by the corresponding pre-set emission factors for the liquor industry, and the product results for all stages are summed to obtain the initial carbon footprint. The initial carbon footprint is corrected based on data collected during the liquor production process related to fermentation, aging, or distillation.
4. The method for generating carbon labels for liquor products based on blockchain according to claim 1, characterized in that, The calculation process for the hash value of the structured data includes: The carbon footprint value and the product information are organized according to a predefined key-value pair format to form a data object; The data object is serialized into a JSON format string to generate the structured data; The JSON format string is calculated using the SHA-256 hash algorithm to generate a unique hash value.
5. The method for generating carbon labels for liquor products based on blockchain according to claim 1, characterized in that, The process for obtaining the blockchain transaction hash includes: The smart contract interface of the blockchain network is invoked to create a notarized transaction, wherein the core data field of the notarized transaction includes the hash value; The notarized transaction is sent to one or more nodes in the blockchain network, and the nodes broadcast it in the blockchain network. Waiting for the consensus nodes in the blockchain network to package the evidence-stored transaction into a new block and attach it to the blockchain; After the evidence-based transaction is successfully uploaded to the blockchain, a unique transaction hash is extracted from the transaction receipt returned by the blockchain network and used as the blockchain transaction hash.
6. The method for generating carbon labels for liquor products based on blockchain according to claim 1, characterized in that, The carbon tag acquisition process includes: The structured data is combined with the blockchain transaction hash to form a complete data payload; The QR code generation algorithm is invoked to encode the data payload into a QR code image; The QR code image is combined with a preset label template, which at least includes the carbon footprint value and product name of the liquor product, to generate the final carbon label file.
7. The method for generating carbon labels for liquor products based on blockchain according to claim 1, characterized in that, The parsing process of the structured data and the blockchain transaction hash includes: The user terminal's camera captures the QR code image of the carbon label, and the QR code decoding library is called to decode the QR code image to obtain a data string; The structured data content and the blockchain transaction hash are extracted from the decoded data string.
8. The method for generating carbon labels for liquor products based on blockchain according to claim 7, characterized in that, The process for verifying the authenticity of the structured data includes: Submit the blockchain transaction hash to the blockchain network or its block explorer to query the corresponding evidence-based transaction; Obtain the on-chain hash value stored in the queried evidence-stored transaction, calculate the local hash value of the current structured data, and compare whether the on-chain hash value and the local hash value are consistent. If the on-chain hash value is consistent with the local hash value, the structured data is determined to be authentic and trustworthy, and a successful verification result is generated. If they are inconsistent, the structured data is determined to have been tampered with, and a failed verification result is generated. The verification results and the carbon footprint information parsed from the structured data are simultaneously displayed on the user terminal's display interface.
9. A blockchain-based carbon label generation system for liquor products, characterized in that, The system for generating carbon labels for liquor products based on blockchain, as described in any one of claims 1-8, comprises the following modules: The data preparation module is used to connect to a blockchain network and collect product information of liquor products and carbon emission activity data at each stage of their entire life cycle. The carbon footprint calculation module is used to calculate the carbon footprint of the liquor product based on the carbon emission activity data and the emission factors preset in the liquor industry, using the life cycle assessment method. The notarization and blockchain module is used to encode the carbon footprint and the product information into structured data, calculate the hash value of the structured data, and upload the hash value to the blockchain network for notarization to obtain the corresponding blockchain transaction hash. A label generation module is used to generate a QR code containing the structured data and the blockchain transaction hash, which serves as a carbon label for the liquor product. The query verification module is used to respond to the user's scanning operation of the carbon tag, parse the structured data and the blockchain transaction hash, and verify the authenticity of the structured data based on the blockchain transaction hash, and then display the verification results and carbon footprint information to the user.