Close contact determination method, device, medium and electronic equipment

Receiving the public key for close contact query through the blockchain platform and determining whether the account contains the public key of the close contact device, solving the problem of accurately determining the close contact population while protecting the privacy of the patient, and achieving accurate identification of the close contact population.

CN115052293BActive Publication Date: 2025-01-14BEIJING JINGDONG ZHENSHI INFORMATION TECH CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210358068.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-06
Publication Date
2025-01-14
Estimated Expiration
2042-04-06

AI Technical Summary

Technical Problem

When judging the close contacts of people who are suffering from the epidemic, it is difficult to accurately determine the close contacts on the premise of protecting the privacy of patients. Some patients are unwilling to publish a complete personal trajectory due to privacy reasons, resulting in the inability to accurately determine the close contacts.

Method used

Receive the public key of the close contact query through the blockchain platform to determine whether the personal account on the blockchain platform contains the public key of the close contact device. If included, it is determined as a close contact account, so that the close contact group can be determined without publishing the patient's activity trajectory.

Benefits of technology

On the premise of protecting the privacy of patients, accurately identifying close contact groups to avoid the inaccurate determination of close contact groups caused by privacy protection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115052293B_ABST
    Figure CN115052293B_ABST
Patent Text Reader

Abstract

The embodiments of the present disclosure provide a close contact determination method, device, medium and electronic device, which relate to the field of blockchain technology. The method includes: receiving a close contact query public key sent by a blockchain platform, the close contact query public key is the public key corresponding to the account of a patient or place in an epidemic state; determining whether the personal account corresponding to the first terminal device on the blockchain platform contains the close contact query public key, and the personal account stores the public key corresponding to the account of the close contact device of the first terminal device; if the close contact query public key is contained, it is determined that the personal account belongs to a close contact account. According to the technical solution of the embodiments of the present disclosure, it is possible to determine the close contacts of the patient while protecting the patient's privacy.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] As the novel coronavirus continues to spread, the epidemic has gradually entered a normalized stage, and how to identify the close contacts of confirmed patients has become a focus of attention.

[0003] At present, when judging whether an epidemic personnel is a close contact of a confirmed patient, the main method is to publish the patient's activity trajectory. However, this solution has the following problems: some patients are unwilling to publish their complete personal trajectory for privacy reasons, resulting in the inability to accurately determine the patient's close contacts.

[0004] Therefore, how to accurately identify the patient's close contacts while protecting the patient's privacy has become a technical problem that needs to be solved urgently.

[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0006] The purpose of the embodiments of the present disclosure is to provide a close contact determination method, a close contact determination device, a computer-readable medium and an electronic device, so as to at least to a certain extent achieve the determination of the patient's close contacts under the premise of protecting the patient's privacy.

[0007] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.

[0008] According to a first aspect of an embodiment of the present disclosure, a close contact determination method is provided, the method comprising: receiving a close contact query public key sent by a blockchain platform, the close contact query public key being a public key corresponding to an account of a patient or place in an epidemic state; determining whether a personal account corresponding to a first terminal device on the blockchain platform contains the close contact query public key, the personal account storing a public key corresponding to an account of a close contact device of the first terminal device; if the close contact query public key is contained, determining that the personal account is a close contact account.

[0009] According to the first aspect, in some example embodiments, determining whether the personal account corresponding to the first terminal device on the blockchain platform contains the close connection query public key includes: determining a public key list of the personal account corresponding to the first terminal device on the blockchain platform; querying the close connection query public key from the public key list; and determining whether the close connection query public key is contained based on the query result.

[0010] According to the first aspect, in some example embodiments, a first client of the blockchain platform is installed on the first terminal device, and the method further includes: generating a key pair through the first client, the key pair including a first public key; uploading the first public key to the blockchain platform, so that the blockchain platform determines the account address of the personal account corresponding to the first client through a summary operation.

[0011] According to the first aspect, in some example embodiments, the method further includes: determining whether there is a second terminal device within the Bluetooth signal range of the first terminal device, and a second client of the blockchain platform is installed on the second terminal device; if the second terminal device exists, sending the first public key to the second terminal device; receiving the second public key sent by the second terminal device, and storing the second public key in the personal account.

[0012] According to the second aspect of an embodiment of the present disclosure, another close contact determination method is provided, the method comprising: receiving a close contact query public key sent by a blockchain platform, the close contact query public key being the public key corresponding to the account of a patient in an epidemic state; determining whether a place account of a place corresponding to a first terminal device on the blockchain platform contains the close contact query public key, the place account storing the public key corresponding to the account of a close contact device of the first terminal device; if it contains the close contact query public key, determining that the patient has visited the place.

