A health authentication method, device and medium based on blockchain and dynamic code

By using blockchain and dynamic codes during the health code generation process, combined with smart contracts, the problem of difficult users to trace when the health code is stolen or abnormal, and the authenticity of data during the health authentication process and the protection of user interests is achieved. .

CN111931199BActive Publication Date: 2024-12-17INSPUR YUNZHOU (SHANDONG) IND INTERNET CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010586797.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-24
Publication Date
2024-12-17
Estimated Expiration
2040-06-24

AI Technical Summary

Technical Problem

During the generation of existing health codes, when the health code is stolen or abnormal, it is difficult for users to trace, resulting in loss of benefits.

Method used

Adopt a healthy authentication method based on blockchain and dynamic code, generate unique strings through the blockchain platform and encrypt them into dynamic codes, write them into the blockchain, and combine smart contracts to perform healthy authentication to ensure the authenticity of the data and the user's Retrospective interests.

Benefits of technology

Through the distributed storage and encryption algorithm of blockchain, the authenticity of data and user interests in the health authentication process are guaranteed, and the traceability of dynamic codes is increased, and losses in the case of theft and abnormal situations are prevented.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111931199B_ABST
    Figure CN111931199B_ABST
Patent Text Reader

Abstract

The present application discloses a health authentication method, device and medium based on blockchain and dynamic code, the method comprising: determining a pre-created blockchain platform; receiving a health authentication request sent by a user node; determining the business code corresponding to the health authentication request and / or determining the application ID corresponding to the health authentication request; generating a unique string corresponding to the health authentication request; generating a dynamic code corresponding to the health authentication request, and writing the dynamic code into the blockchain platform as the health code of the user node, so that the user node can perform health authentication. Since the blockchain platform is a distributed storage, data tampering of a single node will not take effect, ensuring the authenticity and reliability of the data on the blockchain platform. The dynamic code is written into the blockchain platform, and each node in the blockchain platform can trace the dynamic code at any time. And adding the user's identity information during the encoding process can make the relationship between the dynamic code and the user closer, which is more conducive to the tracing of the user node.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of health authentication, and specifically to a health authentication method, device and medium based on blockchain and dynamic code. Background Art

[0002] However, in the prior art, the following problems still exist in the generation and use of health codes: when the health code is stolen or anomalies occur, it may cause losses to the interests of the user, and it is difficult for the user to trace it. Summary of the invention

[0003] In order to solve the above problems, the present application proposes a health authentication method based on blockchain and dynamic code, including: determining a pre-created blockchain platform, wherein the blockchain platform includes a user node; receiving a health authentication request sent by the user node, wherein the health authentication request carries the identity information of the user node; determining the business code corresponding to the health authentication request according to the authentication type corresponding to the health authentication request and a preset correspondence relationship, and / or determining the application ID corresponding to the health authentication request; generating a unique string corresponding to the health authentication request according to the business code, the application ID, at least one of the current timestamp, and the identity information; generating a dynamic code corresponding to the health authentication request according to the unique string and the corresponding code feature prefix, and writing the dynamic code as the health code of the user node into the blockchain platform to facilitate the health authentication of the user node.

[0004] In one example, the identity information includes a user name and an ID number; based on the business code, the application ID, at least one of the current timestamp, and the identity information, a unique string corresponding to the health authentication request is generated, including: concatenating the user name, the first separator, and the ID number in a corresponding order, and obtaining the identity code corresponding to the identity information through a preset encoding method; based on the business code, the application ID, at least one of the current timestamp, and the identity code, a unique string corresponding to the health authentication request is generated.

[0005] In one example, a unique string corresponding to the health authentication request is generated based on at least one of the business code, the application ID, the current timestamp, and the identity code, including: concatenating the business code, the application ID, the current timestamp, the identity code, and the second separator in a corresponding order to generate a unique string corresponding to the health authentication request; encrypting the unique string to obtain a unique encrypted string; generating a dynamic code corresponding to the health authentication request based on the unique string and the corresponding code feature prefix, including: generating a dynamic code corresponding to the health authentication request based on the unique encrypted string and the corresponding code feature prefix.

[0006] In one example, encrypting the unique string to obtain a unique encrypted string includes: determining a corresponding symmetric encryption key according to the application ID; and encrypting the unique string using an AES symmetric encryption algorithm and the encryption key to obtain a unique encrypted string.

