Data processing method, device, equipment and storage medium

Through the terminal equipment from the blockchain node to obtain the first trajectory information of the encrypted encryption and detect and process it, it solves the problem that the local trajectory information of the terminal equipment is easily tampered with and improves the reliability of the user type.

CN112612976BActive Publication Date: 2025-01-28WEBANK (CHINA)
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011505079.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-18
Publication Date
2025-01-28
Estimated Expiration
2040-12-18

AI Technical Summary

Technical Problem

In the prior art, the track information stored locally by the terminal device is easily tampered with, resulting in low reliability in determining the user type.

Method used

Get the first trajectory information of encrypted through the blockchain node through the terminal device, and use the detection model for detection and processing to ensure that the trajectory information cannot be tampered with.

Benefits of technology

Improve the reliability of trajectory information, thereby improving the reliability of the user type.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112612976B_ABST
    Figure CN112612976B_ABST
Patent Text Reader

Abstract

The present invention discloses a data processing method, device, equipment and storage medium, the method comprising: a terminal device obtains a detection model from a server; the terminal device obtains first track information of a user from a blockchain node, the first track information being information encrypted by a first secret key of the terminal device and a second secret key of the server; the terminal device detects and processes the first track information through the detection model to obtain a first detection result, the first detection result being encrypted by the first secret key and the second secret key; the terminal device determines the user type of the user according to the first detection result. The reliability of determining the user type is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of financial technology (blockchain technology), and in particular to a data processing method, device, equipment and storage medium. Background Art

[0002] Currently, the user's trajectory information can be obtained, and the risk of the user being infected with a preset virus can be determined based on the trajectory information. For example, if it is determined based on the trajectory information that the user has been in contact with a person with an infectious disease, it is determined that the user may be infected.

[0003] In related technologies, terminal devices (such as mobile phones, tablets, etc.) can obtain user trajectory information from the operator's network and store the trajectory information locally on the terminal device. The terminal device detects and processes the local trajectory information through a detection model to determine the user's user type (not infected with the virus, at risk of being infected with the virus, or infected with the virus). However, the trajectory information stored locally on the terminal device may be tampered with, resulting in low reliability in determining the user type. Summary of the invention

[0004] The main purpose of the present invention is to provide a data processing method, device, equipment and storage medium, aiming to improve the reliability of determining user type.

[0005] To achieve the above objectives, in a first aspect, an embodiment of the present invention provides a data processing method, the data processing method comprising:

[0006] The terminal device obtains the detection model from the server;

[0007] The terminal device obtains first track information of the user from the blockchain node, where the first track information is information encrypted by a first secret key of the terminal device and a second secret key of the server;

[0008] The terminal device detects and processes the first trajectory information by using the detection model to obtain a first detection result, where the first detection result is encrypted by using the first secret key and the second secret key;

[0009] The terminal device determines the user type of the user according to the first detection result.

[0010] In a possible implementation manner, the terminal device determines the user type of the user according to the first detection result, including:

[0011] The terminal device requests the server to obtain a second detection result corresponding to the first detection result, where the second detection result is a decrypted detection result;

[0012] The terminal device determines the user type according to the second detection result.

[0013] In a possible implementation manner, the terminal device requests the server to obtain a second detection result corresponding to the first detection result, including:

[0014] The terminal device sends a decryption request to the server, where the decryption request includes the first detection result and the first secret key;

[0015] The terminal device receives the second detection result sent by the server, where the second detection result is obtained by the server decrypting the first detection result using the first secret key and the second secret key.

[0016] In a possible implementation manner, the terminal device obtains the detection model from the server, including:

[0017] The terminal device sends a detection request to the server;

[0018] The terminal device receives the detection model sent by the server, where the detection model is an encrypted model.

[0019] In a possible implementation manner, the terminal device sending a detection request to the server includes:

[0020] The terminal device obtains a detection instruction;

[0021] The terminal device sends a detection request to the server in response to the detection instruction.

[0022] In a possible implementation, the terminal device obtains the first track information of the user from the blockchain node, including:

[0023] The terminal device sends a first trajectory information acquisition request to the server, where the first trajectory information acquisition request includes an access key, and the first trajectory information acquisition request is used to instruct the server to obtain the first trajectory information from the blockchain node according to the access key;

[0024] The terminal device receives the first trajectory information sent by the server.

[0025] In a possible implementation, the method further includes:

[0026] The terminal device requests the base station to obtain second trajectory information, where the second trajectory information is encrypted by the second secret key;

[0027] The terminal device encrypts the second track information by using the first secret key to obtain the first track information;

[0028] The terminal device stores the first trajectory information in the blockchain node.

[0029] In a possible implementation manner, after the terminal device determines the user type of the user according to the first detection result, the further step includes:

[0030] The terminal device determines a federal identification code according to the user type;

[0031] The terminal device displays the federal identification code.

[0032] In a second aspect, an embodiment of the present invention provides a data processing method, the method comprising:

[0033] The server receives a detection request sent by the terminal device;

[0034] The server sends a detection model to the terminal device according to the detection request;

