A method, device and system for tracing the origin of geographical indication products

By combining blockchain, IPFS system and fully homomorphic encryption technology, the problems of data tampering and commercial secret leakage in geographical indication product traceability are solved, efficient and trusted data storage and ciphertext security audit are realized, and commercial confidential data is reduced Risk of leakage.

CN118586044BActive Publication Date: 2024-11-22BEIJING TECH & BUSINESS UNIV
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410721269.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-11-22
Estimated Expiration
2044-06-05

AI Technical Summary

Technical Problem

Data is easily tampered during the traceability process of geographical indication products, and there is a risk of leakage of commercial confidential data during audit.

Method used

Combining blockchain, IPFS system and fully homomorphic encryption technology, through the immutable, fully homomorphic encryption of ciphertext homomorphic computing and the permanent storage characteristics of IPFS system, ensure efficient and trustworthy data storage, and Perform full-process ciphertext processing during auditing to reduce the risk of trade confidential data leakage.

Benefits of technology

It realizes efficient and trusted storage of data and ciphertext security audit, significantly reducing the risk of commercial confidential data leakage, ensuring the privacy of data and the privacy of the audit process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118586044B_ABST
    Figure CN118586044B_ABST
Patent Text Reader

Abstract

The present application relates to a method, device and system for tracing the origin of geographical indication products, which belongs to the field of computer software technology and solves the problem that data is easily tampered with and commercial confidential data is easily leaked in the existing geographical indication product traceability process. The present application receives a request for tracing the origin of a geographical indication product input by a tracer; receives a traceability code, a selected data item to be queried, and a selected logical operation input by the tracer; sends the traceability code to the blockchain module, and obtains the traceability information fed back by the blockchain module; sends the storage address information of the file information to the IPFS trusted storage module to obtain the corresponding file information. The data information ciphertext is submitted to the fully homomorphic encryption module, the operation result is decrypted to obtain the logical operation result, and finally the traceability result is obtained. The present application combines the blockchain, IPFS system data storage principle and fully homomorphic encryption technology to ensure data credibility while reducing the risk of data leakage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer software technology, and specifically relates to a method, device and system for tracing the origin of geographical indication products. Background Art

[0002] Geographical indication products often have great brand premium space, and are characterized by high value and high degree of informatization of the production chain. In the production lines of enterprises with high degree of automation, the traceability information of geographical indication products can be collected by IoT devices. The collected electronic data itself has the advantages of fast transmission speed, large information storage capacity, and diverse presentation forms, but it also has the characteristics of fragility of authenticity, easy tampering, and strong reproducibility. In the process of tracing geographical indication products, the traceability information may be tampered with.

[0003] In addition, the information entered into the traceability system may involve the company's commercial secrets, and the company and regulatory authorities do not want to expose this part of the data. At the same time, when the regulatory authorities audit the data, their specific rules cannot be fully disclosed, otherwise there will be users who falsify data based on loopholes in the rules.

[0004] Therefore, how to ensure that the data stored in the traceability of geographical indication products is efficient and reliable, while reducing the risk of leakage of commercial confidential data, is a technical problem that needs to be urgently solved in this field. Summary of the invention

[0005] In view of the above analysis, the embodiments of the present invention aim to provide a method, device and system for tracing the origin of geographical indication products, so as to solve the problems that data is easily tampered with and commercial confidential data is easily leaked in the existing geographical indication product traceability process.

[0006] One aspect of the present disclosure provides a method for tracing the origin of a geographical indication product, comprising:

[0007] Receive requests from tracers for tracing the origin of geographical indication products;

[0008] Receiving the traceability code input by the tracer, the selected data item to be queried, and the selected logical operation;

[0009] Send the traceability code to the blockchain module, and obtain the traceability information fed back by the blockchain module; the traceability information includes the storage address information and data information of the file information; wherein, if the data item to be queried is a confidential data item, the data information includes the data information ciphertext of the confidential data item;

[0010] Send the storage address information of the file information to the IPFS trusted storage module, so that the IPFS trusted storage module obtains the corresponding file information according to the storage address information;

[0011] Submitting the data information ciphertext to a fully homomorphic encryption module so that the fully homomorphic encryption module performs a homomorphic operation on the data information ciphertext according to a selected logical operation, and decrypts the operation result to obtain a logical operation result;

[0012] The traceability result is obtained based on the file information and data information fed back by the IPFS trusted storage module and the logical operation result fed back by the fully homomorphic encryption module.

[0013] Optionally, before the IPFS trusted storage module obtains the corresponding file information according to the storage address information, it also includes:

[0014] Collect document information and data information generated at each stage of the production process of geographical indication products;

[0015] The file information is uploaded to the IPFS trusted storage module, and the IPFS trusted storage module stores the file information to generate storage address information, and the storage address information is released in the form of a hash value;

[0016] The data information is uploaded to a fully homomorphic encryption module, which performs fully homomorphic encryption on the data information of confidential data items in the data information to generate a ciphertext of the data information.

[0017] Optionally, the fully homomorphic encryption module performs fully homomorphic encryption on the data information of the confidential data item in the data information to generate the ciphertext of the data information, including:

[0018] Generate public parameters MKHE , with the public parameter public MKHE Generate key groups for the management node and N nodes (s i ,PK i ,BK i ,KS i ), where the key group of the i-th stage includes the private key s i 、Public key group (PK i ,BK i ,KS i ), the public key groups are (public key, bootstrap key, conversion key) respectively;

[0019] The management node verifies the identity information of the geographical indication product enterprise and selects a computing node to send the data corresponding to the confidential data item; the computing node performs fully homomorphic encryption on the data corresponding to the confidential data item to generate a data information ciphertext.

[0020] Optionally, submitting the data information ciphertext to a fully homomorphic encryption module so that the fully homomorphic encryption module performs a homomorphic operation according to a selected logical operation, and decrypting the operation result to obtain the logical operation result includes:

[0021] The management node verifies the identity information of the geographical indication product enterprise, selects k-1 computing nodes and sends the management key group;

[0022] According to the selected logical operation, k public key groups are used to perform homomorphic operation on the data information ciphertext, and k private key groups are used to decrypt the operation result to obtain the logical operation result.

[0023] Optionally, after generating the storage address information and the data information ciphertext, the following steps are also included:

[0024] The storage address information and the data information ciphertext are integrated and encoded and stored in the blockchain module.

[0025] Optionally, the blockchain module is a consortium blockchain module; distributed publishing, transmission, accounting and storage are formed according to the distributed characteristics of the consortium blockchain module.

[0026] Optionally, the process of storing the data to be stored by the alliance blockchain module includes:

[0027] Shard the data to be stored to obtain multiple data shards;

[0028] Encrypt each data shard separately and generate a unique hash value for each data shard;

[0029] Copy each data shard, distribute the copied data shards, and place the copied data shards on different data storage nodes;

[0030] Recording transactions in a distributed ledger.

[0031] According to a second aspect of the present disclosure, a geographical indication product traceability device is provided, comprising: a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, any one of the above-mentioned geographical indication product traceability methods is implemented.

[0032] Optionally, the geographical indication product is wine; the geographical indication product traceability device is implemented by a cloud server and a front end, and the front end is used to provide data processing and user interaction interface applicable to geographical indication product data traceability.

[0033] A third aspect of the present disclosure provides a geographical indication product traceability system, including a geographical indication product traceability device, a blockchain module, an IPFS trusted storage module, and a fully homomorphic encryption module;

[0034] Among them, the geographical indication product traceability device is used to collect file information and data information generated in each link of the geographical indication product production process, and upload the file information to the IPFS trusted storage module, and upload the data information to the fully homomorphic encryption module; the IPFS trusted storage module is used to store the file information and generate storage address information; the fully homomorphic encryption module is used to perform fully homomorphic encryption on the data information of confidential data items in the data information to generate data information ciphertext; the blockchain module is used to store the storage address information and the data information ciphertext;

[0035] The geographical indication product traceability device is used to receive a request for tracing the geographical indication product input by the tracer, and send the traceability code to the blockchain module based on the traceability code input by the tracer, the selected data item to be queried, and the selected logical operation; the blockchain module is used to obtain traceability information based on the traceability code; the traceability information includes storage address information and data information of the file information; the IPFS trusted storage module is used to feedback the file information based on the storage address information of the file information; the fully homomorphic encryption module is used to perform homomorphic operation on the data information ciphertext according to the selected logical operation, decrypt the operation result to obtain the logical operation result, and feedback the logical operation result;

[0036] The geographical indication product traceability device is also used to obtain traceability results based on the file information, data information fed back by the IPFS trusted storage module and the logical operation results fed back by the fully homomorphic encryption module.

[0037] The traceability method of geographical indication products provided in this application receives a request for tracing the geographical indication products input by a tracer; receives the traceability code, the selected data item to be queried, and the selected logical operation input by the tracer; sends the traceability code to the blockchain module, and obtains the traceability information fed back by the blockchain module; the traceability information includes the storage address information of the file information and the data information; sends the storage address information of the file information to the IPFS trusted storage module, so that the IPFS trusted storage module obtains the corresponding file information according to the storage address information. Submit the data information ciphertext to the fully homomorphic encryption module, so that the fully homomorphic encryption module performs homomorphic operation on the data information ciphertext according to the selected logical operation, and decrypts the operation result to obtain the logical operation result. The traceability result is obtained based on the file information, the data information, and the logical operation result. This application combines the data storage principles of blockchain, IPFS system and fully homomorphic encryption technology to encrypt the data involving commercial secrets in the data information, and then upload it to the chain together with the storage address information of the file stored in the IPFS distributed file system. It combines the tamper-proof and fully homomorphic encryption ciphertext homomorphic computing of blockchain and the permanent file storage characteristics of the IPFS system, so as to achieve the characteristics of efficient and reliable data storage and ciphertext security audit, realize the full process ciphertext during data audit, and thus greatly reduce the risk of commercial secret data leakage during audit.

[0038] In addition, the present application also provides a traceability device and system for geographical indication products having the above-mentioned technical effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of this specification. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0040] Figure 1 A flowchart of a specific implementation method of the geographical indication product traceability method provided in this application;

[0041] Figure 2 A flowchart of another specific implementation method of the geographical indication product traceability method provided in this application;

[0042] Figure 3 A schematic diagram of another specific implementation method of the geographical indication product traceability method provided in this application;

[0043] Figure 4 Flowchart for storing data to be stored for the alliance blockchain module;

[0044] Figure 5 This is a schematic diagram of multi-key fully homomorphic encryption;

[0045] Figure 6 The structural block diagram of the geographical indication product traceability equipment provided for this application;

[0046] Figure 7 This is a structural block diagram of the geographical indication product traceability system provided in this application. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. It should be noted that, in the absence of conflict, the embodiments in the present disclosure and the features in the embodiments can be combined, separated, interchanged and / or rearranged with each other. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0048] In the accompanying drawings, the size and relative size of components may be exaggerated for clarity and / or descriptive purposes. When the exemplary embodiments may be implemented differently, a specific process sequence may be performed in a different order than described. For example, two successively described processes may be performed substantially simultaneously or in an order opposite to the order described. In addition, the same reference numerals represent the same components.

[0049] The terms used here are for the purpose of describing specific embodiments, and are not intended to be restrictive. As used here, unless the context clearly indicates otherwise, the singular forms "one (kind, person)" and "said (the)" are also intended to include plural forms. In addition, when the terms "comprise" and / or "include" and their variations are used in this specification, it is explained that there are stated features, integral bodies, steps, operations, parts, assemblies and / or their groups, but it is not excluded that there are or add one or more other features, integral bodies, steps, operations, parts, assemblies and / or their groups. It should also be noted that, as used here, the terms "substantially", "approximately" and other similar terms are used as approximate terms and not as degree terms, so that they are used to explain the inherent deviations of the measured values, calculated values ​​and / or the values ​​provided that will be recognized by those of ordinary skill in the art.