[0007] In one example, the authentication types include: returning to work, returning to school, entering and exiting specific places, and taking public transportation.

[0008] In one example, the method further includes: writing the generation process of the dynamic code into the blockchain platform, wherein the generation process includes the health authentication request, the identity information, the authentication type, the preset correspondence, the business code, the application ID, the timestamp, the unique string, and the code feature prefix.

[0009] In one example, the method further includes: generating a corresponding smart contract and deploying it in the blockchain platform, wherein the smart contract includes: determining a business code smart contract, determining an application ID smart contract, generating a unique string smart contract, generating a dynamic code smart contract, and writing a chain smart contract.

[0010] In one example, the business code determination smart contract is used to: determine the business code corresponding to the health authentication request according to the authentication type corresponding to the health authentication request and a preset correspondence relationship; the application ID determination smart contract is used to: determine the application ID corresponding to the health authentication request; the unique string generation smart contract is used to: generate a unique string corresponding to the health authentication request according to the business code, the application ID, at least one of the current timestamp, and the identity information; the dynamic code generation smart contract is used to: generate the dynamic code corresponding to the health authentication request according to the unique string and the corresponding code feature prefix; the chain writing smart contract is used to: write the dynamic code as the health code of the user node into the blockchain platform.

[0011] On the other hand, the present application also proposes a health authentication device based on blockchain and dynamic code, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can: determine a pre-created blockchain platform, wherein the blockchain platform includes a user node; receive a health authentication request sent by the user node, wherein the health authentication request carries the identity information of the user node; determine the business code corresponding to the health authentication request according to the authentication type corresponding to the health authentication request and a preset corresponding relationship, and / or determine the application ID corresponding to the health authentication request; generate a unique string corresponding to the health authentication request according to the business code, the application ID, at least one of the current timestamp, and the identity information; generate a dynamic code corresponding to the health authentication request according to the unique string and the corresponding code feature prefix, and write the dynamic code into the blockchain platform as the health code of the user node to facilitate the health authentication of the user node.

[0012] On the other hand, the present application also proposes a non-volatile computer storage medium for health authentication based on blockchain and dynamic code, storing computer executable instructions, and the computer executable instructions are set to: determine a pre-created blockchain platform, wherein the blockchain platform includes a user node; receive a health authentication request sent by the user node, wherein the health authentication request carries the identity information of the user node; determine the business code corresponding to the health authentication request according to the authentication type corresponding to the health authentication request and a preset correspondence relationship, and / or determine the application ID corresponding to the health authentication request; generate a unique string corresponding to the health authentication request according to the business code, the application ID, at least one of the current timestamp, and the identity information; generate a dynamic code corresponding to the health authentication request according to the unique string and the corresponding code feature prefix, and write the dynamic code into the blockchain platform as the health code of the user node to facilitate the health authentication of the user node.

[0013] The health authentication method proposed in this application can bring the following beneficial effects:

[0014] Since the blockchain platform is a distributed storage, data tampering of a single node will not take effect, ensuring the authenticity and credibility of the data on the blockchain platform. Therefore, in the process of health authentication, by setting a dynamic code and writing the dynamic code into the blockchain platform, when an abnormal situation occurs, each node in the blockchain platform can trace the dynamic code at any time, protecting the interests of users. In addition, adding the user's identity information during the encoding process can make the relationship between the dynamic code and the user closer, which is more conducive to the traceability of the user node. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0016] Figure 1 This is a flowchart of a health authentication method based on blockchain and dynamic code in an embodiment of the present application;

[0017] Figure 2 This is a schematic diagram of a health authentication device based on blockchain and dynamic code in an embodiment of the present application;

[0018] Figure 3 This is an example diagram of a health authentication method based on blockchain and dynamic code in an embodiment of the present application. DETAILED DESCRIPTION

[0019] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0020] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0021] like Figure 1 As shown, the embodiment of the present application provides a health authentication method based on blockchain and dynamic code, wherein the dynamic code is a built-in rule for generating a string code, which can support time-sensitive coding, and the method includes:

[0022] S101. Determine a pre-created blockchain platform, wherein the blockchain platform includes user nodes.

[0023] Blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, and encryption algorithm. It is essentially a decentralized database.