[0013] According to the second aspect, in some example embodiments, determining whether the place account of the place corresponding to the first terminal device on the blockchain platform contains the close connection query public key includes: determining a public key list of the place account of the place corresponding to the first terminal device on the blockchain platform; querying the close connection query public key from the public key list; and determining whether the close connection query public key is included based on the query result.

[0014] According to the second aspect, in some example embodiments, the method further includes: obtaining a list of public keys corresponding to the accounts of patients in the epidemic state on the blockchain platform; obtaining the public keys after a target time from the public key list, wherein the target time is the recording time of the patient's public key; determining the account address of the personal account corresponding to each public key based on each public key; and sending the public key of the patient's account to the account address through the blockchain platform.

[0015] According to a third aspect of an embodiment of the present disclosure, a close contact determination device is provided, the device comprising: a public key receiving module, used to receive a close contact query public key sent by a blockchain platform, the close contact query public key being a public key corresponding to an account of a patient or place in an epidemic state; a public key query module, used to determine whether a personal account corresponding to a first terminal device on the blockchain platform contains the close contact query public key, the personal account storing a public key corresponding to an account of a close contact device of the first terminal device; a close contact determination module, used to determine that the personal account belongs to a close contact account if the close contact query public key is contained.

[0016] According to the third aspect, in some example embodiments, the public key query module is also used to: determine a public key list of personal accounts corresponding to the first terminal device on the blockchain platform; query the close contact query public key from the public key list; and determine whether the close contact query public key is included based on the query result.

[0017] According to the third aspect, in some example embodiments, a first client of the blockchain platform is installed on the first terminal device, and the method apparatus further includes: a key pair generation module, used to generate a key pair through the first client, the key pair including a first public key; and an account generation module, used to upload the first public key to the blockchain platform, so that the blockchain platform determines the account address of the personal account corresponding to the first client through a summary operation.

[0018] According to the third aspect, in some example embodiments, the apparatus further includes: a scanning module, used to determine whether there is a second terminal device within the Bluetooth signal range of the first terminal device, and a second client of the blockchain platform is installed on the second terminal device; a public key exchange module, used to send the first public key to the second terminal device if the second terminal device exists; receive the second public key sent by the second terminal device, and store the second public key in the personal account.

[0019] According to the fourth aspect of an embodiment of the present disclosure, a close contact determination device is provided, the device comprising: a public key receiving module, used to receive a close contact query public key sent by a blockchain platform, the close contact query public key being the public key corresponding to the account of a patient in an epidemic state; a public key query module, used to determine whether a place account of a place corresponding to a first terminal device on the blockchain platform contains the close contact query public key, the place account stores the public key corresponding to the account of a close contact device of the first terminal device; a visit determination module, used to determine whether the patient has visited the place if the close contact query public key is contained.

[0020] According to the fourth aspect, in some example embodiments, the public key query module is also used to: determine a public key list of the place account of the place corresponding to the first terminal device on the blockchain platform; query the close contact query public key from the public key list; and determine whether the close contact query public key is included based on the query result.

[0021] According to the fourth aspect, in some example embodiments, the device further includes: a public key list acquisition module, used to obtain a public key list corresponding to the account of the patient in the epidemic state on the blockchain platform; a filtering module, used to obtain the public key after the target time from the public key list, and the target time is the recording time of the patient's public key; an address determination module, used to determine the account address of the personal account corresponding to each public key based on each public key; a public key sending module, used to send the public key of the patient's account to the account address through the blockchain platform.

[0022] According to a fifth aspect of an embodiment of the present disclosure, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processor, the close contact determination method as described in the first aspect or the second aspect of the above embodiment is implemented.

[0023] According to the sixth aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the close contact determination method as described in the first aspect or the second aspect of the above-mentioned embodiment.

[0024] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0025] In some embodiments of the present disclosure, the recipient's personal account stores the public key corresponding to the account of the close contact device of the first terminal device, and determines whether the personal account corresponding to the recipient on the blockchain platform contains the close contact query public key. If the close contact query public key is contained, it is determined that the personal account belongs to a close contact account. Since the recipient's personal account stores the public key corresponding to the account of the close contact device of the first terminal device, the patient's close contacts can be determined without publishing the patient's activity trajectory, thereby achieving the determination of the patient's close contacts under the premise of protecting the patient's privacy.

[0026] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure, and together with the specification, are used to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0028] Figure 1 A schematic diagram showing an application scenario of the close contact determination method in an exemplary embodiment of the present disclosure;

[0029] Figure 2 A schematic flow chart of a close contact determination method according to some example embodiments of the present disclosure is shown;

[0030] Figure 3 A schematic flow chart of a method for determining close contact of a patient in direct contact according to other exemplary embodiments of the present disclosure is shown;

