Identity tracing management method and system for gastrodia elata spaceflight cultivation
The identity traceability management system built through blockchain technology solves the problems of multimodal data management and sensitive data security in Tianma aerospace cultivation, realizes data security and consistency management, and supports users' traceability query.
Patent Information
- Application Number
- CN202510464066.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-14
- Publication Date
- 2025-07-08
AI Technical Summary
The existing technology is difficult to effectively manage multimodal data in the cultivation of Tianma aerospace to ensure the security and data consistency of sensitive data, especially in the dynamic identification and cross-link coordination of data in the aerospace environment.
Blockchain technology is used to build an identity traceability management system, and through data classification, encryption processing and smart contracts, it realizes sensitivity identification and encryption upload of Gastrodia elata cultivation data, and combines the traceability interface to conduct data query to ensure data security and consistency.
The safe management and traceability of Gastrodia elata cultivation data is realized, which facilitates users to find non-sensitive data, prevents sensitive data leakage, and improves the adaptability and cross-link collaboration capabilities of data in aerospace environment.
Smart Images

Figure CN120277694A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Gastrodia elata cultivation traceability, and particularly to an identity traceability management method and system for the space cultivation of Gastrodia elata. Background Art
[0002] With the rapid development of space agriculture technology, the space breeding and space environment cultivation of medicinal plants such as Gastrodia elata have become research hotspots. Special conditions such as microgravity and cosmic radiation in space may significantly affect the gene expression of Gastrodia elata and the accumulation of active ingredients (such as gastrodin), but at the same time, it also brings challenges in variety traceability and quality control.
[0003] Traditional agricultural traceability systems mainly rely on manual records and barcode / RFID technologies, which are difficult to meet the complex requirements in the space cultivation scenario: 1. Complex data dimensions: It is necessary to integrate multi-source data (space environment parameters, gene sequencing, cultivation operation logs, etc.); 2. Security and privacy risks: Space breeding involves patented gene data and confidential environment parameters, and it is necessary to prevent tampering and leakage; 3. Cross-link cooperation: It involves multi-party cooperation among space capsules, ground laboratories, and the supply chain, and it is necessary to ensure data consistency and credibility.
[0004] Although existing technologies (such as blockchain and the Internet of Things) can partially solve the above problems, there are still deficiencies in the dynamic recognition of sensitive data, space environment adaptability, and multi-modal data management. Therefore, there is an urgent need to build an intelligent identity traceability management method for the space cultivation of Gastrodia elata to achieve full-chain credible traceability from "space experiment → ground propagation → market circulation". Summary of the Invention
[0005] The purpose of the present invention is to provide an identity traceability management method and system for the space cultivation of Gastrodia elata, and solve the problems that existing technologies still have deficiencies in the dynamic recognition of sensitive data, space environment adaptability, and multi-modal data management.
[0006] To achieve the above invention purpose, the technical solutions adopted by the present invention are as follows: In a first aspect, the present invention provides an identity traceability management method for the space cultivation of Gastrodia elata, and the method includes: Obtain the cultivation data of each cultivation link of Gastrodia elata; Construct an identification label for Gastrodia elata, and associate the identification label with the cultivation data; Perform sensitivity identification on the cultivation data to obtain sensitive cultivation data and non-sensitive cultivation data; Perform encryption processing on the sensitive cultivation data to obtain the encrypted cultivation data; The smart contract of the blockchain nodes deployed based on each cultivation link of Gastrodia elata uploads the identification label of Gastrodia elata, the non-sensitive cultivation data corresponding to each cultivation link, and the encrypted cultivation data to the blockchain network; a traceability interface is deployed on the blockchain network, and the traceability interface is used to respond to the user's query request and return the cultivation data required by the user.
[0007] Preferably, before performing sensitivity identification on the cultivation data, the method further includes: preprocessing the cultivation data to obtain preprocessed cultivation data, and performing sensitivity identification on the preprocessed cultivation data; wherein, the preprocessing at least includes: formatting processing, standardization processing, and classification processing.
[0008] Preferably, the types of the cultivation data include: text type and image type; performing sensitivity identification on the cultivation data to obtain sensitive cultivation data and non-sensitive cultivation data, including: Based on the type of the cultivation data, matching a pre-constructed sensitive identification model, the sensitive identification model includes: a text sensitive data identification model and an image sensitive data identification model; Inputting the cultivation data into the sensitive identification model for prediction to obtain sensitive cultivation data; Based on the sensitive cultivation data, screening out non-sensitive cultivation data from the cultivation data.
[0009] Preferably, performing encryption processing on the sensitive cultivation data to obtain encrypted cultivation data, including: Generating a public key and a private key based on a preset encryption algorithm; Performing an encryption operation on the sensitive cultivation data based on the public key to obtain a sensitive ciphertext; Performing a fusion operation on the sensitive ciphertext and the public key based on the preset encryption algorithm to obtain a fusion ciphertext, and using the fusion ciphertext as the encrypted cultivation data; and uploading the fusion ciphertext and the public key to the blockchain network.
[0010] Preferably, the method further includes: Obtaining the user's query request and determining whether the query request is a privacy query; If not, calling the traceability interface based on the query request to query the nodes of the blockchain network to obtain non-sensitive cultivation data.
[0011] Preferably, the method further includes: When the query request is a privacy query, encrypting the query request based on the public key to obtain a query ciphertext; Uploading the query ciphertext to the blockchain network, and the blockchain network performs a query based on the query ciphertext to obtain a fusion ciphertext matching the query ciphertext; Obtain the fusion ciphertext that matches the query ciphertext, and decrypt the fusion ciphertext that matches the query ciphertext based on the private key to obtain sensitive cultivation data.
[0012] Preferably, the blockchain network queries based on the query ciphertext to obtain the fusion ciphertext that matches the query ciphertext, including: The blockchain network traverses the fusion ciphertext on all nodes of the block network according to the query ciphertext to obtain a query result, and the query result is the node number that matches the query ciphertext; The blockchain network encrypts the query result based on the public key to obtain a query encryption result, sends the query encryption result to the user, the user decrypts the query encryption result based on the private key to obtain a decryption result, and then uploads the decryption result to the blockchain network; The blockchain network looks up the corresponding fusion ciphertext based on the decryption result to obtain the fusion ciphertext that matches the query ciphertext.
[0013] In a second aspect, the present invention provides an identity traceability management system for Gastrodia elata space cultivation, which is used to implement the above-mentioned identity traceability management method for Gastrodia elata space cultivation. The system includes: A data acquisition module, which is used to acquire the cultivation data of each cultivation link of Gastrodia elata; A label construction module, which is used to construct an identification label for Gastrodia elata and associate the identification label with the cultivation data; A data classification module, which is used to perform sensitivity identification on the cultivation data to obtain sensitive cultivation data and non-sensitive cultivation data; A data encryption module, which is used to encrypt the sensitive cultivation data to obtain encrypted cultivation data; A data uploading module, which is used to upload the identification label of Gastrodia elata, the corresponding non-sensitive cultivation data and the encrypted cultivation data of each cultivation link to the blockchain network based on the smart contract of the blockchain nodes deployed in each cultivation link of Gastrodia elata; a traceability interface is deployed on the blockchain network, and the traceability interface is used to respond to the user's query request and return the cultivation data required by the user.
[0014] In a third aspect, the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the above-mentioned identity traceability management method for Gastrodia elata space cultivation.
[0015] In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, it implements the above-mentioned identity traceability management method for Gastrodia elata space cultivation.
[0016] The beneficial effects of the present invention are mainly reflected in: 1. The present invention classifies the cultivation data to obtain sensitive cultivation data and non-sensitive cultivation data, facilitating the management of the cultivation data. 2. The present invention encrypts the sensitive cultivation data and uploads it to the blockchain network after encryption, which can effectively improve the security of privacy data and avoid leakage. At the same time, the sensitive cultivation data is directly stored on the blockchain network, and users can directly access the blockchain network to search for non-sensitive cultivation data, facilitating users to trace the non-sensitive cultivation data. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention, and constitute a part of the specification. They are used together with the following specific embodiments to explain the embodiments of the present invention, but do not constitute a limitation to the embodiments of the present invention. In the accompanying drawings: Figure 1 is a flowchart of an identity traceability management method for Gastrodia elata space cultivation provided by an embodiment of the present invention; Figure 2 is a block diagram of an identity traceability management system for Gastrodia elata space cultivation provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the present invention in combination with the accompanying drawings and the description of the embodiments or the prior art. Obviously, the following description of the structure of the accompanying drawings is only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can be obtained based on these drawings. It should be noted here that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation to the present invention. Embodiment 1
[0019] Figure 1 is a flowchart of an identity traceability management method for Gastrodia elata space cultivation provided by an embodiment of the present invention. As Figure 1 shown, this embodiment provides an identity traceability management method for Gastrodia elata space cultivation, and the method includes: Step S10: Obtain the cultivation data of each cultivation link of Gastrodia elata.
[0020] In this embodiment, the cultivation links include but are not limited to: sowing stage, cultivation stage, harvesting stage, and processing stage, etc.; the cultivation data in each cultivation link includes but is not limited to: environmental data such as temperature, humidity, CO2 concentration, and light intensity, the time, personnel, and materials used for operations such as sowing, fertilizing, and pest control, growth conditions, and processing data after harvesting, etc.
[0021] Among them, environmental data such as temperature, humidity, CO2 concentration, and light intensity can be collected by installing the Internet of Things (IoT) in the aviation cultivation cabin, and the growth status can be collected through a camera.
[0022] Among them, the processing stage is mainly used to record the process parameters (such as temperature, time) of processing links such as cleaning, drying, and slicing to ensure compliance with quality standards.
[0023] Step S20: Construct an identification label for Gastrodia elata and associate the identification label with the cultivation data.
[0024] In this embodiment, identifiers such as two-dimensional codes and RFID tags can be used to associate Gastrodia elata products of the same batch, and a traceable label (including production date, shelf life, and quality inspection report) can be printed.
[0025] Step S30: Perform sensitivity identification on the cultivation data to obtain sensitive cultivation data and non-sensitive cultivation data.
[0026] In this embodiment, before performing sensitivity identification on the cultivation data, the method further includes: preprocessing the cultivation data to obtain preprocessed cultivation data, and performing sensitivity identification on the preprocessed cultivation data; wherein, the preprocessing at least includes: formatting processing, standardization processing, and classification processing.
[0027] In this embodiment, the cultivation data also contains sensitive data such as employee ID, operation records, logistics paths, supplier prices, and gene data. These data need to ensure their security and avoid leakage. Therefore, it is necessary to identify and classify the sensitive data in the cultivation data; and there are various types of cultivation data, covering text (operation logs), structured data (sensor values), gene sequences (FASTA files), images (scanned quality inspection reports), etc. Different identification methods need to be used for different types of data.
[0028] Specifically, performing sensitivity identification on the cultivation data to obtain sensitive cultivation data and non-sensitive cultivation data includes: Step S301: Based on the type of cultivation data, match a pre-constructed sensitive identification model. The sensitive identification model includes: a text sensitive data identification model and an image sensitive data identification model. Among them, the text sensitive data identification model can adopt a random forest, an XGBoost model, a BERT model, etc., and the image sensitive data identification model can adopt a YOLO model and a ResNet, etc.
[0029] Step S302: Input the cultivation data into the sensitive identification model for prediction to obtain sensitive cultivation data.
[0030] Step S303: Based on the sensitive cultivation data, filter out the non-sensitive cultivation data from the cultivation data.
[0031] The present invention classifies the cultivation data to obtain sensitive cultivation data and non-sensitive cultivation data, which is convenient for the management of the cultivation data.
[0032] Step S40: Encrypt the sensitive cultivation data to obtain the encrypted cultivation data.
[0033] In this embodiment, in order to prevent the leakage of sensitive cultivation data, it is necessary to encrypt the sensitive cultivation data to improve the security of the sensitive cultivation data.
[0034] Specifically, encrypting the sensitive cultivation data to obtain the encrypted cultivation data includes: Step S401: Generate a public key and a private key based on a preset encryption algorithm; wherein, the preset encryption algorithm is a homomorphic encryption algorithm.
[0035] Step S402: Perform an encryption operation on the sensitive cultivation data based on the public key to obtain a sensitive ciphertext; Step S403: Perform a fusion operation on the sensitive ciphertext and the public key based on the preset encryption algorithm to obtain a fusion ciphertext, and use the fusion ciphertext as the encrypted cultivation data; and upload the fusion ciphertext and the public key to the blockchain network; wherein, the fusion operation is a homomorphic operation of the homomorphic encryption algorithm.
[0036] In this embodiment, each node of the blockchain network is a computer or a server, and only the public key of the homomorphic encryption algorithm is stored on the blockchain network. Therefore, the real information of the sensitive cultivation data cannot be obtained on the node side of the blockchain; therefore, the present invention can prevent the illegal theft and leakage of the sensitive cultivation data on the blockchain network by an administrator with high-level permissions. And if an external attacker enters the server inside each node through some illegal means to steal data, the data obtained will also be in ciphertext state, and the decryption private key is only stored locally on the user side. Therefore, the present invention can effectively prevent the illegal theft of data by external attackers and has high security.
[0037] Step S50: Based on the smart contract of the blockchain nodes deployed in each cultivation link of Gastrodia elata, upload the identification label of Gastrodia elata, the corresponding non-sensitive cultivation data and the encrypted cultivation data of each cultivation link to the blockchain network; a traceability interface is deployed on the blockchain network, and the traceability interface is used to respond to the user's query request and return the cultivation data required by the user.
[0038] As a further optimization of this embodiment, the method further includes: Step a10: Obtain the user's query request and determine whether the query request is a privacy query; Step a20: If not, call the traceability interface based on the query request to query the nodes of the blockchain network and obtain non-sensitive cultivation data.
[0039] In this embodiment, the user can directly access the blockchain network to search for non-sensitive cultivation data, which is convenient for the user to trace the non-sensitive cultivation data.
[0040] As a further optimization of this embodiment, the method further includes: Step b10: When the query request is a privacy query, encrypt the query request based on the public key to obtain a query ciphertext; the user can encrypt the query request with their own public key locally to obtain a query ciphertext.
[0041] Step b20: Upload the query ciphertext to the blockchain network, and the blockchain network queries based on the query ciphertext to obtain a fusion ciphertext that matches the query ciphertext.
[0042] Step b20: Obtain the fusion ciphertext that matches the query ciphertext, and decrypt the fusion ciphertext that matches the query ciphertext based on the private key to obtain sensitive cultivation data.
[0043] In this embodiment, the query request includes a query term and query conditions. The query conditions can be comparison operators, logical operators, range conditions, null value checks, etc. The query term is a word similar to the sensitive cultivation data; at this time, the query term may also contain sensitive vocabulary, so during the query process, it is easy to cause the leakage of privacy data due to the leakage of query information. Therefore, to solve this technical problem, this embodiment encrypts the query request to further prevent privacy leakage and improve the security of the query.
[0044] For the specific steps of the blockchain network in step b20 querying based on the query ciphertext are as follows: Step b201: The blockchain network traverses the fusion ciphertexts on all nodes of the block network according to the query ciphertext to obtain a query result, and the query result is the node number that matches the query ciphertext.
[0045] Step b202: The blockchain network encrypts the query result based on the public key to obtain a query encryption result, sends the query encryption result to the user, the user decrypts the query encryption result based on the private key to obtain a decryption result, and then uploads the decryption result to the blockchain network.
[0046] Step b203: The blockchain network searches for the corresponding fusion ciphertext based on the decryption result to obtain the fusion ciphertext that matches the query ciphertext.
[0047] Among them, the specific steps for the blockchain network to search for the corresponding fusion ciphertext based on the decryption result are as follows: The blockchain network performs a modulo operation on its own node number and the decryption result to obtain the operation result. That is, after the server on the node of the blockchain network receives the decryption result, it selects a prime number. Q , for the i-th node number, establish the following calculation expression: (1); In the formula, For the i Node number m Power, m =1,2,…,2M-1, SM i For the i The operation result corresponding to the node number, mod is the modular operation.
[0048] The operation result is encrypted based on the public key to obtain the module ciphertext, and the module ciphertext and the query result are homomorphically calculated to obtain a homomorphic data set, which is then sent to the user; Among them, the modulus ciphertext , homomorphic dataset P M The calculation expression is: (2).
[0049] In the formula, To query the results, I is the total number of fused ciphertexts, and i is the i-th fused ciphertext.
[0050] The user decrypts the homomorphic dataset based on the private key and obtains the dataset in a civilized state; p M The calculation expression is: p M = D ( P M ),in, D () is the homomorphic decryption function.
[0051] The user constructs the node number solution equation based on the data set and decryption results in the civilization state. The process of constructing the node number solution equation is as follows: First establish the following system of equations: (3); Solving formula (5), we can get the coefficient set a j , j =0,1,…,M-1.
[0052] Then according to the coefficient seta j Establish a polynomial: (4).
[0053] Use formula (4) as the final node number to solve the equation. The equation for solving the node number has M roots, and the M roots are the node numbers that meet the query conditions.
[0054] The user solves the equation for the node number. The roots of the equation for the node number are the node numbers that meet the query conditions. The node numbers that meet the query conditions are sent to the blockchain network. The blockchain network filters out the fusion ciphertexts corresponding to the node numbers that meet the query conditions, and uses the fusion ciphertexts filtered out by the blockchain network corresponding to the node numbers that meet the query conditions as the fusion ciphertexts that match the query ciphertext.
[0055] The user traverses all node numbers. If the node number satisfies formula (6), then the node number is the node number that meets the query conditions. The user solves all node numbers that meet the query conditions, uploads these node numbers to the blockchain network, and the server returns the fusion ciphertexts corresponding to these node numbers, and then sends these fusion ciphertexts as the fusion ciphertexts that match the query ciphertext to the user.
[0056] For the query operation of the fusion ciphertext on the blockchain network in this embodiment, the query term is encrypted. Due to the influence of random numbers during encryption, the same data will get different ciphertext results after encryption, so that it is impossible to directly distinguish whether two data are the same in the ciphertext state, thereby avoiding security risks such as frequency analysis, data uniqueness leakage, and replay attacks.
[0057] The query steps in this embodiment can complete the ciphertext query with fewer ciphertext operation times. Moreover, the retrieval scheme of the modulo operation in formula (1) limits the data within a certain range, avoiding large integer and large floating-point operations caused by the increase in multiplication depth, further improving the correct rate of ciphertext operations, reducing the operation overhead at the same time, and having high query performance.
[0058] The present invention classifies the cultivation data to obtain sensitive cultivation data and non-sensitive cultivation data, which is convenient for the management of cultivation data; and encrypts the sensitive cultivation data, and then uploads it to the blockchain network after encryption, which can effectively improve the security of privacy data and avoid leakage; at the same time, the sensitive cultivation data is directly stored on the blockchain network, and the user can directly access the blockchain network to search for non-sensitive cultivation data, which is convenient for the user to trace the non-sensitive cultivation data. Embodiment 2
[0059] Figure 2 is a communication system based on Beidou short message provided by an embodiment of the present invention. AsFigure 2 As shown in the figure, this embodiment provides a communication system based on Beidou short messages. The system is used to implement the identity traceability management method for the space cultivation of Gastrodia elata in the first embodiment. The system includes: A data acquisition module, which is used to acquire the cultivation data of each cultivation link of Gastrodia elata; A label construction module, which is used to construct the identification label of Gastrodia elata and associate the identification label with the cultivation data; A data classification module, which is used to perform sensitivity identification on the cultivation data to obtain sensitive cultivation data and non-sensitive cultivation data; A data encryption module, which is used to encrypt the sensitive cultivation data to obtain the encrypted cultivation data; A data uploading module, which is used to upload the identification label of Gastrodia elata, the corresponding non-sensitive cultivation data and the encrypted cultivation data of each cultivation link to the blockchain network based on the smart contract of the blockchain nodes deployed in each cultivation link of Gastrodia elata; a traceability interface is deployed on the blockchain network, and the traceability interface is used to respond to the user's query request and return the cultivation data required by the user.
[0060] This embodiment also provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the above-mentioned identity traceability management method for the space cultivation of Gastrodia elata.
[0061] This embodiment also provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, it implements the above-mentioned identity traceability management method for the space cultivation of Gastrodia elata.
[0062] By classifying the cultivation data in the present invention, sensitive cultivation data and non-sensitive cultivation data are obtained, which is convenient for the management of cultivation data; and the sensitive cultivation data is encrypted, and then uploaded to the blockchain network after encryption, which can effectively improve the security of privacy data and avoid leakage; at the same time, the sensitive cultivation data is directly stored on the blockchain network, and users can directly access the blockchain network to search for non-sensitive cultivation data, which is convenient for users to trace the non-sensitive cultivation data.
[0063] Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0064] This application is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to embodiments of the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram, as well as the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing device generate a system for implementing the functions specified in one flow Figure 1 one flow or multiple flows and / or blocks Figure 1 or a system for implementing the functions specified in multiple blocks.
[0065] The above are only embodiments of the present application and are not used to limit the present application. For those skilled in the art, the present application can have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the scope of the claims of the present application.
Claims
1. A method for identity traceability management of Gastrodia elata aerospace cultivation, characterized in that, The method includes: Obtaining the cultivation data of each cultivation link of Gastrodia elata; Constructing an identification label for Gastrodia elata and associating the identification label with the cultivation data; Performing sensitivity identification on the cultivation data to obtain sensitive cultivation data and non-sensitive cultivation data; Performing encryption processing on the sensitive cultivation data to obtain encrypted cultivation data; Based on the smart contract of the blockchain nodes deployed in each cultivation link of Gastrodia elata, uploading the identification label of Gastrodia elata, the corresponding non-sensitive cultivation data and the encrypted cultivation data of each cultivation link to the blockchain network; a traceability interface is deployed on the blockchain network, and the traceability interface is used to respond to the user's query request and return the cultivation data required by the user.
2. The identity traceability management method for the space cultivation of Gastrodia elata as claimed in claim 1, wherein, Before performing sensitivity identification on the cultivation data, the method further includes: preprocessing the cultivation data to obtain preprocessed cultivation data, and performing sensitivity identification on the preprocessed cultivation data; wherein, the preprocessing at least includes: formatting processing, standardization processing and classification processing.
3. The identity traceability management method for space cultivation of Gastrodia elata according to claim 1, characterized in that, The types of the cultivation data include: text type and image type; performing sensitivity identification on the cultivation data to obtain sensitive cultivation data and non-sensitive cultivation data, including: Based on the type of the cultivation data, matching a pre-constructed sensitive identification model, the sensitive identification model includes: a text sensitive data identification model and an image sensitive data identification model; Inputting the cultivation data into the sensitive identification model for prediction to obtain sensitive cultivation data; Based on the sensitive cultivation data, screening out non-sensitive cultivation data from the cultivation data.
4. The identity traceability management method for space cultivation of Gastrodia elata according to claim 1, characterized in that, Performing encryption processing on the sensitive cultivation data to obtain encrypted cultivation data, including: Generating a public key and a private key based on a preset encryption algorithm; Performing an encryption operation on the sensitive cultivation data based on the public key to obtain a sensitive ciphertext; Performing a fusion operation on the sensitive ciphertext and the public key based on the preset encryption algorithm to obtain a fusion ciphertext, and using the fusion ciphertext as the encrypted cultivation data; and uploading the fusion ciphertext and the public key to the blockchain network.
5. The identity traceability management method for space cultivation of Gastrodia elata Blume according to claim 4, characterized in that, The method further includes: Obtaining the user's query request and determining whether the query request is a privacy query; If not, calling the traceability interface based on the query request to query the nodes of the blockchain network to obtain non-sensitive cultivation data.
6. The identity traceability management method for space cultivation of Gastrodia elata according to claim 5, characterized in that The method further includes: When the query request is a privacy query, encrypting the query request based on the public key to obtain a query ciphertext; Uploading the query ciphertext to the blockchain network, and the blockchain network performs a query based on the query ciphertext to obtain a fusion ciphertext that matches the query ciphertext; Obtaining the fusion ciphertext that matches the query ciphertext, and decrypting the fusion ciphertext that matches the query ciphertext based on the private key to obtain sensitive cultivation data.
7. The identity traceability management method for space breeding of Gastrodia elata Blume according to claim 6, characterized in that, The blockchain network performs a query based on the query ciphertext to obtain a fusion ciphertext that matches the query ciphertext, including: The blockchain network traverses the fusion ciphertexts on all nodes of the block network according to the query ciphertext to obtain a query result, and the query result is the node number that matches the query ciphertext; The blockchain network encrypts the query result based on the public key to obtain a query encryption result, sends the query encryption result to the user, the user decrypts the query encryption result based on the private key to obtain a decryption result, and then uploads the decryption result to the blockchain network; The blockchain network searches for corresponding fused ciphertexts based on the decryption results to obtain the fused ciphertexts that match the query ciphertexts.
8. An identity traceability management system for space breeding of Gastrodia elata, which is used to implement the identity traceability management method for space breeding of Gastrodia elata described in any one of claims 1-7, characterized in that, The system includes: A data acquisition module for acquiring the cultivation data of each cultivation link of Gastrodia elata; A label construction module for constructing an identification label of Gastrodia elata and associating the identification label with the cultivation data; A data classification module for performing sensitivity identification on the cultivation data to obtain sensitive cultivation data and non-sensitive cultivation data; A data encryption module for encrypting the sensitive cultivation data to obtain the encrypted cultivation data; A data uploading module for uploading the identification label of Gastrodia elata, the corresponding non-sensitive cultivation data of each cultivation link, and the encrypted cultivation data to the blockchain network based on the smart contracts of the blockchain nodes deployed in each cultivation link of Gastrodia elata; a traceability interface is deployed on the blockchain network, and the traceability interface is used to respond to the user's query request and return the cultivation data required by the user.
9. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the identity traceability management method for space cultivation of Gastrodia elata according to any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the identity traceability management method for space cultivation of Gastrodia elata according to any one of claims 1-7.
Citation Information
Cited By
Block chain-based corn breeding material electronic tag tracing method and system
CN120952810A