[0050] A flowchart of a specific implementation method of the geographical indication product traceability method provided in this application is as follows Figure 1 As shown, the method includes:

[0051] S101: receiving a request for tracing the geographical indication product from a tracer.

[0052] A geographical indication product is a product that originates from a specific region and whose quality, reputation or other characteristics are essentially determined by its geographical environment factors, including natural factors and human factors. A geographical indication is not just a label, it is a legally recognized mark used to indicate that a product has a specific geographical origin and unique quality, reputation or other characteristics associated with the region. As a specific implementation method, the geographical indication product in this application is wine.

[0053] The tracer can be a consumer user or an auditor from an auditing agency.

[0054] S102: receiving the traceability code input by the tracer, the selected data item to be queried, and the selected logical operation.

[0055] It is understandable that the traceability code is an identification code used to track the origin and circulation history of a product. Through this code, specific information about the product can be queried. The data items to be queried are the specific data items that tracers need to specify when making inquiries. Data items may include detailed information such as the production date, production location, and raw materials used for the product. Tracers select data items and tell the system what specific information they want to see. Logical operations refer to specific operations that tracers want to perform on these data items, such as addition, subtraction, multiplication, division, equality, inequality, comparison, and other logical calculations. These logical operations can help users analyze and understand data more effectively.

[0056] This process requires the user to enter a traceability code. If there is a need to audit confidential data, logical operations and confidential data items can be selected.

[0057] S103: Send the traceability code to the blockchain module, and obtain the traceability information fed back by the blockchain module; the traceability information includes the storage address information and data information of the file information; wherein, if the data item to be queried is a confidential data item, the data information includes the data information ciphertext of the confidential data item.

[0058] It is understood that in this application, file information refers to non-text data, and data information refers to text data. Confidential data refers to data in data information that involves corporate commercial secrets. Data is divided into confidential data items and non-confidential data items according to pre-established rules.

[0059] Specifically, the file information is uploaded to the IPFS trusted storage module, which can store the file information to generate storage address information, which is released in the form of a hash value. The data information is divided into data information of confidential data items and data information of non-confidential data items. The data information of confidential data items and the data information of non-confidential data items are both uploaded to the fully homomorphic encryption module, which only performs fully homomorphic encryption on the data information of confidential data items in the data information to generate data information ciphertext. The storage address information and the data information ciphertext are integrated and encoded and stored in the blockchain module.

[0060] Among them, the blockchain module can be a consortium blockchain.

[0061] S104: Send the storage address information of the file information to the IPFS trusted storage module, so that the IPFS trusted storage module obtains the corresponding file information according to the storage address information.

[0062] The IPFS trusted storage module receives the storage address information of the file information, and uses the identifier to find and retrieve the corresponding file information in the IPFS network. Since IPFS is distributed, the file information may be stored on multiple nodes.

[0063] S105: Submit the data information ciphertext to the fully homomorphic encryption module, so that the fully homomorphic encryption module performs a homomorphic operation on the data information ciphertext according to the selected logical operation, and decrypts the operation result to obtain the logical operation result.

[0064] Submit the ciphertext of data information to the fully homomorphic encryption module, where various complex logical operations can be directly performed on the encrypted data, such as addition, subtraction, multiplication, division, equality, inequality, and comparison logic calculations, without having to decrypt the data first. This ensures the flexibility of data processing and maintains the privacy of the data.

[0065] After the operation is completed, the result is still in an encrypted state, so this result needs to be decrypted to obtain understandable data. The decryption operation needs to be performed by an individual with the right to access the key. Decryption returns the result of the logical operation, reducing the risk of leaking confidential data.

[0066] S106: Obtain a traceability result based on the file information and data information fed back by the IPFS trusted storage module and the logical operation result fed back by the fully homomorphic encryption module.

[0067] This application combines the data storage principles of blockchain, IPFS system and fully homomorphic encryption technology to encrypt the data involving commercial secrets in the data information, and then upload it to the chain together with the storage address information of the file stored in the IPFS distributed file system. It combines the tamper-proof and fully homomorphic encryption ciphertext homomorphic computing of blockchain and the permanent file storage characteristics of the IPFS system, so as to achieve the characteristics of efficient and reliable data storage and ciphertext security audit, realize the full process ciphertext during data audit, and thus greatly reduce the risk of commercial secret data leakage during audit.

[0068] The present application provides another specific implementation method of a method for tracing the origin of a geographical indication product, in which the geographical indication product is taken as an example of wine. Figure 2 A flowchart showing another specific implementation of the method for tracing the origin of geographical indication products provided in this application is shown. Figure 3 A schematic diagram showing another specific implementation of the method for tracing the origin of geographical indication products provided in the present application, the method comprising:

[0069] S201: Collect the traceability data generated at each stage in the production process of geographical indication products, including file information and data information, and generate a traceability code.

[0070] For wine products with geographical indications, the corresponding wine traceability data consists of seven links: raw materials (grapes), fermentation, storage, stability treatment, canning, finished products, and materials used. During the data entry process, the corresponding data is entered according to the seven links of the wine production process to obtain the traceability code.

[0071] Furthermore, the materials used include food additives, processing agents for the food industry, packaging materials, and raw liquor.

[0072] S202: Upload the file information to the IPFS trusted storage module. The IPFS trusted storage module stores the file information and generates storage address information. The storage address information is released in the form of a hash value.

[0073] S203: Upload the data information to the fully homomorphic encryption module, and the fully homomorphic encryption module performs fully homomorphic encryption on the data information of the confidential data items in the data information to generate a ciphertext of the data information.

[0074] S204: The storage address information and the data information ciphertext are integrated and encoded and stored in the blockchain module.