[0035] The server receives a first detection result sent by the terminal device, where the first detection result is obtained by the terminal device detecting first trajectory information through the detection model, and the first trajectory information is encrypted using a first secret key of the terminal device and a second secret key of the server;

[0036] The server decrypts the first detection result to obtain a second detection result, and sends the second detection result to the terminal device, so that the terminal device determines the user type according to the second detection result.

[0037] In a possible implementation manner, the server decrypts the first detection result, including:

[0038] The server receives the first secret key sent by the terminal device;

[0039] The server decrypts the first detection result using the first secret key and the second secret key to obtain the second detection result.

[0040] In a possible implementation, the method further includes:

[0041] The server receives a first trajectory information acquisition request sent by the terminal device, where the first trajectory information acquisition request includes an access key;

[0042] The server sends a second trajectory information acquisition request to the blockchain node according to the first trajectory information acquisition request, where the second trajectory information acquisition request includes the access key and the identifier of the terminal device;

[0043] The server receives the first trajectory information sent by the blockchain node;

[0044] The server sends the first trajectory information to the terminal device.

[0045] In a third aspect, an embodiment of the present invention provides a data processing device, including: an acquisition module, a detection module and a determination module, wherein:

[0046] The acquisition module is used to acquire the detection model from the server;

[0047] The acquisition module is further used to acquire first track information of the user from the blockchain node, where the first track information is information encrypted by the first secret key of the terminal device and the second secret key of the server;

[0048] The detection module is used to detect and process the first trajectory information through the detection model to obtain a first detection result, where the first detection result is encrypted by the first secret key and the second secret key;

[0049] The determination module is used to determine the user type of the user according to the first detection result.

[0050] In a possible implementation manner, the determining module is specifically configured to:

[0051] Requesting the server to obtain a second detection result corresponding to the first detection result, where the second detection result is a decrypted detection result;

[0052] The user type is determined according to the second detection result.

[0053] In a possible implementation, the acquisition module includes a sending unit and a receiving unit, wherein:

[0054] The sending unit is used to send a decryption request to the server, where the decryption request includes the first detection result and the first secret key;

[0055] The receiving unit is used to receive the second detection result sent by the server, where the second detection result is obtained by the server decrypting the first detection result using the first secret key and the second secret key.

[0056] In a possible implementation manner, the sending unit is further configured to send a detection request to the server;

[0057] The receiving unit is further used to receive the detection model sent by the server, where the detection model is an encrypted model.

[0058] In a possible implementation manner, the acquisition module is further used to acquire a detection instruction;

[0059] The sending unit is further configured to send a detection request to the server in response to the detection instruction.

[0060] In a possible implementation, the sending unit is further used to send a first trajectory information acquisition request to the server, where the first trajectory information acquisition request includes an access key, and the first trajectory information acquisition request is used to instruct the server to obtain the first trajectory information from the blockchain node according to the access key;

[0061] The receiving unit is further configured to receive the first trajectory information sent by the server.

[0062] In a possible implementation, the device further includes an encryption module and a storage module, wherein:

[0063] The acquisition module is further used to request the base station to acquire second trajectory information, where the second trajectory information is encrypted by the second secret key;

[0064] The encryption module is used to encrypt the second trajectory information by using the first secret key to obtain the first trajectory information;

[0065] The storage module is used to store the first trajectory information in the blockchain node.

[0066] In a possible implementation, the device further includes a display module, wherein:

[0067] The determination module is further configured to, after the determination module determines the user type of the user according to the first detection result, determine a federation identification code according to the user type;

[0068] The display module is further used to display the federal identification code.

[0069] In a fourth aspect, an embodiment of the present invention provides a data processing method, comprising a receiving module, a sending module and a decryption module, wherein:

[0070] The receiving module is used to receive a detection request sent by a terminal device;

[0071] The sending module is used to send the detection model to the terminal device according to the detection request;

[0072] The receiving module is further used to receive a first detection result sent by the terminal device, where the first detection result is obtained by the terminal device detecting first trajectory information through the detection model, and the first trajectory information is encrypted by using a first secret key of the terminal device and a second secret key of the server;

[0073] The decryption module is used to decrypt the first detection result to obtain a second detection result;

[0074] The sending module is further used to send the second detection result to the terminal device, so that the terminal device determines the user type according to the second detection result.

[0075] In a possible implementation, the receiving module is further used to receive the first secret key sent by the terminal device;

[0076] The decryption module is specifically used to decrypt the first detection result using the first secret key and the second secret key to obtain the second detection result.

[0077] In a possible implementation manner, the receiving module is further configured to receive a first trajectory information acquisition request sent by the terminal device, where the first trajectory information acquisition request includes an access key;

[0078] The sending module is further used to send a second trajectory information acquisition request to the blockchain node according to the first trajectory information acquisition request, where the second trajectory information acquisition request includes the access key and the identifier of the terminal device;

[0079] The receiving module is further used to receive the first track information sent by the blockchain node;

[0080] The sending module is further used to send the first trajectory information to the terminal device.