[0031] Figure 4 A schematic flow chart of a method for determining close contacts of patients who have visited the same place according to some further example embodiments of the present disclosure is shown;

[0032] Figure 5 A schematic flow chart of a close contact determination method according to some other example embodiments of the present disclosure is shown;

[0033] Figure 6 A schematic diagram showing a close contact determination device according to some example embodiments of the present disclosure;

[0034] Figure 7 A schematic structural diagram of a close contact determination device according to another embodiment of the present disclosure is shown;

[0035] Figure 8 A schematic structural diagram of an electronic device in an exemplary embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0036] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be more comprehensive and complete and will fully convey the concept of the example embodiments to those skilled in the art.

[0037] In addition, the described features, structures or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known methods, devices, implementations or operations are not shown or described in detail to avoid blurring the various aspects of the present disclosure.

[0038] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0039] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0040] In order to clearly illustrate the technical solutions in the embodiments of the present disclosure, before specifically describing the embodiments of the present disclosure, some terms used in the embodiments are first described.

[0041] The close contact determination method in the exemplary embodiment of the present disclosure is described in detail below with reference to the accompanying drawings.

[0042] Figure 1 A schematic diagram of an application scenario provided according to some embodiments of the present disclosure is shown.

[0043] Figure 1 A schematic diagram of an application scenario provided according to some embodiments of the present disclosure is shown. The application scenario 100 includes a terminal device of a contact 110 , a terminal device of a patient 120 , and a blockchain platform 130 .

[0044] The terminal devices of the contact 110 and the patient 120 may be, for example, mobile phones, tablet computers, laptop computers, etc. The blockchain platform 130 may include multiple blockchain nodes, on which the accounts of the contact 110 and the patient 120 are stored, and the accounts store the public keys corresponding to the accounts of the close contacts of the respective terminal devices. For example, the account of the patient 120 stores the public keys corresponding to the accounts of the close contacts of the terminal device of the patient 120 in the form of a public key list.

[0045] The terminal devices of the contact 110 and the patient 120 and the service blockchain platform 130 can communicate with each other through the network. The network can be a wired network or a wireless network, and the network 130 can be a PSTN (Public Switched Telephone Network) or the Internet.

[0046] Furthermore, after confirmation by patient 120, the blockchain client of patient 120 notifies the blockchain platform of the infection epidemic, and blockchain platform 130 updates the status of the patient's account to the epidemic status, obtains the public key list stored in the patient's account, determines the accounts corresponding to each public key in the public key list of the patient's account, and broadcasts the patient's public key, i.e., the close contact query public key, to these accounts. In other words, the patient's public key is broadcast to persons who have had contact with the patient. After receiving the patient's public key, contact 110 verifies whether the patient has been in contact based on whether the public key is included in the public key list of contact 110.

[0047] Figure 2 The flowchart of the close contact determination method according to some example embodiments of the present disclosure is shown. The execution subject of the close contact determination method provided in the embodiment of the present disclosure may be a computing device with computing processing functions, such as Figure 1 The close contact determination method includes steps S210 to S230. The close contact determination method in the exemplary embodiment is described in detail below with reference to the accompanying drawings.

[0048] Reference Figure 2 As shown, in step S210, a close contact query public key sent by the blockchain platform is received, and the close contact query public key is the public key corresponding to the account of the patient or place in the epidemic state.

[0049] In an example embodiment, a terminal device of a recipient on a blockchain platform receives a close contact query public key sent by the blockchain platform, which is a public key corresponding to an account of a patient or place in an epidemic state. The close contact query public key is used to query close contacts who have had contact with the patient or places visited by the patient.

[0050] For example, after a patient is diagnosed, the status of the patient's account on the blockchain platform is updated to the epidemic status, and a list of public keys corresponding to the patient's account on the blockchain platform in the epidemic status is obtained; the account address of the personal account corresponding to each public key in the public key list is determined; the close contact query public key of the account in the epidemic status is sent to the account address through the blockchain platform, and the recipient's terminal device receives the close contact query public key sent by the blockchain platform.

[0051] In step S220, it is determined whether the personal account corresponding to the first terminal device on the blockchain platform contains a close contact query public key, and the public key corresponding to the account of the close contact device of the first terminal device is stored in the personal account.

[0052] In an example embodiment, the first terminal device is a terminal device of the recipient, and a public key list of a personal account corresponding to the first terminal device on the blockchain platform is determined, where the public key list stores public keys corresponding to accounts of close contact devices of the first terminal device; a close contact query public key is queried from the public key list; and it is determined whether the close contact query public key is included based on the query result.

