A soil sample information anti-counterfeiting traceability method and device
By combining dynamic transcoding and blockchain technology, soil sample information is separated and encrypted, solving the problems of information separation and security in soil surveys. This enables the secure transfer and anti-counterfeiting traceability of soil sample information, improving the quality of soil samples and the authenticity of data.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- INST OF AGRI RESOURCES & REGIONAL PLANNING CHINESE ACADEMY OF AGRI SCI
- Filing Date
- 2023-03-03
- Publication Date
- 2026-07-24
AI Technical Summary
Existing technologies involve numerous steps and lengthy processes in soil surveys, making it impossible to separate field investigation information from office testing information. Data stored in a centralized structure is easily tampered with, making it difficult to guarantee the security and authenticity of soil sample information.
By combining dynamic transcoding technology with blockchain, dynamic transcoding information is generated by obtaining QR code information from soil sample packaging. This information is then combined with geographic location and image signals and uploaded to the blockchain. Symmetric encryption methods are used to ensure information security, separate soil field survey information from indoor testing information, and verify the identity of the information uploader and the integrity of the data.
It enables the secure transfer and anti-counterfeiting traceability of soil sample information, ensuring the uniqueness and authenticity of the information, preventing counterfeiting, improving the quality of soil samples and the accuracy of data, and avoiding the risk of counterfeiting.
Smart Images