[0081] In a fifth aspect, an embodiment of the present invention provides a data processing device, the data processing device comprising: a memory, a processor, and a data processing program stored in the memory and executable on the processor, wherein when the data processing program is executed by the processor, the steps of the data processing method described in any one of the first aspects are implemented. The data processing device may be a terminal device.

[0082] In a sixth aspect, an embodiment of the present invention provides a data processing device, the data processing device comprising: a memory, a processor, and a data processing program stored in the memory and executable on the processor, wherein when the data processing program is executed by the processor, the steps of the data processing method described in any one of the second aspects are implemented. The data processing device may be a server.

[0083] In a seventh aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a data processing program is stored. When the data processing program is executed by a processor, the steps of the data processing method as described in any one of the first aspects are implemented.

[0084] In an eighth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a data processing program is stored. When the data processing program is executed by a processor, the steps of the data processing method as described in any one of the second aspects are implemented.

[0085] In a ninth aspect, an embodiment of the present invention provides a computer program product, comprising a computer program, which, when executed by a processor, implements the data processing method described in any one of the first aspects.

[0086] In a tenth aspect, an embodiment of the present invention provides a computer program product, including a computer program, which, when executed by a processor, implements the data processing method described in any one of the second aspects.

[0087] In the data processing method, apparatus, device and storage medium provided by the embodiments of the present invention, the blockchain node stores the user's first track information, which is encrypted by the first secret key of the terminal device and the second secret key of the server. The terminal device can obtain the first track information from the blockchain node. Since the terminal device only has the first secret key, after the terminal device obtains the first track information, the terminal device cannot modify the first track information locally, so that the reliability of the first track information is relatively high. Due to the high reliability of the first track information, the reliability of the first detection result obtained by detecting the first track information is relatively high, thereby improving the reliability of determining the user type. BRIEF DESCRIPTION OF THE DRAWINGS

[0088] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present invention;

[0089] Figure 2 A flowchart of a data processing method provided by an embodiment of the present invention;

[0090] Figure 3 A schematic diagram of a flow chart of another data processing method provided by an embodiment of the present invention;

[0091] Figure 4 A schematic diagram of a federal identification code provided by an embodiment of the present invention;

[0092] Figure 5 A schematic diagram of an interface of a terminal device provided by an embodiment of the present invention;

[0093] Figure 6 A schematic diagram of the structure of a data processing device provided by an embodiment of the present invention;

[0094] Figure 7 A schematic diagram of the structure of another data processing device provided by an embodiment of the present invention;

[0095] Figure 8 A schematic diagram of the structure of another data processing device provided by an embodiment of the present invention;

[0096] Fig. 9 A schematic diagram of the structure of a terminal device provided by an embodiment of the present invention;

[0097] Fig.10 A schematic diagram of the structure of a server provided in an embodiment of the present invention.

[0098] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0099] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0100] To facilitate understanding, first, combine Figure 1 , describe the application scenarios to which this application is applicable.

[0101] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present invention. Figure 1 , including: terminal device 101, base station 102, operator server 103 and blockchain node 104.

[0102] The terminal device 101 may be a mobile device used by a user, for example, the terminal device 101 may be a mobile phone, a tablet computer, or other device.

[0103] The base station 102 can determine the location of the terminal device 101 and generate the user's trajectory information according to the location of the terminal device 101. The terminal device 101 can send a trajectory acquisition request to the base station 102, and the base station 102 can encrypt the trajectory information by the second key and send the encrypted trajectory information to the terminal device 101. After receiving the encrypted trajectory information, the terminal device 101 can re-encrypt the encrypted trajectory information by the first key and store the re-encrypted trajectory information to the blockchain node. The base station 102 can send the second key to the operator server 103, or the second key can be a key known to the base station 102 and the operator server 103.

[0104] The detection model is stored in the operator server 103, and the detection model can be updated in real time. For example, the operator server 103 can update the detection model in real time or periodically based on the user types of users in multiple regions (not infected with the preset virus, with the possibility of being infected with the preset virus, and already infected with the preset virus) and the trajectory data of a large number of users. The terminal device 101 can obtain the detection model in the operator server 103. The detection model can be a federal detection model, that is, the detection model can be obtained by means of federated learning. In the process of training the detection model, the detection model can be obtained by joint training by multiple institutions.

[0105] The blockchain node 104 can store encrypted trajectory information, which is encrypted by the first secret key of the terminal device 101 and the second secret key of the operator server 103. Since the terminal device 101 only has the first secret key, the terminal device 101 cannot modify the trajectory information locally, thereby reducing the risk of the local trajectory information of the terminal device 101 being tampered with, thereby improving the accuracy of determining the user type.

[0106] The technical solution shown in the present application is described in detail below through specific embodiments. It should be noted that the following embodiments can exist independently or in combination with each other, and the same or similar contents will not be described repeatedly in different embodiments.

[0107] To facilitate understanding, first, combine Figure 2 , the process of storing encrypted trajectory information from a terminal device to a blockchain node is explained.

[0108] Figure 2 A flowchart of a data processing method provided by an embodiment of the present invention. Figure 2 , the method may include:

[0109] S201. The terminal device sends a trajectory acquisition request to the base station.

[0110] The track acquisition request may include an identifier of the terminal device, and the track acquisition request is used to request to acquire track information of the terminal device in a historical period.

[0111] The trajectory acquisition request may also include a historical period. Accordingly, the trajectory acquisition request is used to request to acquire the trajectory information of the terminal device within the historical period.

[0112] The terminal device may periodically send a track acquisition request to the base station. For example, the terminal device may send a track acquisition request to the base station once every 30 minutes.

[0113] Optionally, the terminal device may send a track acquisition request to multiple base stations to obtain track information from the multiple base stations. The multiple base stations may be base stations of different operators. The terminal device may also send a track acquisition request to other devices, for example, the other devices may be third-party devices.

[0114] The process of the terminal device obtaining the trajectory information from each base station is the same. For ease of understanding, the following is an example of the process of the terminal device obtaining the trajectory information from any base station.

[0115] S202: The base station obtains the trajectory information corresponding to the terminal device according to the trajectory acquisition request.

[0116] The trajectory information may include multiple moments and the location information corresponding to each moment.

[0117] The base station can collect the location information of the terminal device at each time, generate the trajectory information corresponding to the terminal device according to the location information of the terminal device at each time, and store the trajectory information corresponding to the terminal device in a preset storage space. The base station can obtain the trajectory information corresponding to the terminal device in the preset storage space according to the identifier of the terminal device.

[0118] If the trajectory acquisition request includes a historical period, the base station can obtain the trajectory information of the terminal device within the historical period; if the trajectory acquisition request does not include a historical period, the base station can obtain the trajectory information of the terminal device within a preset period before the current moment.

[0119] S203: The base station encrypts the trajectory information using the second secret key to obtain second trajectory information.

[0120] The second key may be a key allocated by the base station to the terminal device, or the second key may be a public key used by the base station.

[0121] If the second key is a key assigned by the base station to the terminal device, the base station may also send the second key to the server (operator server). If the second key is a public key used by the base station, the second key may be a key known to the base station and the server.

[0122] S204: The base station sends second trajectory information to the terminal device.

[0123] S205. The terminal device encrypts the second track information using the first secret key to obtain the first track information.

[0124] The first key is the private key of the terminal device.

[0125] After the second track information is obtained, since the second track information is information encrypted by the second secret key, the terminal device cannot tamper with the second track information locally.

[0126] S206. The terminal device sends the first track information to the blockchain node.

[0127] S207. The blockchain node stores the first track information.

[0128] After the blockchain node receives the first track information, the blockchain node may allocate storage space for the terminal device and store the first track information in the storage space.

[0129] Optionally, an access key for accessing the first track information may be set in the blockchain node, so that the blockchain node stores the first track information according to the access key and the identifier of the terminal device. For example, the terminal device may set the access key and send the access key to the blockchain node. Accordingly, when other devices need to obtain the first track information from the blockchain node, they need to use the access key and the identifier of the terminal device to obtain the first track information from the blockchain node. The access key may be the same as the first key.

[0130] It should be noted that the process shown in S201-S207 can be executed in real time or periodically so that the first track information of the terminal device can be stored in the blockchain node. The first track information is encrypted by the first secret key and the second secret key, ensuring the security of the first track information in the blockchain node.

[0131] Next, combine Figure 3 , the data processing method described in the embodiment of the present invention is explained.

[0132] Figure 3 A flowchart of another data processing method provided by an embodiment of the present invention. Figure 3 , the method may include:

[0133] S301. The terminal device sends a detection request to the server.

[0134] The terminal device can send a detection request to the server under the trigger of the user. Specifically, the terminal device can obtain a detection instruction and send a detection request to the server in response to the detection instruction. A user type detection application is installed in the terminal device. When the user clicks on a preset icon (e.g., my identification code) in the user type detection application, the terminal device can obtain the detection instruction.

[0135] The detection request is used to request the server to send a detection model to the terminal device.

[0136] The server may be an operator server, that is, the server may be Figure 1 The operator server 103 in the embodiment.

[0137] S302: The server sends a detection model to the terminal device according to the detection request.

[0138] The server stores a detection model, and the server can update the detection model in real time or periodically based on big data. The big data may include trajectory information and user types of all users in multiple areas.

[0139] The server may encrypt the detection model and send the encrypted detection model to the terminal device, so that the terminal device can avoid modifying the detection model.

[0140] S303: The terminal device obtains first track information from the blockchain node.

[0141] The first trajectory information may include spatiotemporal trajectory information provided by multiple parties. For example, the first trajectory information may include spatiotemporal trajectory information provided by a base station of at least one operator, spatiotemporal trajectory information provided by a third-party device, and the like.

[0142] Optionally, the terminal device may obtain the first track information from the blockchain node in the following two ways:

[0143] First way:

[0144] The terminal device sends a trajectory information acquisition request to the blockchain node. The blockchain node obtains the first trajectory information corresponding to the terminal device according to the identifier of the terminal device, and sends the first trajectory information to the terminal device.