[0024] First, a blockchain platform created based on a blockchain framework can be determined. The blockchain framework can be any blockchain framework that can implement the corresponding functions of the embodiments of the present application, such as Bitcoin, Ethereum, Fabric, Corda, etc. The blockchain platform can refer to a platform that stores blockchains, for example, a distributed system, etc. Of course, the blockchain platform can also directly represent the blockchain itself, which is not limited here.

[0025] In the blockchain platform, users who need health authentication can be deployed as nodes in the blockchain platform, which can be referred to as user nodes.

[0026] S102: Receive a health authentication request sent by the user node, wherein the health authentication request carries identity information of the user node.

[0027] S103. Determine the service code corresponding to the health authentication request and / or the application ID corresponding to the health authentication request according to the authentication type corresponding to the health authentication request and a preset corresponding relationship.

[0028] In real life, user nodes may need to perform health authentication for various reasons. At this time, the user node can send a corresponding health authentication request to the blockchain platform. Among them, the health authentication request includes the identity information of the user node, the authentication type of the health authentication request, and other information. The authentication type refers to the reason why the user node makes a health authentication request, which can include: returning to work, returning to school, entering and leaving specific places, taking public transportation, etc.

[0029] After receiving the health authentication request, the business code corresponding to the health authentication request can be determined according to the determined authentication type and a preset corresponding relationship, and / or the corresponding application ID can be determined according to the health authentication request.

[0030] Specifically, the main function of the business code is to classify the purpose of the user node application. It can be a unique identifier for a specified business scenario. It can determine the basic properties of the code, such as the validity period and parsing method. It is generally built-in by the system. The corresponding relationship of the preset business code can be set by the generator of the dynamic code, or it can be set by multiple generators or developers after agreeing on rules. The business code can usually consist of uppercase letters, "_", "-" and numbers, for example Figure 3 YWBM shown.

[0031] When determining the application ID, you can first determine the application that the user node sends the health authentication request and the corresponding application when using the health authentication. The application can be an APP on a terminal such as a smartphone or tablet, or an application for various operating systems on a computer, or a mini-program application. Usually, each application will have its corresponding application ID, also known as APPID. The application ID can be used to uniquely identify the corresponding application on the device and in the application store. For example Figure 3 Appak shown in.

[0032] S104. Generate a unique string corresponding to the health authentication request based on the business code, the application ID, at least one of the current timestamp, and the identity information.

[0033] After determining the service code and application ID, a unique string corresponding to the health authentication request can be generated based on at least one of the service code, application ID, and current timestamp, as well as the identity information corresponding to the user node. The timestamp can be the UTC time of the code generation moment, which can be accurate to milliseconds, and has multiple formats such as "YYYYMMDDhhmmssSSS", "YYYYMMDDhhmmss", "YYYYMMDDhhmm", "YYYYMMDDhh", "YYYYMMDD", "YYMMDD", "YYYYMM", "YYMM", etc. The specific format is not limited here, and can be, for example, Figure 3 1582179788 shown.

[0034] Specifically, the identity information may include the user name, ID number, etc. corresponding to the user node. When generating a unique string based on the identity information, the user name and ID number may be concatenated in a corresponding order, and then encoded using a preset encoding method to obtain an identity code, and then a unique string is generated based on the identity code. The corresponding order may be the order of the user name and ID number. When concatenating, a corresponding separator may be added between the user name and the ID number, which may be referred to as the first separator. The first separator may be, for example Figure 3 The "|" in the string may not be added. The preset encoding method may be, for example, Base64, etc., which will not be described in detail here. Figure 3 As shown, the user name is "Zhang XX", the first separator is "|", the ID number is 370101196001012345, and the identity code obtained by Basee64 encoding is 5byg5p+Q5p+QfDM3MDEwMTE2f3.

[0035] After the identity code is obtained, a unique string can be generated according to at least one of the business code, application ID, and timestamp, as well as the identity code. When generating the unique string, it can be directly obtained by splicing, or it can be obtained by splicing after separating each piece of information by a separator, or it can be obtained by symmetrically encrypting the obtained unique string and using the obtained unique encrypted string as the unique string to generate the dynamic code.

