A Blockchain-Based Animal Vaccine Inoculation Verification Method and System
Through blockchain technology and encrypted servers, random anti-counterfeiting codes are generated, the problem of unmonitorable information during animal vaccination is solved, the traceability and security of the vaccination process is realized, and the risk of counterfeit and shoddy vaccines is reduced.
Patent Information
- Application Number
- CN202310089684.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-09
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2043-02-09
AI Technical Summary
The prior art cannot effectively monitor the entire process of animal vaccines from production to vaccination, making it difficult to ensure the safety of the vaccine.
Blockchain technology is used to record vaccine production, vaccination and change information, and randomly encrypted anti-counterfeiting codes are generated through encrypted servers to form an irreversible database to ensure the trustworthiness and integrity of the information.
It improves the traceability and safety of the vaccination process, reduces the market liquidity of counterfeit and shoddy vaccines, and enhances the immutability and trustworthiness of vaccine production information.
Smart Images

Figure CN116308413B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a method and system for verifying animal vaccination, and more particularly to a method and system for verifying animal vaccination based on blockchain. Background Art
[0002] Animal vaccines are biological agents used for preventing diseases in animals and controlling the occurrence and prevalence of infectious diseases. The safety of animal vaccines has been increasingly emphasized by people. Since vaccines need to go through many processes from factory production to vaccination to users, it is difficult to ensure absolute safety in each process.
[0003] Currently, although there is also the Internet for querying vaccine data, it is obvious that if the vaccination situation of vaccines cannot be monitored from the source, the safety of vaccination still cannot be guaranteed. Summary of the Invention
[0004] In order to solve the technical problems mentioned in the above background art, a method and system for verifying animal vaccination based on blockchain are proposed.
[0005] In order to achieve the above object, the present invention adopts the following technical solutions:
[0006] A method for verifying animal vaccination based on blockchain includes the following steps:
[0007] Step 1, a vaccine production node requests the encryption of vaccine production information from an encryption server, where the vaccine production information includes a public serial number and an anti-counterfeiting code;
[0008] Step 2, the encryption server encrypts the vaccine production information to generate an anti-counterfeiting code. The encryption method changes with the encryption time, and the vaccine production information and the encryption time are uploaded to the blockchain;
[0009] Step 3, a vaccine vaccination node uploads vaccine vaccination information to the blockchain, where the vaccine vaccination information includes a public serial number and the identity information of the vaccinated object;
[0010] Step 4, a vaccine vaccinated node requests the decryption of vaccine production information from the encryption server at the encryption time, and uploads the decrypted vaccine production information to the blockchain;
[0011] Step 5, the vaccine production node changes the vaccine production information according to the deciphered vaccine production information and uploads it to the blockchain. The changed information includes a vaccinated flag;
[0012] Step 6, the vaccine information service gateway regularly updates the blockchain information to ensure complete blockchain information;
[0013] Step 7, the vaccine information service gateway analyzes the changed vaccine production information and stores it in the blockchain in a structured manner;
[0014] Step 8: The vaccine information service gateway determines whether the blockchain vaccine production information is complete. If the blockchain vaccine production information is complete, step 8 is terminated, otherwise step 5 is re-executed.
[0015] Blockchain refers to a distributed, sharable, public account book that can be checked by every participant through a consensus mechanism, but no centralized single user can control it, and it can only be revised according to strict rules and public agreements. Through a decentralized, trustless credit establishment paradigm, and collectively maintaining a reliable database, an unchangeable distributed shared general ledger is formed. The method of the present invention uses blockchain technology to record vaccine production information, vaccination information and change information, and collectively maintains a reliable database of vaccine production, vaccination and change information. The database is randomly encrypted and saved according to the time node of the vaccine production information encryption request, and the encryption method changes with the encryption time, forming a chronologically encrypted, unalterable and trustworthy database.
[0016] As a further description of the above technical solution:
[0017] The vaccine production node monitors vaccination information of the entire network, and the verified vaccine production information enters the vaccine production node and is stored, and the vaccination status information of the vaccine production information is updated.
[0018] As a further description of the above technical solution:
[0019] The encryption methods of the encryption server include: DES, 3DES, AES, RSA, DSA, SHA-1, MD5. These encryption methods are relatively mature encryption methods and are well adapted to the blockchain method.
[0020] As a further description of the above technical solution:
[0021] The encryption server randomly arranges and combines the natural numbers that form the encryption time in the form of single characters, and performs logical operations on the random number series. According to the operation results, the encryption method is automatically matched and an anti-counterfeiting code is generated. The encryption method is stored in the encryption server along with the encryption time, which is convenient for the encryption server to decrypt the anti-counterfeiting code. Each data block contains the vaccine production information at an encryption time point, which is used by the vaccine vaccination node to verify the authenticity of the vaccination information and generate the next block. The encrypted vaccine production information obtained according to the uniqueness of the encryption time and the randomness of the encryption method is permanently retained by the blockchain. The randomness of the encryption method increases the difficulty of deciphering the anti-counterfeiting code, reduces the degree of vaccine counterfeiting from the source, and thus reduces the market circulation of counterfeit and inferior vaccines.
[0022] The encryption time is based on Beijing time, A year, B month, C day, D hour, and E minute. A, B, C, D, and E are natural numbers. The n natural numbers A, B, C, D, and E in single-character form are randomly permuted and combined. A multi-level logical judgment is performed on the randomly permuted sequence, and then the operation method is selected according to the combination method of the multi-level judgment results. The encryption method is determined according to the operation results.
[0023] Among them, n = n1 + n2. The digit consistency judgment is performed according to the consistency rate between the first n1 digits of the random sequence and the column number. When the consistency rate is greater than the set threshold, the first-level judgment result is logic F; otherwise, it is logic G. After summing the values of the last n2 digits of the random sequence, the parity judgment is performed. If the sum value is odd, the second-level judgment result is logic H; otherwise, it is logic I. Then the logical judgment combinations include: logic F + logic H, logic G + logic H, logic F + logic I, logic G + logic I, and their corresponding operation methods are: addition operation, subtraction operation, intersection operation, union operation. Among them, n1, n2, and the threshold are randomly determined by the vaccine production node, and the value of n2 is not less than 2.
[0024] Specifically, perform the addition operation of "C + D + E" or the subtraction operation of "C - D - E" on the natural numbers C, D, and E, take the absolute value of the operation result, perform the intersection operation of "B ∩ C ∩ D" or the union operation of "B ∪ C ∪ D" on the natural numbers B, C, and D, sum the natural numbers in the operation result set and then take the absolute value, judge the parity of the absolute value. If it is odd, select any one encryption method for encrypted uploading; if it is even, select any two encryption methods for encrypted uploading.
[0025] Although the encryption method is a relatively mature technical means, the encryption methods of the vaccine anti-counterfeiting codes encrypted at the front and back time nodes are not unified, greatly increasing the difficulty of deciphering. Even if a third party knows one or several encryption methods, it is impossible to decipher the vaccines in large batches, and it is impossible to form large-batch production of vaccines, thus avoiding the risk of counterfeiting of vaccines from regular manufacturers.
[0026] As a further description of the above technical solution:
[0027] When the vaccine inoculation node for vaccine inoculation broadcasts the vaccine inoculation information to the entire network of the vaccine inoculation network, each vaccine inoculation node incorporates the received vaccine inoculation information into a block.
[0028] As a further description of the above technical solution:
[0029] A blockchain-based animal vaccination verification system includes an encryption server, a vaccine information service gateway and several user nodes, wherein the user nodes include a vaccine production node, a vaccination node and a vaccine vaccinated node, wherein the user nodes are all connected to the vaccine information service gateway in communication, wherein the vaccine production node and the vaccine vaccinated node are all connected to the encryption server in communication, wherein at least two of the vaccine production node, the vaccination node and the vaccine vaccinated node are connected. The system is deployed in an Internet environment, wherein each user node regularly updates the blockchain; when the vaccine production node generates vaccine production information, it needs to request the encryption server to generate an anti-counterfeiting code, and after forming a block, it needs to be broadcast to the entire network; the vaccine information service gateway keeps the blockchain synchronized and provides a third-party service interface; the vaccine production node: loads the blockchain node service, requests the anti-counterfeiting code from the encryption server, generates the encrypted vaccine production information, and packages it into the block together with the encryption time; the encryption server: provides a random encryption method according to the encryption time and generates an anti-counterfeiting code. The vaccine information service gateway: provides query and statistical services for vaccine production, vaccination and update information for the application server.
[0030] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are as follows: First, the method of the present invention uses blockchain technology to record the production information, vaccination information and change information of the vaccine, and collectively maintains a reliable record database of vaccine production, vaccination and change information. The database is randomly encrypted and saved according to the time node of the vaccine production information encryption request. The encryption method changes with the encryption time, forming a chronologically encrypted, tamper-proof and trustworthy database. Secondly, the encrypted vaccine production information obtained according to the uniqueness of the encryption time and the randomness of the encryption method is permanently retained by the blockchain. The randomness of the encryption method increases the difficulty of deciphering the anti-counterfeiting code, reducing the degree of vaccine counterfeiting from the source, thereby reducing the market circulation of counterfeit and inferior vaccines. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 A schematic flow chart of a blockchain-based animal vaccination verification method provided according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0032] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. Embodiment 1
[0033] See also Figure 1, taking the rabies vaccine inoculation as an example, the present invention provides a technical solution: a blockchain-based verification method and system for animal rabies vaccine inoculation, including the following steps:
[0034] Step 1, the vaccine production node requests the encryption of vaccine production information from the encryption server. The vaccine production information includes a public serial number and an anti-counterfeiting code. Specifically, the vaccine production node monitors the whole network's vaccine inoculation information. The verified vaccine production information enters the vaccine production node and is stored, and the inoculation status information of the vaccine production information is updated. The encryption methods of the encryption server include: DES, 3DES, AES, RSA, DSA, SHA-1, MD5;
[0035] Step 2, the encryption server encrypts the vaccine production information to generate an anti-counterfeiting code. The encryption method changes with the encryption time, and the vaccine production information and the encryption time are uploaded to the blockchain. Specifically, the encryption server randomly arranges and combines the natural numbers forming the encryption time in single-character form, and performs logical operations on the random number sequence. According to the operation results, the encryption method is automatically matched and the anti-counterfeiting code is generated;
[0036] (1) If the encryption time is 15:30 on October 8, 2021, the single-character natural numbers 2, 0, 2, 1, 1, 0, 8, 1, 5, 3, 0 are randomly arranged and combined for 11 natural numbers. If the random number sequence is: 10812053210, then the random number sequence 10812053210 is subjected to multi-level logical judgments, and then the operation method is selected according to the combination method of the multi-level judgment results, and the encryption method is selected according to the operation results;
[0037] First, set n = n1 + n2 = 9 + 3, the threshold is 50%, then the consistency between the values of the first 9 digits 108120532 of the random number sequence 10812053210 and the column numbers is as shown in Table 1 below:
[0038] Table 1
[0039]
[0040] The consistency rate of the first 9 digits 108120532 of the random number sequence 10812053210 is less than the set threshold, and the first-level judgment result is logic G. Among them, the column numbers should have nothing to do with the random arrangement and combination of natural numbers, and are only used as a way to judge the consistency rate;
[0041] Secondly, the sum of the last 2 digits of the random number sequence 10812053210 is an odd number 1, and the second-level judgment result is logic H. Then the logical judgment combination result of the random number sequence 10812053210 is: logic G + logic H, and the corresponding operation method is: subtraction operation;
[0042] Finally, perform the subtraction operation of "8 - 15 - 30" on the natural numbers 8, 15, and 30 to obtain the absolute value 23, which is an odd number. Select any one of the encryption methods such as DES, 3DES, AES, RSA, DSA, SHA - 1, and MD5. For example, if DES is selected, encrypt the vaccine production information to obtain an anti - counterfeiting code, and then upload the encrypted vaccine production information and the encryption time to the blockchain;
[0043] (2) If the encryption time is 15:31 on October 8, 2021, perform a random permutation and combination of 11 natural numbers for the single - character natural numbers 2, 0, 2, 1, 1, 0, 8, 1, 5, 3, 1. If the random number sequence is: 21081102315, perform multi - level logical judgments on the random number sequence 21081102315. The combination of multi - level logical judgment results is: logical G + logical I, and the corresponding operation method is: union operation. The union set is {10, 8, 15}, and its absolute value is the odd number 23. Select any one of the encryption methods such as DES, 3DES, AES, RSA, DSA, SHA - 1, and MD5. For example, if 3DES is selected, specifically, in this embodiment (2), the possibility of selecting the same encryption method at the time node as in (1) is 14.3%. However, due to the non - uniqueness of the generation of the random number sequence, the possibility of selecting the same encryption method at the previous and subsequent time nodes will be lower than 14.3%. The uniqueness of the encryption time and the non - uniqueness of the encryption method make it difficult for other manufacturers except the original vaccine manufacturer to obtain vaccine information, thus making it impossible to forge animal vaccines that meet national standards;
[0044] Step three, the vaccine inoculation node uploads the vaccine inoculation information to the blockchain. The vaccine inoculation information includes the public serial number and the identity information of the inoculated object. When the vaccine inoculation node that performs the vaccine inoculation broadcasts the vaccine inoculation information to the entire vaccine inoculation network, each vaccine inoculation node incorporates the received vaccine inoculation information into a block;
[0045] Step four, the vaccine inoculated node requests the decryption of the vaccine production information from the encryption server at the encrypted request time and uploads the decrypted vaccine production information to the blockchain;
[0046] Step five, the vaccine production node changes the vaccine production information according to the deciphered vaccine production information and uploads it to the blockchain. The changed information includes the inoculated flag;
[0047] Step six, the vaccine information service gateway regularly updates the blockchain information to ensure the integrity of the blockchain information;
[0048] Step seven, the vaccine information service gateway analyzes the changed vaccine production information and stores it in the blockchain in a structured manner;
[0049] Step 8: The vaccine information service gateway determines whether the blockchain vaccine production information is complete. If the blockchain vaccine production information is complete, Step 8 ends; otherwise, Step 5 is executed again.
[0050] A system for an animal vaccine inoculation verification method based on blockchain, comprising an encryption server, a vaccine information service gateway, and a number of user nodes. The user nodes include a vaccine production node, a vaccine inoculation node, and a vaccinated node. The user nodes are all communicatively connected to the vaccine information service gateway. The vaccine production node and the vaccinated node are both communicatively connected to the encryption server. At least any two of the vaccine production node, the vaccine inoculation node, and the vaccinated node are connected.
[0051] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention, according to the technical solution and inventive concept of the present invention, makes equivalent substitutions or changes, and should be covered by the protection scope of the present invention.
Claims
1. A method for verifying animal vaccination based on blockchain, characterized in that, It includes the following steps: Step 1, the vaccine production node requests the encryption of vaccine production information from the encryption server, and the vaccine production information includes a public serial number and an anti-counterfeiting code; Step 2, the encryption server encrypts the vaccine production information to generate an anti-counterfeiting code. The encryption method changes with the encryption time, and the vaccine production information and the encryption time are uploaded to the blockchain; Step 3, the vaccine inoculation node uploads the vaccine inoculation information to the blockchain, and the vaccine inoculation information includes a public serial number and the identity information of the inoculated object; Step 4, the vaccinated node requests the decryption of the vaccine production information from the encryption server using the public serial number and the encryption time, and uploads the decrypted vaccine production information to the blockchain; Step 5, the vaccine production node changes the vaccine production information according to the deciphered vaccine production information and uploads it to the blockchain. The changed information includes an inoculated flag; Step 6, the vaccine information service gateway regularly updates the blockchain information to ensure complete blockchain information; Step 7, the vaccine information service gateway analyzes the changed vaccine production information and structures it into the blockchain; Step 8, the vaccine information service gateway determines whether the blockchain vaccine production information is complete. If the blockchain vaccine production information is complete, then step 8 ends; otherwise, step 5 is executed again; The encryption methods of the encryption server include: DES, 3DES, AES, RSA, DSA, SHA-1, MD5; The encryption server randomly permutes and combines the natural numbers forming the encryption time in single-character form, and performs a logical operation on the random number sequence. According to the operation result, the encryption method is automatically matched and the anti-counterfeiting code is generated; The encryption time is based on Beijing time, year A, month B, day C, hour D, and minute E. A, B, C, D, and E are natural numbers. The n natural numbers A, B, C, D, and E in single-character form are randomly permuted and combined. A multi-level logical judgment is performed on the permuted and combined random number sequence, and then the operation method is selected according to the combination method of the multi-level judgment results. The encryption method is determined according to the operation result; n = n1 + n2. The digit consistency judgment is performed according to the consistency rate between the first n1 digits of the random number sequence and the column number. When the consistency rate is greater than the set threshold, the first-level judgment result is logic F; otherwise, it is logic G. The sum of the last n2 digits of the random number sequence is calculated and the parity is judged. If the sum value is odd, the second-level judgment result is logic H; otherwise, it is logic I. Then the logical judgment combinations include: logic F + logic H, logic G + logic H, logic F + logic I, logic G + logic I, and their corresponding operation methods are: addition operation, subtraction operation, intersection operation, union operation. Among them, n1, n2, and the threshold are randomly determined by the vaccine production node, and the value of n2 is not less than 2; Perform an addition operation of "C + D + E" or a subtraction operation of "C - D - E" on the natural numbers C, D, and E, take the absolute value of the operation result, perform an intersection operation of "B ∩ C ∩ D" or a union operation of "B ∪ C ∪ D" on the natural numbers B, C, and D, sum the natural numbers in the operation result set and then take the absolute value, judge the parity of the absolute value. If it is odd, select any one encryption method for encryption and upload it to the blockchain. If it is even, select any two encryption methods for encryption and upload it to the blockchain.
2. The method for verifying animal vaccination based on blockchain according to claim 1, wherein The vaccine production node monitors the vaccination information of the whole network. The vaccine production information that passes the verification enters the vaccine production node and is stored, and the vaccination status information of the vaccine production information is updated.
3. The method for verifying animal vaccine inoculation based on blockchain according to claim 1, characterized in that When the vaccination node for vaccination broadcasts the vaccination information to the whole network of the vaccination network, each vaccination node incorporates the received vaccination information into a block.
4. A system for the method of verifying animal vaccination based on blockchain according to any one of claims 1-3, characterized in that: It includes an encryption server, a vaccine information service gateway, and several user nodes. The user nodes include vaccine production nodes, vaccination nodes, and vaccinated nodes. The user nodes are all communicatively connected to the vaccine information service gateway. The vaccine production nodes and the vaccinated nodes are both communicatively connected to the encryption server. At least any two of the vaccine production nodes, vaccination nodes, and vaccinated nodes are connected.
Citation Information
Patent Citations
Vaccine tracing method based on block chain and cryptographic algorithm
CN114066486A
Advanced encryption standard (AES) hardware cryptographic engine
US20030223580A1