[0145] Optionally, if the first track information is set with an access key, the track information acquisition request may also include the access key, so that the blockchain node obtains the first track information according to the access key and the identifier of the terminal device, and sends the first track information to the terminal device. The access key may be the same as the first key, so that the terminal device only needs to store a smaller number of keys, reducing the complexity of key management.

[0146] In this way, the terminal device can directly request the blockchain node to obtain the first trajectory information, so that the terminal device can obtain the first trajectory information more quickly.

[0147] Second way:

[0148] The terminal device sends a first trajectory information acquisition request to the server, and the server sends a second trajectory information acquisition request to the blockchain node according to the first trajectory information acquisition request. The second trajectory information acquisition request includes the identifier of the terminal device. The blockchain node obtains the first trajectory information corresponding to the terminal device according to the second trajectory information acquisition request, and sends the first trajectory information to the server, and the server sends the first trajectory information to the terminal device.

[0149] Optionally, if the first track information is set with an access key, the first track information acquisition request may also include the access key, and the second track information acquisition request may include the terminal device identifier and the access key, so that the blockchain node acquires the first track information according to the access key and the terminal device identifier, and sends the first track information to the server, so that the server sends the first track information to the terminal device. In this process, since the server does not have the first key, even if the server acquires the first track information, it cannot decrypt the first track information.

[0150] The access key can be the same as the first key, so that the terminal device only needs to store a smaller number of keys, reducing the complexity of key management.

[0151] In this way, the terminal device requests the blockchain node to obtain the first trajectory information through the server, and there is no need for the terminal device to directly interact with the blockchain node, which avoids too many terminal devices reading data from the blockchain node, making the data in the blockchain node more secure.

[0152] Optionally, S301-S302 and S303 may be executed sequentially or in parallel. For example, under the triggering of the user, the terminal device may simultaneously send a detection request to the server and request the blockchain node to obtain the first trajectory information. Alternatively, the terminal device may request the blockchain node to obtain the first trajectory information after receiving the detection model sent by the server.

[0153] S304: The terminal device detects and processes the first trajectory information through a detection model to obtain a first detection result.

[0154] The terminal device can input the first trajectory information into the detection model so that the detection model detects and processes the first trajectory information to obtain a first detection result. Since the first trajectory information is encrypted by the first secret key and the second secret key, the first detection result obtained by detecting the first trajectory information by the detection model is also encrypted by the first secret key and the second secret key.

[0155] Since the first trajectory information is encrypted by the first secret key and the second secret key, the first trajectory information cannot be tampered with, thereby ensuring the authenticity of the first trajectory information and further ensuring the authenticity of the first detection result.

[0156] S305: The terminal device sends a decryption request to the server.

[0157] The decryption request includes the first detection result and the first secret key, and the decryption request is used to request the server to decrypt the first detection result.

[0158] S306. The server decrypts the first detection result using the first secret key and the second secret key to obtain a second detection result.

[0159] Since the first detection result is encrypted by the first key and the second key, the server can obtain the second key locally and obtain the first key in the decryption request. The server can decrypt the first detection result according to the first key and the second key to obtain the second detection result.

[0160] The second detection result includes the user type. For example, the user type may be not infected with a preset virus, at risk of being infected with a preset virus, or already infected with a preset virus.

[0161] S307: The server sends a second detection result to the terminal device.

[0162] S308: The terminal device determines the user type of the user according to the second detection result.

[0163] The terminal device may obtain the user type from the second detection result, and determine the obtained user type as the user type of the user.

[0164] After the terminal device determines the user type, the terminal device can determine the federation identification code according to the user type and display the federation identification code. The federation identification code can refer to the track information provided by multiple parties being jointly processed, or the federation identification code can also refer to the track information provided by multiple parties being jointly processed through a federation detection model.

[0165] Since the user type is determined based on the trajectory information provided by multiple parties, the health code determined based on the user type is the federal health code. Alternatively, since the user type is determined based on the trajectory information provided by multiple parties, and the user type is determined through the federal detection model, the health code determined based on the user type is the federal health code.

[0166] Optionally, the federal identification code may include a federal health code, a federal social security code, a federal unemployment code, etc.

[0167] The federal identification code may include a QR code and a type identifier. The QR code may include the user's personal information, which may include name, ID number, mobile phone number, place of residence, and other information. The type identifier is used to indicate the user type, and the color of the type identifier corresponds to the user type, that is, when the user type is different, the color of the type identifier may be different. For example, assuming that the federal identification code is a federal health code, when the user type is not infected with a preset virus, the type identifier is green, when the user type is at risk of being infected with a preset virus, the type identifier is yellow, and when the user type is infected with a preset virus, the type identifier is red.

[0168] Next, combine Figure 4 , explain the federal identification code.

[0169] Figure 4 A schematic diagram of a federal identification code provided in an embodiment of the present invention. Figure 4 ,The federal identification code includes a QR code and a type identification.

[0170] The QR code may indicate the user's personal information. For example, when the QR code is scanned by other terminal devices, the user's personal information may be identified and obtained.