[0075] The commercial confidential information in the data information is sorted according to the predefined data items to obtain the data information of the confidential data item, and the data information of the confidential data item is passed to the fully homomorphic encryption module for encryption. The ciphertext is returned to overwrite the original data information item. At the same time, the IPFS trusted storage module is connected to pass the file information to the IPFS interstellar file system to obtain the hash value fed back by IPFS. Finally, the new data information and the fed back hash value are integrated and encoded together and passed to the alliance blockchain module for storage.

[0076] S205: Receive a request from a tracer for tracing the geographical indication product.

[0077] S206: receiving the traceability code input by the tracer, the selected data item to be queried, and the selected logical operation.

[0078] Specifically, the user can enter the traceability code at a designated location in the front-end user interaction interface, select logical operations and confidential data items, and then click Submit, thereby obtaining the traceability code entered by the tracer, the selected data items to be queried, and the selected logical operations.

[0079] S207: Send the traceability code to the blockchain module, and obtain the traceability information fed back by the blockchain module.

[0080] The tracing information includes storage address information of the file information and data information; wherein, if the data item to be queried is a confidential data item, the data information includes a ciphertext of the data information of the confidential data item.

[0081] S208: Send the storage address information of the file information to the IPFS trusted storage module, so that the IPFS trusted storage module obtains the corresponding file information according to the storage address information.

[0082] S209: Submit the data information ciphertext to the fully homomorphic encryption module so that the fully homomorphic encryption module performs a homomorphic operation on the data information ciphertext according to the selected logical operation, and decrypts the operation result to obtain the logical operation result.

[0083] It is understandable that homomorphic computing requires a public key group of the management node and k-1 computing nodes. The private keys of the management node and k-1 computing nodes are used to decrypt the ciphertext of the computing result to obtain the logical computing result and return it.

[0084] S210: Obtain a traceability result based on the file information, the data information, and the logic operation result.

[0085] After obtaining the traceability results, the traceability results can be displayed on the user interface for the tracer to view. The process requires the user to enter the traceability code. If there is an audit requirement for confidential data, the user can select logical operations and confidential data items, and finally provide data display functions according to predefined data fields.

[0086] This application can perform trusted storage, trusted traceability, and security audits based on predefined standards for wine geographical indication product production data and different types of files, so that users on different chains in the alliance blockchain can trustfully share traceability information and multi-party secure computing. And the combination of IPFS and alliance blockchain improves the processing of complex traceability information, such as file reports, etc., improves the overall comprehensiveness and reliability of the entire system, and meets the requirements of high-reliability data storage and traceability. Combined with multi-key fully homomorphic encryption technology, it solves the contradiction that some data items of wine companies in the traceability system may involve commercial secrets and are important regulatory indicators for food safety. Fully homomorphic encryption ensures the full process of ciphertext during the audit of sensitive data and protects the security of corporate commercial confidential data.

[0087] It is understandable that IPFS (Inter Planetary File System) is a distributed storage network transmission protocol capable of maintaining persistence, mainly responsible for sharing files between different nodes. It is a content-addressable peer-to-peer hypermedia distribution protocol. The system is a high-throughput content-addressed block storage model with content-addressable characteristics, combining technologies such as distributed hash tables (DHT), incentive block exchanges, and self-certified namespaces. At the same time, IPFS is also a high-throughput internally addressed block storage mode with internally addressed hyperlink functions, integrating new technologies such as distributed hash tables (DHT), incentive block exchanges, and self-certified namespaces, which not only improves computing performance, but can also be combined with joint blockchains for trusted storage.

[0088] IPFS has eight layers of sub-protocol stacks, from top to bottom, they are identity, network, routing, exchange, object, file, naming, and application. The functions of each layer are different, but they work together to complete the storage task. The protocol stack runs in this way.

[0089] (1) Identity layer, used to identify each node in the IPFS network. When the nodes establish their first connection, they will exchange public keys and check whether the hash is equal to the node number. If the user information is not equal after verification, the valid connection of the node will be stopped.

[0090] (2) Network layer: This layer manages connections with other nodes. It provides the basic network equipment and network capabilities for the entire IPFS, and uses this capability to build the cornerstone of point-to-point links, adding technologies such as encrypted transmission, network traversal, and multi-link mixing.

[0091] (3) Routing layer, which maintains information to locate specific peers and objects; responds to local and remote queries.

[0092] (4) Exchange layer: A new block exchange protocol that supports efficient block allocation simulates a P2P network and creates a central server. When the server registers user requests for resources, it gathers users with the same resource requirements to form a group and then share resources here.

[0093] (5) Object layer and file layer. Most of the data structures on IPFS are handled by them. Since most data objects exist in the form of Merkle directed acyclic graphs, this makes content-based addressing simpler and more convenient, and it is easy to remove duplication, thereby saving storage space.

[0094] (6) Naming layer: The naming layer also adds the interstellar name system to make the encrypted object name definable, converting hash characters into readable text. At the same time, as a variable mapping of the object, the change of the hash value of the file will not affect the addressing of the file, which improves readability.

[0095] (7) Application layer: The core value of IPFS lies in the applications running on it. It can utilize its load balancing, resource distribution, resource scheduling and other functions to enable users to obtain the required content nearby, reduce network congestion, and obtain the required data at a very low cost, thus greatly improving the efficiency of the entire application.

[0096] Specifically, the blockchain module in this application can be a consortium blockchain module; distributed publishing, transmission, accounting and storage are formed according to the distributed characteristics of the consortium blockchain module. The consortium blockchain is a hyperledger consortium blockchain built on the basis of smart contracts written in the go language.

[0097] like Figure 4 As shown in the flowchart of the alliance blockchain module storing the data to be stored, the process of the alliance blockchain module storing the data to be stored includes:

[0098] S401: Slice the data to be stored to obtain multiple data slices.

[0099] The storage system of the consortium blockchain divides data into smaller blocks, a process called sharding. Sharding breaks down a set of data into manageable blocks, and then stores the data shards in many nodes.