[0053] For example, when two terminal devices with blockchain clients come into contact, they send personal public keys to each other within the range of Bluetooth communication, such as 10 meters. After receiving the other party's public key, the other party's public key is stored in the personal account of the terminal device on the blockchain platform, such as in the public key list. After receiving the close contact query public key of the confirmed patient sent by the blockchain platform, the close contact query public key is queried from the public key list, and it is determined whether the close contact query public key is included based on the query result.

[0054] In step S230, if the close contact query public key is included, it is determined that the personal account belongs to a close contact account.

[0055] In an example embodiment, if it is determined according to the query results that the public key list contains a close contact query public key, then it is determined that the personal account belongs to a close contact account, that is, the user of the first terminal device belongs to the close contact group; if it is determined according to the query results that the public key list does not contain a close contact query public key, then it is determined that the personal account does not belong to a close contact account, that is, the user of the first terminal device does not belong to the close contact group.

[0056] according to Figure 2 In the technical solution of the example embodiment, the public key corresponding to the account of the close contact device of the first terminal device is stored in the personal account of the recipient, and it is determined whether the personal account corresponding to the recipient on the blockchain platform contains the close contact query public key. If the close contact query public key is contained, it is determined that the personal account belongs to a close contact account. Since the public key corresponding to the account of the close contact device of the first terminal device is stored in the personal account of the recipient, the close contacts of the patient can be determined without publishing the patient's activity trajectory, thereby being able to determine the close contacts of the patient under the premise of protecting the patient's privacy to a certain extent.

[0057] Figure 3 A schematic flow chart of a method for determining close contact of direct contact with a patient according to some other example embodiments of the present disclosure is shown.

[0058] Reference Figure 3 As shown, in step S305, a key pair is generated.

[0059] In an example embodiment, a unified blockchain platform is built, and users can install the blockchain client on their mobile devices by themselves. The blockchain client needs to enable Bluetooth permissions. A key pair is generated using the blockchain client. The key pair contains a public key and a private key, and does not contain personal information. The key pair is stored in the blockchain client.

[0060] In step S310, a personal account is generated.

[0061] In the example embodiment, the public key is uploaded to the blockchain platform, and the blockchain platform uses a digest algorithm to calculate the value of the passed public key and the address of the personal account. After the public key of the personal account is obtained later, the same digest algorithm can be used to calculate the address of the personal account corresponding to the public key. At the same time, the personal account defaults to the health status of each person.

[0062] In step S315, public key exchange is performed

[0063] In an example embodiment, human contact: When two people with blockchain clients come into contact, that is, within the range of mobile phone Bluetooth communication, such as 10 meters, they send personal public keys to each other. These public keys do not carry any personal information, but can represent the owner who has come into contact with the public key.

[0064] In step S320, the public keys of the recently contacted contacts are stored.

[0065] In an example embodiment, after receiving the other party's public key, the other party's public key is stored in a personal account on the blockchain platform. The other party's public key can be stored in the blockchain platform in the form of a list. For example, the storage address of the personal account is calculated based on the public key of the personal account, and the other party's public key is uploaded to the blockchain, that is, the other party's public key is stored in the personal account for a reasonable period of time.

[0066] In step S325, the status of the patient account is updated to the epidemic status.

[0067] In an example embodiment, the status of the confirmed patient's account on the blockchain platform is updated to the epidemic status. For example, after the patient is diagnosed, the status of the patient's account on the blockchain platform is updated to the epidemic status, and no personal information is disclosed.

[0068] In step S330, the blockchain platform obtains the contact public key from the patient account, sends the patient public key to the address corresponding to the contact public key, and notifies the contacts who have had contact with the patient.

[0069] In an example embodiment, the blockchain platform obtains a public key list from the patient account, in which the public keys of contacts are stored, determines the accounts corresponding to the public keys of the contacts that the patient has contacted, and then sends the patient's personal public key, i.e., the patient's public key or the close contact query public key, to these accounts. The public key does not carry the patient's personal information.

[0070] In step S335, check whether the patient's public key is included to confirm whether it has been contacted.

[0071] In an example embodiment, the recipient searches the personal account to see whether the patient's public key is included. If the patient's public key is indeed included, it can be confirmed that the patient has been contacted and it is not a false positive.

[0072] according to Figure 3 According to the technical solution in the example embodiment, on the one hand, since the public key corresponding to the account of the recipient's close contact device is stored in the recipient's personal account, the patient's close contacts can be determined without publishing the patient's activity trajectory, thereby being able to accurately determine the patient's close contacts while protecting the patient's privacy to a certain extent; on the other hand, since blockchain can be stored in a decentralized manner, it can protect personal privacy and the location of the epidemic, and accurately determine whether there has been close contact with the patient under the premise that personal travel data is not stored in a centralized manner.