[0171] The color of the type identification may be determined according to the user type of the user. For example, assuming that the federal identification code is a federal health code, if it is determined that the user type of the user is not infected with a preset virus, the type identification may be determined to be green.

[0172] It should be noted that Figure 4 The federal identification code is merely illustrated as an example and is not intended to be limiting of the federal identification code.

[0173] exist Figure 3In the illustrated embodiment, the blockchain node stores the user's first track information, which is encrypted by the first secret key of the terminal device and the second secret key of the server. The terminal device can obtain the first track information from the blockchain node. Since the terminal device only has the first secret key, after the terminal device obtains the first track information, the terminal device cannot modify the first track information locally, so that the reliability of the first track information is high. Due to the high reliability of the first track information, the reliability of the first detection result obtained by detecting the first track information is high, thereby improving the reliability of the determined user type.

[0174] Next, combine Figure 5 , the technical solution shown in the embodiment of the present invention is explained through specific examples.

[0175] Figure 5 This is a schematic diagram of an interface of a terminal device provided by an embodiment of the present invention. Figure 5 , including interface 501 and interface 502.

[0176] Please refer to interface 501. When a user needs to obtain a personal federal health code, the user can enter an operation instruction in the terminal device to make the terminal device display interface 501. Interface 501 includes a "Federal Health Code" icon, and the user can click on the "Federal Health Code" icon.

[0177] After the terminal device receives the user's click operation on the "Federal Health Code" icon, the terminal device requests the server to obtain the encrypted detection model, so that the terminal device cannot modify the detection model. The terminal device also obtains the first trajectory information from the blockchain node. The first trajectory information is encrypted by the first password of the terminal device and the second password of the server. Therefore, even if the terminal device obtains the first trajectory information, the terminal device cannot modify the first trajectory information.

[0178] After the terminal device obtains the detection model and the first trajectory information, the terminal device detects and processes the first trajectory information through the detection model to obtain a first detection result. Since the first trajectory information is encrypted by the first key and the second key, the first detection result is also encrypted by the first key and the second key.

[0179] The terminal device sends the first detection result and the first secret key to the server, so that the server decrypts the first detection result according to the first secret key and the second secret key to obtain the second detection result, and the server sends the second detection result to the terminal device.

[0180] Please refer to interface 502. After receiving the second test result, the terminal device determines the federal health code according to the second test result. The federal health code includes a QR code and a type identifier B. Assuming that the type identifier B is green, it indicates that the user is not infected with the preset virus. The terminal device displays the federal health code on the page, and the page may also include the user's personal information, such as name, ID number, etc.

[0181] exist Figure 5 In the illustrated embodiment, the first track information stored in the blockchain node is encrypted by the first secret key of the terminal device and the second secret key of the server. Since the terminal device only has the first secret key, after the terminal device obtains the first track information from the blockchain node, the terminal device cannot modify the first track information locally, so that the reliability of the first track information is high. Due to the high reliability of the first track information, the reliability of the first detection result obtained by detecting the first track information is high, thereby improving the reliability of the determined user type.

[0182] Figure 6 The data processing device 10 is a schematic diagram of a data processing device provided by an embodiment of the present invention. The data processing device 10 can be set in a terminal device. Figure 6 The data processing device may include: an acquisition module 11, a detection module 12 and a determination module 13, wherein:

[0183] The acquisition module 11 is used to acquire the detection model from the server;

[0184] The acquisition module 11 is further used to acquire first track information of the user from the blockchain node, where the first track information is information encrypted by the first secret key of the terminal device and the second secret key of the server;

[0185] The detection module 12 is used to detect and process the first trajectory information through the detection model to obtain a first detection result, where the first detection result is encrypted by the first secret key and the second secret key;

[0186] The determination module 13 is used to determine the user type of the user according to the first detection result.

[0187] The data processing device provided in the embodiment of the present invention can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.

[0188] In a possible implementation manner, the determining module 13 is specifically configured to:

[0189] Requesting the server to obtain a second detection result corresponding to the first detection result, where the second detection result is a decrypted detection result;

[0190] The user type is determined according to the second detection result.

[0191] Figure 7 A schematic diagram of the structure of another data processing device provided by an embodiment of the present invention. Figure 6 Based on the examples shown, see Figure 7 , the acquisition module 11 includes a sending unit 111 and a receiving unit 112, wherein,

[0192] The sending unit 111 is used to send a decryption request to the server, where the decryption request includes the first detection result and the first secret key;

[0193] The receiving unit 112 is used to receive the second detection result sent by the server, where the second detection result is obtained by the server decrypting the first detection result using the first secret key and the second secret key.

[0194] In a possible implementation manner, the sending unit 111 is further configured to send a detection request to the server;

[0195] The receiving unit 112 is further used to receive the detection model sent by the server, where the detection model is an encrypted model.

[0196] In a possible implementation manner, the acquisition module 11 is further used to acquire a detection instruction;

[0197] The sending unit 111 is further configured to send a detection request to the server in response to the detection instruction.