[0100] S402: Encrypt each data shard separately and generate a unique hash value for each data shard.

[0101] The storage system will encrypt each data shard in the local system. The content owner has full control over this process. The main goal here is to ensure that no user other than the content owner can directly access the data in any shard content, no matter where the data is located and whether the data is static or dynamic.

[0102] The storage system of the consortium blockchain can generate a unique hash value, a string of fixed length, by calculating the content of each shard. This hash value is then added to the data of the distributed ledger and other shards to connect the transaction to other stored shards.

[0103] S403: Re-copy each data slice, distribute the copied data slice, and place the copied data slice on different data storage nodes.

[0104] The storage system will automatically replicate each shard so there are enough redundant copies to ensure actual availability and functionality to prevent performance degradation and data loss. It is up to the content owner to determine which copies of each shard are needed and where they are located.

[0105] The replicated data shards are distributed through the P2P network and placed on dispersed data storage nodes, whether in domestic areas or globally, and no single entity has access to all storage resources or control over the storage infrastructure. No matter where the node is located on the chain, only the owner of the content has access to any other data.

[0106] S404: Record the transaction in the distributed ledger.

[0107] The database storage system can record all transactions in the distributed ledger of the alliance blockchain in real time and synchronize data between all nodes. The distributed ledger will record information and detailed data related to the transaction, such as shard address, shard hash, and rental fees. Since the distributed ledger is based on blockchain technology, it has transparency, verifiability, traceability, and tamper-proof features.

[0108] The database storage system records all transactions in the distributed ledger of the alliance blockchain in real time, and synchronizes data between all nodes to ensure transparency, verifiability, traceability and tamper-proof features.

[0109] Each node in the alliance blockchain system usually has a corresponding entity organization, so it is a partially decentralized blockchain architecture. A node must be authenticated before joining a chain. Nodes form alliance groups due to different interests and needs, and collaborate to maintain the safe operation of the network alliance. Compared with traditional blockchains, alliance chains have great advantages in work efficiency and privacy protection. Data will not be disclosed by default, and it has strong controllability and scalability. Therefore, applying it to the traceability of wine geographical indication products can better utilize the network's interconnection and information sharing functions, and has stronger operational development space than public chains.

[0110] Therefore, this application introduces blockchain technology, which has the characteristics of decentralization, openness, and immutability. It provides technical support for creating a reliable geographical indication product security traceability system that is both open and transparent and privacy-protected, especially for wine geographical indication products.

[0111] Blockchain technology has been applied in many fields and has achieved certain results in the exploration of food traceability systems. As a regional iconic product, wine has always been at risk of counterfeiting. The blockchain traceability system for wine geographical indication products provides a solution to this problem. In the existing traceability system, data is often uploaded to the chain in plain text. In addition to the large compliance risk of plain text data storage, another fatal problem is that the cost of copying the data itself is very low, which can easily lead to secondary distribution. Once shared, it is easy to get out of control. In the process of uploading data to the chain, wine companies will involve corporate trade secrets, such as yeast types, various indicators during fermentation, and grape suppliers. The values ​​of such secret information indicators require both supervision by the market department and confidentiality, but once the ciphertext is decrypted and audited, there will be a risk of leakage. The fully homomorphic encryption method supports homomorphic operations under ciphertext, and combined with blockchain technology, it provides an optimized solution to the above problems.

[0112] As a specific implementation method, the fully homomorphic encryption module performs fully homomorphic encryption on the data information of the confidential data item in the data information, and generates the ciphertext of the data information including:

[0113] Generate public parameters MKHE , with the public parameter public MKHE Generate key groups for the management node and N nodes (s i , PK i , B.K. i , K.S. i ), where the key group of the i-th stage includes the private key s i 、Public key group (PK i , B.K. i , K.S. i), the public key groups are (public key, bootstrap key, conversion key) respectively;

[0114] The management node verifies the identity information of the geographical indication product enterprise and selects a computing node to send the data corresponding to the confidential data item; the computing node performs fully homomorphic encryption on the data corresponding to the confidential data item to generate a data information ciphertext.

[0115] The fully homomorphic encryption method calls the TFHE library written in C++. The encryption function is MKHE.Enc(m)→ct, and the logic operation function is MKHE.NAND(ct1, ct2, {(PK i , B.K. i , K.S. i )} i∈[k] )→ct, the decryption function is MKHE.Dec(ct, {s i} i∈[k] )→m.

[0116] Submitting the data information ciphertext to the fully homomorphic encryption module so that the fully homomorphic encryption module performs homomorphic operations according to the selected logical operations, and decrypting the operation results to obtain the logical operation results includes:

[0117] The management node verifies the identity information of the geographical indication product enterprise, selects k-1 computing nodes and sends the management key group;

[0118] According to the selected logical operation, k public key groups are used to perform homomorphic operation on the data information ciphertext, and k private key groups are used to decrypt the operation result to obtain the logical operation result.

[0119] The enterprise is managed by the managed nodes for unified authentication and management to obtain the qualifications for homomorphic computing and decryption. Figure 5 As shown in the schematic diagram of multi-key fully homomorphic encryption, the process specifically includes: key generation stage, multi-key fully homomorphic encryption stage, homomorphic operation stage, and decryption stage.

[0120] Key generation phase: Generate public parameters MKHE , and use this parameter to generate and distribute key groups to N nodes. The private key of the i-th node is s i 、Public key group (PK i , B.K. i , K.S. i ), the public key groups are (public key, bootstrap key, conversion key) respectively.