[0073] Figure 4 A schematic flowchart of a method for determining close contacts of patients who have visited the same place according to some further example embodiments of the present disclosure is shown.

[0074] Figure 4 A schematic diagram of a close contact determination device according to some example embodiments of the present disclosure is shown.

[0075] exist Figure 4 In the example embodiment, a unified blockchain platform is built. Users can install the blockchain client on their mobile devices by themselves, or they can install the blockchain client on the device that scans the code before entering and leaving certain places with a large population density, such as a hotel 400. The blockchain client needs to enable Bluetooth permission.

[0076] Reference Figure 4 As shown, in step S405, a key pair is generated.

[0077] In an exemplary embodiment, a mobile device such as a scanning device is installed at the entrance of the hotel 400, a venue blockchain client is installed on the mobile device, and a key pair is generated using the blockchain client. The key pair does not contain any hotel information and is stored in the blockchain client.

[0078] In step S410, a venue account is generated.

[0079] In the example implementation, the hotel's public key is uploaded to the blockchain platform, and the blockchain platform uses a digest algorithm to calculate the value of the passed public key and the address of the venue account corresponding to the hotel. After obtaining the hotel's public key, the same digest algorithm can be used to calculate the address of the venue account corresponding to this public key. At the same time, the venue account defaults to a secure state.

[0080] In step S415, public key exchange is performed.

[0081] In the example implementation, each person entering and exiting the hotel exchanges a public key with the hotel account.

[0082] In step S420, the public keys of recent visitors are stored.

[0083] In an example embodiment, the public key of a visitor who visits a hotel is stored in the hotel account. The public key of the hotel is stored in the personal account. For example, it is stored for a period of one month.

[0084] In step S425, the status of the patient account is updated to the epidemic status.

[0085] In an example embodiment, the status of the confirmed patient's account on the blockchain platform is updated to the epidemic status. For example, after the patient is diagnosed, the status of the patient's account on the blockchain platform is updated to the epidemic status, and no personal information is disclosed.

[0086] In step S430, the blockchain platform obtains the contact public key from the account, sends the patient public key to the address corresponding to the contact public key, and notifies the contacts who have had contact with the patient.

[0087] In an example embodiment, the blockchain platform obtains a public key list from a patient account, in which the public keys of contacts are stored, determines the accounts corresponding to the public keys of the contacts that the patient has contacted, and then sends the patient's public key or close contact query public key to these accounts, which public key does not carry the patient's personal information.

[0088] In step S435, after receiving the notification, it is inquired whether the visit has been made.

[0089] In an exemplary embodiment, after receiving the patient's public key, the hotel 400 searches for the patient's public key from the public key list of the hotel account. If the patient's public key is found, it is confirmed that the patient has visited the hotel 400 .

[0090] In step S440, the venue account is updated to the epidemic status.

[0091] In an example embodiment, the hotel updates the status of the venue account to the epidemic status and does not disclose any personal information other than that.

[0092] Returning to step S430, the blockchain platform obtains the contactor's public key from the venue account, sends the patient's public key to the address corresponding to the contactor's public key, and notifies the contacts who have been in contact with the venue.

[0093] In an example embodiment, the blockchain platform determines the personal accounts corresponding to other public keys that have entered and exited the hotel based on the public key list of the venue account, filters the public keys after the patient's visit time, and sends the hotel public key of the hotel to these personal accounts.

[0094] In step S445, it is checked whether the public key is included and whether contact is made.

[0095] In the example embodiment, the recipient checks the personal account to see if it contains the hotel public key. If it does contain the hotel public key, it can be confirmed that the patient has been to the same place. Since the personal account only has the sender's public key information, it is impossible to confirm which specific hotel sent the notification, which also protects the hotel's privacy.

[0096] according to Figure 4 According to the technical solution in the example embodiment, on the one hand, since the public key corresponding to the account of the recipient's close contact device is stored in the recipient's personal account, the patient's close contacts can be determined without publishing the patient's activity trajectory, thereby achieving to a certain extent the accurate determination of the patient's close contacts under the premise of protecting the patient's privacy; on the other hand, since the people who have visited the hotel can be determined without publishing the hotel information, thereby achieving to a certain extent the accurate determination of the close contacts who have visited the hotel under the premise of protecting the hotel's privacy; on the other hand, since blockchain can be stored in a decentralized manner, it can protect personal privacy, the location of the epidemic, and accurately determine the patient's close contacts under the premise that personal travel data is not stored in a centralized manner.

[0097] Furthermore, in the example embodiment, if the user changes a mobile device such as a mobile phone installed with a blockchain client, the user can export the personal public and private keys to the new device, and the personal account and the public key list corresponding to the personal account are stored in the blockchain platform.