[0198] In a possible implementation, the sending unit 111 is further used to send a first trajectory information acquisition request to the server, where the first trajectory information acquisition request includes an access key, and the first trajectory information acquisition request is used to instruct the server to obtain the first trajectory information from the blockchain node according to the access key;

[0199] The receiving unit 112 is further configured to receive the first trajectory information sent by the server.

[0200] In a possible implementation, the data processing device 10 further includes an encryption module 14 and a storage module 15, wherein:

[0201] The acquisition module 11 is used to request the base station to acquire the second trajectory information, where the second trajectory information is obtained by encrypting with the second secret key;

[0202] The encryption module 14 is used to encrypt the second trajectory information using the first secret key to obtain the first trajectory information;

[0203] The storage module 15 is used to store the first track information in the blockchain node.

[0204] In a possible implementation, the data processing device 10 further includes a display module 16, wherein:

[0205] The determination module 13 is further configured to determine a federation identification code according to the user type after the determination module 13 determines the user type of the user according to the first detection result;

[0206] The display module 16 is further configured to display the federal identification code.

[0207] The data processing device provided in the embodiment of the present invention can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.

[0208] Figure 8 This is a structural diagram of another data processing device provided by an embodiment of the present invention. The data processing device 20 can be set in a server. Figure 8 The data processing device 20 may include a receiving module 21, a sending module 22 and a decryption module 23, wherein:

[0209] The receiving module 21 is used to receive a detection request sent by a terminal device;

[0210] The sending module 22 is used to send the detection model to the terminal device according to the detection request;

[0211] The receiving module 21 is further used to receive a first detection result sent by the terminal device, where the first detection result is obtained by the terminal device detecting first trajectory information through the detection model, and the first trajectory information is encrypted by using a first secret key of the terminal device and a second secret key of the server;

[0212] The decryption module 23 is used to decrypt the first detection result to obtain a second detection result;

[0213] The sending module 22 is further configured to send the second detection result to the terminal device, so that the terminal device determines the user type according to the second detection result.

[0214] The data processing device provided in the embodiment of the present invention can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.

[0215] In a possible implementation, the receiving module 21 is further configured to receive the first secret key sent by the terminal device;

[0216] The decryption module 23 is specifically configured to decrypt the first detection result using the first secret key and the second secret key to obtain the second detection result.

[0217] In a possible implementation manner, the receiving module 21 is further configured to receive a first trajectory information acquisition request sent by the terminal device, where the first trajectory information acquisition request includes an access key;

[0218] The sending module 22 is further used to send a second trajectory information acquisition request to the blockchain node according to the first trajectory information acquisition request, where the second trajectory information acquisition request includes the access key and the identifier of the terminal device;

[0219] The receiving module 21 is also used to receive the first track information sent by the blockchain node;

[0220] The sending module 22 is further configured to send the first trajectory information to the terminal device.

[0221] The data processing device provided in the embodiment of the present invention can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.

[0222] Fig. 9 A schematic diagram of the structure of a terminal device provided by an embodiment of the present invention. Fig. 9 The terminal device 30 may include: a transceiver 31, a memory 32, and a processor 33. The transceiver 31 may include: a transmitter and / or a receiver. The transmitter may also be referred to as a transmitter, a transmitter, a transmission port, a transmission interface, or similar descriptions, and the receiver may also be referred to as a receiver, a receiver, a reception port, a reception interface, or similar descriptions. Exemplarily, the transceiver 31, the memory 32, and the processor 33 are interconnected via a bus 34.

[0223] The memory 32 is used to store program instructions;

[0224] The processor 33 is used to execute the program instructions stored in the memory, so as to enable the terminal device 30 to execute any of the above-mentioned data processing methods.

[0225] The terminal device 30 is a type of data processing device.

[0226] Fig.10 A schematic diagram of the structure of a server provided by an embodiment of the present invention. Fig.10The server 40 may include: a transceiver 41, a memory 42, and a processor 43. The transceiver 41 may include: a transmitter and / or a receiver. The transmitter may also be referred to as a transmitter, a transmitter, a transmission port, a transmission interface, or the like, and the receiver may also be referred to as a receiver, a receiver, a reception port, a reception interface, or the like. Exemplarily, the transceiver 41, the memory 42, and the processor 43 are interconnected via a bus 44.

[0227] The memory 42 is used to store program instructions;

[0228] The processor 43 is used to execute the program instructions stored in the memory, so as to enable the server 40 to execute any of the above-mentioned data processing methods.

[0229] The server 40 is a type of data processing device.

[0230] An embodiment of the present invention provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, the computer-executable instructions are used to implement the above-mentioned data processing method.

[0231] The embodiment of the present invention may also provide a computer program product, which may be executed by a processor. When the computer program product is executed, the above data processing method may be implemented.

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

