Blockchain-based product distribution anti-channeling method, device and equipment

By verifying the product's explicit and implicit codes through blockchain smart contracts and combining them with location information, the system can determine cross-selling behavior in real time and generate tamper-proof evidence. This solves the problems of lagging supervision and high costs associated with traditional manual inspections, and achieves efficient and reliable anti-cross-selling supervision.

CN122243514APending Publication Date: 2026-06-19BEIJING RES CENT FOR INFORMATION TECH & AGRI

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BEIJING RES CENT FOR INFORMATION TECH & AGRI
Filing Date
2026-01-30
Publication Date
2026-06-19

AI Technical Summary

Technical Problem

Traditional methods of preventing cross-selling in product distribution rely on manual inspections, which suffer from high regulatory costs, limited coverage, delayed response, susceptibility to circumvention, and a lack of rapid confirmation and intervention mechanisms, making it difficult to achieve effective supervision.

Method used

A blockchain-based method for preventing cross-selling in product distribution is adopted. By verifying the clear and coded information of the target product through smart contracts and combining it with the location information of user devices, cross-selling behavior can be determined in real time, and tamper-proof evidence of breach of contract and alarm information can be generated.

Benefits of technology

It improves the accuracy and timeliness of product distribution anti-counterfeiting identification, enhances the automation and reliability of distribution supervision, reduces supervision costs, and ensures the credibility of evidence and rapid response.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122243514A_ABST
    Figure CN122243514A_ABST
Patent Text Reader

Abstract

This invention provides a blockchain-based method, apparatus, and device for preventing cross-selling in product distribution, belonging to the field of data processing. The method includes: acquiring the current clear code and current cipher code of a target product uploaded by a user device, wherein the target product has a unique pair of cipher codes pre-stored in the blockchain corresponding to the clear code; determining the validity of the current verification based on the current clear code and the current cipher code via a smart contract, wherein the smart contract is deployed in the blockchain; and determining, based on the determination result, that the target product is involved in cross-selling. This can improve the accuracy and timeliness of cross-selling prevention in product distribution, and enhance the automation and reliability of distribution supervision.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of data processing, and specifically relates to a method, apparatus and equipment for preventing cross-selling in product distribution based on blockchain. Background Technology

[0002] In the product distribution process, traditional anti-counterfeiting measures heavily rely on brands assigning dedicated personnel for offline inspections and manual verification. This model has significant inherent flaws. As market coverage continues to expand, manpower investment must increase accordingly, leading to high and exponentially growing regulatory costs for companies, creating a heavy operational burden. Simultaneously, the coverage and frequency of manual inspections are limited by objective conditions, making it difficult to reach the grassroots nodes of the distribution network, resulting in numerous regulatory blind spots and an inability to achieve comprehensive monitoring. More importantly, manual verification is inefficient, and the detection of counterfeit goods is often severely delayed. It is usually only discovered passively after counterfeit goods have disrupted regional price systems, damaged brand reputation, and caused substantial economic losses, at which point remedial measures are often insufficient to undo the damage.

[0003] Furthermore, existing technologies for channel identification have low barriers to entry, making them easily circumvented by criminals through copying, recycling, or counterfeiting. This renders product traceability and accountability meaningless, further exacerbating the difficulty of preventing cross-selling. At the same time, even if signs of cross-selling are occasionally discovered, there is a lack of effective means to quickly confirm violations, making it impossible to intervene immediately upon their occurrence. This leaves the anti-cross-selling mechanism in a perpetually reactive state. Summary of the Invention

[0004] This application provides a blockchain-based method, apparatus, and equipment for preventing product distribution diversion, thereby improving the accuracy and timeliness of product distribution diversion identification and response, and enhancing the automation and reliability of distribution supervision.

[0005] This application provides a blockchain-based method for preventing cross-selling in product distribution, including: Obtain the current plaintext and current cryptotext of the target product uploaded by the user device. The target product has a pair of cryptotexts that are uniquely corresponding to the plaintext and cryptotexts pre-stored in the blockchain. The validity of the current verification is determined by a smart contract based on the current plaintext and the current cryptotext, and the smart contract is deployed on the blockchain. Based on the determined results, it was determined that the target product was involved in cross-selling activities.