[0036] Specifically, you can Figure 3 As shown, the business code, application ID, identity code, and timestamp are arranged in the corresponding order and separated by the second separator (i.e. Figure 3 After separating the "." shown in , a unique string is obtained. Then, the unique string is encrypted by the AES symmetric encryption algorithm and the corresponding encryption key to obtain a unique encrypted string. The encryption key here can be determined by the application ID, that is, the corresponding encryption key is pre-assigned to different application IDs, and the encryption key used at the current moment can be determined according to the pre-assigned corresponding relationship. The unique encrypted string obtained after encrypting the unique string can be as follows Figure 3 As shown in the figure, veTfTaeojawVviVTztUPBTfNOsX…. Among them, due to the length of the unique encrypted string, in order to facilitate the display of the figure, Figure 3 Only some characters of the unique encrypted string are listed, not all of them.

[0037] S105. Generate a dynamic code corresponding to the health authentication request based on the unique string and the corresponding code feature prefix, and write the dynamic code into the blockchain platform as the health code of the user node to facilitate health authentication of the user node.

[0038] After obtaining a unique string, you can add a code feature prefix before the unique string to generate a dynamic code. Of course, if you get a unique encrypted string, you can add a code feature prefix before the unique encrypted string to generate a dynamic code, which will not be repeated here. Among them, the code feature prefix is ​​a specific URL that starts with http and ends with " / ", follows the URL writing rules, and is bound to the application ID. Usually, the dynamic code generated here can be expressed as a QR code, and the common QR code can be a QR code, that is, QR Code, QR stands for Quick Response. After generating the dynamic code, the dynamic code can be used as a health code, and the dynamic code can be written into the blockchain platform for storage, so that the user node can obtain it and perform health authentication. Of course, before writing the dynamic code into the blockchain platform, the dynamic code can be encrypted by the public key of the user node, and then written into the blockchain platform. The user node can obtain the dynamic code after decrypting it with its own private key.

[0039] In one embodiment, the generation process of the dynamic code can also be written into the blockchain platform so that the user node can check the dynamic code. The generation process represents the process from preparing to generating to generating the dynamic code. The corresponding relationship, algorithm, and related data used in this process can be written into the blockchain platform as a generation process, which can specifically include health authentication request, identity information, authentication type, preset corresponding relationship, business code, application ID, timestamp, unique string, and code feature prefix. When the user node is checking, it can first intercept the unique string part from the parameters corresponding to the dynamic code. Of course, if it is the only encrypted string obtained here, it can be decrypted by the encryption key corresponding to the application ID to obtain a unique string. Then the unique string is split by the second separator to obtain the content of each part, and the content of each part is compared to determine whether it is correct. When determining the identity information, if the identity information is an identity code obtained by a preset encoding method, it can be decompiled according to the obtained identity code to obtain the identity information for inspection.

[0040] In one embodiment, the corresponding smart contract can also be pre-generated and deployed in the blockchain platform. Smart contracts can include business coding determination smart contracts, application ID determination smart contracts, unique string generation smart contracts, dynamic code generation smart contracts, and chain writing smart contracts. The business coding determination smart contract is used to: determine the business coding corresponding to the health authentication request according to the authentication type corresponding to the health authentication request and the preset corresponding relationship; the application ID determination smart contract is used to: determine the application ID corresponding to the health authentication request; the unique string generation smart contract is used to: generate a unique string corresponding to the health authentication request according to the business code, the application ID, at least one of the current timestamp, and the identity information; the dynamic code generation smart contract is used to: generate the dynamic code corresponding to the health authentication request according to the unique string and the corresponding code feature prefix; the chain writing smart contract is used to: write the dynamic code as the health code of the user node into the blockchain platform.

[0041] Since the smart contracts on the blockchain platform are public, each node can verify whether the smart contract complies with the pre-agreed agreement and deploy it on its own node. Therefore, while improving the degree of automation, it also increases the trust of each node. Smart contracts can only be changed by upgrading, which requires each node to be deployed synchronously. Once deployed, they can only be executed through programs without interference from human factors, which enhances the credibility of the data.

[0042] like Figure 2As shown, the embodiment of the present application also provides a health authentication device based on blockchain and dynamic code, including:

[0043] at least one processor; and,

[0044] a memory communicatively connected to the at least one processor; wherein,

[0045] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:

[0046] Determining a pre-created blockchain platform, wherein the blockchain platform includes a user node;

[0047] Receiving a health authentication request sent by the user node, wherein the health authentication request carries the identity information of the user node;

[0048] Determine the service code corresponding to the health authentication request and / or the application ID corresponding to the health authentication request according to the authentication type corresponding to the health authentication request and the preset corresponding relationship;

[0049] Generate a unique string corresponding to the health authentication request according to the business code, the application ID, at least one of the current timestamp, and the identity information;

[0050] According to the unique string and the corresponding code feature prefix, a dynamic code corresponding to the health authentication request is generated, and the dynamic code is written into the blockchain platform as the health code of the user node to facilitate the health authentication of the user node.

[0051] The embodiment of the present application also provides a non-volatile computer storage medium for health authentication based on blockchain and dynamic code, storing computer executable instructions, wherein the computer executable instructions are configured as follows:

[0052] Determining a pre-created blockchain platform, wherein the blockchain platform includes a user node;

[0053] Receiving a health authentication request sent by the user node, wherein the health authentication request carries the identity information of the user node;

[0054] Determine the service code corresponding to the health authentication request and / or the application ID corresponding to the health authentication request according to the authentication type corresponding to the health authentication request and the preset corresponding relationship;

[0055] Generate a unique string corresponding to the health authentication request according to the business code, the application ID, at least one of the current timestamp, and the identity information;

[0056] According to the unique string and the corresponding code feature prefix, a dynamic code corresponding to the health authentication request is generated, and the dynamic code is written into the blockchain platform as the health code of the user node to facilitate the health authentication of the user node.

[0057] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0058] The devices and media provided in the embodiments of the present application correspond one-to-one to the methods. Therefore, the devices and media also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.

