A blockchain-based medicine fragrance product full-link traceability and anti-counterfeiting system
Patent Information
- Application Number
- CN202610873026.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-17
- Publication Date
- 2026-09-11
AI Technical Summary
[0005]本发明的目的在于针对现有技术的不足,提供一种基于区块链的药香产品全链路溯源与防伪系统,解决现有药香产品溯源数据易篡改、链路不完整、防伪效果差、监管难度大、数据不互通的问题,实现药香产品全生命周期可信溯源与精准防伪
1、本发明采用区块链联盟链去中心化架构,彻底摒弃传统中心化溯源系统数据易篡改的缺陷,所有溯源数据加密上链、全程留痕、分布式存储,数据真实性、安全性、可信度大幅提升,从技术层面杜绝溯源数据造假。
Abstract
Description
Technical Field
[0001] This invention relates to the field of product traceability and anti-counterfeiting technology, specifically to a blockchain-based end-to-end traceability and anti-counterfeiting system for medicinal fragrance products. Background Technology
[0002] Herbal incense products are unique products made from traditional Chinese medicinal herbs through processing, proportioning, and preparation. They offer health benefits, therapeutic effects, and air purification, encompassing various categories such as herbal incense pills, aromatherapy, incense sticks, and incense coils. With the rapid development of the health industry, the market size of herbal incense products continues to expand. However, the industry suffers from serious problems such as a lack of traceability, rampant counterfeiting, and weak quality control, severely hindering its standardized development.
[0003] Currently, most traceability systems for medicinal fragrance products on the market are centralized systems, which suffer from numerous technical defects and industry pain points: First, traceability data is centrally stored on enterprise servers, making it susceptible to tampering, deletion, and forgery, compromising the authenticity of traceability information and allowing a large number of inferior counterfeit products to enter the market by altering traceability information; Second, the traceability chain is fragmented, with most existing systems only recording information from a single stage of production or sales, failing to cover the entire lifecycle from raw material planting, processing, quality inspection, warehousing and logistics, to terminal sales, resulting in information gaps and hindering full-chain traceability; Third, anti-counterfeiting technologies are simplistic, often employing fixed QR codes and barcodes, which are easily copied and reused, resulting in low anti-counterfeiting accuracy, low cracking costs, and extremely poor anti-counterfeiting effectiveness; Fourth, supervision is difficult, as centralized data lacks transparency, making it impossible for regulatory departments to verify product information throughout the entire process in real time, hindering routine and precise supervision; Fifth, data collaboration is poor, with data from manufacturers, quality inspection agencies, logistics companies, and regulatory departments operating independently, preventing data sharing and resulting in low traceability efficiency.
[0004] Blockchain technology possesses the core characteristics of decentralization, immutability, full traceability, transparency, and verifiability, effectively addressing the inherent shortcomings of centralized traceability systems. Existing blockchain traceability technologies are primarily applied to general sectors such as agricultural products, food, and pharmaceuticals, lacking customized traceability and anti-counterfeiting solutions for medicinal fragrance products due to their unique production processes, diverse raw materials, and specialized quality assessment requirements. These solutions fail to meet the end-to-end traceability and control needs of medicinal fragrance products. Therefore, developing a blockchain traceability and anti-counterfeiting system specifically for medicinal fragrance products, covering the entire lifecycle, offering high anti-counterfeiting accuracy, and ensuring data security and reliability, has become a pressing technical challenge for those skilled in the art. Summary of the Invention
[0005] The purpose of this invention is to address the shortcomings of existing technologies by providing a blockchain-based end-to-end traceability and anti-counterfeiting system for medicinal fragrance products. This system solves the problems of easily tampered traceability data, incomplete traceability links, poor anti-counterfeiting effects, high regulatory difficulty, and lack of data interoperability in existing medicinal fragrance products, thereby achieving reliable traceability and accurate anti-counterfeiting throughout the entire lifecycle of medicinal fragrance products.
[0006] To achieve the above objectives, the present invention adopts the following technical solution: A blockchain-based end-to-end traceability and anti-counterfeiting system for medicinal fragrance products includes a data acquisition layer, a blockchain underlying layer, a smart contract layer, and an application service layer. The data acquisition layer is responsible for the collection and preprocessing of data throughout the entire process of medicinal fragrance products, covering all aspects from raw materials, production, quality inspection, logistics, and sales. The blockchain underlying layer adopts a consortium blockchain architecture to achieve decentralized encrypted storage and tamper-proof evidence preservation of data. The smart contract layer realizes automatic data verification, access control, anomaly warning, and anti-counterfeiting verification through built-in smart contracts. The application service layer provides differentiated traceability and anti-counterfeiting application services to multiple entities, constructing a closed-loop traceability and anti-counterfeiting system across the entire chain.
[0007] Furthermore, the data acquisition layer is equipped with five dedicated acquisition modules that are precisely adapted to the production process of medicinal fragrance products. These modules collect core data from all aspects, including raw material planting and maintenance, processing techniques, professional quality testing, warehousing and logistics management, and terminal sales verification. At the same time, the raw data is pre-processed by cleaning, deduplication, format standardization, and missing data completion to ensure the integrity and standardization of the data uploaded to the blockchain.
[0008] Furthermore, the underlying blockchain adopts a consortium blockchain architecture and the PBFT consensus algorithm, connecting multiple nodes such as production, quality inspection, logistics, and supervision to achieve collaborative governance among multiple entities. All data is encrypted and uploaded to the chain using the SHA-256 hash algorithm, with each traceability data corresponding to a unique block hash value. Data updates generate new blocks, ensuring a complete traceability and immutability. The distributed storage mode guarantees data security and prevents data loss.
[0009] Furthermore, the smart contract layer incorporates five types of core smart contracts, which can automatically complete data on-chain verification, multi-level permission division, abnormal data warning, anti-counterfeiting code validity verification, and dynamic updates of traceability information without human intervention. This significantly improves the efficiency and intelligence level of traceability and anti-counterfeiting, while eliminating data fraud and audit oversight issues caused by manual operation.
[0010] Furthermore, this invention adds a one-item-one-code dynamic anti-counterfeiting module, which generates a unique dynamic encrypted anti-counterfeiting code for each herbal fragrance product. The anti-counterfeiting code is bound to the blockchain block data in real time, and the key parameters are dynamically updated after each verification, which completely solves the problem of traditional fixed anti-counterfeiting codes being easy to copy and forge, and achieves accurate anti-counterfeiting.
[0011] Compared with the prior art, the present invention has the following beneficial effects: 1. This invention adopts a decentralized blockchain consortium blockchain architecture, which completely eliminates the defects of traditional centralized traceability systems where data is easily tampered with. All traceability data is encrypted and uploaded to the chain, with full traceability and distributed storage, greatly improving the authenticity, security and credibility of the data, and eliminating the falsification of traceability data from a technical perspective.
[0012] 2. This invention enables full-lifecycle traceability of medicinal fragrance products, covering all aspects from raw material planting, processing and production, quality testing, warehousing and logistics, terminal sales, and after-sales verification. It solves the problems of fragmented links and information gaps in existing traceability systems, and enables complete traceability of products from the field to the end consumer.
[0013] 3. This invention adopts a one-item-one-code dynamic anti-counterfeiting technology, which is different from traditional fixed anti-counterfeiting labels. The anti-counterfeiting code is dynamically updated and uniquely bound to block data, making it impossible to copy, reuse, or forge. The anti-counterfeiting accuracy is greatly improved, effectively curbing the chaos of counterfeit and inferior medicinal fragrance products.
[0014] 4. This invention achieves fully automated management and control through smart contracts, automatically completing data verification, anomaly warning, access control, and information updates. It has a high degree of intelligence, reduces manual operation costs, and the multi-level access control system takes into account both data openness and security, adapting to the needs of multiple stakeholders including enterprises, regulators, and consumers.
[0015] 5. This invention is specifically adapted to the raw material characteristics, production process, and quality inspection standards of medicinal fragrance products, and collects core process and quality data in a customized manner. The traceability information is more in line with the industry attributes of medicinal fragrance products, which can accurately reflect the quality value of medicinal fragrance products and help the industry to develop in a standardized and branded manner. Detailed Implementation
[0016] The present invention will be further described in detail below with reference to specific embodiments.
[0017] This invention discloses a blockchain-based end-to-end traceability and anti-counterfeiting system for medicinal fragrance products. The overall architecture is divided into four layers: data acquisition layer, blockchain underlying layer, smart contract layer, and application service layer. Each layer works in concert to achieve closed-loop management of end-to-end traceability and anti-counterfeiting for medicinal fragrance products.
[0018] 1. Data Acquisition Layer Implementation Method The data acquisition layer serves as the system's data entry point, completing the entire process of data acquisition and preprocessing through five modules. The raw material acquisition module connects to the raw material planting base terminal, collecting real-time data on the planting location, growth cycle, fertilization and pesticide records, harvest time, raw material grade, and supplier qualifications of various medicinal fragrance raw materials such as agarwood, sandalwood, mugwort, and patchouli. The production acquisition module connects to the enterprise's production equipment and operating terminals, collecting core process data such as ingredient ratios, processing temperature, boiling time, molding process, production batches, operators, and production equipment parameters. The quality inspection acquisition module connects to third-party quality inspection agencies and the enterprise's quality inspection terminal, entering quality inspection data such as the ingredient content, heavy metal detection, microbial detection, efficacy indicators, quality inspection reports, and pass / fail determination of medicinal fragrance products. The logistics and warehousing acquisition module collects data on warehousing temperature and humidity, inbound and outbound times, transportation routes, transit nodes, logistics carrier information, and receipt records through IoT devices. The terminal acquisition module collects data on product sales channels, sales time, terminal locations, and consumer verification records. After all raw data is collected, the system automatically performs cleaning, deduplication, and format standardization, eliminating invalid data and ensuring that the data uploaded to the blockchain is standardized and complete.
[0019] 2. Blockchain Underlying Layer Implementation Method This system adopts a consortium blockchain architecture, limiting access to authorized nodes while balancing openness and security. Access nodes include those from medicinal herb manufacturers, third-party quality inspection agencies, logistics companies, and market regulators. The system uses the PBFT consensus algorithm to ensure data synchronization and consistency across nodes. After compliant data is pre-processed at the data acquisition layer and uploaded to the blockchain nodes, it is encrypted using the SHA-256 hash algorithm to generate a unique block hash value. The plaintext data is then bound to the hash value, packaged, and used to generate a new block, which is simultaneously stored on all consortium blockchain nodes. Employing a distributed storage model with no centralized server, data corruption or tampering on a single node does not affect the overall block data. Any data modification operation leaves a traceable record, achieving permanent data storage and immutability.
[0020] 3. Implementation methods of the smart contract layer The system incorporates five types of self-developed smart contracts to achieve fully automated management and control. The data verification contract automatically verifies the completeness, standardization, and rationality of data uploaded to the blockchain; missing, abnormal, or non-compliant data is directly rejected and prohibited from being uploaded. The access control contract divides permissions into three levels: enterprise permissions allow only uploading and querying of its own product data; regulatory permissions allow for querying, verification, and early warning processing across the entire network; and consumer permissions allow only querying publicly available traceability and anti-counterfeiting information. The anomaly warning contract monitors data at each stage in real time; when anomalies occur, such as missing raw material information, exceeding quality inspection standards, abnormal logistics trajectories, or duplicate verification of anti-counterfeiting codes, it immediately triggers audible and visual warnings and pushes them to the corresponding responsible terminals. The anti-counterfeiting verification contract binds anti-counterfeiting codes to blockchain data in real time; upon receiving verification requests from terminals, it automatically compares hash values with key information to determine authenticity and returns the verification result. The traceability update contract links data at each stage; as each process node is completed, the traceability chain information is automatically updated to ensure real-time and complete traceability data.
[0021] 4. One item, one code dynamic anti-counterfeiting implementation method The system generates a unique dynamic anti-counterfeiting QR code for each herbal fragrance product. During code generation, the code is bound to the product's block hash value, unique product ID, and dynamic encryption key. Before leaving the factory, the anti-counterfeiting code is assigned and affixed. Consumers can initiate verification by scanning the QR code with their mobile phones. After each verification, the system automatically updates the local key parameters of the anti-counterfeiting code, ensuring that the code can only be verified once, preventing copying, screenshotting, and reuse for counterfeiting, thus achieving accurate anti-counterfeiting at the consumer's point of view. Simultaneously, all verification records are uploaded to the blockchain in real time for evidence storage, facilitating subsequent traceability and accountability for counterfeit products.
[0022] 5. Application Service Layer Implementation Method The application service layer is configured with four types of terminals to adapt to different user needs. The enterprise management terminal supports manufacturing enterprises in completing data uploads, batch management, traceability information maintenance, anomaly warning handling, and production ledger statistics, achieving autonomous control over the entire product process. The regulatory terminal provides market supervision departments with functions such as full-network traceability data query, product quality verification, abnormal order handling, and industry data statistics, achieving precise supervision. The logistics terminal supports logistics organizations in uploading warehousing and logistics data, querying product traceability information, and handling logistics anomalies, ensuring transparency and traceability in the logistics process. The consumer query terminal relies on mini-programs and web interfaces, requiring no software download; simply scan a code to view the entire traceability information of product raw materials, production, quality inspection, and logistics, as well as anti-counterfeiting verification results—a convenient operation.
[0023] Through the coordinated operation of the above-mentioned levels and modules, this invention fully realizes the traceability and anti-counterfeiting management of medicinal fragrance products throughout their entire life cycle, from raw material planting to end-consumer and after-sales verification. The data is secure and reliable, the anti-counterfeiting effect is excellent, and the level of intelligence is high. It effectively solves many defects of existing technologies and has extremely high industry promotion value.
Claims
1. A blockchain-based end-to-end traceability and anti-counterfeiting system for medicinal fragrance products, characterized in that, It includes a data acquisition layer, a blockchain underlying layer, a smart contract layer, and an application service layer; The data acquisition layer is used to cover all stages of the entire life cycle of medicinal fragrance products, collecting data on raw material planting, processing and production, quality testing, warehousing and logistics, terminal sales, and unique product identification. The collected raw data is preprocessed by cleaning, deduplication, and format standardization. The underlying blockchain adopts a consortium blockchain architecture to receive various types of data after preprocessing by the data collection layer. It is then encrypted and stored on the blockchain using a hash algorithm, achieving decentralized and distributed storage of all traceability data and ensuring that the data is tamper-proof and fully traceable. The smart contract layer has built-in smart contract rules for multiple scenarios, which are used to automatically perform data on-chain verification, hierarchical permission control, abnormal data warning, traceability information linkage update, and anti-counterfeiting code validity verification operations. The application service layer provides differentiated traceability and anti-counterfeiting services to manufacturers, regulatory authorities, logistics organizations, and end consumers, enabling full-chain information query, anti-counterfeiting verification, data supervision, and after-sales traceability functions.
2. The blockchain-based end-to-end traceability and anti-counterfeiting system for medicinal fragrance products according to claim 1, characterized in that, The data acquisition layer includes a raw material acquisition module, a production acquisition module, a quality inspection acquisition module, a logistics and warehousing acquisition module, and a terminal acquisition module; The raw material acquisition module is used to collect data on the planting location, planting time, fertilization and pesticide application records, harvesting time, raw material grade, and supplier qualification of medicinal fragrance raw materials. The production data acquisition module is used to collect information on the ingredient ratios, preparation and processing techniques, production equipment parameters, production process nodes, production operators, and production batch data of the medicinal fragrance products. The quality inspection data collection module is used to collect data on the component testing report, heavy metal content testing, microbial testing, efficacy index testing, quality inspectors, quality inspection time, and pass / fail determination results of the medicinal fragrance products. The logistics and warehousing data acquisition module is used to collect data on product entry time, storage temperature and humidity, storage location, logistics transportation trajectory, transportation equipment, transit nodes, and receipt information. The terminal data acquisition module is used to collect product outbound information, sales channels, sales time, terminal locations, and consumer verification records.
3. The blockchain-based end-to-end traceability and anti-counterfeiting system for medicinal fragrance products according to claim 1, characterized in that, The underlying layer of the blockchain adopts the PBFT consensus algorithm and includes a data encryption module, a distributed storage module, a node management module, and a data synchronization module. The data encryption module uses the SHA-256 hash algorithm to encrypt all traceability data, generating a unique block hash value. The plaintext data is bound to the hash value and uploaded to the blockchain. A new block record is generated with each data update, preventing data tampering. The distributed storage module stores the on-chain data in a distributed manner across the participating nodes of the consortium blockchain, with no centralized storage node. Damage to data on a single node does not affect the integrity of the overall traceability data. The node management module is used to connect enterprise production nodes, quality inspection and supervision nodes, logistics nodes, and terminal verification nodes to achieve multi-entity collaborative on-chaining; The data synchronization module is used to synchronize the traceability data uploaded by each node in real time, ensuring that the data is updated in real time and the information is consistent throughout the entire chain.
4. The blockchain-based end-to-end traceability and anti-counterfeiting system for medicinal fragrance products according to claim 1, characterized in that, The smart contract layer includes built-in data verification contract, access control contract, anomaly warning contract, anti-counterfeiting verification contract, and traceability update contract; The data verification contract is used to automatically verify the integrity, standardization, and authenticity of the data uploaded to the blockchain, and to remove invalid, missing, or abnormal data. Only qualified data can be written into the blockchain block. The access control contract is used to set up multi-level access permissions. Manufacturing enterprises can only upload their own production data and query their own product information. Regulatory authorities can view the entire chain of data and conduct regulatory verification. Consumers can only query publicly available traceability and anti-counterfeiting information of products. The anomaly warning contract is used to monitor data anomalies in each stage in real time. When there are issues such as missing raw material information, exceeding quality inspection standards, abnormal logistics trajectory, or repeated verification of anti-counterfeiting codes, an early warning will be automatically triggered and pushed to the corresponding management terminal. The anti-counterfeiting verification contract is used to bind the product's unique dynamic anti-counterfeiting code to the blockchain block hash value, verify the validity of the anti-counterfeiting code in real time, and intercept counterfeit, reused, or tampered anti-counterfeiting information. The traceability update contract is used to link data at each stage, realize dynamic updates of product lifecycle data, and form a complete traceability chain.
5. The blockchain-based end-to-end traceability and anti-counterfeiting system for medicinal fragrance products according to claim 1, characterized in that, The application service layer includes enterprise management terminals, regulatory terminals, logistics terminals, and consumer inquiry terminals; The enterprise management terminal is used by enterprises to complete data uploading for each production stage, product batch management, traceability information maintenance, abnormal early warning handling, and product ledger statistics. The monitoring terminal is used by regulatory authorities to verify the full-chain traceability data of medicinal fragrance products in real time, investigate counterfeit and substandard products, collect industry product quality data, and carry out routine supervision. The logistics terminal is used by logistics organizations to upload transportation and warehousing data, query product traceability information, and handle logistics anomalies. The consumer query terminal is a WeChat mini program or web query portal. Consumers can scan the product's anti-counterfeiting QR code to query the product's raw materials, production, quality inspection, logistics traceability information and anti-counterfeiting verification results with one click.
6. The blockchain-based end-to-end traceability and anti-counterfeiting system for medicinal fragrance products according to claim 1, characterized in that, The system also includes a one-item-one-code dynamic anti-counterfeiting module. The dynamic anti-counterfeiting module generates a unique encrypted anti-counterfeiting QR code for each batch and each herbal fragrance product. The anti-counterfeiting QR code contains the corresponding product block hash value, unique product ID, and dynamic verification key. The local key parameters are automatically updated after each consumer verification to prevent the anti-counterfeiting code from being copied, reused, or forged.
7. The blockchain-based end-to-end traceability and anti-counterfeiting system for medicinal fragrance products according to claim 6, characterized in that, The anti-counterfeiting code generation process of the dynamic anti-counterfeiting module includes: the system obtains complete on-chain data of the product and generates a unique block hash value, generates an initial anti-counterfeiting key by combining the product production batch and unique device code, generates a unique anti-counterfeiting QR code through an encryption algorithm, and binds and stores the anti-counterfeiting code information with the blockchain block data to achieve a one-to-one correspondence between the code and the chain.
8. The blockchain-based end-to-end traceability and anti-counterfeiting system for medicinal fragrance products according to claim 1, characterized in that, The system's data upload process includes: after each collection terminal completes data preprocessing, it initiates a data upload request to the blockchain node; the smart contract layer automatically completes data verification; after verification, the consensus algorithm completes block packaging, encryption, and on-chain storage, while simultaneously synchronizing to all consortium blockchain nodes. The entire process is automated with no human intervention, achieving automated on-chain evidence storage.