[0006] According to the blockchain-based product distribution anti-counterfeiting method provided in this application, the step of determining that the target product has counterfeiting behavior based on the determination result includes: if the determination result indicates that the current verification is valid, obtaining the location information of the user device; determining through the smart contract whether the location information is consistent with the authorized sales area of ​​the target product pre-stored in the blockchain; if they are inconsistent, determining that the target product has counterfeiting behavior.

[0007] According to the blockchain-based product distribution anti-counterfeiting method provided in this application, the step of determining whether the current verification is valid through a smart contract based on the current clear code and the current cipher code includes: determining whether there is a correspondence between the current clear code and the current cipher code through the smart contract; if there is a correspondence, then the current verification is determined to be valid.

[0008] According to the blockchain-based product distribution anti-counterfeiting method provided in this application, after sending the alarm information, the method further includes: obtaining the timestamp of the current verification; generating evidence of breach of contract for the target product based on the current plaintext, the current ciphertext, the timestamp, and the location information; and uploading the evidence of breach of contract for the target product to the blockchain.

[0009] According to the blockchain-based product distribution anti-counterfeiting method provided in this application, the method further includes: sending alarm information.

[0010] According to the blockchain-based product distribution anti-counterfeiting method provided in this application, the method further includes: if consistent, obtaining the reward mechanism of the target product pre-stored in the blockchain through the smart contract; determining the reward information for the current verification according to the preset reward mechanism; and sending the reward information to the user device.

[0011] According to the blockchain-based product distribution anti-counterfeiting method provided in this application, the current clear code is a publicly scannable code on the packaging of the target product, and the current coded code is located on the packaging of the target product and is covered by a destructible physical layer.

[0012] According to the blockchain-based product distribution anti-counterfeiting method provided in this application, the target product is fresh agricultural products, and the packaging of the target product is the smallest sales unit of the fresh agricultural products.

[0013] This application also provides a blockchain-based product distribution anti-counterfeiting device, including: The acquisition unit is used to acquire the current plaintext and current cryptotext of the target product uploaded by the user device. The target product has a pair of cryptotexts that are uniquely corresponding to the plaintext and cryptotexts pre-stored in the blockchain. The first determining unit is used to determine whether the current verification is valid based on the current plaintext and the current ciphertext through a smart contract, wherein the smart contract is deployed on the blockchain; The second acquisition unit is used to acquire the location information of the user equipment if the current verification is valid. The second determining unit is used to determine, based on the determining result, that the target product has engaged in cross-selling behavior.

[0014] This application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the blockchain-based product distribution anti-counterfeiting method described above.

[0015] This application also provides a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the blockchain-based product distribution anti-counterfeiting method as described above.

[0016] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the blockchain-based product distribution anti-counterfeiting method as described above.

[0017] According to the blockchain-based product distribution anti-counterfeiting method, apparatus, and equipment provided in this application, the current clear code and current hidden code of the target product uploaded by the user device are first obtained. The target product has a unique pair of corresponding clear codes and hidden codes pre-stored in the blockchain. Then, based on the current clear code and the current hidden code, a smart contract is used to determine whether the current verification is valid. The smart contract is deployed in the blockchain. Based on the determination result, it is then determined that the target product has engaged in counterfeiting. By performing smart contract verification on the target product's dual codes uploaded by the user device and the unique dual codes pre-stored in the blockchain, and comparing the device location with the product's authorized sales area after valid verification, a counterfeiting alarm can be sent promptly. This improves the accuracy and timeliness of anti-counterfeiting identification in product distribution, and enhances the automation and reliability of distribution supervision. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is one of the flowcharts of the blockchain-based product distribution anti-counterfeiting method provided in this application.

[0020] Figure 2 This is the second flowchart of the blockchain-based product distribution anti-counterfeiting method provided in this application.

[0021] Figure 3 This is a block diagram of the functional units of the blockchain-based product distribution anti-counterfeiting device provided in this application.

[0022] Figure 4 This is a schematic diagram of the structure of the electronic device provided in this application. Detailed Implementation