[0059] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may 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 codes.

[0060] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0061] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0062] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0063] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0064] Memory may include non-permanent storage in a computer-readable medium, in the form of random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0065] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0066] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0067] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A health authentication method based on blockchain and dynamic code, characterized in that: include: Determining a pre-created blockchain platform, wherein the blockchain platform includes a user node; Receiving a health authentication request sent by the user node, wherein the health authentication request carries the identity information of the user node; According to the authentication type corresponding to the health authentication request and the preset corresponding relationship, determine the service code corresponding to the health authentication request, and determine the application ID corresponding to the health authentication request; Generate a unique string corresponding to the health authentication request according to the business code, the application ID, the current timestamp, and the identity information; Generate a dynamic code corresponding to the health authentication request according to the unique string and the corresponding code feature prefix, and write the dynamic code into the blockchain platform as the health code of the user node to facilitate the health authentication of the user node; The identity information includes the user's name and ID number; Generate a unique string corresponding to the health authentication request according to the business code, the application ID, the current timestamp, and the identity information, including: After the user name, the first separator, and the ID number are concatenated in a corresponding order, an identity code corresponding to the identity information is obtained through a preset encoding method; Generate a unique string corresponding to the health authentication request according to the business code, the application ID, the current timestamp, and the identity code; Generate a unique string corresponding to the health authentication request according to the business code, the application ID, the current timestamp, and the identity code, including: Concatenate the service code, the application ID, the current timestamp, the identity code, and the second separator in a corresponding order to generate a unique string corresponding to the health authentication request; Encrypting the unique string to obtain a unique encrypted string; Generate a dynamic code corresponding to the health authentication request according to the unique string and the corresponding code feature prefix, including: Generate a dynamic code corresponding to the health authentication request according to the unique encrypted string and the corresponding code feature prefix; The unique string is encrypted to obtain a unique encrypted string, including: Determine a corresponding symmetric encryption key according to the application ID; The unique character string is encrypted by using the AES symmetric encryption algorithm and the encryption key to obtain a unique encrypted character string.

2. The method according to claim 1, characterized in that The certification types include: returning to work, returning to school, entering and exiting specific places, and taking public transportation.

3. The method according to claim 1, characterized in that The method further comprises: The generation process of the dynamic code is written into the blockchain platform, wherein the generation process includes the health authentication request, the identity information, the authentication type, the preset correspondence, the business code, the application ID, the timestamp, the unique string, and the code feature prefix.

4. The method according to claim 1, characterized in that: The method further comprises: Generate corresponding smart contracts and deploy them in the blockchain platform, wherein the smart contracts include: determining business code smart contract, determining application ID smart contract, generating unique string smart contract, generating dynamic code smart contract, and writing chain smart contract.