Figure CN116257870B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to agricultural information detection technology, and in particular to a method and device for anti-counterfeiting and traceability of soil sample information. Background Technology
[0002] Soil, as the foundation of agriculture, is one of the most basic, widespread, and important non-renewable natural resources for human life and production. Soil samples carry rich information about soil environmental characteristics, objectively representing the soil environmental quality status and evolution trends at different historical stages. Soil surveys are an important method for identifying soil types and distribution patterns, and clarifying the quantity and quality of soil resources. Soil surveys accumulate a large amount of data, providing scientific support for the scientific classification, planned utilization, improvement and fertilization, and protection and management of soils, and also providing a basis for decision-making in the formulation of major policies for economic, social, and ecological construction. However, there is currently no method for preventing counterfeiting and tracing soil sample information. Ensuring the security of soil sample information during its circulation and improving the quality of soil samples remains a challenge.
[0003] Anti-counterfeiting and traceability methods are an important means of ensuring information security. They typically employ simple and effective methods such as QR codes, barcodes, or RFID to verify the authenticity and traceability of products. Currently, they are mainly applied to various products including food, agricultural products, electronic products, skincare products, and pharmaceuticals. Traditional anti-counterfeiting and traceability data is stored in a centralized structure, making it susceptible to tampering and lacking in credibility. Blockchain, a distributed database based on cryptography, enables data traceability and forms an immutable data source. With the development of information technology, blockchain technology is increasingly being applied to anti-counterfeiting and traceability. The decentralized, transparent, and immutable characteristics of blockchain technology can ensure the security and integrity of soil sample information, control soil sample quality, and provide a new approach for anti-counterfeiting and traceability of soil samples. Blockchain technology has irreplaceable advantages in anti-counterfeiting and traceability, as exemplified by the following technical solutions.
[0004] Invention Patent 1 (A Product Anti-counterfeiting and Traceability Method Based on Blockchain Technology, CN201910519340.8): This invention discloses a product anti-counterfeiting and traceability method based on blockchain technology, comprising at least the following steps: information acquisition, information marking, generation of authentication ID, data storage, receiving access instructions, and comparison of access counts. This invention innovatively completes product anti-counterfeiting and traceability through blockchain technology, allowing users to save data content in-place. The hash value corresponding to each data point is linked with the user's identity information and the basic attribute data of the target file and stored in a trusted blockchain. This avoids data leakage while proving the originality and ownership of the data, and generates corresponding proof certificates, providing others with a means to prove and verify certificates. More importantly, this invention utilizes blockchain technology to achieve decentralization, making the data authentic, trustworthy, and tamper-proof, while protecting commercial privacy data and ensuring the platform's authority, credibility, and the enthusiasm of enterprises to participate.
[0005] Invention Patent 2 (A Product Anti-counterfeiting and Traceability System and Method, CN202010159823.4): This invention applies to the field of computer technology and provides a product anti-counterfeiting and traceability system and method. The system includes an information processing terminal, a blockchain platform, and a user terminal. The information processing terminal is used to generate a product traceability identification code based on the product information; acquire product image information carrying the traceability identification code; upload the product information and the product image information carrying the traceability identification code to the blockchain platform; receive and store the verification identification code sent by the blockchain platform; respond to the user terminal's operation of obtaining information on the product blockchain, obtain the product blockchain information from the blockchain platform based on the verification identification code; and send the product blockchain information to the user terminal. Compared with existing centralized database collection methods, this method has higher credibility, truly realizing transparency, decentralization, and traceability of production information, allowing consumers to confirm the authenticity of the product anti-counterfeiting and traceability system information, and improving the security of product transactions.
[0006] However, the above technical solutions have the following drawbacks.
[0007] 1) Soil surveys involve many steps and have a long process. If only one code is used to trace soil sample information throughout the entire process, it is impossible to separate soil field survey information from indoor testing information and cannot effectively shield information.
[0008] 2) In traditional anti-counterfeiting and traceability methods, data is stored on a centralized structure, which is easy to tamper with and cannot effectively guarantee the security of soil sample information.
[0009] 3) Most current blockchain anti-counterfeiting and traceability systems focus on the security of information after it is uploaded to the blockchain, making it difficult to guarantee the authenticity and validity of information before it is uploaded to the blockchain. Summary of the Invention
[0010] To address the technical problems of existing soil survey technologies, such as the numerous stages and lengthy processes involved, the inability to separate field investigation information from office testing information when using only a single code for full traceability of soil sample information, the inability to effectively shield information, and the vulnerability of centralized data storage to tampering, which compromises the security of soil sample information, this invention proposes a method and device for anti-counterfeiting and traceability of soil sample information. This method and device can ensure the quality and authenticity of soil samples. To achieve this goal, the invention adopts the following technical solution.
[0011] A method for anti-counterfeiting and traceability of soil sample information, the method comprising the following steps: A. In the process of anti-counterfeiting of soil sample information, obtain the QR code information on the soil sample packaging, perform dynamic transcoding, and generate a new QR code on the soil sample packaging based on the dynamic transcoding information; obtain the geolocation signal, record the transcoding location information of the soil sample, and collect the image signal of the soil sample. B. The soil sample information, consisting of the QR code information before and after dynamic transcoding, the soil sample transcoding location information, and the soil sample image signal, is uploaded to the blockchain. C. During the soil sample information traceability process, obtain the QR code information on the soil sample packaging, retrieve the soil sample information from the blockchain based on the QR code information, verify the soil sample information, check the sample image signal, and provide feedback on the query and traceability results.
[0012] In addition, in the soil sample information anti-counterfeiting and traceability method of the present invention, obtaining the QR code information on the soil sample packaging and performing dynamic transcoding includes: The sample number information in the QR code is amplified to generate dynamic transcoding information, which is used to generate unique dynamic transcoding information for the anti-counterfeiting process of soil samples.
[0013] Furthermore, in the soil sample information anti-counterfeiting and traceability method of the present invention, uploading soil sample information composed of QR code information before and after dynamic transcoding, soil sample transcoding location information, and soil sample image signal to the blockchain includes: B1. To verify the authenticity and legitimacy of the information uploader's identity, the server obtains the information uploader's digital certificate; B2. The user terminal of the information uploader uses a symmetric encryption method to encrypt and sign the soil sample information; B3. The server decrypts the encrypted soil sample information to verify data integrity; B4. After verifying the identity of the information uploader and the integrity of the data, the server packages the encrypted soil sample information into a soil sample information block. B5. Broadcast the soil sample information block to all consensus nodes across the network.
[0014] In addition, the soil sample information anti-counterfeiting and traceability method of the present invention uses a symmetric encryption method to encrypt and sign the soil sample information, including: using an advanced encryption standard encryption method, through four processes in the round transformation and the subkeys generated in each round transformation.
[0015] In addition, in the soil sample information anti-counterfeiting and traceability method of the present invention, if the soil sample information has undergone multiple anti-counterfeiting processes beforehand, the QR code information on the soil sample packaging of each anti-counterfeiting process is used to trace back to the QR code information on the soil sample packaging of the previous anti-counterfeiting process, and the soil sample information of each anti-counterfeiting process is obtained and compared.
[0016] The present invention also includes a soil sample information anti-counterfeiting and traceability device, comprising a soil sample information anti-counterfeiting device and a soil sample information traceability device, wherein the soil sample information anti-counterfeiting device is used for: In the process of anti-counterfeiting of soil sample information, the QR code information on the soil sample packaging is obtained, dynamically converted, and a new QR code is generated based on the dynamic conversion information; the specific geographical location signal is obtained, the soil sample conversion location information is recorded, and the soil sample image signal is collected; and the QR code information before and after dynamic conversion, the soil sample conversion location information, and the soil sample image signal are combined to form the soil sample information and uploaded to the blockchain. The soil sample information traceability device is used to obtain the QR code information on the soil sample packaging, retrieve the soil sample information from the blockchain, verify the soil sample information, check the sample image signal, and provide feedback on the query and traceability results during the soil sample information traceability process.
[0017] In addition, the anti-counterfeiting traceability device for soil sample information of the present invention includes a dynamic transcoding unit and a QR code generation unit. The dynamic transcoding unit is used to encode the sample number information in the QR code information on the soil sample to generate dynamic transcoding information, which generates unique dynamic transcoding information for the anti-counterfeiting process of the soil sample. The QR code generation unit is used to generate a new QR code for the soil sample packaging using the dynamic transcoding information.
[0018] Furthermore, in the soil sample information anti-counterfeiting and traceability device of the present invention, the soil sample information anti-counterfeiting device includes a user terminal located at the information uploader and a server located remotely, wherein, To verify the authenticity and legitimacy of the information uploader's identity, the server obtains the information uploader's digital certificate. The user client of the information uploader uses a symmetric encryption method to encrypt the uploaded soil sample information and generates a signature; The server calculates the encrypted information and compares the decrypted data with the original data to verify data integrity. After verifying the identity and data integrity of the user who uploaded the information, the server packages the encrypted soil sample information into a soil sample information block; the server is also used to broadcast the soil sample information block to all consensus nodes on the network.
[0019] In addition, the anti-counterfeiting and traceability device for soil sample information of the present invention includes an encryption unit. The encryption unit is used to encrypt the soil sample information by using an advanced encryption standard encryption method and through four processes in the round transformation and the subkeys generated in each round transformation.
[0020] The technical effects of this invention include the following.
[0021] This invention proposes a soil sample information anti-counterfeiting and traceability method, which enables the secure transfer and anti-counterfeiting traceability of soil sample information during the soil sample circulation process. Specifically, it involves transcoding sample number information, acquiring location information, and encrypting and uploading sample images to the blockchain. Sample recipients can verify the authenticity of the soil sample by scanning the anti-counterfeiting QR code. This invention generates a traceable QR code for each soil sample and each process step, ensuring the uniqueness of information for each soil sample and circulation process. This effectively prevents counterfeiting, and the forward and backward traceability function allows for sequential tracking of the soil sample circulation process and effective traceability of the original information of the soil sample, improving soil sample quality, ensuring the authenticity, accuracy, and scientific validity of sample data, and mitigating the risk of sample counterfeiting. Attached Figure Description
[0022] Figure 1 This is a flowchart illustrating a method for anti-counterfeiting and traceability of soil sample information according to a specific embodiment of the present invention.
[0023] Figure 2 This is a schematic diagram illustrating the specific process of a soil sample information anti-counterfeiting and traceability method according to a specific embodiment of the present invention. Detailed Implementation
[0024] The present invention will now be described in detail with reference to the accompanying drawings.
[0025] The following detailed exemplary embodiments are disclosed. However, the specific structural and functional details disclosed herein are merely for the purpose of describing exemplary embodiments.
[0026] However, it should be understood that the present invention is not limited to the specific exemplary embodiments disclosed, but covers all modifications, equivalents, and substitutions falling within the scope of this disclosure. Throughout the description of the drawings, the same reference numerals denote the same elements.
[0027] Referring to the accompanying drawings, the structures, proportions, sizes, etc., depicted in the drawings are merely for illustrative purposes to aid those skilled in the art in understanding and reading the content disclosed herein. They are not intended to limit the conditions under which the invention can be implemented and therefore have no substantial technical significance. Any modifications to the structure, changes in proportions, or adjustments to the size, without affecting the effects and objectives achieved by the invention, should still fall within the scope of the technical content disclosed herein. Furthermore, the positional limitations used in this specification are merely for clarity of description and are not intended to limit the scope of the invention. Changes or adjustments to their relative relationships, without substantially altering the technical content, should also be considered within the scope of the invention's implementation.
[0028] It should also be understood that the term “and / or” as used herein includes any and all combinations of one or more of the related listed items. Furthermore, it should be understood that when a component or unit is referred to as “connected” or “coupled” to another component or unit, it may be directly connected or coupled to the other component or unit, or there may be intermediate components or units. In addition, other words used to describe the relationship between components or units should be understood in the same manner (e.g., “between” versus “directly between,” “adjacent” versus “directly adjacent,” etc.).
[0029] Figure 1 This is a flowchart illustrating a soil sample information anti-counterfeiting and traceability method according to a specific embodiment of the present invention. As shown in the figure, the specific embodiment of the present invention includes a soil sample information anti-counterfeiting and traceability method, which includes the following steps: A. In the process of anti-counterfeiting of soil sample information, obtain the QR code information on the soil sample packaging, perform dynamic transcoding, and generate a new QR code on the soil sample packaging based on the dynamic transcoding information; obtain the geolocation signal, record the transcoding location information of the soil sample, and collect the image signal of the soil sample. B. The soil sample information, consisting of the QR code information before and after dynamic transcoding, the soil sample transcoding location information, and the soil sample image signal, is uploaded to the blockchain. C. During the soil sample information traceability process, obtain the QR code information on the soil sample packaging, retrieve the soil sample information from the blockchain based on the QR code information, verify the soil sample information, check the sample image signal, and provide feedback on the query and traceability results.
[0030] In addition, in the soil sample information anti-counterfeiting and traceability method of the specific embodiments of the present invention, obtaining the QR code information on the soil sample packaging and performing dynamic transcoding includes: The sample number information in the QR code is amplified to generate dynamic transcoding information, which is used to generate unique dynamic transcoding information for the anti-counterfeiting process of soil samples.
[0031] Furthermore, in the soil sample information anti-counterfeiting and traceability method of this invention, uploading soil sample information composed of the QR code information before and after dynamic transcoding, soil sample transcoding location information, and soil sample image signal to the blockchain includes: B1. To verify the authenticity and legitimacy of the information uploader's identity, the server obtains the information uploader's digital certificate; B2. The user terminal of the information uploader uses a symmetric encryption method to encrypt and sign the soil sample information; B3. The server decrypts the encrypted soil sample information to verify data integrity; B4. After verifying the identity of the information uploader and the integrity of the data, the server packages the encrypted soil sample information into a soil sample information block. B5. Broadcast the soil sample information block to all consensus nodes across the network.
[0032] In addition, in the soil sample information anti-counterfeiting and traceability method of the specific embodiments of the present invention, the soil sample information is encrypted and signed using a symmetric encryption method, which includes: using an advanced encryption standard encryption method, through four processes in the round transformation and the subkeys generated in each round transformation.
[0033] Figure 2 This is a schematic diagram illustrating the specific process of a soil sample information anti-counterfeiting and traceability method according to a specific embodiment of the present invention. Figure 2 As shown, the encryption method described in this specific embodiment of the invention is the AES (Advanced Encryption Standard) encryption method, which is implemented through four processes in the round transformation: ByteSub transformation, ShiftRow transformation, MixColum transformation, and AddRoundKey transformation, and the subkeys generated in each round transformation. Specifically, the ByteSub transformation is implemented by the encryption S-box mapping (a similar decryption S-box is used for decryption); the ShiftRow transformation is to cyclically shift the i-th row of the matrix to the left; the MixColum transformation is to multiply the polynomial represented by each column of the matrix by a specific function; in the AddRoundKey transformation, the round key is a subkey obtained by key expansion of the original symmetric key. The round key addition is the modulo addition of the state matrix and the round key matrix.
[0034] In addition, in the soil sample information anti-counterfeiting and traceability method, if the soil sample information has undergone multiple anti-counterfeiting processes beforehand, the QR code information on the soil sample packaging for each anti-counterfeiting process is used to trace back to the QR code information on the soil sample packaging of the previous anti-counterfeiting process, and the soil sample information of each anti-counterfeiting process is obtained and compared.
[0035] Corresponding to the soil sample information anti-counterfeiting and traceability method of the specific embodiments of the present invention, the specific embodiments of the present invention also include a soil sample information anti-counterfeiting and traceability device, comprising a soil sample information anti-counterfeiting device and a soil sample information traceability device, wherein the soil sample information anti-counterfeiting device is used for: In the process of anti-counterfeiting of soil sample information, the QR code information on the soil sample packaging is obtained, dynamically converted, and a new QR code is generated based on the dynamic conversion information; the specific geographical location signal is obtained, the soil sample conversion location information is recorded, and the soil sample image signal is collected; and the QR code information before and after dynamic conversion, the soil sample conversion location information, and the soil sample image signal are combined to form the soil sample information and uploaded to the blockchain. The soil sample information traceability device is used to obtain the QR code information on the soil sample packaging, retrieve the soil sample information from the blockchain, verify the soil sample information, check the sample image signal, and provide feedback on the query and traceability results during the soil sample information traceability process.
[0036] In addition, in the soil sample information anti-counterfeiting and traceability device of the specific embodiment of the present invention, the soil sample information anti-counterfeiting device includes a dynamic transcoding unit and a QR code generation unit. The dynamic transcoding unit is used to encode the sample number information in the QR code information on the soil sample to generate dynamic transcoding information, which generates unique dynamic transcoding information for the anti-counterfeiting process of the soil sample. The QR code generation unit is used to generate a new QR code for the soil sample packaging using the dynamic transcoding information.
[0037] Furthermore, in the soil sample information anti-counterfeiting traceability device of the specific embodiment of the present invention, the soil sample information anti-counterfeiting device includes a user terminal located at the information uploader and a server located remotely, wherein, To verify the authenticity and legitimacy of the information uploader's identity, the server obtains the information uploader's digital certificate. The user client of the information uploader uses a symmetric encryption method to encrypt the uploaded soil sample information and generates a signature; The server calculates the encrypted information and compares the decrypted data with the original data to verify data integrity. After verifying the identity and data integrity of the user who uploaded the information, the server packages the encrypted soil sample information into a soil sample information block; the server is also used to broadcast the soil sample information block to all consensus nodes on the network.
[0038] More specifically, the user terminal located at the information uploader may include an image acquisition module, a positioning module, an identity verification module, a barcode scanning module, a printing module, and a blockchain module. Specifically: the image acquisition module is equipped with an image sensor to acquire images of the soil sample; the positioning module, connected to the image acquisition module, receives BeiDou satellite positioning signals and records the real-time location information of the soil sample after transcoding; the identity verification module verifies the identity and authorization information of the personnel transporting the soil sample; the barcode scanning module scans the QR code on the soil sample packaging; the QR code scanning window is rectangular for accurate scanning; the printing module prints a new QR code identifier after successful transcoding, which can then be re-attached to the soil sample packaging; and the blockchain module uploads the soil sample information (including the QR code information before and after transcoding, the soil sample location information, and the acquired soil sample image) to the blockchain.
[0039] In addition, in the soil sample information anti-counterfeiting and traceability device of the specific embodiment of the present invention, the soil sample information anti-counterfeiting device includes an encryption unit. The encryption unit is used to encrypt the soil sample information by using an advanced encryption standard encryption method, through four processes in the round transformation and the subkeys generated in each round transformation.
[0040] Therefore, the specific embodiments of the present invention include a method for anti-counterfeiting and traceability of soil sample information, which is mainly used for anti-counterfeiting and traceability of soil sample information during soil surveys.
[0041] 1. The QR code information, including soil sample number information, is dynamically transcoded to separate soil field survey information from indoor testing information. Therefore, not all information can be queried through a single code, which plays an information shielding role, effectively avoids risks, and thus improves the quality of soil samples.
[0042] 2. The anti-counterfeiting and traceability method and device for soil sample information utilizes BeiDou positioning technology to record the transcoding location information of soil samples in real time, thereby improving the real-time nature and transparency of transcoding information security.
[0043] 3. The method and device for anti-counterfeiting and traceability of soil sample information utilizes blockchain technology to achieve anti-counterfeiting and traceability of soil sample information, which can ensure the security of sample information and prevent counterfeiting.
[0044] 4. Utilize the AES encryption algorithm to encrypt and upload soil sample information to the blockchain, thereby improving the security and confidentiality of the information.
[0045] The technical effects of the specific embodiments of the present invention include the following.
[0046] This invention proposes a soil sample information anti-counterfeiting and traceability method, which enables the secure transfer and anti-counterfeiting traceability of soil sample information during the soil sample circulation process. Specifically, it involves transcoding sample number information, acquiring location information, and encrypting and uploading sample images to the blockchain. Sample recipients can verify the authenticity of the soil sample by scanning the anti-counterfeiting QR code. This invention generates a traceable QR code for each soil sample and each process step, ensuring the uniqueness of information for each soil sample and circulation process. This effectively prevents counterfeiting, and the forward and backward traceability function allows for sequential tracking of the soil sample circulation process and effective traceability of the original information of the soil sample, improving soil sample quality, ensuring the authenticity, accuracy, and scientific validity of sample data, and mitigating the risk of sample counterfeiting.
[0047] The foregoing description illustrates and describes several preferred embodiments of the present invention. The embodiments described are merely typical examples of the technical process of the present invention under current technical conditions. Without departing from the technical principles, steps, functions, applications, and implementation framework of the present invention, there is considerable room for optimization and improvement. These improvements and optimizations are also considered within the scope of protection of this patent. Therefore, as mentioned above, it should be understood that the present invention is not limited to the forms disclosed in this specification and should not be considered as excluding other embodiments. It can be used in various other combinations, modifications, and environments, and can be modified within the scope of the inventive concept described in this specification through the above teachings or related technologies or knowledge. Modifications and changes made by those skilled in the art that do not depart from the spirit and scope of the present invention should be within the protection scope of the appended claims.
Claims
1. A method for anti-counterfeiting and traceability of soil sample information, characterized in that, The method includes the following steps: A. In the process of anti-counterfeiting of soil sample information, obtain the QR code information on the soil sample packaging, perform dynamic transcoding, generate a new QR code on the soil sample packaging based on the dynamic transcoding information, update the QR code on the soil sample packaging; obtain the geolocation signal, record the transcoding location information of the soil sample, and collect the image signal of the soil sample. B. The soil sample information, consisting of the QR code information before and after dynamic transcoding, the soil sample transcoding location information, and the soil sample image signal, is uploaded to the blockchain. C. During the soil sample information traceability process, obtain the QR code information on the soil sample packaging, retrieve the soil sample information from the blockchain based on the QR code information, verify the soil sample information, check the sample image signal, and provide feedback on the query and traceability results; This includes obtaining the QR code information from the soil sample packaging and dynamically transcoding it. The sample number information in the QR code is amplified to generate dynamic transcoding information, which is used to generate unique dynamic transcoding information for the anti-counterfeiting process of soil samples.
2. The soil sample information anti-counterfeiting and traceability method according to claim 1, characterized in that, Uploading soil sample information, composed of the QR code information before and after dynamic transcoding, soil sample transcoding location information, and soil sample image signal, to the blockchain includes: B1. To verify the authenticity and legitimacy of the information uploader's identity, the server obtains the information uploader's digital certificate; B2. The user terminal of the information uploader uses a symmetric encryption method to encrypt and sign the soil sample information; B3. The server decrypts the encrypted soil sample information to verify data integrity; B4. After verifying the identity of the information uploader and the integrity of the data, the server packages the encrypted soil sample information into a soil sample information block. B5. Broadcast the soil sample information block to all consensus nodes across the network.
3. The method for anti-counterfeiting and traceability of soil sample information according to claim 2, characterized in that, The method of encrypting and signing soil sample information using symmetric encryption includes: using advanced encryption standards to encrypt the information through four processes in the round transformation and the subkeys generated in each round transformation.
4. The method for anti-counterfeiting and traceability of soil sample information according to claim 1, characterized in that, In the process of tracing soil sample information, if the soil sample information has undergone multiple anti-counterfeiting processes, the QR code information on the packaging of the soil sample in each anti-counterfeiting process is used to trace back to the QR code information on the packaging of the soil sample in the previous anti-counterfeiting process, and the soil sample information of each anti-counterfeiting process is obtained and compared.
5. A soil sample information anti-counterfeiting and traceability device, comprising a soil sample information anti-counterfeiting device and a soil sample information traceability device, characterized in that, The anti-counterfeiting device for soil sample information is used for: In the process of anti-counterfeiting of soil sample information, the QR code information on the soil sample packaging is obtained, dynamically converted, and a new QR code is generated based on the dynamic conversion information to update the QR code on the soil sample packaging; the specific geographical location signal is obtained, the soil sample conversion location information is recorded, and the soil sample image signal is collected; and the QR code information before and after dynamic conversion, the soil sample conversion location information, and the soil sample image signal are combined to form the soil sample information and uploaded to the blockchain. The soil sample information traceability device is used to acquire QR code information on soil sample packaging, retrieve soil sample information from the blockchain, verify soil sample information, check sample image signals, and provide feedback on query and traceability results during the soil sample information traceability process. The soil sample information anti-counterfeiting device includes a dynamic transcoding unit and a QR code generation unit. The dynamic transcoding unit is used to encode the sample number information in the QR code information on the soil sample to generate dynamic transcoding information, which generates unique dynamic transcoding information for the anti-counterfeiting process of the soil sample. The QR code generation unit is used to generate a new QR code for the soil sample packaging using the dynamic transcoding information.
6. The soil sample information anti-counterfeiting traceability device according to claim 5, characterized in that, The anti-counterfeiting device for soil sample information includes a user terminal located at the information uploader and a remote server, wherein... To verify the authenticity and legitimacy of the information uploader's identity, the server obtains the information uploader's digital certificate. The user client of the information uploader uses a symmetric encryption method to encrypt the uploaded soil sample information and generates a signature; The server calculates the encrypted information and compares the decrypted data with the original data to verify data integrity. After verifying the identity and data integrity of the user who uploaded the information, the server packages the encrypted soil sample information into a soil sample information block; the server is also used to broadcast the soil sample information block to all consensus nodes on the network.
7. The soil sample information anti-counterfeiting traceability device according to claim 5, characterized in that, The anti-counterfeiting device for soil sample information includes an encryption unit. The encryption unit uses advanced encryption standard encryption methods to encrypt the soil sample information through four processes in the round transformation and the subkeys generated in each round transformation.