[0023] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0024] The terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0025] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0026] Currently, in the product distribution process, traditional anti-counterfeiting methods rely on manual inspections and low-threshold channel labeling, which have drawbacks such as high supervision costs, limited coverage, delayed response, easy circumvention, and lack of rapid confirmation and intervention methods, making it difficult to achieve effective supervision.

[0027] To address the aforementioned problems, this application provides a blockchain-based method, apparatus, and device for preventing product distribution diversion. The embodiments of this application will be described in detail below with reference to the accompanying drawings.

[0028] Please see Figure 1 , Figure 1This is one of the flowcharts illustrating the blockchain-based product distribution anti-counterfeiting method provided in this application. The blockchain-based product distribution anti-counterfeiting method includes the following steps.

[0029] S101, obtain the current plaintext and current ciphertext of the target product uploaded by the user device.

[0030] The target product has a unique pair of plaintext and cryptographic codes pre-stored in the blockchain. Due to the need for unique and reliable product identification in fresh agricultural product distribution scenarios, each target product can be configured with such a unique pair of plaintext and cryptographic codes, ensuring that every circulation unit can be accurately identified and traced. This unique pair of plaintext and cryptographic codes can be generated through a coding management module. During the generation process, a hash algorithm can be used to establish a strong association, ensuring a one-to-one correspondence and preventing tampering. After generation, this correspondence is uploaded to the blockchain platform as initial data for storage. The distributed storage characteristics of the blockchain guarantee the security and reliability of the dual-code correspondence, preventing illegal tampering or forgery, thus providing a reliable comparison basis for subsequent verification. After obtaining the current plaintext and cryptographic codes, users can upload the relevant coded information through the terminal application module of their device.

[0031] S102, determine whether the current verification is valid through a smart contract based on the current plaintext and the current ciphertext.

[0032] The smart contract is deployed on a blockchain. This smart contract can be a dedicated anti-counterfeiting smart contract developed for anti-counterfeiting scenarios. It can have clearly defined dual-code verification logic and judgment criteria preset inside, acting as an objective and neutral "automatic judge" to perform verification operations without relying on manual review, greatly improving verification efficiency.

[0033] In practice, smart contracts can access pre-stored data on the blockchain that uniquely corresponds to the target product's plaintext and cryptographic codes. This data allows for precise comparison between the current plaintext and cryptographic codes uploaded by the user's device and the on-chain notarized correspondence. This comparison can be completed within milliseconds, enabling real-time verification. Since the dual-code correspondence on the blockchain is notarized during initialization and is tamper-proof, smart contract verification based on this data effectively avoids the risks of data tampering and forgery inherent in traditional verification methods, ensuring the accuracy of the verification results. Furthermore, the blockchain-based nature of smart contracts allows for complete traceability of the verification process. The execution logic, data source, and results of each verification operation can be witnessed by nodes in the blockchain network, ensuring transparency and providing a basis for future disputes, thus laying the foundation for the reliable operation of the entire anti-counterfeiting system.

[0034] S103, Based on the determined results, it is determined that the target product is involved in cross-selling.

[0035] As can be seen, in this embodiment, by performing smart contract verification on the target product dual codes uploaded by the user device and the unique dual codes pre-stored in the blockchain, and comparing the device location with the authorized sales area of ​​the product after the verification is valid, and then sending the cross-selling alarm information in a timely manner, the accuracy of product distribution anti-cross-selling identification and response time can be improved, and the automation and reliability of distribution supervision can be enhanced.

[0036] In one possible embodiment, determining that the target product has engaged in cross-selling based on the determination result includes: if the determination result indicates that the current verification is valid, obtaining the location information of the user device; determining, through the smart contract, whether the location information is consistent with the authorized sales area of ​​the target product pre-stored in the blockchain; if they are inconsistent, determining that the target product has engaged in cross-selling.