[0121] Multi-key fully homomorphic encryption stage: Uncertified wine companies ( Figure 5 The management node authenticates the wine company first, and then uses the public parameter public MKHE Encrypt business confidential data items.

[0122] Homomorphic operation stage: After the tracer initiates the audit application, the management node selects and allocates k-1 operation nodes, and uses a total of k public key groups of the management node and the operation node to perform homomorphic operations on the commercial confidential data items.

[0123] Decryption phase: Use the k private keys of the management node and the selected computing node to decrypt the calculation results.

[0124] MKHE.Setup(1 λ ) → public MKHE =(public LWE , public RLWE )

[0125] LWE.Setup(1 λ ) → public LWE =(n, χ, α, B′, d′)

[0126] RLWE.Setup(1 λ ) → public RLWE =(N,ψ,β,B,d,a)

[0127] MKHE.KeyGen(public MKHE )→(s i , PK i , B.K. i , K.S. i )

[0128] LWE.KeyGen(public MKHE ) → s i

[0129] RLWE.KeyGen(public MKHE )→(z i , b i )

[0130] RLWE.UniEnc(s i,j , z i )→(d i,j , F i,j )

[0131] BK i ={(d i,j , F i,j )}

[0132] BK i =b i

[0133]

[0134] Enter the generation parameter pp MKHE , ciphertext m, encrypt and output LWE ciphertext ct;

[0135] MKHE.Enc(m)→ct

[0136] Logical operations are implemented through NAND gate operations. Two LWE ciphertexts ct1 and ct2 and the public key group of 1 management node and k-1 computing nodes involved are input to implement homomorphic operations through ciphertext expansion, homomorphic accumulation, and key conversion algorithms.

[0137] MKHE.NAND(ct1, ct2, {(PK i , B.K. i , K.S. i )} i∈[k] )→ct

[0138] For decryption of ciphertext ct, input parameter public RLWE and 1 management node and k-1 and all private keys of computing nodes (s1, ..., s k ) to achieve decryption;

[0139] MKHE.Dec(ct,{s i} i∈[k] )→m

[0140] During the encryption process, the wine enterprise first passes the wine data information to the fully homomorphic encryption module according to the predefined commercial confidential data items; then in the fully homomorphic encryption module, the management node verifies the identity information of the wine enterprise, selects the computing node, and sends the confidential data; finally, the computing node performs fully homomorphic encryption on the commercial confidential data of the wine data information, and then transmits the data ciphertext back to the cloud server-side module; in the process of logical operation and decryption of the result, after the logical operation and data object and commercial confidential ciphertext are transmitted on the cloud server side, the management node first verifies the identity of the wine enterprise, then selects k-1 computing nodes and sends the management key group, and finally uses k public key groups to perform homomorphic operation on the commercial confidential ciphertext according to the logical operation and uses k private key groups to decrypt the result and return it to the cloud server-side module.

[0141] It can be understood that the fully homomorphic encryption module calls the TFHE library written in C++ to implement the multi-key fully homomorphic encryption method.

[0142] Fully homomorphic encryption is a cryptographic technique that allows computing operations to be performed in an encrypted state without decrypting the data. Its goal is to protect the privacy and security of data while allowing complex calculations and processing of encrypted data. The basic principle of fully homomorphic encryption is to encrypt plaintext data into ciphertext data by using a special encryption algorithm and key management scheme, and to maintain the computability of the data in an encrypted state. In fully homomorphic encryption, ciphertext can be added and multiplied with other ciphertexts, and the result of the same operation on the plaintext can be obtained through decryption operations. Fully homomorphic encryption has broad application potential in fields such as data privacy protection, cloud computing, and secure computing. It can protect the privacy of sensitive data while allowing complex calculations and data processing without exposing plaintext data to third parties. The multi-key fully homomorphic encryption method involved in the present invention generates multiple keys, and the relevant keys need to be combined together to decrypt the data, which can reduce the loss caused by the leakage of a single key.

[0143] This application introduces fully homomorphic encryption technology, which can not only ensure that commercial confidential data is not exposed, but also support the audit verification of data in a ciphertext state, thereby ensuring the privacy of sensitive information and the audit process.

[0144] In addition, in this embodiment, the multi-key fully homomorphic encryption algorithm is different from the traditional multi-key fully homomorphic encryption algorithm. It does not distribute keys to every node that requests encryption, but distributes a total of N groups of fixed number of keys to a fixed number of 1 wine enterprise management node and N-1 computing nodes, which can reduce server overhead.

[0145] In addition, this application also provides a geographical indication product traceability device, such as Figure 6 As shown in the structural block diagram of the geographical indication product traceability device provided in this application, the device includes: a memory 601 and a processor 602, and the memory 601 stores a computer program. When the computer program is executed by the processor 602, any one of the above-mentioned geographical indication product traceability methods is implemented.

[0146] Among them, the geographical indication product is wine; the geographical indication product traceability equipment is implemented by a cloud server and a front end, and the front end is used to provide data processing and user interaction interface applicable to geographical indication product data traceability.

[0147] Among them, the cloud server side is responsible for handling large amounts of data storage and complex data processing tasks. The front end is the interface for users to interact with the system, usually including web pages or mobile applications. The main function of the front end is to provide users with an easy-to-use interface, enabling users to enter query requests (such as entering a specific traceability code) and receive information processed by the system, such as detailed traceability information of the product. The front end may also provide other functions, such as displaying the production and supply chain map of the product, verifying the geographical indication certificate of the product, etc.

[0148] In addition, this application also provides a geographical indication product traceability system, which is mainly aimed at the wine production process. The system is not only required to handle high throughput and low latency requirements, but also to store wine data as a geographical indication product reliably to prevent product counterfeiting. It is also required to encrypt and protect the commercial confidential data of wine production enterprises and support user query and audit. Figure 7 As shown in the structural block diagram of the geographical indication product traceability system provided in this application, the system includes a geographical indication product traceability device 701, a blockchain module 702, an IPFS trusted storage module 703, and a fully homomorphic encryption module 704.

[0149] Among them, the geographical indication product traceability device 701 is used to collect file information and data information generated in each link of the geographical indication product production process, and upload the file information to the IPFS trusted storage module 703, and upload the data information to the fully homomorphic encryption module 704.

[0150] The IPFS trusted storage module 703 is used to store the file information and generate storage address information. The fully homomorphic encryption module 704 is used to perform fully homomorphic encryption on the data information of the confidential data items in the data information and generate data information ciphertext. The blockchain module 702 is used to store the storage address information and the data information ciphertext.

[0151] The geographical indication product traceability device 701 is used to receive a request for tracing the geographical indication product input by the tracer, and send the traceability code to the blockchain module 702 based on the traceability code input by the tracer, the selected data item to be queried, and the selected logical operation. The blockchain module 702 is used to obtain traceability information based on the traceability code; the traceability information includes the storage address information of the file information and the data information. The IPFS trusted storage module 703 is used to feedback the file information based on the storage address information of the file information. The fully homomorphic encryption module 704 is used to perform homomorphic operations on the data information ciphertext according to the selected logical operation, decrypt the operation result to obtain the logical operation result, and feedback the logical operation result.

[0152] The geographical indication product traceability device 701 is also used to obtain traceability results based on the file information, data information fed back by the IPFS trusted storage module and the logical operation results fed back by the fully homomorphic encryption module.

[0153] As a specific implementation method, when the geographical indication product is wine, the geographical indication product traceability device 701 is implemented by the cloud server end 7011 and the front end 7012. The front end 7012 is used to provide data processing and user interaction interface applicable to geographical indication product data traceability. The user interaction interface can display the traceability results. The cloud server end 7011 has the following functions: Function 1 is used to collect wine production traceability information data, input information according to predefined rules, and pass data information and file information to the fully homomorphic encryption module and the IPFS trusted storage module respectively according to the information type, and generate a trusted traceability code according to the predetermined rules, so as to obtain the trusted information stored in the blockchain. Function 2 is used to obtain traceability information. First, the traceability code is extracted, and the traceability code is input to wait for its response. When entering the traceability code, logical operations and commercial confidential data items can be selected as logical operation objects, and then the feedback traceability information and logical operation results are received.

[0154] The front end 7012 is used to trace the data information stored in the alliance blockchain module 7021, including all the content entered in the cloud server 7011. Through the traceability code generated in the cloud server 7011, the corresponding content is queried in the alliance blockchain module 7021, and the information is transmitted to the cloud server 7011.

[0155] Specifically, JavaScript technology can be used to provide users with a data processing and user interaction interface suitable for data traceability of wine geographical indication products, which includes two main modules: wine information entry and wine information traceability. Wine information entry will generate seven sub-modules based on seven links: raw materials (grapes), fermentation, storage, stability treatment, canning, finished products, and used materials. The used materials module includes the entry of food additives, processing agents for the food industry, packaging materials, and raw wine; the food information traceability function will also be based on the query and audit functions suitable for querying and auditing stored information.

[0156] When the traceability information query is completed, the traceability information obtained from the seven different steps of raw materials (grapes), fermentation, storage, stability treatment, canning, finished products, and materials used will be displayed on the front-end display page.

[0157] As a specific implementation method, the front-end display interface can be divided into eight modules for display according to seven links including raw materials (grapes), fermentation, storage, stability treatment, canning, finished products, and materials used, plus logical operation results.

[0158] The fully homomorphic encryption module 704 has the following functions: Function 1 is used to generate and distribute keys. Function 2 is used to encrypt confidential data information transmitted by the cloud server and return the ciphertext. Function 3 is used to calculate the ciphertext using the logical operation instructions provided by the cloud server. Function 4 is used to decrypt the logical operation result and return it to the cloud server.

[0159] The blockchain module 702 is specifically a consortium blockchain module 7021.

[0160] The alliance blockchain module 7021 is used to store the conventional data information transmitted by the cloud server 7011 in the form of smart contracts, information encryption technology, and consensus mechanism; distributed publishing, transmission, accounting and storage are formed according to the distributed characteristics of the alliance blockchain. The data information collected by the cloud server 7011, the predefined corporate commercial secret part of which is transmitted to the fully homomorphic encryption module 704 for encryption and returned together, and combined with the non-commercial secret part to form new wine data information, which is stored in the alliance blockchain together with the storage hash value of the file fed back by the IPFS trusted storage module 703.

[0161] Among them, the alliance blockchain module 7021 uses the hyperledger technology, writes the contract in go language based on the Hyperledger Fabric framework, and publishes it to the alliance blockchain according to the traceability process and the information entered in the cloud server 7011.

[0162] The IPFS trusted storage module 703 is mainly used to store files, such as pictures, reports in PDF format, etc. IPFS is a network transmission protocol for persistent and distributed storage and sharing of files. It is a content-addressable peer-to-peer hypermedia distribution protocol that stores files passed in by the cloud server and generates a storage address, which is released in the form of a hash value. The hash value will be passed to the alliance blockchain module 7021 and stored together with the data information collected by the cloud server 7011.

[0163] The IPFS trusted storage module 703 uses the IPFS interplanetary file system to provide a high-throughput content-addressed block storage model with content-addressed hyperlinks to store file information of wine geographical indication products, and combines technologies such as distributed hash tables (DHT), incentive block exchanges, and self-certification namespaces to improve operating efficiency. After the cloud server 7011 receives the file, it is transferred to IPFS. IPFS generates a unique storage address hash code based on the different file contents of the incoming file, and feeds it back to the alliance blockchain module 7021 to be entered together with other input information.

[0164] The embodiment of the present application uses alliance blockchain, IPFS and multi-key fully homomorphic encryption technology to trustably store and securely audit the traceability data of wine geographical indication products. Combining the alliance blockchain, IPFS system data storage principle and fully homomorphic encryption technology, the commercial confidential data in the wine data information is encrypted, and then the hash value of the file stored in the IPFS distributed file system is chained, that is, the alliance chain's non-tamperability, fully homomorphic encryption ciphertext homomorphic calculation and IPFS system file permanent storage characteristics are combined to achieve efficient and trustworthy data storage, ciphertext security audit characteristics, and realize full-process ciphertext during data audit, greatly reducing the risk of commercial confidential data leakage during audit.

[0165] The professionals should also be further aware that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0166] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0167] The specific implementation methods described above further illustrate the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only the specific implementation method of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.

