Block chain tracing method for anti-wrinkle essential oil mask production
By using blockchain storage technology to independently manage and securely protect the raw materials, production, and storage information of anti-wrinkle essential oil masks, the problem of incomplete traceability technology in existing systems is solved, and full-process traceability and data security of mask production are achieved.
Patent Information
- Application Number
- CN202610010979.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-06
- Publication Date
- 2026-02-17
AI Technical Summary
Existing product manufacturing traceability technologies lack comprehensive information and have weak data protection, making it impossible for users to accurately trace the origin of products.
In the production of anti-wrinkle essential oil masks, blockchain storage technology is used to independently manage raw materials, production and storage information, record traceability information, and generate data verification codes for security protection.
It enables information traceability throughout the entire mask production process, improving the comprehensiveness and security of traceability and ensuring that the data is not tampered with.
Smart Images

Figure CN121544284A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of product manufacturing traceability technology, specifically a blockchain traceability method for the production of anti-wrinkle essential oil masks. Background Technology
[0002] Product traceability technology refers to a digital management system that collects, records, associates, and verifies data from the entire product lifecycle, from raw material acquisition, production and processing, warehousing and logistics to sales and consumption, enabling forward tracking and reverse tracing of product lifecycle information.
[0003] Existing product traceability technologies typically only trace the information of the product's producer. However, product production involves multiple aspects, and traceability is not limited to producer information alone. Current product traceability technologies are not comprehensive enough in terms of information tracing, and their data protection is weak, making them easily tampered with and resulting in inaccurate traceability data for users. For example, the patent application CN115330407A discloses an "Agricultural Production Traceability Management System," which lacks security protection for agricultural production traceability information, making it highly susceptible to tampering. Existing product traceability technologies also suffer from incomplete integration of traceability information and weak data protection, preventing users from accurately tracing the origins of products. Summary of the Invention
[0004] This invention aims to at least partially solve one of the technical problems in the prior art. By independently storing raw materials from different plantations during the procurement of mask ingredients, and using raw materials from the same plantation for the production of anti-wrinkle essential oil masks, the invention extracts the traceability information of the raw materials. During the production and storage of the anti-wrinkle essential oil masks, production traceability information and storage traceability information are recorded. These raw material traceability information, production traceability information, and storage traceability information are then encapsulated to form traceability plaintext data. Storage nodes are allocated to the traceability plaintext data based on blockchain storage technology. Information security protection is then implemented on the traceability plaintext data based on the allocated storage nodes, and secure traceability data is output. This secure traceability data is then stored through a blockchain storage platform, and a data verification code is generated during storage. Finally, users can use the data verification code to trace the anti-wrinkle essential oil mask. This addresses the problem that existing product traceability technologies lack comprehensive integration of traceability information and have weak protection of traceability data, making it impossible for users to accurately trace the product's origin.
[0005] To achieve the above objectives, this application provides a blockchain traceability method for the production of anti-wrinkle essential oil masks, comprising the following steps:
[0006] When purchasing raw materials for face masks, raw materials from different plantations are stored separately.
[0007] When producing anti-wrinkle essential oil masks, we use mask raw materials from the same plantation to produce anti-wrinkle essential oil masks, and at the same time extract the raw material traceability information of anti-wrinkle essential oil masks.
[0008] During the production and storage of anti-wrinkle essential oil masks, production traceability information and storage traceability information are recorded;
[0009] Based on blockchain storage technology, information security protection is provided for raw material traceability information, production traceability information, and storage traceability information, and safe traceability data is output.
[0010] The data is stored securely on a blockchain storage platform, and a data verification code is returned. Users can use the data verification code to trace the anti-wrinkle essential oil mask.
[0011] Furthermore, when procuring mask raw materials, storing mask raw materials from different plantations separately includes the following sub-steps:
[0012] When procuring raw materials for face masks, different storage spaces are provided for each plantation.
[0013] The purchased mask raw materials are stored in the corresponding storage space in the plantation.
[0014] Furthermore, in the production of anti-wrinkle essential oil masks, using mask raw materials from the same plantation for production, and simultaneously extracting the raw material traceability information for the anti-wrinkle essential oil masks, includes the following sub-steps:
[0015] When producing anti-wrinkle essential oil masks, each anti-wrinkle essential oil mask is produced using only mask raw materials sourced from the same plantation, and the plantation to which the mask raw materials used in the production process belong is named the target plantation.
[0016] Obtaining the name and location of the target industrial park provides the raw material traceability information.
[0017] Furthermore, in the production and storage process of anti-wrinkle essential oil masks, recording production traceability information and storing traceability information includes the following sub-steps:
[0018] The manufacturer and storage provider of the anti-wrinkle essential oil mask are named the manufacturer and storage provider, respectively.
[0019] Obtain the manufacturer's company name and location to obtain production traceability information;
[0020] Obtain the storage manufacturer's warehouse name and location to obtain storage traceability information.
[0021] Furthermore, based on blockchain storage technology, information security protection is provided for raw material traceability information, production traceability information, and stored traceability information, and the output of secure traceability data includes the following sub-steps:
[0022] Raw material traceability information, production traceability information, and storage traceability information are encapsulated to form traceability plaintext data, and storage nodes are allocated for traceability plaintext data based on blockchain storage technology.
[0023] Based on the allocated storage nodes, information security protection is provided for the plaintext data for tracing, and secure tracing data is output.
[0024] Furthermore, the raw material traceability information, production traceability information, and storage traceability information are encapsulated to form traceability plaintext data. Simultaneously, storage nodes are allocated to the traceability plaintext data based on blockchain storage technology, including the following sub-steps:
[0025] The raw material traceability information, production traceability information, and stored traceability information are combined into a single text data in the order of raw material traceability information, production traceability information, and stored traceability information to obtain traceability plaintext data.
[0026] Obtain the number of storage nodes owned by the blockchain storage platform, labeled Q, and number the storage nodes using the symbol S. n Let S be an integer, where n is a non-zero natural number and n is the index of S, and 1 ≤ n ≤ Q;
[0027] Divide the plaintext data into Q text data points, and label them TE from left to right. n .
[0028] Furthermore, the process of protecting the plaintext data for tracing based on the allocated storage nodes and outputting secure tracing data includes the following sub-steps:
[0029] Get TE n The corresponding binary encoding in the UTF-8 encoding format is denoted as BE. n , obtain BE n The number of binary digits in the middle is marked as α. Calculate the factors of α and mark them as N1. Calculate α / N1 and mark the result as N2. Calculate |N1-N2| and mark the result as RN. Get N1 and N2 when RN is minimized and mark them as G1 and G2 respectively.
[0030] Construct a G1×G2 matrix, named the source matrix, and set BE... n The numbers from the 1+G2×(i-1)th digit to the G2×ith digit are entered into the i-th row of the tracing matrix in order from left to right. The number in the j-th column of the i-th row of the tracing matrix is marked as D(i,j), where i and j are both positive integers and (i,j) is the index of D.
[0031] Get BE n Given the index n, extract D(i,j) from the first n rows of the source matrix and integrate them into R. m The m is a non-zero natural number and m is the index of R. m is initially 1. The source matrix contains elements belonging to R. m Remove D(i,j), rotate the source matrix counterclockwise by 90°, increment m by one, and extract D(i,j) from the first n rows of the source matrix again, then integrate them into R. m Repeat this process until all D(i,j) are integrated into R. m Stop at the middle;
[0032] The R m There are a total of n lines D(i,j). Extract the D(i,j) from each line in left-to-right order and form a string of numbers, labeled as H. t Where t is a non-zero natural number and t is the index of H, H t Represents R m The numbers formed by the t-th row D(i,j) in the array;
[0033] H t+1 Placed in H t At the end, it is ultimately R m All H t The combination yields a string of numbers, labeled NU. m NU m+1 Placed in NU m At the end, ultimately by all NU m The combination yields a string of numbers, which is named the reconstructed code;
[0034] Each digit in the reconstructed code is numbered from left to right, using the symbol P. y Let represent , where y is a non-zero natural number and y is the index of P;
[0035] Set the constant β and the number FT. g , where g is a non-zero natural number and g is the index of the FT, and β and g are initially 1;
[0036] Starting with y=1, determine P y+β Is it related to P? y If they are equal, increment β and check again; otherwise, mark β as FT. g Then add FT to y g Meanwhile, increment g by one and reset β to 1, and perform the judgment again until y no longer exists;
[0037] FT g Combining g in ascending order, we finally get BE. nSecurity traceability data, marked as STD n .
[0038] Furthermore, the secure traceability data is stored through a blockchain storage platform, and a data verification code is returned. Users can use the data verification code to trace the anti-wrinkle essential oil mask, which includes the following sub-steps:
[0039] The secure traceability data is stored through a blockchain storage platform, and a data verification code is generated for the secure traceability data during storage.
[0040] Users can trace the origin of anti-wrinkle essential oil masks by checking the data verification code.
[0041] Furthermore, storing secure traceability data through a blockchain storage platform and generating data verification codes for the secure traceability data during storage includes the following sub-steps:
[0042] Calculate the hash value of the plaintext data for tracing its origin, and name it the data verification code. The data verification code is used to retrieve different STDs of the same plaintext data for tracing its origin. n ;
[0043] STD n Stored in a blockchain storage platform except for S n Of all the storage nodes outside.
[0044] Furthermore, the process of tracing the origin of anti-wrinkle essential oil masks by users through data verification codes includes the following sub-steps:
[0045] Users enter the data verification code on the anti-wrinkle essential oil mask packaging into the traceability query platform;
[0046] Query all STDs corresponding to the data verification code n , for STD n Decrypt the data, name the decrypted text data as "Source Query Information," and display the "Source Query Information" to the user.
[0047] The beneficial effects of this invention are as follows: By independently storing mask raw materials from different plantations during procurement, and using raw materials from the same plantation for the production of anti-wrinkle essential oil masks, this invention extracts the traceability information of the raw materials for the anti-wrinkle essential oil masks. Then, during the production and storage of the anti-wrinkle essential oil masks, production traceability information and storage traceability information are recorded. These raw material traceability information, production traceability information, and storage traceability information are then packaged to form traceability plaintext data. The advantage lies in including the suppliers of mask raw materials, the storage providers of the masks, and the manufacturers within the traceability reference scope. Simultaneously tracing the raw materials, production, and storage of the masks ensures traceability of the entire process from the source to sales, improving the comprehensiveness and rationality of mask production traceability.
[0048] This invention allocates storage nodes for traceability plaintext data based on blockchain storage technology. Then, based on these allocated storage nodes, it performs information security protection on the traceability plaintext data and outputs secure traceability data. This secure traceability data is then stored through a blockchain storage platform, generating a data verification code during storage. Finally, users use the data verification code to trace the anti-wrinkle essential oil mask. The advantage lies in combining the storage characteristics of blockchain storage technology to securely protect the traceability plaintext data, resulting in highly secure traceability data. Furthermore, storing this secure traceability data through a blockchain storage platform ensures that the traceability plaintext data will not be leaked or tampered with, thus improving the security and effectiveness of mask production traceability. Attached Figure Description
[0049] Figure 1 This is a flowchart illustrating the steps of the method of the present invention;
[0050] Figure 2 This is a schematic diagram of the traceability matrix of the present invention;
[0051] Figure 3 This is a schematic diagram of the rotated tracing matrix of the present invention;
[0052] Figure 4 This is a schematic diagram of the electronic device of the present invention. Detailed Implementation
[0053] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0054] Example 1, please refer to Figure 1 As shown, this application provides a blockchain traceability method for the production of anti-wrinkle essential oil masks, including the following steps:
[0055] Step S1: When purchasing mask raw materials, mask raw materials from different plantations are stored separately; Step S1 includes the following sub-steps:
[0056] Step S101: When purchasing mask raw materials, equip each plantation with different storage spaces;
[0057] Step S102: Store the purchased mask raw materials in the corresponding storage space of the plantation;
[0058] In specific implementation, for example, an anti-wrinkle essential oil mask contains rose essential oil, which needs to be extracted from roses. Therefore, roses are a kind of mask raw material for anti-wrinkle essential oil masks. There are many kinds of mask raw materials, but this embodiment only lists one to illustrate the specific implementation process of this embodiment. There are three plantations that provide roses to the enterprise, that is, three storage spaces are provided and allocated to different plantations. The roses provided by the plantations are stored in the corresponding storage spaces to ensure that the roses from different plantations are not mixed up.
[0059] Step S2: In the production of anti-wrinkle essential oil masks, mask raw materials from the same plantation are used for production, and the raw material traceability information of the anti-wrinkle essential oil masks is extracted. Step S2 includes the following sub-steps:
[0060] Step S201: When producing anti-wrinkle essential oil masks, each anti-wrinkle essential oil mask is produced using only mask raw materials purchased from the same plantation, and the plantation to which the mask raw materials used in the production process belong is named the target plantation.
[0061] Step S202: Obtain the name and location of the target park, which is the raw material traceability information;
[0062] In practice, when producing anti-wrinkle essential oil masks, rose essential oil needs to be extracted from roses. Each anti-wrinkle essential oil mask is produced using roses sourced from the same plantation to prevent confusion in raw material traceability information. These roses are grouped by plantation to extract rose essential oil, and the extracted rose essential oil is stored and produced according to different plantations. For example, if a target plantation to which a certain rose belongs is identified as Plantation A, and the plantation name and location are obtained as Rose Planting Base in Area A and No. 111, Area A, City A, the raw material traceability information for the anti-wrinkle essential oil mask produced from the rose essential oil extracted from this rose is "Plant Name: Rose Planting Base in Area A; Plantation Location: No. 111, Area A, City A", without quotation marks. The quotation marks are only used to define the beginning and end of the raw material traceability information, and subsequent quotation marks serve the same purpose.
[0063] Step S3 involves recording and storing production traceability information during the production and storage of the anti-wrinkle essential oil mask. Step S3 includes the following sub-steps:
[0064] Step S301: Name the manufacturer and the storage provider of the anti-wrinkle essential oil mask as the manufacturer and the storage provider, respectively.
[0065] Step S302: Obtain the manufacturer's company name and location to obtain production traceability information;
[0066] Step S303: Obtain the warehouse name and location of the storage manufacturer to obtain storage traceability information;
[0067] In practice, for example, if an anti-wrinkle essential oil mask is produced by Company B, then Company B is the manufacturer. Knowing the company name as BSA Company and its location as No. 222, District C, City C, the production traceability information is: "Company Name: BSA Company; Company Location: No. 222, District C, City C". After production, this anti-wrinkle essential oil mask needs to be distributed to multiple sales outlets across the country or stored in the company's warehouse for online sales. Therefore, the sales outlets and the company's warehouse are the storage facilities. For example, if a batch of anti-wrinkle essential oil masks needs to be transported to a mask retail store in District D, City D, the warehouse name is "Mask Retail Store" and its location is No. 333, District D, City D. The storage traceability information is: "Warehouse Name: Mask Retail Store; Warehouse Location: No. 333, District D, City D". This storage traceability information allows verification of whether the anti-wrinkle essential oil mask purchased by the user is a resale.
[0068] Step S4 involves using blockchain storage technology to perform information security protection on raw material traceability information, production traceability information, and stored traceability information, and outputting secure traceability data. Step S4 includes the following sub-steps:
[0069] Step S401: The raw material traceability information, production traceability information and storage traceability information are encapsulated to form traceability plaintext data, and storage nodes are allocated for the traceability plaintext data based on blockchain storage technology.
[0070] Step S401 includes the following sub-steps:
[0071] Step S4011: Combine the raw material traceability information, production traceability information, and stored traceability information into a single text data in the order of raw material traceability information, production traceability information, and stored traceability information to obtain traceability plaintext data;
[0072] Step S4012: Obtain the number of storage nodes owned by the blockchain storage platform, labeled as Q, and number the storage nodes using the symbol S. n Let S be an integer, where n is a non-zero natural number and n is the index of S, and 1 ≤ n ≤ Q;
[0073] Step S4013: Divide the plaintext data into Q text data items and label them as TE from left to right. n ;
[0074] In the specific implementation, the combined plaintext data for traceability is "Park Name: Rose Planting Base in Area A; Park Location: No. 111, Area A, City A; Company Name: BSA Company; Company Location: No. 222, Area C, City C; Warehouse Name: Mask Retail Store; Warehouse Location: No. 333, Area D, City D". Q is obtained as 5, and S is obtained from the numbering. nGiven that 1 ≤ n ≤ 5, the plaintext data is divided into 5 text data entries. There are a total of 78 characters in the plaintext data. 78 / 5 equals 15.6, which is rounded to 16. Therefore, the first 4 text data entries each contain 16 characters, and the last text data entry only needs to contain 14 characters. The characters from position 1 to 16 are assigned to TE1, from position 17 to 32 to TE2, from position 33 to 48 to TE3, from position 49 to 64 to TE4, and from position 65 to 78 to TE5. Thus, TE1 is “Park Name: Rose Planting Base in Area A; Park”, TE2 is “Location: No. 111, Area A, City A; Company Name”, TE3 is “BSA Company; Company Location: Area C, City C”, TE4 is “No. 222; Warehouse Name: Mask Retail Store”, and TE5 is “Warehouse Location: No. 333, Area D, City D”.
[0075] Step S402: Based on the allocated storage nodes, perform information security protection on the plaintext data for tracing and output secure tracing data;
[0076] Step S402 includes the following sub-steps:
[0077] Step S4021, obtain TE n The corresponding binary encoding in the UTF-8 encoding format is denoted as BE. n , obtain BE n The number of binary digits in the middle is marked as α. Calculate the factors of α and mark them as N1. Calculate α / N1 and mark the result as N2. Calculate |N1-N2| and mark the result as RN. Get N1 and N2 when RN is minimized and mark them as G1 and G2 respectively.
[0078] In specific implementation, taking TE1 as an example, TE1 is "Park Name: Rose Planting Base in Area A; Park", and the obtained BE1 is 1110010110011011101011011110010110001100101110101110010110010000100011011110011110111101001111011000011101 111101111001001101001000001111001011000110010111010111100111100111010101011111001111100111100100011011000011100111110100111110011010100100100011 011110010110011111101110101110010110011100101100001110111110111100100110111110010110011011110101101111001011000110010111010, due to the excessive length of the data, it is not convenient to observe the data in this embodiment. In this embodiment, only the first 30 bits of binary data are extracted. For example, if BE1 is 111001011001101110101101111001, then α is 30. Among the factors of 30, the difference between 5 and 6 is the smallest. That is, when N1=5 and N2=6, or N1=6 and N2=5, RN is the smallest. In the selection process, it is necessary to ensure that G1≤G2. Thus, G1 is 5 and G2 is 6.
[0079] Please see Figure 2 As shown, in step S4022, construct a G1×G2 matrix, named the source matrix, and set BE... n The numbers from the 1+G2×(i-1)th digit to the G2×ith digit are entered into the i-th row of the tracing matrix in order from left to right. The number in the j-th column of the i-th row of the tracing matrix is marked as D(i,j), where i and j are both positive integers and (i,j) is the index of D.
[0080] Please see Figure 3 As shown, in step S4023, obtain BE. n Given the index n, extract D(i,j) from the first n rows of the source matrix and integrate them into R. m Let m be a non-zero natural number and m be the index of R. m is initially set to 1. The source matrix will contain elements belonging to R. m Remove D(i,j), rotate the source matrix counterclockwise by 90°, increment m by one, and extract D(i,j) from the first n rows of the source matrix again, then integrate them into R. mRepeat this process until all D(i,j) are integrated into R. m Stop at the middle;
[0081] Step S4024, R m There are a total of n lines D(i,j). Extract the D(i,j) from each line in left-to-right order and form a string of numbers, labeled as H. t Where t is a non-zero natural number and t is the index of H, H t Represents R m The numbers formed by the t-th row D(i,j) in the array;
[0082] Step S4025, H t+1 Placed in H t At the end, it is ultimately R m All H t The combination yields a string of numbers, labeled NU. m NU m+1 Placed in NU m At the end, ultimately by all NU m The combination yields a string of numbers, which is named the reconstructed code;
[0083] In practice, a source tracing matrix is constructed. Figure 2 As shown, we mark D(i,j), where 1≤i≤5, 1≤j≤6, and obtain the index n=1 of BE1. We extract D(i,j) from the first n rows of the source matrix, that is, we extract D(i,j) from the first row of Table 1 and integrate them into R1, which is 111001. Then we remove D(i,j) from the first row and rotate the source matrix counterclockwise by 90° to obtain the rotated source matrix as shown. Figure 3 As shown, the source matrix at this point is 6 rows and 4 columns. Extracting D(i,j) from the first row again yields R2 as 1011. This process is repeated, rotating and extracting again, until finally R1 is 111001, R2 is 1011, R3 is 00111, R4 is 110, R5 is 1100, R6 is 10, R7 is 110, R8 is 0, and R9 is 11. At this point, R... m Since there is only one row D(i,j), we can simply arrange them from left to right. If R m For multiple rows, for example, a certain R1 is First, extract the first row, H1, which is 10. Then extract the second row, H2, which is 11. Finally, combine them to get NU1, which is 1011. Since R is listed in this embodiment... m There is only one row D(i,j) in the array, so R1 to R9 are extracted as NU1 to NU9. The final combination yields the reconstructed code 111001101100111110110010110011.
[0084] Step S4026: Number each digit in the reconstructed code from left to right, using the symbol P. y Let represent , where y is a non-zero natural number and y is the index of P;
[0085] Step S4027: Set the constant β and the number FT g , where g is a non-zero natural number and g is the index of the FT, and β and g are initially 1;
[0086] Step S4028, starting with y=1, determine P y+β Is it related to P? y If they are equal, increment β and check again; otherwise, mark β as FT. g Then add FT to y g Meanwhile, increment g by one and reset β to 1, and perform the judgment again until y no longer exists;
[0087] Step S4029, FT g Combining g in ascending order, we finally get BE. n Security traceability data, marked as STD n ;
[0088] In practice, the numbering is P. y 1≤y≤30, starting with y=1, at this time P y+β That is, P 1+1 =P2, and P2 is 1, P1 is 1, meaning P2 and P1 are equal. Increment β and check again; now β is 2, P... y+β That is, P 1+2 =P3, P3 is 1, which is equal to P1. Increment β by one and check again. At this time, β is 3, P y+β That is, P 1+3 =P4, P4 is 0, which is not equal to P1, therefore β is labeled as FT. g At this point, β is 3 and g is 1, resulting in FT1 being 3. Then, y is increased by FT. g At this point, y=1, g=1, FT1=3. After increasing, we get y=4. We then check P again. y+β Is it related to P? y If they are equal, repeat the process until y no longer exists, ultimately obtaining FT1 to FT2. 15 The sequence is 3, 2, 2, 1, 2, 2, 5, 1, 2, 2, 1, 1, 2, 2 and 2. The final combination yields the safety traceability data STD1 for BE1 as 322122512211222.
[0089] Step S5 involves storing the secure traceability data through a blockchain storage platform and simultaneously returning a data verification code. Users can use this code to trace the anti-wrinkle essential oil mask. Step S5 includes the following sub-steps:
[0090] Step S501: Store the security traceability data through the blockchain storage platform and generate a data verification code for the security traceability data during storage;
[0091] Step S501 includes the following sub-steps:
[0092] Step S5011: Calculate the hash value of the traceability plaintext data and name it the data verification code. The data verification code is used to retrieve different STDs of the same traceability plaintext data. n ;
[0093] Step S5012, STD n Stored in a blockchain storage platform except for S n Of all storage nodes outside;
[0094] In specific implementation, the plaintext data for tracing is "Park Name: Rose Planting Base in Area A; Park Location: No. 111, Area A, City A; Company Name: BSA Company; Company Location: No. 222, Area C, City C; Warehouse Name: Mask Retail Store; Warehouse Location: No. 333, Area D, City D". The hash value is calculated to obtain the data verification code "vnDzYAmsnptr0r / g4JtxDyZ0CeNSBOkZfBrmjb0kwHo=". The data verification code is encapsulated as a QR code and sprayed onto the packaging bag of the anti-wrinkle essential oil mask. Taking STD1 as an example, n=1, STD1 is stored in S2, S3, S4, and S5, but not in S1. This is to allow querying BE during the decryption process. n The allocated S n .
[0095] Step S502: The user uses the data verification code to trace the origin of the anti-wrinkle essential oil mask;
[0096] Step S502 includes the following sub-steps:
[0097] Step S5021: The user enters the data verification code on the anti-wrinkle essential oil mask packaging into the traceability query platform;
[0098] Step S5022: Query all STDs corresponding to the data verification code. n , for STD n Decrypt the data, name the decrypted text data as "Source Query Information," and display the "Source Query Information" to the user.
[0099] In practice, users can scan the QR code on the packaging bag to access the traceability query platform and retrieve the STD corresponding to the data verification code. n For example, a certain STD n It exists in S2, S3, S4, and S5, but not in S1, so we can get n=1, which is this STD. n For STD1, for STD n The decryption process can be derived by reversing the encryption process. Reverse deduction is the execution of the encryption algorithm in reverse order. For example, analyzing and obtaining FT1 to FT2... 15 The sequence is 3, 2, 2, 1, 2, 2, 5, 1, 2, 2, 1, 1, 2, 2, and 2. In reality, it means that from left to right, the sequence contains 3, 2, 2, 1, 2, 2, 5, 1, 2, 2, 1, 1, 2, 2, and two numbers are equal. Following the reverse logic, the reconstructed code above can be derived as 111001101100111110110010110011 or 000110010011000001001101001100, where there is a one-to-one error. Incorrect codes cannot be decrypted correctly. Further decryption of the two codes separately can eliminate incorrect options. Similarly, the subsequent decryption process also needs to be deduced in reverse logic. Any encryption process that is logically reversible has a corresponding decryption process. Moreover, the decryption process is the reverse deduction of the encryption process at the logical level. The decryption process is very similar to the encryption process, so there is no need to elaborate on it in the example. After showing the traceability query information to the user, the user can trace the entire process of the anti-wrinkle essential oil mask from raw materials to production to sales through the traceability query information.
[0100] Example 2, please refer to Figure 4 As shown, Figure 4 A schematic diagram of an electronic device is provided, which may include a processor, a communication interface, a memory, and a communication bus. The processor, communication interface, and memory communicate with each other via the communication bus. The memory stores computer-readable instructions, and the processor can call these instructions. When the processor executes a computer-readable instruction, it performs steps such as those in a blockchain traceability method for anti-wrinkle essential oil mask production to achieve the following functions: independently storing mask raw materials from different plantations; using mask raw materials from the same plantation to produce anti-wrinkle essential oil masks, while simultaneously extracting the raw material traceability information; recording and storing production traceability information; using blockchain storage technology to provide information security protection for the raw material traceability information, production traceability information, and stored traceability information, and outputting secure traceability data; storing the secure traceability data through a blockchain storage platform, and simultaneously returning a data verification code, which users can use to trace the anti-wrinkle essential oil mask.
[0101] Furthermore, when the logical instructions in the aforementioned memory can be implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0102] Example 3: This application also provides a computer program product, which includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by the computer, the computer can execute the blockchain traceability method for the production of anti-wrinkle essential oil masks provided by the above methods. This method includes: storing mask raw materials from different plantations independently; producing anti-wrinkle essential oil masks using mask raw materials from the same plantation, while extracting the raw material traceability information of the anti-wrinkle essential oil masks; recording production traceability information and storing traceability information; protecting the raw material traceability information, production traceability information, and stored traceability information based on blockchain storage technology, and outputting secure traceability data; storing the secure traceability data through a blockchain storage platform, and simultaneously returning a data verification code, which the user uses to trace the anti-wrinkle essential oil masks.
[0103] Example 4: This application also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it performs the steps of the blockchain traceability method for the production of anti-wrinkle essential oil masks described above, to achieve the following functions: independently storing mask raw materials from different plantations; using mask raw materials from the same plantation to produce anti-wrinkle essential oil masks, while extracting the raw material traceability information of the anti-wrinkle essential oil masks; recording production traceability information and storing traceability information; using blockchain storage technology to protect the raw material traceability information, production traceability information, and stored traceability information, and outputting secure traceability data; storing the secure traceability data through a blockchain storage platform, and simultaneously returning a data verification code, which the user uses to trace the anti-wrinkle essential oil masks.
[0104] Based on the above description of the embodiments, the embodiments of the present invention can be provided as methods, systems, or computer program products. Based on this understanding, the above technical solutions, in essence or in terms of their contribution to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or certain parts of the embodiments.
[0105] In the embodiments provided in this application, it should be understood that the disclosed system or method can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of modules or units is only a logical functional division, and there may be other division methods in actual implementation. Furthermore, multiple modules or units may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the coupling or direct coupling or communication connection shown or discussed may be through some communication interfaces. The indirect coupling or communication connection between systems, modules, and units may be electrical, mechanical, or other forms.
[0106] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A blockchain traceability method for the production of anti-wrinkle essential oil masks, characterized in that, Includes the following steps: When purchasing raw materials for face masks, raw materials from different plantations are stored separately. When producing anti-wrinkle essential oil masks, we use mask raw materials from the same plantation to produce anti-wrinkle essential oil masks, and at the same time extract the raw material traceability information of anti-wrinkle essential oil masks. During the production and storage of anti-wrinkle essential oil masks, production traceability information and storage traceability information are recorded; Based on blockchain storage technology, information security protection is provided for raw material traceability information, production traceability information, and storage traceability information, and safe traceability data is output. The data is stored securely on a blockchain storage platform, and a data verification code is returned. Users can use the data verification code to trace the anti-wrinkle essential oil mask.
2. The blockchain traceability method for the production of anti-wrinkle essential oil masks according to claim 1, characterized in that, When procuring raw materials for face masks, storing raw materials from different plantations separately includes the following sub-steps: When procuring raw materials for face masks, different storage spaces are provided for each plantation. The purchased mask raw materials are stored in the corresponding storage space in the plantation.
3. The blockchain traceability method for the production of anti-wrinkle essential oil masks according to claim 2, characterized in that, When producing anti-wrinkle essential oil masks, using mask raw materials from the same plantation for production, and simultaneously extracting the raw material traceability information for the anti-wrinkle essential oil masks, includes the following sub-steps: When producing anti-wrinkle essential oil masks, each anti-wrinkle essential oil mask is produced using only mask raw materials sourced from the same plantation, and the plantation to which the mask raw materials used in the production process belong is named the target plantation. Obtaining the name and location of the target industrial park provides the raw material traceability information.
4. The blockchain traceability method for the production of anti-wrinkle essential oil masks according to claim 3, characterized in that, The process of producing and storing anti-wrinkle essential oil masks involves recording production traceability information and storing traceability information, including the following sub-steps: The manufacturer and storage provider of the anti-wrinkle essential oil mask are named the manufacturer and storage provider, respectively. Obtain the manufacturer's company name and location to obtain production traceability information; Obtain the storage manufacturer's warehouse name and location to obtain storage traceability information.
5. The blockchain traceability method for the production of anti-wrinkle essential oil masks according to claim 4, characterized in that, Based on blockchain storage technology, information security protection is provided for raw material traceability information, production traceability information, and stored traceability information. The output of secure traceability data includes the following sub-steps: Raw material traceability information, production traceability information, and storage traceability information are encapsulated to form traceability plaintext data, and storage nodes are allocated for traceability plaintext data based on blockchain storage technology. Based on the allocated storage nodes, information security protection is provided for the plaintext data for tracing, and secure tracing data is output.
6. The blockchain traceability method for the production of anti-wrinkle essential oil masks according to claim 5, characterized in that, Encapsulating raw material traceability information, production traceability information, and storage traceability information to form traceability plaintext data, and allocating storage nodes for the traceability plaintext data based on blockchain storage technology, includes the following sub-steps: The raw material traceability information, production traceability information, and stored traceability information are combined into a single text data in the order of raw material traceability information, production traceability information, and stored traceability information to obtain traceability plaintext data. Obtain the number of storage nodes owned by the blockchain storage platform, labeled Q, and number the storage nodes using the symbol S. n Let S be an integer, where n is a non-zero natural number and n is the index of S, and 1 ≤ n ≤ Q; Divide the plaintext data into Q text data points, and label them TE from left to right. n .
7. The blockchain traceability method for the production of anti-wrinkle essential oil masks according to claim 6, characterized in that, The process of protecting plaintext traceability data based on allocated storage nodes and outputting secure traceability data includes the following sub-steps: Get TE n The corresponding binary encoding in the UTF-8 encoding format is denoted as BE. n , obtain BE n The number of binary digits in the middle is marked as α. Calculate the factors of α and mark them as N1. Calculate α / N1 and mark the result as N2. Calculate |N1-N2| and mark the result as RN. Get N1 and N2 when RN is minimized and mark them as G1 and G2 respectively. Construct a G1×G2 matrix, named the source matrix, and set BE... n The numbers from the 1+G2×(i-1)th digit to the G2×ith digit are entered into the i-th row of the tracing matrix in order from left to right. The number in the j-th column of the i-th row of the tracing matrix is marked as D(i,j), where i and j are both positive integers and (i,j) is the index of D. Get BE n Given the index n, extract D(i,j) from the first n rows of the source matrix and integrate them into R. m The m is a non-zero natural number and m is the index of R. m is initially 1. The source matrix contains elements belonging to R. m Remove D(i,j), rotate the source matrix counterclockwise by 90°, increment m by one, and extract D(i,j) from the first n rows of the source matrix again, then integrate them into R. m Repeat this process until all D(i,j) are integrated into R. m Stop at the middle; The R m There are a total of n lines D(i,j). Extract the D(i,j) from each line in left-to-right order and form a string of numbers, labeled as H. t Where t is a non-zero natural number and t is the index of H, H t Represents R m The numbers formed by the t-th row D(i,j) in the array; H t+1 Placed in H t At the end, it is ultimately R m All H t The combination yields a string of numbers, labeled NU. m NU m+1 Placed in NU m At the end, ultimately by all NU m The combination yields a string of numbers, which is named the reconstructed code; Each digit in the reconstructed code is numbered from left to right, using the symbol P. y Let represent , where y is a non-zero natural number and y is the index of P; Set the constant β and the number FT. g , where g is a non-zero natural number and g is the index of the FT, and β and g are initially 1; Starting with y=1, determine P y+β Is it related to P? y If they are equal, increment β and check again; otherwise, mark β as FT. g Then add FT to y g Meanwhile, increment g by one and reset β to 1, and perform the judgment again until y no longer exists; FT g Combining g in ascending order, we finally get BE. n Security traceability data, marked as STD n .
8. The blockchain traceability method for the production of anti-wrinkle essential oil masks according to claim 7, characterized in that, The data is stored securely on a blockchain storage platform, and a data verification code is returned. Users can use the data verification code to trace the anti-wrinkle essential oil mask, which includes the following sub-steps: The secure traceability data is stored through a blockchain storage platform, and a data verification code is generated for the secure traceability data during storage. Users can trace the origin of anti-wrinkle essential oil masks by checking the data verification code.
9. The blockchain traceability method for the production of anti-wrinkle essential oil masks according to claim 8, characterized in that, Storing secure traceability data through a blockchain storage platform and generating data verification codes for the secure traceability data during storage includes the following sub-steps: Calculate the hash value of the plaintext data for tracing its origin, and name it the data verification code. The data verification code is used to retrieve different STDs of the same plaintext data for tracing its origin. n ; STD n Stored in a blockchain storage platform except for S n Of all the storage nodes outside.
10. The blockchain traceability method for the production of anti-wrinkle essential oil masks according to claim 9, characterized in that, Users can trace the origin of anti-wrinkle essential oil masks by checking data verification codes, which includes the following sub-steps: Users enter the data verification code on the anti-wrinkle essential oil mask packaging into the traceability query platform; Query all STDs corresponding to the data verification code n , for STD n Decrypt the data, name the decrypted text data as "Source Query Information," and display the "Source Query Information" to the user.
Citation Information
Patent Citations
Agricultural production traceability management system
CN115330407A
Method and device for tracing commodity information
CN102592226A
Cosmetic traceability production process method based on block chain and cloud computing
CN111311283A
Intelligent contract method for data communication based on block chain
CN116668167A
Connecting apparatus for pontoon
KR1020220057995A