[0037] Location acquisition is initiated only after the current plaintext and cryptographic verification is valid, avoiding resource waste caused by invalid verification and ensuring the targeted and efficient collection of data. The user devices in this step can be mobile terminals such as smartphones used by nodes in the distribution network (e.g., lower-level distributors and retailers). These terminals are generally equipped with positioning modules and can acquire location information through various methods such as Global Positioning System (GPS), BeiDou Navigation Satellite System (BDS), or mobile network positioning. This adapts to the positioning needs of different distribution scenarios, ensuring stable location data collection in various terminal scenarios such as urban business districts and rural retail outlets. The location information acquisition process can be automatically triggered through the application programming interface (API) of the terminal application module, eliminating the need for manual user input. This simplifies the operation process, avoids location errors caused by human input, and ensures the objectivity of the location information.

[0038] To meet the accuracy requirements for identifying counterfeit goods, the acquired location information can be geographic coordinate data including longitude and latitude. The positioning accuracy can be adjusted according to the actual application scenario, such as being controlled within 500 meters. This can accurately reflect the actual location of the target product when it is verified, providing a reliable basis for subsequent comparison with authorized sales areas.

[0039] In practice, the authorized sales area of ​​the target product, pre-stored in the blockchain, can be the legal geographical range for distribution designated by the brand for each target product according to its distribution strategy. This information, along with the dual-code correspondence, is uploaded to the blockchain for evidence storage during the system initialization phase. Leveraging the distributed storage and immutability of blockchain, the authenticity and stability of the authorized sales area data are ensured, preventing illegal tampering or forgery and providing a reliable benchmark for the comparison process. The definition of the authorized sales area can be flexibly adapted to different distribution scenarios, ranging from administrative divisions like "Area A - City B" to geographical fences or specific business district boundaries defined by latitude and longitude coordinates, precisely matching the regional management needs of product distribution.

[0040] During the comparison process, the smart contract deployed on the blockchain acts as an objective and neutral adjudicator. It automatically calls upon pre-stored authorized sales area data on the chain and performs precise spatial matching calculations with the user device location information (such as latitude and longitude coordinates) obtained by S103. This comparison process can be completed within milliseconds, achieving real-time response in determining cross-selling, completely eliminating the lag and subjectivity of traditional manual judgment. The smart contract can preset clear comparison rules, such as the allowed range of location deviation, to adapt to reasonable location fluctuations of products in scenarios such as terminal delivery and temporary warehousing, ensuring the scientific validity and flexibility of the judgment results. Furthermore, since the entire comparison process is based on immutable data on the blockchain and the smart contract rigidly executes the preset rules, no human intervention is required. This avoids problems such as human error and opaque operations, and ensures consistent judgment standards for all products, greatly improving the fairness and accuracy of cross-selling determination and providing core support for the automated and intelligent operation of the anti-cross-selling system.

[0041] As can be seen, in this embodiment, by obtaining the user's device location after the dual-code verification is valid, and comparing the location with the target product's authorized sales area pre-stored in the blockchain by the smart contract, the cross-selling behavior is determined when they are inconsistent. This can improve the accuracy of cross-selling determination in the distribution of fresh agricultural products and enhance the real-time and reliability of anti-cross-selling supervision.

[0042] In one possible embodiment, determining whether the current verification is valid based on the current plaintext and the current ciphertext via a smart contract includes: determining whether there is a correspondence between the current plaintext and the current ciphertext via the smart contract; if there is a correspondence, then determining that the current verification is valid.

[0043] In the specific comparison process, the smart contract first queries the on-chain database to see if the submitted current plaintext and current cryptographic codes form a valid, pre-bound pair. If invalid, the process is immediately terminated and an error message is returned. The smart contract can accurately match the current plaintext and current cryptographic codes uploaded by the user device with the correspondence stored on the chain. Due to the distributed storage characteristics of blockchain, the correspondence between the two codes on the chain cannot be illegally tampered with or deleted by a single entity. The correspondence determination based on this data by the smart contract can effectively resist malicious acts such as forgery and tampering, ensuring that only genuinely associated plaintext and cryptographic codes can pass the verification. Those codes that are copied or forged will be directly judged as invalid because no legitimate correspondence can be found on the chain. This filters out genuine and valid verification requests from the source, providing reliable prerequisite support for subsequent anti-counterfeiting judgments. It also greatly raises the anti-counterfeiting threshold of the anti-counterfeiting system, making it difficult for criminals to evade supervision by copying codes.