5. The method according to claim 4, characterized in that The business code determination smart contract is used to: determine the business code corresponding to the health authentication request according to the authentication type corresponding to the health authentication request and the preset corresponding relationship; The application ID determination smart contract is used to: determine the application ID corresponding to the health authentication request; The unique string generation smart contract is used to: generate a unique string corresponding to the health authentication request according to the business code, the application ID, the current timestamp, and the identity information; The dynamic code generation smart contract is used to: generate a dynamic code corresponding to the health authentication request according to the unique string and the corresponding code feature prefix; The write-chain smart contract is used to write the dynamic code as the health code of the user node into the blockchain platform.

6. A health authentication device based on blockchain and dynamic code, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Determining a pre-created blockchain platform, wherein the blockchain platform includes a user node; Receiving a health authentication request sent by the user node, wherein the health authentication request carries the identity information of the user node; According to the authentication type corresponding to the health authentication request and the preset corresponding relationship, determine the service code corresponding to the health authentication request, and determine the application ID corresponding to the health authentication request; Generate a unique string corresponding to the health authentication request according to the business code, the application ID, the current timestamp, and the identity information; Generate a dynamic code corresponding to the health authentication request according to the unique string and the corresponding code feature prefix, and write the dynamic code into the blockchain platform as the health code of the user node to facilitate the health authentication of the user node; The identity information includes the user's name and ID number; Generate a unique string corresponding to the health authentication request according to the business code, the application ID, the current timestamp, and the identity information, including: After the user name, the first separator, and the ID number are concatenated in a corresponding order, an identity code corresponding to the identity information is obtained through a preset encoding method; Generate a unique string corresponding to the health authentication request according to the business code, the application ID, the current timestamp, and the identity code; Generate a unique string corresponding to the health authentication request according to the business code, the application ID, the current timestamp, and the identity code, including: Concatenate the service code, the application ID, the current timestamp, the identity code, and the second separator in a corresponding order to generate a unique string corresponding to the health authentication request; Encrypting the unique string to obtain a unique encrypted string; Generate a dynamic code corresponding to the health authentication request according to the unique string and the corresponding code feature prefix, including: Generate a dynamic code corresponding to the health authentication request according to the unique encrypted string and the corresponding code feature prefix; The unique string is encrypted to obtain a unique encrypted string, including: Determine a corresponding symmetric encryption key according to the application ID; The unique character string is encrypted by using the AES symmetric encryption algorithm and the encryption key to obtain a unique encrypted character string.

7. A non-volatile computer storage medium for health authentication based on blockchain and dynamic code, storing computer executable instructions, characterized in that: The computer executable instructions are configured to: Determining a pre-created blockchain platform, wherein the blockchain platform includes a user node; Receiving a health authentication request sent by the user node, wherein the health authentication request carries the identity information of the user node; According to the authentication type corresponding to the health authentication request and the preset corresponding relationship, determine the service code corresponding to the health authentication request, and determine the application ID corresponding to the health authentication request; Generate a unique string corresponding to the health authentication request according to the business code, the application ID, the current timestamp, and the identity information; Generate a dynamic code corresponding to the health authentication request according to the unique string and the corresponding code feature prefix, and write the dynamic code into the blockchain platform as the health code of the user node to facilitate the health authentication of the user node; The identity information includes the user's name and ID number; Generate a unique string corresponding to the health authentication request according to the business code, the application ID, the current timestamp, and the identity information, including: After the user name, the first separator, and the ID number are concatenated in a corresponding order, an identity code corresponding to the identity information is obtained through a preset encoding method; Generate a unique string corresponding to the health authentication request according to the business code, the application ID, the current timestamp, and the identity code; Generate a unique string corresponding to the health authentication request according to the business code, the application ID, the current timestamp, and the identity code, including: Concatenate the service code, the application ID, the current timestamp, the identity code, and the second separator in a corresponding order to generate a unique string corresponding to the health authentication request; Encrypting the unique string to obtain a unique encrypted string; Generate a dynamic code corresponding to the health authentication request according to the unique string and the corresponding code feature prefix, including: Generate a dynamic code corresponding to the health authentication request according to the unique encrypted string and the corresponding code feature prefix; The unique string is encrypted to obtain a unique encrypted string, including: Determine a corresponding symmetric encryption key according to the application ID; The unique character string is encrypted by using the AES symmetric encryption algorithm and the encryption key to obtain a unique encrypted character string.