[0233] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0234] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0235] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A data processing method, characterized in that: The method comprises: The terminal device obtains the detection model from the server; The terminal device obtains first track information of the user from the blockchain node, where the first track information is information encrypted by a first secret key of the terminal device and a second secret key of the server; The terminal device detects and processes the first trajectory information by using the detection model to obtain a first detection result, where the first detection result is encrypted by using the first secret key and the second secret key; The terminal device determining the user type of the user according to the first detection result includes: The terminal device requests the server to obtain a second detection result corresponding to the first detection result, where the second detection result is a decrypted detection result; The terminal device determines the user type according to the second detection result; comprising: The terminal device sends a decryption request to the server, where the decryption request includes the first detection result and the first secret key; The terminal device receives the second detection result sent by the server, where the second detection result is obtained by the server decrypting the first detection result using the first secret key and the second secret key.

2. The method according to claim 1, characterized in that The terminal device obtains the detection model from the server, including: The terminal device sends a detection request to the server; The terminal device receives the detection model sent by the server, where the detection model is an encrypted model.

3. The method according to claim 1, characterized in that: The terminal device obtains first track information of the user from the blockchain node, including: The terminal device sends a first trajectory information acquisition request to the server, where the first trajectory information acquisition request includes an access key, and the first trajectory information acquisition request is used to instruct the server to obtain the first trajectory information from the blockchain node according to the access key; The terminal device receives the first trajectory information sent by the server.

4. The method according to claim 1, characterized in that: The method further comprises: The terminal device requests the base station to obtain second trajectory information, where the second trajectory information is encrypted by the second secret key; The terminal device encrypts the second track information by using the first secret key to obtain the first track information; The terminal device stores the first trajectory information in the blockchain node.

5. The method according to claim 1, characterized in that After the terminal device determines the user type of the user according to the first detection result, the method further includes: The terminal device determines a federal identification code according to the user type; The terminal device displays the federal identification code.

6. A data processing method, characterized in that: The method comprises: The server receives a detection request sent by the terminal device; The server sends a detection model to the terminal device according to the detection request; The server receives a first detection result sent by the terminal device, where the first detection result is obtained by the terminal device detecting first trajectory information through the detection model, and the first trajectory information is encrypted using a first secret key of the terminal device and a second secret key of the server; The server decrypts the first detection result to obtain a second detection result, and sends the second detection result to the terminal device, so that the terminal device determines the user type according to the second detection result; The server decrypts the first detection result, including: The server receives the first secret key sent by the terminal device; The server decrypts the first detection result using the first secret key and the second secret key to obtain the second detection result.

7. The method according to claim 6, characterized in that The method further comprises: The server receives a first trajectory information acquisition request sent by the terminal device, where the first trajectory information acquisition request includes an access key; The server sends a second trajectory information acquisition request to the blockchain node according to the first trajectory information acquisition request, where the second trajectory information acquisition request includes the access key and the identifier of the terminal device; The server receives the first trajectory information sent by the blockchain node; The server sends the first trajectory information to the terminal device.

8. A data processing device, characterized in that: include: Acquisition module, detection module and determination module, wherein, The acquisition module is used to acquire the detection model from the server; The acquisition module is further used to acquire first track information of the user from the blockchain node, where the first track information is information encrypted by a first secret key of the terminal device and a second secret key of the server; The detection module is used to detect and process the first trajectory information through the detection model to obtain a first detection result, where the first detection result is encrypted by the first secret key and the second secret key; The determination module is used to determine the user type of the user according to the first detection result; The determination module is specifically configured to request the server to obtain a second detection result corresponding to the first detection result, where the second detection result is a decrypted detection result; and determine the user type according to the second detection result. The requesting the server to obtain the second detection result corresponding to the first detection result includes: Send a decryption request to the server, wherein the decryption request includes the first detection result and the first secret key; receive the second detection result sent by the server, wherein the second detection result is obtained by the server decrypting the first detection result using the first secret key and the second secret key.

9. A data processing device, characterized in that: It includes a receiving unit, a sending unit and a decryption module, wherein: The receiving unit is used to receive a detection request sent by a terminal device; The sending unit is used to send the detection model to the terminal device according to the detection request; The receiving unit is further used to receive a first detection result sent by the terminal device, where the first detection result is obtained by the terminal device detecting first trajectory information through the detection model, and the first trajectory information is encrypted by using a first secret key of the terminal device and a second secret key of the server; The decryption module is used to decrypt the first detection result to obtain a second detection result; The sending unit is further configured to send the second detection result to the terminal device, so that the terminal device determines the user type according to the second detection result; The receiving unit is further used to receive the first secret key sent by the terminal device; The decryption module is specifically used to decrypt the first detection result using the first secret key and the second secret key to obtain the second detection result.

10. A data processing device, characterized in that: The data processing device comprises: a memory, a processor, and a data processing program stored in the memory and executable on the processor, wherein the data processing program implements the steps of the data processing method according to any one of claims 1 to 7 when executed by the processor.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a data processing program, and when the data processing program is executed by a processor, the steps of the data processing method according to any one of claims 1 to 7 are implemented.

12. A computer program product, characterized in that The invention comprises a computer program, which implements the data processing method according to any one of claims 1 to 7 when being executed by a processor.

Citation Information

Patent Citations

  • Block chain cross-chain authentication method, system, server, and readable storage medium

    CN109257342A

  • Multi-party secret communication method and device and user terminal

    CN110417553A