[0044] In one possible embodiment, after sending the alarm information, the method further includes: obtaining the timestamp of the current verification; generating evidence of default of the target product based on the current plaintext, the current ciphertext, the timestamp, and the location information; and uploading the evidence of default of the target product to the blockchain.

[0045] The acquisition of timestamps accurately records the instantaneous time of each violation verification, ensuring that the timeline of each cross-selling incident is unique and untraceable, providing a solid guarantee for the timeliness and uniqueness of evidence. When generating evidence of breach of contract, it's not simply a matter of piling up data. Instead, it organically integrates the current explicit and implicit codes (serving as the unique identifier of the target product to ensure accurate location of the product involved), precise timestamps (locking in the moment of the violation), and specific location information (clarifying the location of the violation). These elements are interconnected and logically closed-loop, clearly reconstructing the complete scenario of "what, when, and where" the cross-selling violation occurred, avoiding fragmented evidence or logical breaks.

[0046] To further enhance the rigor of the evidence, the generated breach of contract evidence can also include additional key information such as the hash value of the smart contract's execution environment, comprehensively covering the core elements of the violation and ensuring the integrity and non-repudiation of the evidence. After uploading the breach of contract evidence to the blockchain, leveraging the inherent characteristics of blockchain's distributed storage, immutability, and decentralized consensus, the evidence is witnessed and synchronously stored by multiple nodes in the blockchain network. No single institution or individual can subsequently modify, delete, or forge it, giving this evidence the legal validity that can be directly accepted by judicial institutions.

[0047] As can be seen, this method of evidence solidification completely changes the shortcomings of traditional evidence such as photos and paper documents, which are easily tampered with and have low credibility. It provides the brand with ironclad evidence for subsequent accountability of the breaching party, enforcement of contract terms, or initiation of legal proceedings. It ensures that the entire anti-counterfeiting system forms a complete management loop from the discovery of violations to the solidification of evidence to the implementation of punishment, and truly solves the ultimate obstacle of the difficulty in holding counterfeiters accountable in commercial practice.

[0048] In one possible embodiment, the method further includes sending an alarm message.

[0049] The alarm information is used to indicate that the target product is being sold outside its authorized sales area. This alarm triggering action can be automatically executed by a smart contract deployed on the blockchain, without any manual intervention. Once the smart contract determines that the location information is inconsistent with the authorized sales area, the alarm service module can be triggered instantly, ensuring real-time alarm response and reducing the time difference between detecting the sale outside the authorized sales area and sending the alarm to milliseconds, thus buying valuable intervention time for the brand. The alarm information can be flexibly sent to meet the brand's management needs. It can send pop-up alarms to the brand's management backend, or be simultaneously sent to the brand's market supervision personnel, regional managers, and other relevant entities via SMS, email, and mobile application push notifications, ensuring that relevant personnel can receive alarms promptly through multiple channels and avoiding omissions.

[0050] In one possible embodiment, the method further includes: if consistent, obtaining the reward mechanism of the target product pre-stored in the blockchain through the smart contract; determining the reward information for the current verification according to the preset reward mechanism; and sending the reward information to the user device.

[0051] The reward mechanism pre-stored in the blockchain value can be an incentive rule preset by the brand based on the characteristics of the product distribution scenario. It will be uploaded to the blockchain for evidence storage along with information such as the dual code correspondence and authorized sales area during the system initialization stage. With the immutable and transparent characteristics of the blockchain, the rigid execution of the reward rule is ensured. It will not be illegally tampered with, and all users who participate in the verification will clearly know the incentive standard, avoiding the trust crisis caused by the ambiguity of the rules or human adjustment.

[0052] The reward mechanism can be flexibly adapted to different product characteristics and distribution needs. Rewards can take the form of small amounts of cash, brand points, shopping coupons, or compliant digital tokens, with the reward amount set based on the product's unit price. The smart contract, acting as an automated execution vehicle, instantly retrieves the pre-stored reward mechanism on the blockchain after verifying compliance. It quickly calculates the corresponding reward information without manual review or intervention, ensuring real-time reward distribution and enhancing user engagement. The channels for sending and receiving reward information can also be flexibly configured. Rewards can be directly sent to the user's device-linked blockchain wallet, or encrypted via a hypertext transfer security protocol to the user's linked payment account or points account within the terminal application, ensuring convenient and secure delivery of rewards to the user.