Claims

1. A method for tracing the origin of a geographical indication product, characterized in that: include: Receive requests from tracers for tracing the origin of geographical indication products; Receiving the traceability code input by the tracer, the selected data item to be queried, and the selected logical operation; Send the traceability code to the blockchain module, and obtain the traceability information fed back by the blockchain module; the traceability information includes the storage address information and data information of the file information; wherein, if the data item to be queried is a confidential data item, the data information includes the data information ciphertext of the confidential data item; Send the storage address information of the file information to the IPFS trusted storage module, so that the IPFS trusted storage module obtains the corresponding file information according to the storage address information; Submitting the data information ciphertext to a fully homomorphic encryption module so that the fully homomorphic encryption module performs a homomorphic operation on the data information ciphertext according to a selected logical operation, and decrypts the operation result to obtain a logical operation result; Obtaining the traceability result based on the file information and data information fed back by the IPFS trusted storage module and the logical operation result fed back by the fully homomorphic encryption module; Before the IPFS trusted storage module obtains the corresponding file information according to the storage address information, it also includes: Collect document information and data information generated at each stage of the production process of geographical indication products; The file information is uploaded to the IPFS trusted storage module, and the IPFS trusted storage module stores the file information to generate storage address information, and the storage address information is released in the form of a hash value; The data information is uploaded to a fully homomorphic encryption module, and the fully homomorphic encryption module performs fully homomorphic encryption on the data information of the confidential data items in the data information to generate a ciphertext of the data information; The fully homomorphic encryption module performs fully homomorphic encryption on the data information of the confidential data item in the data information to generate the ciphertext of the data information, including: Generate public parameters MKHE , with the public parameter public MKHE Generate key groups for the management node and N nodes (s i ,PK i ,BK i ,KS i ), where the key group of the i-th stage includes the private key s i 、Public key group (PK i ,BK i ,KS i ), PK i is the public key, BK i is the bootstrap key, KS i To convert the key; The management node verifies the identity information of the geographical indication product enterprise, selects a computing node, and sends the data corresponding to the confidential data item; the computing node performs fully homomorphic encryption on the data corresponding to the confidential data item to generate a ciphertext of the data information; Submitting the data information ciphertext to the fully homomorphic encryption module so that the fully homomorphic encryption module performs a homomorphic operation on the data information ciphertext according to the selected logical operation, and decrypting the operation result to obtain the logical operation result includes: The management node verifies the identity information of the geographical indication product enterprise, selects k-1 computing nodes and sends the management key group; Using k public key groups to perform homomorphic operations on the data information ciphertext according to the selected logical operation, and using k private key groups to decrypt the operation results to obtain the logical operation results; After generating the storage address information and data information ciphertext, it also includes: The storage address information and the data information ciphertext are integrated and encoded and stored in the blockchain module.