[0098] Figure 5 A schematic flow chart of a close contact determination method according to some other example embodiments of the present disclosure is shown.

[0099] Reference Figure 5 As shown, in step S510, a close contact query public key sent by the blockchain platform is received, and the close contact query public key is the public key corresponding to the account of the patient in the epidemic state.

[0100] In an example embodiment, a terminal device of a recipient on a blockchain platform receives a close contact query public key sent by the blockchain platform, where the close contact query public key is a public key corresponding to an account of a patient in an epidemic state. The close contact query public key is used to query places visited by the patient.

[0101] In step S520, it is determined whether the place account of the place corresponding to the first terminal device on the blockchain platform contains a close contact query public key, and the place account stores the public key corresponding to the account of the close contact device of the first terminal device.

[0102] In an example embodiment, the first terminal device is a terminal device set up in a place such as a hotel, and a public key list of a personal account corresponding to the first terminal device on the blockchain platform is determined, where the public key list stores public keys corresponding to accounts of close contact devices of the first terminal device; a close contact query public key is queried from the public key list; and it is determined whether the close contact query public key is included based on the query result.

[0103] In step S530, if the close contact query public key is included, it is determined that the patient has visited the place.

[0104] In an example embodiment, if it is determined according to the query result that the public key list includes the close query public key, it is determined that the patient has visited the place; if it is determined according to the query result that the public key list does not include the close query public key, it is determined that the patient has not visited the place.

[0105] It should be noted that since the close contact determination method of the exemplary embodiment of the present disclosure is different from the above Figure 2 The steps of the example embodiment of the close contact determination method correspond to those of the example embodiment of the close contact determination method of the present disclosure, so for details not disclosed in the embodiment of the present disclosure, please refer to the embodiment of the close contact determination method of the present disclosure.

[0106] according to Figure 5 According to the technical solution in the example embodiment, on the one hand, since the people who have visited the hotel can be identified without publishing the hotel information, it is possible to accurately identify the close contacts who have visited the hotel while protecting the privacy of the hotel to a certain extent; on the other hand, since blockchain can be stored in a decentralized manner, it is possible to protect personal privacy and the location of the epidemic, and accurately determine the close contacts of patients without centrally storing personal travel data.

[0107] It should be noted that the above figures are only schematic illustrations of the processes included in the method according to the exemplary embodiment of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0108] The following introduces an embodiment of a device of the present disclosure, which can be used to execute the above-mentioned close contact determination method of the present disclosure.

[0109] Figure 6 A schematic structural diagram of a close contact determination device according to an embodiment of the present disclosure is shown.

[0110] Reference Figure 6 As shown, a close contact determination device 600 is provided, and the device 600 includes: a public key receiving module 610, used to receive a close contact query public key sent by a blockchain platform, and the close contact query public key is a public key corresponding to an account of a patient or place in an epidemic state; a public key query module 620, used to determine whether a personal account corresponding to a first terminal device on the blockchain platform contains the close contact query public key, and the personal account stores a public key corresponding to an account of a close contact device of the first terminal device; a close contact determination module 630, used to determine that the personal account belongs to a close contact account if it contains the close contact query public key.

[0111] In some example embodiments, the public key query module 610 is further used to: determine a public key list of personal accounts corresponding to the first terminal device on the blockchain platform; query the close contact query public key from the public key list; and determine whether the close contact query public key is included based on the query result.

[0112] In some example embodiments, a first client of the blockchain platform is installed on the first terminal device, and the apparatus 600 further includes: a key pair generation module, configured to generate a key pair through the first client, wherein the key pair includes a first public key; and an account generation module, configured to upload the first public key to the blockchain platform, so that the blockchain platform determines the account address of the personal account corresponding to the first client through a summary operation.

[0113] In some example embodiments, the apparatus 600 further includes: a scanning module, used to determine whether there is a second terminal device within the Bluetooth signal range of the first terminal device, and a second client of the blockchain platform is installed on the second terminal device; a public key exchange module, used to send the first public key to the second terminal device if the second terminal device exists; and receive the second public key sent by the second terminal device, and store the second public key in the personal account.

[0114] Since the various functional modules of the close contact determination device 600 of the exemplary embodiment of the present disclosure correspond to the steps of the exemplary embodiment of the close contact determination method described above, for details not disclosed in the embodiment of the device of the present disclosure, please refer to the embodiment of the close contact determination method described above.

[0115] Figure 7 A schematic structural diagram of a close contact determination device according to an embodiment of the present disclosure is shown.