[0053] This design, which deeply integrates compliance verification with economic incentives, can drive distributors, retailers, and even end consumers at all levels of the distribution network to spontaneously and frequently verify the products they handle. Brands can achieve 24 / 7, high-frequency, and comprehensive monitoring of the capillary network without investing in a large manual audit team. By leveraging network effects, a positive supervisory ecosystem of collective prevention and control can be formed, providing a continuous source of power for the sustainable operation of the anti-counterfeiting system.

[0054] In one possible embodiment, the current plaintext is a publicly scannable code on the packaging of the target product, and the current ciphertext is located on the packaging of the target product and is covered by a destructible physical layer.

[0055] The visible code serves as the public verification entry point, printed prominently on the target product packaging. It can take the form of a Quick Response Code (QR Code), barcode, or other common scannable codes, allowing users to quickly scan it with their devices without damaging the packaging. Its primary function is to guide the verification process and trigger subsequent operations, ensuring the accessibility and universality of the verification entry point. The encrypted code, as the core digital key for verification, can be placed inside the product packaging, at the seal, or in other inaccessible locations. Its external, perishable physical layer can be an easily scraped-off silver coating, a tear-away special film, or a disposable seal. Users must physically break this layer to obtain the encrypted code.

[0056] This design physically ensures the concealment and one-time use of the coded message, effectively preventing it from being photographed, copied, or stolen in advance. Each coded message acquisition is strongly linked to the physical state of a specific product packaging, fundamentally eliminating illegal activities such as the recycling and reuse of old packaging and mass counterfeiting of codes. This dual-code architecture, with one explicit and one implicit code and physical protection, not only significantly increases the technical threshold and operational cost for counterfeiters but also combines verification with irreversible physical destruction. This ensures that the explicit and implicit code information uploaded to the system truly corresponds to the specific product entity, providing a reliable data source for subsequent verification operations via smart contracts and building a physically impenetrable anti-counterfeiting defense.

[0057] In one possible embodiment, the target product is fresh agricultural product, and the packaging of the target product is the smallest sales unit of the fresh agricultural product.

[0058] Fresh agricultural products can include fruits, vegetables, meat, seafood, dairy products, and other products that require cold chain transportation or short-term preservation. The distribution network for these products often involves multiple levels of distributors, community retailers, and mobile vendors, and cross-regional distribution can easily lead to spoilage, loss, or price chaos. Therefore, precise traceability is required for each independent distribution unit. The smallest sales unit can be an independently packaged form adapted to the fresh produce distribution scenario, such as a box of imported blueberries, a case of cold-chain pork, or a pre-prepared vegetable gift box. Each such smallest sales unit will be treated as an independent monitoring object, with a globally unique pair of clear and coded codes generated by the coding management module to ensure that each product can be individually identified and verified.

[0059] Considering the potential requirements for food contact materials and preservation sealing in fresh produce packaging, the visible code can be printed on non-food contact areas of the packaging without affecting the sealing performance. The destructible physical layer corresponding to the hidden code can use a food-grade safe silver paste coating or a tearable food contact-grade film, ensuring product safety while achieving the core function of physical anti-counterfeiting. Simultaneously, the coding design for the smallest sales unit is adaptable to the distribution process of fresh produce. Whether it's bulk inventory checks by primary distributors, distribution verification by secondary distributors, or receiving verification by terminal retailers, product identification can be completed simply by scanning the visible code and scratching off the hidden code. This ensures that anti-counterfeiting verification is integrated into the entire distribution chain of fresh produce, avoiding regulatory gaps caused by complex packaging or unclear labeling. This dedicated design for the smallest sales unit of fresh produce not only allows brands to track the circulation of each product in real time but also enables rapid identification of the affected products when counterfeiting is detected, preventing larger-scale market damage or product spoilage due to bulk counterfeiting. This fully demonstrates the deep adaptability of this solution to the distribution scenarios of fresh produce.