2. According to the traceability method of geographical indication products according to claim 1, the blockchain module is a consortium blockchain module; distributed publishing, transmission, accounting and storage are formed according to the distributed characteristics of the consortium blockchain module.

3. The method for tracing the origin of geographical indication products according to claim 2, characterized in that: The process of storing the data to be stored in the alliance blockchain module includes: Shard the data to be stored to obtain multiple data shards; Encrypt each data shard separately and generate a unique hash value for each data shard; Copy each data shard, distribute the copied data shards, and place the copied data shards on different data storage nodes; Recording transactions in a distributed ledger.

4. A geographical indication product traceability device, characterized in that: include: A memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the method for tracing the geographical indication product according to any one of claims 1 to 3 is implemented.

5. The geographical indication product traceability device according to claim 4, characterized in that: The geographical indication product is wine; the geographical indication product traceability equipment is implemented by a cloud server and a front end, and the front end is used to provide data processing and user interaction interface applicable to geographical indication product data traceability.

6. A geographical indication product traceability system, characterized in that: Including geographical indication product traceability equipment, blockchain module, IPFS trusted storage module, and fully homomorphic encryption module; Among them, the geographical indication product traceability device is used to collect file information and data information generated in each link of the geographical indication product production process, and upload the file information to the IPFS trusted storage module, and upload the data information to the fully homomorphic encryption module; the IPFS trusted storage module is used to store the file information and generate storage address information; the fully homomorphic encryption module is used to perform fully homomorphic encryption on the data information of confidential data items in the data information to generate data information ciphertext; the blockchain module is used to store the storage address information and the data information ciphertext; The geographical indication product traceability device is used to receive a request for tracing the geographical indication product input by the tracer, and send the traceability code to the blockchain module based on the traceability code input by the tracer, the selected data item to be queried, and the selected logical operation; the blockchain module is used to obtain traceability information based on the traceability code; the traceability information includes storage address information and data information of the file information; the IPFS trusted storage module is used to feedback the file information based on the storage address information of the file information; the fully homomorphic encryption module is used to perform homomorphic operation on the data information ciphertext according to the selected logical operation, decrypt the operation result to obtain the logical operation result, and feedback the logical operation result; The geographical indication product traceability device is also used to obtain traceability results based on the file information, data information fed back by the IPFS trusted storage module and the logical operation results fed back by the fully homomorphic encryption module; the geographical indication product traceability system is used to implement the geographical indication product traceability method according to any one of claims 1-3.

Citation Information

Patent Citations

  • Agricultural product traceability system based on master-slave multi-chain block chain

    CN115760152A

  • Fire-fighting product tracing system and method based on block chain, Internet of Things and IPFS

    CN116208632A

  • Traceability storage method, traceability method, traceability storage system and traceability system

    CN116260662A

  • Distributed credible storage and sharing method for postpartum grain collection, storage and transportation quality data

    CN116361259A