[0116] Reference Figure 7 As shown, a close contact determination device 700 is provided, and the device 700 includes: a public key receiving module 710, used to receive a close contact query public key sent by a blockchain platform, and the close contact query public key is a public key corresponding to an account of a patient in an epidemic state; a public key query module 720, used to determine whether a place account of a place corresponding to a first terminal device on the blockchain platform contains the close contact query public key, and the place account stores a public key corresponding to an account of a close contact device of the first terminal device; a visit determination module 730, used to determine that the patient has visited the place if the close contact query public key is contained.

[0117] In some example embodiments, the public key query module 720 is also used to: determine a public key list of the place account of the place corresponding to the first terminal device on the blockchain platform; query the close contact query public key from the public key list; and determine whether the close contact query public key is included based on the query result.

[0118] In some example embodiments, the device 700 also includes: a public key list acquisition module, used to obtain a public key list corresponding to the account of the patient in the epidemic state on the blockchain platform; a filtering module, used to obtain the public key after the target time from the public key list, and the target time is the recording time of the patient's public key; an address determination module, used to determine the account address of the personal account corresponding to each public key based on each public key; a public key sending module, used to send the public key of the patient's account to the account address through the blockchain platform.

[0119] Since the various functional modules of the close contact determination device 700 of the exemplary embodiment of the present disclosure correspond to the steps of the exemplary embodiment of the close contact determination method described above, for details not disclosed in the embodiment of the device of the present disclosure, please refer to the embodiment of the close contact determination method described above.

[0120] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0121] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0122] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0123] In the exemplary embodiments of the present disclosure, a computer storage medium capable of implementing the above method is also provided. A program product capable of implementing the above method of the present specification is stored thereon. In some possible embodiments, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code. When the above program product is run on a terminal device, the above program code is used to enable the above terminal device to execute the steps according to various exemplary embodiments of the present disclosure described in the above “Exemplary Method” section of the present specification.

[0124] The program product may be in a portable compact disk read-only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0125] The above program product can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0126] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0127] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0128] Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0129] After introducing the method, apparatus, and medium of the exemplary embodiment of the present disclosure, next, a computing device according to another exemplary embodiment of the present disclosure is introduced.

[0130] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".

[0131] In some possible embodiments, a computing device according to an embodiment of the present disclosure may include at least one processor and at least one memory. The memory stores program code, and when the program code is executed by the processor, the processor executes the steps of the close contact determination method according to various exemplary embodiments of the present disclosure described in the above “Exemplary Method” section of this specification. For example, the processor may execute the following steps: Figure 2The steps shown in: Step S210, receiving the close contact query public key sent by the blockchain platform, the close contact query public key is the public key corresponding to the account of the patient or place in the epidemic state; Step S220, determining whether the personal account corresponding to the first terminal device on the blockchain platform contains the close contact query public key, and the personal account stores the public key corresponding to the account of the close contact device of the first terminal device; Step S230, if the close contact query public key is contained, it is determined that the personal account belongs to a close contact account.

[0132] Refer to the following Figure 8 An electronic device 800 according to an example embodiment of the present disclosure is described. Figure 8 The electronic device 800 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0133] like Figure 8 As shown, the electronic device 800 is in the form of a general computing device. The components of the electronic device 800 may include but are not limited to: at least one processing unit 810, at least one storage unit 820, and a bus 830 connecting different system components (including the storage unit 820 and the processing unit 810).

[0134] Bus 830 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures.

[0135] The storage unit 820 may include a readable medium in the form of a volatile memory, such as a RAM (Random Access Memory) 821 and / or a cache memory 822 , and may further include a ROM (Read-Only Memory) 823 .

[0136] The storage unit 820 may also include a program / utility 825 having a set (at least one) of program modules 824, such program modules 824 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0137] The electronic device 800 may also communicate with one or more external devices 840 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 800, and / or communicate with any device that enables the electronic device 800 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 850. Furthermore, the electronic device 800 may also communicate with one or more networks (e.g., local area networks, wide area networks, and / or public networks, such as the Internet) via a network adapter 860. As shown, the network adapter 860 communicates with other modules of the electronic device 800 via a bus 830. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID (Redundant Arrays of Independent Disks, independent redundant disk array) systems, tape drives, and data backup storage systems, etc.

[0138] It should be noted that although several units or subunits of the close contact determination device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0139] In addition, although the operations of the disclosed method are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.

[0140] Although the spirit and principle of the present disclosure have been described with reference to several specific embodiments, it should be understood that the present disclosure is not limited to the disclosed specific embodiments, and the division of various aspects does not mean that the features in these aspects cannot be combined to benefit, and such division is only for the convenience of expression. The present disclosure is intended to cover various modifications and equivalent arrangements included in the spirit and scope of the attached claims.

Claims