[0060] Please refer to the following: Figure 2 The overall process of this plan will be explained.

[0061] This solution comprises three aspects: system initialization, verification and adjudication loop, and results and evidence. First, during system initialization, a unique clear code and coded code are generated for each product. Then, the product's unique code is linked to its authorized sales region and stored on the blockchain. Finally, a double QR code label is affixed to the packaging. After the product enters the distribution environment, distributors and retailers scan the clear code while simultaneously scratching off the coating to obtain the coded code, which they then input into their terminals. The smart contract automatically verifies the clear code and coded code. If they match, the terminal's geographical location is obtained, and it is determined whether the location is within the authorized area. If so, a verification success message is returned to the terminal, and a digital reward is issued. If not, it is determined to be a case of unauthorized sales. At this point, an unauthorized sales alarm is triggered and recorded in the associated backend. Simultaneously, key evidence of the unauthorized sales event is written as an immutable record into the blockchain, allowing the brand to obtain conclusive evidence and accurately trace the unauthorized sales behavior.

[0062] The following describes a blockchain-based product distribution anti-counterfeiting device provided in this application. The blockchain-based product distribution anti-counterfeiting device described below corresponds to the blockchain-based product distribution anti-counterfeiting method described above.

[0063] Please see Figure 3 The blockchain-based product distribution anti-counterfeiting device 300 includes: an acquisition unit 301, used to acquire the current clear code and current hidden code of a target product uploaded by a user device, wherein the target product has a pair of unique corresponding clear codes and hidden codes pre-stored in the blockchain; a first determination unit 302, used to determine whether the current verification is valid based on the current clear code and the current hidden code through a smart contract, wherein the smart contract is deployed in the blockchain; and a second determination unit 303, used to determine, based on the determination result, that the target product has engaged in counterfeiting.

[0064] In one possible embodiment, regarding the determination of whether the target product has engaged in cross-selling behavior based on the determination result, the second determining unit 303 is specifically configured to: obtain the location information of the user device when the determination result indicates that the current verification is valid; determine whether the location information is consistent with the authorized sales area of ​​the target product pre-stored in the blockchain through the smart contract; if they are inconsistent, determine that the target product has engaged in cross-selling behavior.

[0065] In one possible embodiment, in determining whether the current verification is valid based on the current plaintext and the current ciphertext through a smart contract, the first determining unit 302 is specifically used to: determine whether there is a correspondence between the current plaintext and the current ciphertext through the smart contract; if there is a correspondence, then determine that the current verification is valid.

[0066] In one possible embodiment, the blockchain-based product distribution anti-counterfeiting device 300 is further configured to: obtain the timestamp of the current verification; generate evidence of breach of contract for the target product based on the current plaintext, the current ciphertext, the timestamp, and the location information; and upload the evidence of breach of contract for the target product to the blockchain.

[0067] In one possible embodiment, the blockchain-based product distribution anti-counterfeiting device 300 is also used to: send alarm information.

[0068] In one possible embodiment, the blockchain-based product distribution anti-counterfeiting device 300 is further configured to: if consistent, obtain the reward mechanism of the target product pre-stored in the blockchain through the smart contract; determine the reward information for the current verification according to the preset reward mechanism; and send the reward information to the user equipment.

[0069] In one possible embodiment, the current plaintext is a publicly scannable code on the packaging of the target product, and the current ciphertext is located on the packaging of the target product and is covered by a destructible physical layer.

[0070] Please see Figure 4 , Figure 4 This is a schematic diagram of the structure of the electronic device provided in this application. For example... Figure 4 As shown, the electronic device may include: a processor 410, a communications interface 420, a memory 430, and a communication bus 440, wherein the processor 410, communications interface 420, and memory 430 communicate with each other through the communication bus 440. The processor 410 can call logical instructions in the memory 430 to execute a blockchain-based product distribution anti-counterfeiting method. This method includes: obtaining the current plaintext and current cryptotext of a target product uploaded by a user device, wherein the target product has a pair of cryptotexts that are uniquely corresponding to the plaintext in the blockchain; determining whether the current verification is valid based on the current plaintext and the current cryptotext through a smart contract, wherein the smart contract is deployed in the blockchain; and determining, based on the determination result, that the target product has engaged in counterfeiting.

