A close contact tracing method, device, storage medium and electronic device
Through blockchain technology and smart contracts, the encrypted identification code of close contacts is realized, and the tracking of close contacts is solved without leaking user personal information is solved, and the problem of user privacy cannot be protected in the existing technology is ensured. Uniqueness and traceability of information.
Patent Information
- Application Number
- CN202010942460.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-09
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2040-09-09
AI Technical Summary
Existing close contact tracing technology requires uploading user personal information and cannot effectively protect user privacy.
Through blockchain technology, close contact record data tables are stored on blockchain nodes, and smart contracts are used to decrypt the encrypted identification code of close contacts, obtain their personal information, and realize close contacts without revealing the user's personal privacy. track.
It ensures the encryption protection of user personal information, realizes the tracking function of close contacts, and ensures the uniqueness and traceability of information, avoiding the leakage of user privacy.
Smart Images

Figure CN112069542B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information processing technology, and in particular to a close contact tracking method, device, storage medium and electronic device. Background Art
[0002] Close contact tracing can help users self-judge their contact history with risky persons (infectious virus carriers, potential public safety hazard persons, etc.). It provides strong technical support for personnel control in emergency sites and reduces unnecessary harm caused by risky persons to ordinary people (personnel isolation, economic losses from business closures). Therefore, close contact tracing is becoming increasingly important in modern social management and brings convenience to daily life.
[0003] In order to use information technology to solve the problem of close contact tracking, a variety of "dynamic and active" epidemic prevention solutions using low-power Bluetooth technology have been proposed for tracking close contacts in COVID-19. For example, the user's indoor and outdoor user location information is obtained through low-power Bluetooth technology, and the user location information is sent to a third-party system (such as camera image monitoring in public places, road monitoring in transportation systems, etc.). The third-party system traces the user's movement trajectory data based on the user's location information, thereby tracing back users who have had close contact with the patient and reminding them to self-isolate or seek medical treatment in a timely manner.
[0004] Although thanks to the popularity of low-power Bluetooth technology, almost all smart terminal devices equipped with low-power Bluetooth can track close contacts, in the process of tracking close contacts, at least user personal information such as user movement trajectory data needs to be uploaded to a third-party system, which requires sacrificing a certain amount of user personal privacy, and thus user personal privacy cannot be guaranteed. Summary of the invention
[0005] In order to overcome the problems existing in the related art, the present application provides a close contact tracking method, device, storage medium and electronic device. During the close contact tracking process, there is no need to provide user personal information, and encryption protection is provided for user personal information. The close contact tracking function is realized without providing user personal information.
[0006] In order to achieve the above objectives, this application provides the following technical solutions:
[0007] A close contact tracing method, the method comprising:
[0008] The local storage uploads the close contact record data table to the blockchain node for storage according to a preset rule; the close contact record data table includes the corresponding relationship between the key number of the first user, the encrypted identification code of the first user, and the encrypted identification code corresponding to the close contact;
[0009] Receive a status change request from a first user, where the status change request includes at least a key number and an encrypted identification code of the first user, where the key number is used to record the correspondence between a public key and a private key, and the status change request is used to identify the first user as a confirmed case;
[0010] According to the key number of the first user, the block where the first user is located is searched from the blockchain node through the smart contract; the block where the first user is located stores a close contact record data table;
[0011] Obtaining the encrypted identification code corresponding to the close contact from the close contact record data table;
[0012] The public key and private key of the close contact are extracted according to the key number, the encrypted identification code corresponding to the close contact is decrypted to obtain the personal information of the close contact, and notification information is sent to the corresponding close contact.
[0013] Preferably, the key number, public key and private key of the close contact are extracted according to the key number, the encrypted identification code corresponding to the close contact is decrypted to obtain the personal information of the close contact, and notification information is sent to the corresponding close contact, specifically:
[0014] Extract the key number, public key and private key of the close contact according to the key number;
[0015] Decrypt the encrypted identification code corresponding to the close contact based on the key number, public key and private key of the close contact to determine the personal information of the close contact;
[0016] According to the personal information of the close contacts, notification information is sent to the corresponding close contacts.
[0017] Preferably, the encrypted identification code corresponding to the close contact is decrypted based on the key number, public key and private key of the close contact to determine the personal information of the close contact, specifically:
[0018] Determining whether the third-party system has obtained authorization from the close contact according to the smart contract;
[0019] If yes, determine the key of the encryption identification code corresponding to the close contact according to the key number, private key and public key of the close contact;
[0020] The encrypted identification code corresponding to the close contact is decrypted according to the key to determine the personal information of the close contact.
[0021] Preferably, the encrypted identification code corresponding to the close contact is decrypted based on the key number, public key and private key of the close contact to determine the personal information of the close contact, specifically:
[0022] The third-party system sends a smart contract authorization identifier to the blockchain node to confirm that the third-party system has obtained the authorization of the close contact;
[0023] Determine the key of the encryption identification code corresponding to the close contact according to the key number, private key and public key of the close contact;
[0024] The encrypted identification code corresponding to the close contact is decrypted according to the key to determine the personal information of the close contact.
[0025] Preferably, the encrypted identification code corresponding to the close contact is decrypted based on the key number, public key and private key of the close contact to determine the personal information of the close contact, specifically:
[0026] Determining whether the blockchain node has obtained authorization from the close contact according to the smart contract;
[0027] If yes, determine the key of the encryption identification code corresponding to the close contact according to the key number, private key and public key of the close contact;
[0028] The encrypted identification code corresponding to the close contact is decrypted according to the key to determine the personal information of the close contact.
[0029] Preferably, the local storage uploads the close contact record data table to the blockchain node for storage according to a preset rule, specifically:
[0030] The local storage uploads the close contact record data table to the blockchain node for storage within a preset time period.
[0031] Preferably, the local storage uploads the close contact record data table to the blockchain node for storage according to a preset rule, specifically:
[0032] When receiving the status change request of the first user, the local storage uploads the close contact record data table to the blockchain node for storage according to the preset rules.
[0033] A close contact tracing device, comprising:
[0034] The local storage uploads the close contact record data table to the blockchain node for storage according to a preset rule; the close contact record data table includes the corresponding relationship between the key number of the first user, the encrypted identification code of the first user, and the encrypted identification code corresponding to the close contact;
[0035] a receiving unit, configured to receive a status change request from a first user, wherein the status change request includes at least a key number and an encrypted identification code of the first user, wherein the key number is used to record a correspondence between a public key and a private key, and the status change request is used to identify the first user as a confirmed case;
[0036] A search unit, configured to search the block where the first user is located from a blockchain node through a smart contract according to the key number of the first user; the block where the first user is located stores a close contact record data table;
[0037] An acquiring unit, used for acquiring the encrypted identification code corresponding to the close contact from the close contact record data table;
[0038] A decryption unit is used to extract the public key and private key of the close contact according to the key number, decrypt the encrypted identification code corresponding to the close contact, obtain the personal information of the close contact, and send notification information to the corresponding close contact.
[0039] A non-transitory machine-readable storage medium having executable code stored thereon, which, when executed by a processor of an electronic device, causes the processor to execute the close contact tracing method as described above.
[0040] An electronic device comprises: a processor; and a memory having executable code stored thereon, wherein when the executable code is executed by the processor, the processor executes the close contact tracing method as described above.
[0041] The technical solution provided by this application may have the following beneficial effects:
[0042] The present application provides a close contact tracking method, device, storage medium and electronic device, which ensure the uniqueness and traceability of uploaded information based on the advantages of blockchain such as decentralization, immutability, transparency and openness, and pre-store the close contact record data table containing the key number and encrypted identification code of the first user and the encrypted identification code corresponding to the close contact on the blockchain node. When the user status changes, the encrypted identification code is decrypted through smart contract technology to obtain the encrypted identification code of the close contact on the blockchain, and the public key and private key of the close contact are extracted according to the key number, the encrypted identification code corresponding to the close contact is decrypted to obtain the personal information of the close contact, and a notification message is sent to the corresponding close contact to realize the tracking of close contacts.
[0043] During the process of tracking close contacts, this application provides encryption protection for user personal information, and realizes the close contact tracking function without providing user personal privacy information (behavior data or location data, etc.).
[0044] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The above and other objects, features and advantages of the present application will become more apparent through a more detailed description of exemplary embodiments of the present application in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the same components in the exemplary embodiments of the present application.
[0046] Figure 1 It is a schematic diagram of the structure of a close contact tracing system shown in an embodiment of the present application;
[0047] Figure 2 It is a flowchart of a close contact tracing method shown in an embodiment of the present application;
[0048] Figure 3 It is a schematic diagram of the encryption process of the user's personal information shown in the embodiment of the present application;
[0049] Figure 4 It is a schematic diagram of the overall architecture of the blockchain node for uploading the close contact record data table shown in the embodiment of the present application;
[0050] Figure 5 This is a schematic diagram of a close contact tracing method implementation flow shown in an embodiment of the present application;
[0051] Figure 6 It is a schematic diagram of another close contact tracing method implementation flow shown in an embodiment of the present application;
[0052] Figure 7It is a schematic diagram of the process of encryption, data uploading and decryption of the close contact record data table during the system operation of the close contact shown in the embodiment of the present application;
[0053] Figure 8 is a schematic structural diagram of a close contact tracing device shown in an embodiment of the present application;
[0054] Fig. 9 It is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application. DETAILED DESCRIPTION
[0055] The present application provides a close contact tracing method, device, storage medium and electronic device, which are applied to Figure 1 The close contact tracing system shown in the figure includes: at least one smart terminal device 10, a backend server 20 and a blockchain node 30, wherein the smart terminal device 10 is a device with a low-power Bluetooth function, and the blockchain node 30 randomly assigns a key number, a public key and a private key to the user's smart terminal device 10, and stores the encrypted user identification code in the blockchain node 30, such as a Bluetooth ID. The Bluetooth ID is an encrypted identification code that includes the user's personal information and public key. During the operation of the system, the key number and the encrypted identification code are received on the smart terminal device 10 through the low-power Bluetooth, and the key number and the encrypted identification code are broadcast to the surrounding smart terminal devices 10, thereby realizing the release and reception of the key number and the encrypted identification code. The smart terminal device 10 uploads the received key number and encrypted identification code to the blockchain node 30 through the backend server 20 in a fixed time period. When the status of a close contact changes (such as a user being diagnosed after the incubation period), the personal information of the corresponding close contact (such as the user's mobile phone number) is determined from the blockchain node 30 based on the key number and encrypted identification code of the confirmed user, and a notification message is sent to the corresponding close contact to track the close contact and notify the user to self-isolate or seek medical treatment in a timely manner.
[0056] The purpose of the invention of this application is to provide encryption protection for user personal information without providing user personal information during the tracking of close contacts, and to realize the close contact tracking function without providing user personal privacy information (behavior data or location data, etc.).
[0057] The preferred embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.
[0058] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0059] It should be understood that although the terms "first", "second", "third", etc. may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0060] Figure 2 It is a flow chart of a close contact tracing method shown in an embodiment of the present application.
[0061] See also Figure 2 The present application embodiment provides a close contact tracing method, which specifically includes the following steps:
[0062] S200: Local storage uploads the close contact record data table to the blockchain node for storage according to preset rules.
[0063] In the embodiment of the present application, a close contact record data table is stored in the block where the first user is located. The close contact record data table includes the corresponding relationship between the key number of the first user, the encrypted identification code of the first user, and the encrypted identification code corresponding to the close contact, as shown in Table 1:
[0064] Table 1
[0065] Personal others time User 1's key number and encrypted identification code User 2's key number and encrypted identification code 10 minutes User 1's key number and encrypted identification code User 3's key number and encrypted identification code 15 minutes User 1's key number and encrypted identification code User 4's key number and encrypted identification code 18 minutes User 1's key number and encrypted identification code User 5's key number and encrypted identification code 20 minutes
[0066] In the embodiment of the present application, each user receives the key number and encrypted identification code of others through a smart terminal device, and constructs a close contact record data table with the obtained key number and encrypted identification code, and then uploads the close contact record data table to the blockchain node, such as Figure 3 As shown in the figure, it is a schematic diagram of the overall architecture of the blockchain node for uploading the close contact record data table. It should be noted that Figure 3 The nodes in the blockchain are the blocks where each user is located, and the information on the blockchain is the upload of the close-link record data table.
[0067] The local storage in the embodiment of the present application uploads the close contact record data table to the blockchain node for storage according to preset rules, specifically:
[0068] The local storage uploads the close contact record data table to the blockchain node for storage within a preset time period.
[0069] In a specific embodiment, the local terminal can upload the close contact record data table to the blockchain node at a fixed time period. For example, it can be set to upload the close contact record data table recorded and saved by the smart terminal device to the blockchain node for storage at 12 o'clock every night, every 2 days or every 14 days.
[0070] Furthermore, the local storage uploads the close contact record data table to the blockchain node for storage according to preset rules, specifically:
[0071] When receiving the status change request of the first user, the local storage uploads the close contact record data table to the blockchain node for storage according to the preset rules.
[0072] In a specific embodiment, when a user's status changes, that is, the user is diagnosed after the incubation period, that is, the user's test result is positive, the diagnosed user uploads the close contact record data table to the blockchain node. The blockchain node determines the close contacts in the close contact record data table and sends a notification to the close contacts in the close contact record data table to obtain the close contact record data table of the close contacts, thereby realizing multi-level close contact tracking.
[0073] S201: Receive a state change request from a first user, where the state change request at least includes a key number and an encrypted identification code of the first user.
[0074] The key number mentioned above is used to record the corresponding relationship between the public key and the private key, and the state change request at least includes the encrypted identification code of the first user.
[0075] The state change request described in the embodiment of the present application is used to identify the first user as a confirmed case. The first user's smart terminal device 10 is a device with a low-power Bluetooth (BLE) function, such as a smart phone with a low-power Bluetooth (BLE) function, a tablet with a low-power Bluetooth (BLE) function, or a smart terminal device such as a bracelet with a low-power Bluetooth (BLE) function.
[0076] The intelligent terminal device 10 senses, records and saves the encrypted Bluetooth ID signal of the contact object by broadcasting the encrypted Bluetooth ID signal in combination with information such as contact time and contact distance.
[0077] The above-mentioned "perception" in the embodiment of the present application means that the other party exists by receiving the other party's Bluetooth ID signal, but no communication connection for data transmission is established. The smart terminal device 10 has the function of perceiving other smart terminal devices nearby through wireless communication technology, for example, it can receive wireless signals from other smart terminal devices through a low-power Bluetooth module to perceive the existence of nearby smart terminal devices.
[0078] It should be noted that the encryption process of the user's identification code in the embodiment of the present application is encrypted by the smart terminal device. The encryption process can be found in Figure 4 The encryption process of the identification code belongs to the prior art. For the specific content, please refer to the relevant encryption technology materials, which will not be described in detail here.
[0079] S202: According to the key number of the first user, search the block where the first user is located from the blockchain node through the smart contract.
[0080] It should be noted that in the embodiment of the present application, the above-mentioned smart contract has specific rules. When the corresponding rules occur, the agreed preset protocol is executed. The smart contract rules of the embodiment of the present application can be user status changes, such as: or setting the negative status to 0, the positive status to 1, and the user status changes from "0" to "1", then it can be determined that the user status changes from negative to positive, and the user status has changed. The premise for the subsequent search of the close contact record data table is that the user status has changed, thereby starting the smart contract, and then querying the block of user information stored in the blockchain node.
[0081] S203: Obtain the encrypted identification code corresponding to the close contact from the close contact record data table.
[0082] S204: Extract the public key and private key of the close contact according to the key number, decrypt the encrypted identification code corresponding to the close contact, obtain the personal information of the close contact, and send notification information to the corresponding close contact.
[0083] In the embodiment of the present application, the key number, public key and private key of the close contact are extracted according to the key number, the encrypted identification code corresponding to the close contact is decrypted, the personal information of the close contact is obtained, and the notification information is sent to the corresponding close contact, specifically:
[0084] The key number, public key and private key of the close contact are extracted according to the key number; the encrypted identification code corresponding to the close contact is decrypted according to the key number, public key and private key of the close contact to determine the personal information of the close contact; and notification information is sent to the corresponding close contact according to the personal information of the close contact.
[0085] It should be noted that in the embodiments of the present application, Figure 5 As shown, according to the key number, public key and private key of the close contact, the encrypted identification code corresponding to the close contact is decrypted to determine the personal information of the close contact, specifically:
[0086] Determine whether the third-party system has obtained authorization from the close contact based on the smart contract; if so, determine the key of the encrypted identification code corresponding to the close contact based on the key number, private key and public key of the close contact; decrypt the encrypted identification code corresponding to the close contact based on the key to determine the personal information of the close contact.
[0087] Or Figure 5 As shown, according to the key number, public key and private key of the close contact, the encrypted identification code corresponding to the close contact is decrypted to determine the personal information of the close contact, specifically:
[0088] The third-party system sends a smart contract authorization identifier to the blockchain node to determine that the third-party system has obtained the authorization of the close contact; determines the key of the encrypted identification code corresponding to the close contact based on the key number, private key and public key of the close contact; decrypts the encrypted identification code corresponding to the close contact based on the key to determine the personal information of the close contact.
[0089] It should be noted that in the embodiments of the present application, Figure 6 As shown, according to the key number, public key and private key of the close contact, the encrypted identification code corresponding to the close contact is decrypted to determine the personal information of the close contact, specifically:
[0090] Determine whether the blockchain node has obtained authorization from the close contact based on the smart contract; if so, determine the key of the encrypted identification code corresponding to the close contact based on the key number, private key and public key of the close contact; decrypt the encrypted identification code corresponding to the close contact based on the key to determine the personal information of the close contact.
[0091] like Figure 7As shown, the process of encryption, data upload and decryption of the close contact record data table during the operation of the system can be specifically explained. In an embodiment of the present application, the blockchain node of the close contact tracking system generates a pair of public keys and private keys with a key number, and then sends the key number and public key to the user and retains the public key and its key number. The smart terminal device on the user side uses the public key provided by the blockchain node to encrypt personal information, such as the user's mobile phone number, to generate encrypted information. The smart terminal device splices the key number and the encrypted information into a broadcast message and publishes it to the surrounding smart terminal devices.
[0092] During the operation of the system, the first user exchanges and stores corresponding broadcast information with close contacts to obtain a close contact record data table, which can be uploaded to the blockchain node regularly or when a user is diagnosed (no specific restrictions are made on the upload rules here).
[0093] Figure 7 In the blockchain, when a user is diagnosed, the certified organization (such as local CDCs or health commissions) can initiate a tracking request to the blockchain node. The data uploaded by the user will use the key code in the broadcast information in the system to find the corresponding private key stored in the system from the close contact record data table. Finally, the key corresponding to the close contact is generated based on the obtained private key and public key, and the encrypted information corresponding to the close contact is decrypted to obtain the personal information of the close contact, and a notification message is sent to the corresponding close contact, thereby realizing the tracking of close contacts.
[0094] The close contact tracking method provided in the embodiment of the present application ensures the uniqueness and traceability of the uploaded information based on the advantages of blockchain decentralization, non-tamperability, transparency and openness. The close contact record data table containing the encrypted identification code of the first user and the encrypted identification code corresponding to the close contact is stored in advance on the blockchain node. When a user status changes, the encrypted identification code is decrypted through smart contract technology to obtain the encrypted identification code of the close contact on the blockchain, and the public key and private key of the close contact are extracted according to the key number of the close contact. The encrypted identification code corresponding to the close contact is decrypted to obtain the personal information of the close contact, and a notification message is sent to the corresponding close contact to achieve the tracking of the close contact. In the process of tracking close contacts, the embodiment of the present application provides encryption protection for user personal information, and realizes the tracking function of close contacts without providing the user's personal privacy information (behavior data or location data, etc.).
[0095] Corresponding to the aforementioned application function implementation method embodiment, the present application also provides a close contact tracking device, an electronic device and corresponding embodiments.
[0096] Figure 8 It is a structural schematic diagram of a close contact tracking device shown in an embodiment of the present application.
[0097] See also Figure 8 The embodiment of the present application provides a close contact tracking device, which specifically includes the following:
[0098] An uploading unit 800 is used for locally storing and uploading the close contact record data table to the blockchain node for storage according to a preset rule;
[0099] The receiving unit 801 is used to receive a status change request from a first user, wherein the status change request includes at least a key number and an encrypted identification code of the first user, wherein the key number is used to record the correspondence between a public key and a private key, and the status change request includes at least an encrypted identification code of the first user.
[0100] The search unit 802 searches the block where the first user is located from the blockchain node through the smart contract according to the encrypted identification code of the first user; the block where the first user is located stores a close contact record data table, and the close contact record data table includes a key number of the first user and a corresponding relationship between the encrypted identification code of the first user and the encrypted identification code corresponding to the close contact;
[0101] An acquisition unit 803 is used to acquire an encrypted identification code corresponding to the close contact from the close contact record data table;
[0102] The decryption unit 804 is used to extract the public key and private key of the close contact according to the key number, decrypt the encrypted identification code corresponding to the close contact, obtain the personal information of the close contact, and send notification information to the corresponding close contact.
[0103] The close contact tracking device includes a processor and a memory. The above-mentioned uploading unit, receiving unit, searching unit, acquiring unit and decryption unit are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.
[0104] The processor includes a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the kernel parameters can be adjusted to provide encryption protection for user personal information during the close contact tracking process, and the close contact tracking function can be realized without providing the user's personal privacy information (behavior data or location data, etc.).
[0105] An embodiment of the present invention provides a storage medium on which a program is stored, and when the program is executed by a processor, the close contact tracking method is implemented.
[0106] An embodiment of the present invention provides a processor, which is used to run a program, wherein the close contact tracing method is executed when the program is running.
[0107] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated again here.
[0108] Fig. 9 It is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application.
[0109] See also Fig. 9 , the electronic device 900 includes a memory 910 and a processor 920 .
[0110] The processor 920 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0111] The memory 910 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. Among them, ROM can store static data or instructions required by the processor 920 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at run time. In addition, the memory 910 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 910 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (e.g., DVD-ROM, double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (e.g., SD card, mini SD card, Micro-SD card, etc.), a magnetic floppy disk, etc. The computer-readable storage medium does not include carrier waves and transient electronic signals transmitted wirelessly or wired.
[0112] The memory 910 stores executable codes, and when the executable codes are processed by the processor 920 , the processor 920 can execute part or all of the methods described above.
[0113] The scheme of the present application has been described in detail above with reference to the accompanying drawings. In the above embodiments, the description of each embodiment has its own emphasis. For the part that is not described in detail in a certain embodiment, refer to the relevant description of other embodiments. Those skilled in the art should also know that the actions and modules involved in the description are not necessarily required for the present application. In addition, it can be understood that the steps in the method of the embodiment of the present application can be adjusted in order, merged and deleted according to actual needs, and the modules in the device of the embodiment of the present application can be merged, divided and deleted according to actual needs.
[0114] In addition, the method according to the present application may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing some or all of the steps in the above method of the present application.
[0115] Alternatively, the present application can also be implemented as a non-temporary machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) on which executable code (or computer program, or computer instruction code) is stored. When the executable code (or computer program, or computer instruction code) is executed by a processor of an electronic device (or electronic device, server, etc.), the processor executes part or all of the steps of the above-mentioned method according to the present application.
[0116] Those skilled in the art will further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the application herein may be implemented as electronic hardware, computer software, or combinations of both.
[0117] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system and method according to multiple embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a part of a module, a program segment or a code, and the part of the module, the program segment or the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or the flow chart, and the combination of the square boxes in the block diagram and / or the flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0118] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A close contact tracing method, characterized in that: The method includes: The local storage uploads the close contact record data table to the blockchain node for storage according to the preset rules; the close contact record data table includes the correspondence between the key number of the first user, the encrypted identification code of the first user and the encrypted identification code corresponding to the close contact; Receive a status change request from a first user, where the status change request includes at least a key number and an encrypted identification code of the first user, where the key number is used to record the correspondence between a public key and a private key, and the status change request is used to identify the first user as a confirmed case; According to the key number of the first user, the block where the first user is located is searched from the blockchain node through the smart contract; the block where the first user is located stores a close contact record data table; wherein, the premise for searching the close contact record data table is that the status of the first user changes, thereby starting the smart contract to query the block of user information stored in the blockchain node; Obtaining the encrypted identification code corresponding to the close contact from the close contact record data table; The public key and private key of the close contact are extracted according to the key number, the encrypted identification code corresponding to the close contact is decrypted to obtain the personal information of the close contact, and notification information is sent to the corresponding close contact.
2. The method according to claim 1, characterized in that The key number, public key and private key of the close contact are extracted according to the key number, the encrypted identification code corresponding to the close contact is decrypted to obtain the personal information of the close contact, and notification information is sent to the corresponding close contact, specifically: Extract the key number, public key and private key of the close contact according to the key number; Decrypt the encrypted identification code corresponding to the close contact based on the key number, public key and private key of the close contact to determine the personal information of the close contact; According to the personal information of the close contacts, notification information is sent to the corresponding close contacts.
3. The method according to claim 2, characterized in that The encrypted identification code corresponding to the close contact is decrypted according to the key number, public key and private key of the close contact to determine the personal information of the close contact, specifically: Determining whether the third-party system has obtained authorization from the close contact according to the smart contract; If yes, determine the key of the encryption identification code corresponding to the close contact according to the key number, private key and public key of the close contact; The encrypted identification code corresponding to the close contact is decrypted according to the key to determine the personal information of the close contact.
4. The method according to claim 2, characterized in that: The encrypted identification code corresponding to the close contact is decrypted according to the key number, public key and private key of the close contact to determine the personal information of the close contact, specifically: The third-party system sends a smart contract authorization identifier to the blockchain node to confirm that the third-party system has obtained the authorization of the close contact; Determine the key of the encryption identification code corresponding to the close contact according to the key number, private key and public key of the close contact; The encrypted identification code corresponding to the close contact is decrypted according to the key to determine the personal information of the close contact.
5. The method according to claim 2, characterized in that: The encrypted identification code corresponding to the close contact is decrypted according to the key number, public key and private key of the close contact to determine the personal information of the close contact, specifically: Determining whether the blockchain node has obtained authorization from the close contact according to the smart contract; If yes, determine the key of the encryption identification code corresponding to the close contact according to the key number, private key and public key of the close contact; The encrypted identification code corresponding to the close contact is decrypted according to the key to determine the personal information of the close contact.
6. The method according to claim 1, characterized in that The local storage uploads the close contact record data table to the blockchain node for storage according to the preset rules, specifically: The local storage uploads the close contact record data table to the blockchain node for storage within a preset time period.
7. The method according to claim 1, characterized in that The local storage uploads the close contact record data table to the blockchain node for storage according to the preset rules, specifically: When receiving the status change request of the first user, the local storage uploads the close contact record data table to the blockchain node for storage according to the preset rules.
8. A close contact tracing device, characterized in that: include: Local storage uploads the close contact record data table to the blockchain node for storage according to preset rules; The close contact record data table includes a correspondence between the key number of the first user, the encrypted identification code of the first user, and the encrypted identification code corresponding to the close contact; a receiving unit, configured to receive a status change request from a first user, wherein the status change request includes at least a key number and an encrypted identification code of the first user, wherein the key number is used to record a correspondence between a public key and a private key, and the status change request is used to identify the first user as a confirmed case; A search unit is used to search the block where the first user is located from the blockchain node through a smart contract according to the key number of the first user; the block where the first user is located stores a close contact record data table; wherein the premise for searching the close contact record data table is that the state of the first user changes, thereby starting the smart contract to query the block of user information stored in the blockchain node; An acquiring unit, used for acquiring an encrypted identification code corresponding to the close contact from the close contact record data table; A decryption unit is used to extract the public key and private key of the close contact according to the key number, decrypt the encrypted identification code corresponding to the close contact, obtain the personal information of the close contact, and send notification information to the corresponding close contact.
9. A non-transitory machine-readable storage medium, characterized in that: An executable code is stored thereon, and when the executable code is executed by a processor of an electronic device, the processor executes a close contact tracing method as described in any one of claims 1 to 7.
10. An electronic device, characterized in that: include: processor; and a memory having executable code stored thereon, which, when executed by the processor, causes the processor to execute the close contact tracing method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Method, apparatus and storage medium for processing privacy data based on block chain
CN109214197A
Method for tracking close contact persons in infectious disease epidemic situation
CN111446006A