1. A close contact determination method, characterized in that: The method comprises: Receive a close contact query public key sent by the blockchain platform, where the close contact query public key is a public key corresponding to an account of a patient or place in an epidemic state; Determine whether the personal account corresponding to the first terminal device on the blockchain platform contains the close contact query public key, and the public key corresponding to the account of the close contact device of the first terminal device is stored in the personal account; If the close connection query public key is included, it is determined that the personal account is a close connection account; The first terminal device has a first client of the blockchain platform installed thereon, and the method further includes: Generate a key pair through the first client, wherein the key pair includes a first public key; The first public key is uploaded to the blockchain platform, so that the blockchain platform determines the account address of the personal account corresponding to the first client through summary calculation.

2. The method according to claim 1, characterized in that The determining whether the personal account corresponding to the first terminal device on the blockchain platform contains the close contact query public key includes: Determine a public key list of personal accounts corresponding to the first terminal device on the blockchain platform; Query the close connection query public key from the public key list; Determine whether the close contact query public key is included according to the query result.

3. The method according to claim 1, characterized in that The method further comprises: Determine whether there is a second terminal device within the Bluetooth signal range of the first terminal device, and the second client of the blockchain platform is installed on the second terminal device; If the second terminal device exists, sending the first public key to the second terminal device; Receive the second public key sent by the second terminal device, and store the second public key in the personal account.

4. A close contact determination method, characterized in that: The method comprises: Receive a close contact query public key sent by the blockchain platform, where the close contact query public key is the public key corresponding to the account of the patient in the epidemic state; Determine whether the place account of the place corresponding to the first terminal device on the blockchain platform contains the close contact query public key, and the place account stores the public key corresponding to the account of the close contact device of the first terminal device; If the close contact query public key is included, it is determined that the patient has visited the place; The first terminal device has a first client of the blockchain platform installed thereon, and the method further includes: Generate a key pair through the first client, wherein the key pair includes a first public key; The first public key is uploaded to the blockchain platform, so that the blockchain platform determines the account address of the venue account corresponding to the first client through summary calculation.

5. The method according to claim 4, characterized in that The determining whether the place account of the place corresponding to the first terminal device on the blockchain platform contains the close contact query public key includes: Determine a list of public keys of venue accounts of venues corresponding to the first terminal device on the blockchain platform; Query the close connection query public key from the public key list; Determine whether the close contact query public key is included according to the query result.

6. The method according to claim 4, characterized in that The method further comprises: Obtain a list of public keys corresponding to the accounts of patients in the epidemic status on the blockchain platform; Acquire a public key after a target time from the public key list, where the target time is the recording time of the patient's public key; Determine, based on each of the public keys, the account address of the personal account corresponding to each of the public keys; The public key of the patient's account is sent to the account address through the blockchain platform.

7. A close contact determination device, characterized in that: The device comprises: A public key receiving module, used to receive a close contact query public key sent by the blockchain platform, where the close contact query public key is a public key corresponding to an account of a patient or place in an epidemic state; A public key query module, used to determine whether the personal account corresponding to the first terminal device on the blockchain platform contains the close contact query public key, and the public key corresponding to the account of the close contact device of the first terminal device is stored in the personal account; a close contact determination module, configured to determine that the personal account is a close contact account if the close contact query public key is included; The first terminal device is installed with a first client of the blockchain platform, and the apparatus further includes: a key pair generation module, used to generate a key pair through the first client, the key pair including a first public key; an account generation module, used to upload the first public key to the blockchain platform, so that the blockchain platform determines the account address of the personal account corresponding to the first client through a summary operation.

8. A close contact determination device, characterized in that: The device comprises: A public key receiving module, used to receive a close contact query public key sent by the blockchain platform, where the close contact query public key is the public key corresponding to the account of the patient in the epidemic state; A public key query module, used to determine whether the place account of the place corresponding to the first terminal device on the blockchain platform contains the close contact query public key, and the place account stores the public key corresponding to the account of the close contact device of the first terminal device; a visit determination module, configured to determine that the patient has visited the place if the close contact query public key is included; The first terminal device is installed with a first client of the blockchain platform, and the apparatus further comprises: generating a key pair through the first client, the key pair comprising a first public key; uploading the first public key to the blockchain platform, so that the blockchain platform determines the account address of the place account corresponding to the first client through a summary operation.

9. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the close contact determination method according to any one of claims 1 to 6 is implemented.

10. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, enables the one or more processors to implement the close contact determination method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method for determining close contact person, terminal equipment and server

    CN111641928A

  • Blockchain risk value management method and device, electronic equipment and storage medium

    CN112735602A

  • System and method for rapid identification of close contact person based on data mining technology

    CN113257433A