[0071] Furthermore, the logical instructions in the aforementioned memory 430 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0072] On the other hand, this application also provides a non-transitory computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program is implemented to perform the blockchain-based product distribution anti-counterfeiting method provided by the above methods. The method includes: obtaining the current plaintext and current cryptotext of a target product uploaded by a user device, wherein the target product has a pair of cryptotexts that are uniquely corresponding to the plaintext in the blockchain; determining whether the current verification is valid through a smart contract based on the current plaintext and the current cryptotext, wherein the smart contract is deployed in the blockchain; and determining, based on the determination result, that the target product has engaged in counterfeiting.

[0073] In another aspect, this application also provides a computer program product, including a computer program that, when executed by a processor, implements any of the above-described blockchain-based product distribution anti-counterfeiting methods. The method includes: obtaining the current plaintext and current cryptographic code of a target product uploaded by a user device, wherein the target product has a pair of cryptographic codes pre-stored in the blockchain that uniquely correspond to the plaintext; determining, through a smart contract, whether the current verification is valid based on the current plaintext and the current cryptographic code, wherein the smart contract is deployed in the blockchain; and determining, based on the determination result, that the target product is involved in counterfeiting.

[0074] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0075] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0076] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A blockchain-based method for preventing cross-selling in product distribution, characterized in that, include: Obtain the current plaintext and current cryptotext of the target product uploaded by the user device. The target product has a pair of cryptotexts that are uniquely corresponding to the plaintext and cryptotexts pre-stored in the blockchain. The validity of the current verification is determined by a smart contract based on the current plaintext and the current cryptotext, and the smart contract is deployed on the blockchain. Based on the determined results, it was determined that the target product was involved in cross-selling activities.

2. The method according to claim 1, characterized in that, The determination, based on the established results, that the target product has engaged in cross-selling activities includes: If the determination result indicates that the current verification is valid, the location information of the user equipment is obtained; The smart contract determines whether the location information matches the authorized sales area of ​​the target product pre-stored in the blockchain. If there is a discrepancy, it is determined that the target product has been involved in cross-selling.

3. The method according to claim 1, characterized in that, The step of determining whether the current verification is valid through a smart contract based on the current plaintext and the current ciphertext includes: The smart contract determines whether there is a correspondence between the current plaintext and the current ciphertext. If a corresponding relationship exists, the current verification is considered valid.

4. The method according to claim 1, characterized in that, The method further includes: Obtain the timestamp of the current verification; Evidence of breach of contract for the target product is generated based on the current plaintext, the current ciphertext, the timestamp, and the location information; Upload the evidence of default on the target product to the blockchain.

5. The method according to any one of claims 1-4, characterized in that, The method further includes: Send an alarm message.

6. The method according to claim 2, characterized in that, The method further includes: If they match, the reward mechanism for the target product pre-stored in the blockchain is obtained through the smart contract; The reward information for the current verification is determined according to the preset reward mechanism; The reward information is sent to the user equipment.

7. The method according to any one of claims 1-3, characterized in that, The current plaintext is a publicly scannable code on the packaging of the target product, and the current ciphertext is located on the packaging of the target product and is covered by a destructible physical layer.

8. A product distribution anti-counterfeiting device based on blockchain, characterized in that, include: The acquisition unit is used to acquire the current plaintext and current cryptotext of the target product uploaded by the user device. The target product has a pair of cryptotexts that are uniquely corresponding to the plaintext and cryptotexts pre-stored in the blockchain. The first determining unit is used to determine whether the current verification is valid based on the current plaintext and the current ciphertext through a smart contract, wherein the smart contract is deployed on the blockchain; The second determining unit is used to determine, based on the determining result, that the target product has engaged in cross-selling behavior.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the blockchain-based product distribution anti-counterfeiting method as described in any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the blockchain-based product distribution anti-counterfeiting method as described in any one of claims 1 to 7.