Cross-chain data retrieval system based on block chain
By introducing traceability QR code, data encryption, blockchain storage and cache technologies into the blockchain data retrieval system, the problem of slow data retrieval speed in traditional blockchain is solved, more efficient and secure data retrieval is achieved, and consumer trust is enhanced.
Patent Information
- Application Number
- CN202411765223.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-04
- Publication Date
- 2025-03-21
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional blockchain data retrieval methods require comparison and detection one by one, resulting in slower retrieval speed.
A cross-chain data retrieval system based on blockchain is designed, including data acquisition module, data transmission module, data storage module and user terminal module. Through traceability QR code generation, data encryption, blockchain storage and caching technology, the efficiency of data retrieval is improved.
Ensure the security and immutability of data through blockchain technology, improve the speed and efficiency of data retrieval, and enhance consumers' trust in the quality and source of agricultural products.
Smart Images

Figure CN119669359A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and in particular to a cross-chain data retrieval system based on blockchain. Background Art
[0002] The blockchain-based cross-chain data retrieval system utilizes blockchain technology to store and manage traceability data. Blockchain is a distributed ledger technology that ensures data security, transparency, and immutability through decentralized verification and storage mechanisms. It has been widely used in a wide range of fields, including smart contracts, securities trading, e-commerce, the Internet of Things, social communications, file storage, proof of existence, identity verification, and equity crowdfunding. To enhance consumer experience with agricultural product safety, traceability QR codes are currently attached to agricultural product packaging. After purchasing the produce, consumers can scan the codes to obtain relevant information about the production process, from planting to sale and purchase. However, traditional blockchain data retrieval methods suffer from the requirement for individual data comparison and verification, resulting in slow retrieval speeds. Summary of the Invention
[0003] The purpose of the present invention is to provide a cross-chain data retrieval system based on blockchain to solve the problem that in the traditional blockchain data retrieval method proposed in the above background technology, data needs to be compared and tested one by one, resulting in a slow retrieval speed.
[0004] To achieve the above objectives, the present invention provides the following technical solution: a cross-chain data retrieval system based on blockchain, comprising a data acquisition module, a data transmission module, a data storage module, and a user terminal module, wherein the output end of the data acquisition module is connected to the input end of the data transmission module, the output end of the data transmission module is connected to the input end of the data storage module, and the storage module and the user terminal module are bidirectionally connected, wherein:
[0005] The data acquisition module is used to generate a traceability QR code, obtain traceability data of the crops, and encrypt the obtained data using a public key. The traceability data and traceability QR code information are transmitted to the data storage module through the data transmission module. Users can view the traceability data of the product by scanning the traceability QR code.
[0006] The data transmission module is used to transmit the data acquired by the data acquisition module to the data storage module;
[0007] The data encryption module is used to encrypt the data in the storage module obtained from the data acquisition module to ensure its security and confidentiality;
[0008] The data storage module is used to decrypt the data transmitted from the data acquisition module to prevent the data from being maliciously modified during transmission, and then use the blockchain node to store the traceability QR code information and traceability data to ensure the security and non-tamperability of the data;
[0009] The user terminal module is used to query the traceability data stored in the data storage module according to the traceability QR code information, and provide a platform for users to interact with the traceability system.
[0010] Furthermore, the data acquisition module includes a traceability QR code generation unit, an Internet submodule and a data encryption unit, wherein:
[0011] The traceability QR code generation unit generates a unique traceability QR code using an algorithm, which can be generated based on a timestamp, a hash function, etc. By scanning the traceability QR code, users can obtain detailed information related to the crops, including data on planting, processing, transportation, sales, purchase, etc.
[0012] The Internet submodule includes various sensors and other terminal devices, etc., which are used to collect data related to the entire production and sales process of crops, including but not limited to relevant information on planting, processing, transportation, sales and purchase;
[0013] The data encryption unit uses a public key to encrypt the data acquired by the data acquisition module to ensure its security and confidentiality.
[0014] Furthermore, the Internet submodule includes a planting data acquisition unit, a processing data acquisition unit, a transportation data acquisition unit, a sales data acquisition unit, and a purchase data acquisition unit, wherein:
[0015] The planting data acquisition unit is used to acquire data related to crop planting, such as planting location, planting time, fertilization measures, pesticide use, etc.;
[0016] The processing data acquisition unit is used to acquire data related to the crop processing process, including harvesting, cleaning, processing technology and other data;
[0017] The transport data acquisition unit is used to acquire data related to the transport of crops, such as the starting point, destination, mode of transport, temperature control, etc.
[0018] The sales data acquisition unit is used to acquire data related to the sales of agricultural products, including sales location, sales time, sales channels and other data;
[0019] The purchase data acquisition unit is used to acquire data related to the purchase of crops, including purchase location, purchase time, buyer identity and other data.
[0020] Furthermore, the data transmission module includes a wireless communication node and a data forwarding base station;
[0021] The wireless communication node is used to wirelessly communicate with various sensors and other terminal devices in the Internet submodule and transmit the acquired data to the data forwarding base station;
[0022] The data forwarding base station is used to transmit data related to the entire process from production to sales and purchase of crops to the data storage module;
[0023] Furthermore, the data storage module includes a crop classification processing unit, a crop classification numbering unit, a data cache unit, and a data decryption unit, wherein:
[0024] The crop classification and processing unit is used to classify and process crops according to their uses; crops are divided into the following five categories according to their uses: food crops: crops mainly used for human consumption, such as wheat, rice, corn, etc.; cash crops: crops used for commercial purposes, including cotton, tobacco, cocoa, coffee, etc.; vegetable crops: including various vegetables such as tomatoes, carrots, cauliflower, etc.; fruit crops: such as apples, oranges, bananas, etc.; oil crops: crops mainly used for extracting vegetable oils, such as soybeans, peanuts, rapeseed, etc.
[0025] The crop classification numbering unit is used to uniquely number the classified crops, and the numbering information will be recorded on the traceability QR code for subsequent retrieval;
[0026] The data cache unit is used to cache frequently queried data to reduce the number of accesses to the database or storage system, thereby increasing the retrieval speed;
[0027] The data decryption unit is used to decrypt the data using the private key corresponding to the public key after the data storage module receives the data, thereby preventing the data from being maliciously modified during transmission.
[0028] Furthermore, the user terminal module includes a code scanning unit, a traceability QR code information collection unit, a communication submodule and a display submodule;
[0029] The code scanning unit is used to scan the traceability QR code and extract the QR code information contained in the traceability QR code;
[0030] The traceability QR code information collection unit is used to collect the QR code information extracted by the code scanning unit;
[0031] The communication submodule is used to send the traceability QR code information to the data storage module and to receive the traceability data sent from the data storage module; the communication submodule is used to improve the interaction between the user and the traceability system;
[0032] The display submodule is used to display traceability data.
[0033] Furthermore, the communication submodule includes a traceability unit and a user interaction unit, wherein:
[0034] The traceability unit is used to query relevant traceability data; the traceability unit retrieves the data of the data storage module according to the information collected by the traceability QR code information collection unit, and then sends the retrieved traceability data to the display submodule for display;
[0035] The user interaction unit is used to improve user interaction and encourage users to participate in the plant traceability system, such as uploading photos, sharing experiences or providing feedback. After scanning the traceability QR code, people can also see other users' related photos, experiences and feedback on the product.
[0036] Furthermore, the display submodule includes a data analysis unit and a visualization unit, and the data analysis unit and the visualization unit are used to analyze and process the traceability data, generate reports, charts or visualization interfaces, and provide users with more intuitive and easy-to-understand data display.
[0037] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
[0038] Compared to existing technologies, the present invention utilizes blockchain technology to improve data security and immutability. As a distributed ledger, blockchain records all data updates and transaction information, ensuring complete traceability and transparency of traceability data. Each traceability data entry can be traced back to its source, and anyone can view and verify this data, thereby enhancing consumer trust in the quality and provenance of agricultural products. Regarding data storage, the system's data storage module utilizes a crop classification processing unit, a crop classification numbering unit, and a data cache unit to improve system efficiency and retrieval speed. The crop classification processing unit classifies crops according to their intended use, while the crop classification numbering unit uniquely numbers the classified crops, allowing for subsequent searches to avoid unnecessary steps and improve retrieval speed. Furthermore, the data cache unit caches frequently queried data, reducing the number of database or storage system accesses and further improving retrieval speed. Through a blockchain-based cross-chain data retrieval system, consumers can obtain detailed information about agricultural products by scanning a traceability QR code, ensuring data security and transparency. These system advantages help consumers build greater trust and provide a reliable agricultural product traceability experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] To more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the embodiments or the description of the prior art. Obviously, the drawings described below are merely exemplary, and those skilled in the art can, without inventive effort, derive other implementation drawings based on the provided drawings.
[0040] Figure 1 This is a block diagram of the overall system of the present invention;
[0041] Figure 2 This is a system block diagram of the Internet submodule of the present invention;
[0042] Figure 3 This is a system block diagram of the communication submodule of the present invention;
[0043] Figure 4 It is a block diagram showing the submodule system of the present invention. DETAILED DESCRIPTION
[0044] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. Figure 1-4Unless otherwise indicated, the same numbers in different figures represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices consistent with some aspects of the present disclosure as detailed in the appended claims.
[0045] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0046] A cross-chain data retrieval system based on blockchain includes a data acquisition module, a data transmission module, a data storage module and a user terminal module. The output end of the data acquisition module is connected to the input end of the data transmission module, the output end of the data transmission module is connected to the input end of the data storage module, and the storage module and the user terminal module are bidirectionally connected, wherein:
[0047] The data acquisition module is used to generate a traceability QR code, obtain traceability data of the crops, and encrypt the obtained data using a public key. The traceability data and traceability QR code information are transmitted to the data storage module through the data transmission module. Users can view the traceability data of the product by scanning the traceability QR code.
[0048] The data transmission module is used to transmit the data acquired by the data acquisition module to the data storage module;
[0049] The data encryption module is used to encrypt the data in the storage module obtained from the data acquisition module to ensure its security and confidentiality;
[0050] The data storage module is used to decrypt the data transmitted from the data acquisition module to prevent the data from being maliciously modified during transmission, and then use the blockchain node to store the traceability QR code information and traceability data to ensure the security and non-tamperability of the data;
[0051] The user terminal module is used to query the traceability data stored in the data storage module according to the traceability QR code information, and provide a platform for users to interact with the traceability system.
[0052] Furthermore, the data acquisition module includes a traceability QR code generation unit, an Internet submodule and a data encryption unit, wherein:
[0053] The traceability QR code generation unit generates a unique traceability QR code using an algorithm, which can be generated based on a timestamp, a hash function, etc. By scanning the traceability QR code, users can obtain detailed information related to the crops, including data on planting, processing, transportation, sales, purchase, etc.
[0054] The Internet submodule includes various sensors and other terminal devices, etc., which are used to collect data related to the entire production and sales process of crops, including but not limited to relevant information on planting, processing, transportation, sales and purchase;
[0055] The data encryption unit uses a public key to encrypt the data acquired by the data acquisition module to ensure its security and confidentiality.
[0056] Furthermore, the Internet submodule includes a planting data acquisition unit, a processing data acquisition unit, a transportation data acquisition unit, a sales data acquisition unit, and a purchase data acquisition unit, wherein:
[0057] The planting data acquisition unit is used to acquire data related to crop planting, such as planting location, planting time, fertilization measures, pesticide use, etc.;
[0058] The processing data acquisition unit is used to acquire data related to the crop processing process, including harvesting, cleaning, processing technology and other data;
[0059] The transport data acquisition unit is used to acquire data related to the transport of crops, such as the starting point, destination, mode of transport, temperature control, etc.
[0060] The sales data acquisition unit is used to acquire data related to the sales of agricultural products, including sales location, sales time, sales channels and other data;
[0061] The purchase data acquisition unit is used to acquire data related to the purchase of crops, including purchase location, purchase time, buyer identity and other data.
[0062] Furthermore, the data transmission module includes a wireless communication node and a data forwarding base station;
[0063] The wireless communication node is used to wirelessly communicate with various sensors and other terminal devices in the Internet submodule and transmit the acquired data to the data forwarding base station;
[0064] The data forwarding base station is used to transmit data related to the entire process from production to sales and purchase of crops to the data storage module;
[0065] Furthermore, the data storage module includes a crop classification processing unit, a crop classification numbering unit, a data cache unit, and a data decryption unit, wherein:
[0066] The crop classification and processing unit is used to classify and process crops according to their uses; crops are divided into the following five categories according to their uses: food crops: crops mainly used for human consumption, such as wheat, rice, corn, etc.; cash crops: crops used for commercial purposes, including cotton, tobacco, cocoa, coffee, etc.; vegetable crops: including various vegetables such as tomatoes, carrots, cauliflower, etc.; fruit crops: such as apples, oranges, bananas, etc.; oil crops: crops mainly used for extracting vegetable oils, such as soybeans, peanuts, rapeseed, etc.
[0067] The crop classification numbering unit is used to uniquely number the classified crops, and the numbering information will be recorded on the traceability QR code for subsequent retrieval;
[0068] The data cache unit is used to cache frequently queried data to reduce the number of accesses to the database or storage system, thereby increasing the retrieval speed;
[0069] The data decryption unit is used to decrypt the data using the private key corresponding to the public key after the data storage module receives the data, thereby preventing the data from being maliciously modified during transmission.
[0070] Furthermore, the user terminal module includes a code scanning unit, a traceability QR code information collection unit, a communication submodule and a display submodule;
[0071] The code scanning unit is used to scan the traceability QR code and extract the QR code information contained in the traceability QR code;
[0072] The traceability QR code information collection unit is used to collect the QR code information extracted by the code scanning unit;
[0073] The communication submodule is used to send the traceability QR code information to the data storage module and to receive the traceability data sent from the data storage module; the communication submodule is used to improve the interaction between the user and the traceability system;
[0074] The display submodule is used to display traceability data.
[0075] Furthermore, the communication submodule includes a traceability unit and a user interaction unit, wherein:
[0076] The traceability unit is used to query relevant traceability data; the traceability unit retrieves the data of the data storage module according to the information collected by the traceability QR code information collection unit, and then sends the retrieved traceability data to the display submodule for display;
[0077] The user interaction unit is used to improve user interaction and encourage users to participate in the plant traceability system, such as uploading photos, sharing experiences or providing feedback. After scanning the traceability QR code, people can also see other users' related photos, experiences and feedback on the product.
[0078] Furthermore, the display submodule includes a data analysis unit and a visualization unit, and the data analysis unit and the visualization unit are used to analyze and process the traceability data, generate reports, charts or visualization interfaces, and provide users with more intuitive and easy-to-understand data display.
[0079] Compared to existing technologies, the present invention utilizes blockchain technology to improve data security and immutability. As a distributed ledger, blockchain records all data updates and transaction information, ensuring complete traceability and transparency of traceability data. Each traceability data entry can be traced back to its source, and anyone can view and verify this data, thereby enhancing consumer trust in the quality and provenance of agricultural products. Regarding data storage, the system's data storage module utilizes a crop classification processing unit, a crop classification numbering unit, and a data cache unit to improve system efficiency and retrieval speed. The crop classification processing unit classifies crops according to their intended use, while the crop classification numbering unit uniquely numbers the classified crops, allowing for subsequent searches to avoid unnecessary steps and improve retrieval speed. Furthermore, the data cache unit caches frequently queried data, reducing the number of database or storage system accesses and further improving retrieval speed. Through a blockchain-based cross-chain data retrieval system, consumers can obtain detailed information about agricultural products by scanning a traceability QR code, ensuring data security and transparency. These system advantages help consumers build greater trust and provide a reliable agricultural product traceability experience.
[0080] While embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions, and variations may be made to these embodiments without departing from the principles and spirit of the invention, and that the scope of the invention is defined by the appended claims and their equivalents.
[0081] The present invention and its embodiments are described above. This description is not restrictive. What is shown in the accompanying drawings is only one of the embodiments of the present invention, and the actual content is not limited to this. In short, if ordinary technicians in this field are inspired by it and do not depart from the purpose of the invention, they can creatively design structural methods and embodiments similar to the technical solution, which should all fall within the scope of protection of the present invention.
Claims
1. A cross-chain data retrieval system based on blockchain, characterized in that: It includes a data acquisition module, a data transmission module, a data storage module and a user terminal module, wherein the output end of the data acquisition module is connected to the input end of the data transmission module, the output end of the data transmission module is connected to the input end of the data storage module, and the storage module and the user terminal module are bidirectionally connected, wherein: The data acquisition module is used to generate a traceability QR code, obtain the traceability data of the crops, and encrypt the obtained data using a public key, and transmit the traceability data and the traceability QR code information to the data storage module through the data transmission module; The data transmission module is used to transmit the data acquired by the data acquisition module to the data storage module; The data storage module is used to decrypt the data transmitted from the data acquisition module, and then use the blockchain node to store the traceability QR code information and traceability data to ensure the security and non-tamperability of the data; The user terminal module is used to query the traceability data stored in the data storage module according to the traceability QR code information, and provide a platform for users to interact with the traceability system.
2. A cross-chain data retrieval system based on blockchain according to claim 1, characterized in that: The data acquisition module includes a traceability QR code generation unit, an Internet submodule and a data encryption unit, wherein: The traceability QR code generation unit generates a unique traceability QR code using an algorithm, which can be generated based on a timestamp, a hash function, etc.; The Internet submodule is used to collect data related to the entire process from production to sales and purchase of crops; The data encryption unit uses a public key to encrypt the data acquired by the data acquisition module to ensure its security and confidentiality.
3. A cross-chain data retrieval system based on blockchain according to claim 2, characterized in that: The Internet submodule includes a planting data acquisition unit, a processing data acquisition unit, a transportation data acquisition unit, a sales data acquisition unit and a purchase data acquisition unit, wherein: The planting data acquisition unit is used to acquire data related to the crop planting process; The processing data acquisition unit is used to acquire data related to the crop processing process; The transportation data acquisition unit is used to acquire data related to the crop transportation link; The sales data acquisition unit is used to acquire data related to the sales of agricultural crops; The purchase data acquisition unit is used to acquire data related to the purchase of crops.
4. According to claim 1, a cross-chain data retrieval system based on blockchain is characterized in that: The data transmission module includes a wireless communication node and a data forwarding base station; The wireless communication node is used to wirelessly communicate with various sensors and other devices in the Internet submodule, and transmit the acquired data to the data forwarding base station; The data forwarding base station is used to transmit data related to the entire process from production to sales and purchase of crops to the data storage module.
5. According to a cross-chain data retrieval system based on blockchain according to claim 1, it is characterized in that: The data storage module includes a crop classification processing unit, a crop classification numbering unit, a data cache unit and a data decryption unit, wherein: The crop classification and processing unit is used to classify and process the crops according to their uses; The crop classification numbering unit is used to uniquely number the classified crops; The data cache unit is used to cache frequently queried data to reduce the number of accesses to the database or storage system, thereby increasing the retrieval speed; The data decryption unit is used to decrypt the data using the private key corresponding to the public key after the data storage module receives the data, thereby preventing the data from being maliciously modified during transmission.
6. A cross-chain data retrieval system based on blockchain according to claim 1, characterized in that: The user terminal module includes a code scanning unit, a traceability two-dimensional code information collection unit, a communication submodule and a display submodule; The code scanning unit is used to scan the traceability QR code; The traceability two-dimensional code information collection unit is used to collect the two-dimensional code information extracted by the code scanning unit; The communication submodule is used to send the traceability QR code information to the data storage module and to receive the traceability data sent from the data storage module; the communication submodule is used to improve the interaction between the user and the traceability system; The display submodule is used to display the traceability data.
7. A cross-chain data retrieval system based on blockchain according to claim 1, characterized in that: The communication submodule includes a traceability unit and a user interaction unit, wherein: The traceability unit is used to query relevant traceability data; The user interaction unit is used to improve user interaction and encourage users to participate in the plant traceability system. Users can upload photos, share experiences or provide feedback in this unit.
8. According to claim 1, a cross-chain data retrieval system based on blockchain is characterized in that: The display submodule includes a data analysis unit and a visualization unit, and the data analysis unit and the visualization unit are used to analyze and process the traceability data, generate reports, charts or visualization interfaces, and provide users with more intuitive and easy-to-understand data presentation.
Citation Information
Patent Citations
Agricultural product whole process traceability method and system
CN105469270A
Cold-chain logistics information traceability system for agricultural products
CN113762895A
Agricultural product traceability system based on block chain technology
CN114445092A
Crop tracing method and system based on block chain technology
CN114881669A