A data processing method and storage medium

Through blockchain network and QR code technology, public key encryption and private key decryption mechanisms are used to realize rapid query of object information, solving the problem of inefficient object information query in the existing technology, and improving the speed of information acquisition and Security.

CN110889140BActive Publication Date: 2024-12-27TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN201911209939.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-11-28
Publication Date
2024-12-27
Estimated Expiration
2040-02-11

AI Technical Summary

Technical Problem

In the prior art, the query efficiency of object information is inefficient, especially due to privacy issues, individuals cannot quickly query other people's object information, such as marriage information, resulting in inefficient query efficiency.

Method used

The nodes of the blockchain network receive authorization requests, obtain target object information, encrypt using the public key of the second user and generate a QR code, and send it to the second user. The second user decrypts the target object information using the private key.

Benefits of technology

The query efficiency of object information is improved, so that the second user can quickly obtain the target object information of the first user, and solve the problem of privacy and inefficient query.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110889140B_ABST
    Figure CN110889140B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a data processing method and a storage medium, wherein the method comprises: obtaining target object information matching the first user information from a storage area, obtaining the second user's public key based on the second user information, encrypting the target object information by the second user's public key, and then generating a QR code according to the encrypted target object information, and sending the QR code to the second user, so that the second user can recognize the QR code after receiving the QR code, and decrypt the QR code information based on its own private key to obtain the target object information of the first user. The implementation of the embodiment of the present invention can quickly obtain the target object information of the first user, which is conducive to improving the query efficiency of object information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a data processing method and a storage medium. Background Art

[0002] In recent years, due to the rapid development of network technology, computers have been applied to all aspects of our lives. Our social interaction, travel, shopping, tourism, marriage, education, insurance, etc. are inseparable from digitalization and informatization. Mobile Internet and information technology are gradually changing our previous lifestyle.

[0003] At present, due to privacy issues, individuals cannot query other people's object information (such as personal education experience information, marital information, insurance information, etc.). If one party (hereinafter referred to as the second user) wants to know the object information of the other party (hereinafter referred to as the first user), the first user can query it through relevant institutions and then inform the second user. The query efficiency is low. Summary of the invention

[0004] The embodiments of the present invention provide a data processing method and a storage medium, which can improve the query efficiency of object information.

[0005] On the one hand, an embodiment of the present invention provides a data processing method, which is applied to a node of a blockchain network, and the method includes:

[0006] Receiving an authorization request submitted by a first user for authorizing a second user to query object information, the authorization request including first user information of the first user and second user information of the second user;

[0007] Acquire target object information matching the first user information from a storage area;

[0008] Acquire the public key of the second user based on the second user information, and encrypt the target object information by using the public key of the second user;

[0009] A QR code is generated according to the encrypted target object information, and the QR code is sent to the second user.

[0010] On the other hand, an embodiment of the present invention provides another data processing method, the method comprising:

[0011] Acquire a QR code including target object information of the first user, where the QR code is generated based on the target object information encrypted with the public key of the second user;

[0012] Identify the two-dimensional code and obtain the two-dimensional code information corresponding to the two-dimensional code;

[0013] Decrypting the QR code information based on the private key of the second user to obtain the target object information;

[0014] The target object information is output in a display interface.

[0015] In another aspect, an embodiment of the present invention provides a data processing device, the device comprising:

[0016] A communication module, configured to receive an authorization request submitted by a first user for authorizing a second user to query object information, wherein the authorization request includes first user information of the first user and second user information of the second user;

[0017] A processing module, configured to obtain target object information matching the first user information from a storage area;

[0018] The processing module is further configured to obtain a public key of the second user based on the second user information, encrypt the target object information by using the public key of the second user, and generate a QR code according to the encrypted target object information;

[0019] The communication module is further used to send the QR code to the second user.

[0020] In another aspect, an embodiment of the present invention provides another data processing device, the device comprising:

[0021] An acquisition module, configured to acquire a two-dimensional code including target object information of the first user, wherein the two-dimensional code is generated based on the target object information encrypted with the public key of the second user;

[0022] A processing module, used for identifying the two-dimensional code and obtaining two-dimensional code information corresponding to the two-dimensional code;

[0023] The processing module is further used to decrypt the two-dimensional code information based on the private key of the second user to obtain the target object information;

[0024] An output module is used to output the target object information in a display interface.

[0025] On the other hand, an embodiment of the present invention provides an electronic device, including a processor, a memory and a communication interface, wherein the processor, the memory and the communication interface are interconnected, wherein the memory is used to store a computer program that supports a terminal to execute the above method, and the computer program includes program instructions. The processor is configured to call the program instructions and perform the following steps: receiving an authorization request submitted by a first user through the communication interface to authorize a second user to query object information, the authorization request including first user information of the first user and second user information of the second user; obtaining target object information matching the first user information from a storage area; obtaining the public key of the second user based on the second user information, and encrypting the target object information through the public key of the second user; generating a QR code based on the encrypted target object information, and sending the QR code to the second user through the communication interface.

[0026] On the other hand, an embodiment of the present invention provides a terminal device, including a processor, a memory, a communication interface and an output device, wherein the processor, the memory, the communication interface and the output device are interconnected, wherein the memory is used to store a computer program that supports the terminal to execute the above method, and the computer program includes program instructions, and the processor is configured to call the program instructions to perform the following steps: obtaining a QR code including target object information of a first user, wherein the QR code is generated based on the target object information encrypted with the public key of the second user; identifying the QR code to obtain the QR code information corresponding to the QR code; decrypting the QR code information based on the private key of the second user to obtain the target object information; and outputting the target object information in a display interface through the output device.

[0027] On the other hand, an embodiment of the present invention provides a computer-readable storage medium, in which computer program instructions are stored. When the computer program instructions are executed by a processor, they are used to execute the above-mentioned data processing method.

[0028] In an embodiment of the present invention, a node of a blockchain network can obtain target object information matching the first user information from a storage area, obtain the second user's public key based on the second user information, and encrypt the target object information using the second user's public key, and then generate a QR code based on the encrypted target object information, and send the QR code to the second user, so that after the second user receives the QR code, he can identify the QR code and decrypt the QR code information based on his own private key to obtain the target object information of the first user. In this way, the second user can quickly obtain the target object information of the first user, which is conducive to improving the query efficiency of object information. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.

[0030] Figure 1 It is a schematic diagram of the structure of a blockchain provided by an embodiment of the present invention;

[0031] Figure 2 is a schematic diagram of the architecture of a data processing system provided by an embodiment of the present invention;

[0032] Figure 3 is an interactive flow chart of a data processing method provided by an embodiment of the present invention;

[0033] Figure 4 is a schematic diagram of the architecture of another data processing system provided by an embodiment of the present invention;

[0034] Figure 5 is a schematic flow chart of a data processing method provided by an embodiment of the present invention;

[0035] Figure 6 is a schematic flow chart of a data processing method provided by another embodiment of the present invention;

[0036] Figure 7 is a schematic block diagram of a data processing device proposed in an embodiment of the present invention;

[0037] Figure 8 is a schematic block diagram of an electronic device proposed in an embodiment of the present invention;

[0038] Fig. 9 is a schematic block diagram of another data processing device proposed in an embodiment of the present invention;

[0039] Fig.10 It is a schematic block diagram of a terminal device proposed in an embodiment of the present invention. DETAILED DESCRIPTION

[0040] Blockchain is a distributed ledger that combines data blocks in a sequential manner in chronological order to form a chain data structure, and uses cryptography to ensure that the data cannot be tampered with or forged. Multiple independent distributed nodes (i.e., blockchain node devices) save the same records. Blockchain technology has achieved decentralization and has become the cornerstone of trusted digital asset storage, transfer, and transactions.

[0041] by Figure 1Take the structural diagram of the blockchain shown in the figure as an example. Whenever new data needs to be written into the blockchain, the data will be aggregated into a block and added to the end of the existing blockchain. The consensus algorithm ensures that the newly added blocks of each node are exactly the same. Each block records several transaction records and contains the hash value of the previous block. All blocks save the hash value of the previous block in this way and are connected in sequence to form a blockchain. The hash value of the previous block will be stored in the block header of the next block in the blockchain. When the transaction data in the previous block changes, the hash value of this block will also change. Therefore, the transaction data uploaded to the blockchain network is difficult to be tampered with. Transactions on the blockchain realize the openness and transparency of the transaction process and improve the reliability of transaction data.

[0042] In order to better understand a data processing method disclosed in an embodiment of the present invention, the blockchain system to which the embodiment of the present invention is applicable is first described below.

[0043] See also Figure 2 , Figure 2 Schematic diagram of the architecture of a data processing system disclosed in the embodiment of the present application. Figure 2 As shown, the data processing system includes at least one terminal device 200, a blockchain network 201, and the blockchain network 201 includes multiple nodes, such as Figure 2 The first node 2010 and the second node 2011 shown in FIG. Figure 2 The blockchain network 201 shown as being composed of a first node 2010 and two second nodes 2011 is only used for example and does not constitute a limitation on the embodiments of the present application. For example, in another example, the blockchain network 201 may be composed of a first node 2010 and four second nodes 2011.

[0044] In one embodiment, the first node 2010 may be any blockchain node in the blockchain network, and the first node 2010 may send a QR code to the terminal device 200. In one embodiment, the first node 2010 may be the blockchain node device closest to the terminal device 200, or the first node 2010 may be the blockchain node device with the best communication quality with the terminal device 200, which is not limited in the present invention.

[0045] In one embodiment, the first node 2010 is obtained by election of all first nodes in the blockchain network according to a consensus algorithm, wherein the consensus algorithm includes but is not limited to a Proof of Work (PoW) algorithm, a Proof of Stake (PoS) algorithm, a Delegated Proof of Stake (DPoS) algorithm, a Practical Byzantine Fault Tolerance (PBFT) algorithm, etc. The first node 2010 may also be obtained by periodic election through a consensus algorithm, and the first nodes 2010 obtained by election in different periods may be the same or different.

[0046] Corresponds to Figure 2 The proposed data processing system is shown in Figure 3 , Figure 3 It is an interactive schematic diagram of a data processing method disclosed in an embodiment of the present application. The first user can send an authorization request for authorizing the second user to query object information to the node of the blockchain network in S301 through a terminal device (i.e., the terminal device corresponding to the first user), and the authorization request includes the first user information of the first user and the second user information of the second user. Further, after the node receives the authorization request, it can obtain the target object information matching the first user information from the storage area in S302, and obtain the public key of the second user based on the second user information, encrypt the target object information by the public key of the second user in S303, and generate a QR code according to the encrypted target object information, and send the QR code to the second user in S304. Further, after the second user receives the QR code through the terminal device (i.e., the terminal device corresponding to the second user), the QR code can be identified in S305 by the terminal device, and the QR code information corresponding to the QR code can be obtained, and the QR code information can be decrypted based on the private key of the second user to obtain the target object information. Further, the target object information is output in the display interface in S306 by the terminal device. The above-mentioned object information may include personal education experience information, marriage information, insurance information, travel contract information, etc.

[0047] See also Figure 4 , Figure 4 Schematic diagram of the architecture of a data processing system disclosed in the embodiment of the present application. Figure 4 As shown, the data processing system includes a third platform 400, a blockchain network 401, and the blockchain network 401 includes multiple nodes, such as Figure 4The first node 4010 and the second node 4011 shown, wherein any node in the blockchain network 401 may be a server corresponding to the third platform 400, for example, the first node 4010. In this case, the first user and the second user can bind their identities through the third platform 400 (for example, a small program), so that the third platform has the public key of the user (i.e., the first user and the second user) of the bound identity. When the first user wants to authorize the second user to query his own object information, he can enter his own user information and the user information of the second user through the third platform, and submit an authorization request for authorizing the second user to query the object information. Among them, the user information of the second user includes the account information of the second user on the third platform. Further, after receiving the authorization request submitted by the first user for authorizing the second user to query the object information, the server corresponding to the third platform 400 (the server is a node in the blockchain network) can obtain the target object information matching the first user information from the storage area, obtain the public key of the second user based on the second user information, and encrypt the target object information by the public key of the second user, generate a QR code according to the encrypted target object information, and bind the QR code to the account information of the second user on the third platform 400. Further, after the second user logs in to the third platform 400 with his own account information, he can identify the QR code, obtain the QR code information corresponding to the QR code, and decrypt the QR code information based on the private key of the second user to obtain the target object information, and then output the target object information in the display interface corresponding to the third platform 400. In this way, the second user can quickly query the target object information of the first user through the third platform.

[0048] The data processing method provided by the embodiment of the present invention can be applied to the fields of social interaction, travel, shopping, tourism, marriage, education, insurance, etc. The above-mentioned object information may include personal education experience information, marriage information, insurance information, travel contract information, etc. Among them, taking marriage as an example, the ways for the two parties to know each other include introductions by acquaintances or matchmaking agencies, marriage proposals on marriage websites, etc. In the process of knowing each other, the two parties may not be aware of their respective marriage information (for example, whether the marriage status is married), and the communication between the two parties lacks security guarantees. If one party is married, there may be a risk of bigamy. Therefore, it is particularly important to query the marriage information of one or both parties in the marriage field.

[0049] At present, due to privacy issues, individuals cannot query other people's marriage information. If one party in a marriage (hereinafter referred to as the second user) wants to know the marriage information of the other party (hereinafter referred to as the first user), the first user can bring his or her own identity document to the relevant agency (such as the marriage registration authority, etc.) to inquire and then inform the second user. The query efficiency is low.

[0050] Based on the data processing method proposed in the embodiment of the present invention, the above-mentioned object information may include marital information. In the embodiment of the present invention, blockchain and QR code technology can be applied to the field of querying marital information, so that the second user can quickly query the marital information of the first user, which is conducive to improving the query efficiency of marital information.

[0051] It can be understood that the data processing system described in the embodiment of the present invention is for more clearly illustrating the technical solution of the embodiment of the present invention, and does not constitute a limitation on the technical solution provided by the embodiment of the present invention. Ordinary technicians in this field can know that with the evolution of system architecture and the emergence of new business scenarios, the technical solution provided by the embodiment of the present invention is also applicable to similar technical problems.

[0052] See also Figure 5 , is a flow chart of a data processing method according to an embodiment of the present invention. The method according to the embodiment of the present invention can be executed by a node of a blockchain network, and the node can be any node connected to the blockchain network, and the node can be any form of electronic device, such as a server, a user terminal, etc. The method according to the embodiment of the present invention includes the following steps.

[0053] S501: Receive an authorization request submitted by a first user for authorizing a second user to query object information, the authorization request including first user information of the first user and second user information of the second user. The first user information and the second user information may include identity information of the first user and the second user (e.g., name, gender, place of origin, age, ID number, etc.), respectively. The object information may include personal education experience information, marriage information, insurance information, travel contract information, etc. Taking marriage information as an example, the marriage information includes one or more of the first user's marital status (e.g., married, unmarried), the number of historical marriages, and the duration of each marriage (e.g., one year, two years, etc.).

[0054] In one embodiment, when a first user wants to authorize a second user to query his or her own object information, an authorization request carrying the first user information and the second user information can be uploaded to a node of the blockchain network through a terminal device to authorize the second user to query his or her own object information.

[0055] S502: Acquire target object information matching the first user information from the storage area.

[0056] The storage area may be an object information query mechanism that has a communication connection with the node (for example, if the object information is marriage information, the object information query structure may be a marriage information query mechanism), or a local storage area, or a blockchain maintained by a blockchain network. In one embodiment, the storage area is a marriage information query mechanism that has a communication connection with the node. When the node receives an authorization request sent by a first user to authorize a second user to query object information, the node may query the target object information that matches the first user information from the pre-connected marriage information query mechanism based on the first user information, i.e., the target object information of the first user.

[0057] In another embodiment, before the node obtains the target object information matching the first user information from the storage area, it can also crawl the user information and object information of each user from the target website based on the object data crawling rules configured for the target website, and store the user information and object information of each user in association in the storage area. Among them, the target website can be a website corresponding to the object information query agency. In this case, when the node receives the authorization request sent by the first user to authorize the second user to query the object information, the target object information matching the first user information can be filtered out from the object information of each user stored in the storage area. Among them, the storage area can be the local storage area of ​​the node, or it can be a blockchain maintained by the blockchain network. The target website can be a website including object information. For example, assuming that the object information is personal education experience information, the target website can be China Higher Education Student Information and Career Center, etc.; assuming that the object information is marriage information, the target website can be a website corresponding to the marriage information query agency.

[0058] In another embodiment, the storage area includes a blockchain maintained by a blockchain network. Before the node obtains the target object information matching the first user information from the storage area, it can also receive an object information upload request submitted by the first user, and the object information upload request includes the object information of the first user and the user information of the first user. Further, the node can perform consensus verification on the object information of the first user and the user information of the first user. If the consensus verification passes, the object information of the first user and the user information of the first user are written into the blockchain. Further, when the node receives the authorization request sent by the first user to authorize the second user to query the object information, the target object information matching the first user information can be obtained from the blockchain. In this way, the tamper-proof and non-forgeable characteristics of the blockchain can be used to improve the credibility of the acquired object information.

[0059] Alternatively, after receiving the object information upload request submitted by the first user, in addition to writing the object information of the first user and the user information of the first user into the blockchain, the node may also store the object information of the first user and the user information of the first user in a local storage area. The present invention does not make specific limitations on this.

[0060] In one embodiment, the above-mentioned object information includes marital information. The node can periodically detect changes in the marital status of the first user. If a change in the marital status of the first user is detected, the current marital information of the first user can be obtained based on the first user information, and the marital information of the first user stored in the storage area can be adjusted based on the current marital information of the first user.

[0061] In one embodiment, before the first user submits an authorization request to the node of the blockchain network for authorizing the second user to query object information, the first user can also digitally sign his own user information (i.e., the first user information) based on his own private key (hereinafter referred to as the first private key). Further, after the blockchain network receives the authorization request, the digital signature can be verified based on the public key of the first user (hereinafter referred to as the first public key). If the verification passes, the above step of obtaining the target object information matching the first user information from the storage area is triggered. Alternatively, if the verification fails, a prompt message is output to the first user to prompt the first user that the digital signature is incorrect.

[0062] In one embodiment, before the node receives the above authorization request, the first user can upload his public key to the node, which is stored by the node in a storage area (such as a local storage area, a blockchain maintained by a blockchain network, etc.). Furthermore, after the node uploads the first user's public key (hereinafter referred to as the first public key) to the storage area, it can also generate a first child public key for the first public key based on a preset public key generation algorithm, and set a first valid time and a first setting time for the first child public key. In this case, when the blockchain network receives the authorization request, it can determine that the first child public key is valid from the first setting time to before the first valid time, and then use the first child public key to verify the above digital signature.

[0063] S503: Acquire the public key of the second user based on the second user information, and encrypt the target object information using the public key of the second user.

[0064] S504: Generate a QR code according to the encrypted target object information, and send the QR code to the second user.

[0065] In one embodiment, the first user and the second user may publish their public keys in the blockchain in advance, and the node may associate and store the public keys corresponding to the first user and the second user with the user information corresponding to the first user and the second user. In this case, after the node obtains the target object information, it may obtain the public key of the second user based on the second user information carried in the authorization request, and encrypt the target object information using the public key of the second user. Furthermore, a QR code is generated based on the encrypted target object information, and the QR code is sent to the second user. So that after the second user receives the QR code, he can identify the QR code and decrypt the QR code information based on his own private key to obtain the target object information of the first user.

[0066] In one embodiment, before the node receives the above authorization request, the second user can upload his own public key to the node, which is stored by the node in a storage area (e.g., a local storage area, a blockchain maintained by a blockchain network, etc.). Furthermore, after the node stores the public key of the second user (hereinafter referred to as the second public key) in the storage area, it can also generate a second sub-public key for the second public key based on a preset public key generation algorithm, and set a second valid time and a second setting time for the second public key. In this case, the node obtains the public key of the second user based on the second user information, and the specific implementation method for encrypting the target object information by the public key of the second user can be: from the second setting time to the second valid time, the node determines that the second sub-public key is valid. Further, when it is determined that the second sub-public key is valid, the second sub-public key is obtained, and the target object information is encrypted by the second sub-public key.

[0067] In another embodiment, if the node determines that the second sub-public key is invalid, it can generate a third sub-public key for the second public key based on the above-mentioned preset public key generation algorithm, and set a third validity time and a third setting time for the third sub-public key, and then use the currently generated third sub-public key to encrypt the target object information.

[0068] In one embodiment, the target object information includes target marital information. After the node obtains the target object information matching the first user information from the storage area, it can also detect whether the marital status of the first user is unmarried based on the target marital information. If the first user is determined to be unmarried based on the target marital information, the kinship relationship between the first user and the second user is queried based on the first user information and the second user information. If the kinship relationship is detected to be a close relative, close relative warning information is generated. Furthermore, the encrypted QR code and close relative warning information can be sent to the second user.

[0069] Among them, close relatives mainly refer to direct and collateral relatives within three generations, such as parents, brothers, sisters, cousins, etc. According to the view of genetics, the incidence of some genetic diseases of offspring born from close relatives is significantly higher than that of non-close relatives, thus affecting the quality of human beings and bringing a series of social problems. Therefore, when the node detects that there is a close relationship between the first user and the user, it can send a close relative warning message to the first user and / or the second user, prompting that there is a close relationship between the first user and the second user, so as to prevent both parties from getting married and having children without knowing it, causing irreparable losses.

[0070] In another embodiment, the target object information may include target marriage information. If the node determines that the first user is unmarried based on the target marriage information, the genetic disease history information corresponding to the first user and the second user is queried based on the first user information and the second user information. Furthermore, the encrypted QR code and genetic disease history information may be sent to the second user. The genetic disease history information may refer to the genetic disease history of the family of the first user and the second user, or may refer to the information of easily inherited diseases suffered by the first user and the second user themselves. For example, vision problems, skin problems, migraines, emotional problems, intestinal problems and other related diseases are all easily inherited diseases.

[0071] In one embodiment, the above-mentioned authorization request also includes authorization permission information. The specific implementation method of the node obtaining the target object information matching the first user information from the storage area can be: obtaining the object information corresponding to the first user information from the storage area, and based on the indication of the authorization permission information, filtering out the target object information from the object information corresponding to the first user information.

[0072] Among them, the authorization authority information is used to limit the scope of querying the object information of the first user. Exemplarily, the object information includes marital information. Assuming that the marital information of the first user includes the marital status of the first user "unmarried", the number of historical marriages "3 times" and the duration of each marriage, the query scope indicated by the authorization authority information is the marital status. In this case, the node can filter out the target marital information from the marital information corresponding to the first user information based on the indication of the authorization authority information, that is, the marital status "unmarried", and will not obtain the other historical number of marriages "3 times" and the duration of each marriage. In this way, the personalized needs of the first user can be met, and the target marital information of the first user can be obtained more intelligently.

[0073] In an embodiment of the present invention, a node of a blockchain network may receive an authorization request submitted by a first user for authorizing a second user to query object information, and the authorization request includes the first user information of the first user and the second user information of the second user. Furthermore, the node may obtain target object information matching the first user information from a storage area, obtain the public key of the second user based on the second user information, encrypt the target object information by the public key of the second user, and then generate a QR code based on the encrypted target object information, and send the QR code to the second user, so that after the second user receives the QR code, it can identify the QR code and decrypt the QR code information based on its own private key to obtain the target object information of the first user. In this way, the second user can quickly obtain the target object information of the first user, which is conducive to improving the query efficiency of object information.

[0074] See also Figure 6 , is a schematic flow chart of a data processing method provided by another embodiment of the present invention, such as Figure 6 As shown, the method includes:

[0075] S601: Acquire a two-dimensional code including target object information of a first user, where the two-dimensional code is generated based on the target object information encrypted with a public key of a second user.

[0076] In one embodiment, the terminal device can access the third platform, and the first user can send an authorization request to the third platform through the terminal device to authorize the second user to query object information, and the authorization request includes the first user information of the first user and the second user information of the second user, so that the third platform generates and returns a QR code including the target object information of the first user based on the authorization request, and the QR code is generated based on the target object information encrypted with the public key of the second user. Further, the terminal device can receive the above QR code returned by the third platform. Among them, the third platform can be a website that the terminal device can access, or it can be an application running on the terminal device, or it can be a small program.

[0077] In one embodiment, the first user and the second user can bind their identities through a third platform, so that the third platform has the public keys of the users of the bound identities (i.e., the first user and the second user). When the first user wants to authorize the second user to query object information, he can enter his own user information and the user information of the second user through the third platform, and submit an authorization request for authorizing the second user to query object information. The user information of the second user includes the account information of the second user on the third platform.

[0078] Furthermore, when the third platform receives the authorization request, it can obtain target object information matching the first user information in the target storage area, encrypt the target object information using the public key of the second user, generate a QR code based on the encrypted target object information, and send the QR code to the terminal device.

[0079] In one embodiment, when the third platform is an application running on a terminal device or a small program in a running application, the third platform can generate a QR code based on the encrypted target object information and then output the QR code to a display interface of the terminal device.

[0080] The target storage area may include a local storage area of ​​the third platform, a database of a server corresponding to the third platform, or an object information query mechanism having a communication connection with the third platform. Alternatively, in one embodiment, when the server corresponding to the third platform is a node in a blockchain network, the target storage area may also be a blockchain maintained by the blockchain network.

[0081] In one embodiment, after the third platform receives an authorization request from the first user for authorizing the second user to query object information, it can query the target object information matching the first user information from a pre-connected object information query mechanism based on the first user information.

[0082] In another embodiment, before the third platform obtains the target object information matching the first user information from the target storage area, it can also crawl the user information and object information of each user from the target website based on the object data crawling rules configured for the target website, and store the user information and object information of each user in the storage area in association. The target website can be a website corresponding to the object information query agency. In this case, when the third platform receives the authorization request sent by the first user to authorize the second user to query the object information, it can filter out the target object information matching the first user information from the object information of each user stored in the target storage area.

[0083] In one embodiment, the first user may send an authorization request to the node of the block network through a terminal device to authorize the second user to query object information, so that the node obtains a QR code including the target object information of the first user based on the authorization request, and sends the QR code to the terminal device corresponding to the second user, and the QR code is generated based on the target object information encrypted by the public key of the second user. The specific implementation method of the node obtaining the QR code including the target object information of the first user based on the authorization request can be referred to steps S501 to S504 in the above embodiment, which will not be repeated here.

[0084] S602: Identify the QR code and obtain the QR code information corresponding to the QR code.

[0085] S603: Decrypt the QR code information based on the private key of the second user to obtain target object information.

[0086] S604: Outputting target object information in the display interface.

[0087] In one embodiment, after the terminal device obtains the above-mentioned two-dimensional code, the second user can identify the two-dimensional code through the terminal device to obtain the two-dimensional code information corresponding to the two-dimensional code. Further, the second user can input his own private key to decrypt the two-dimensional code information to obtain the target object information of the first user. When the detection terminal device detects that the decryption is successful, the target object information can be output in the display interface, so that the user can quickly view the target object information of the first user.

[0088] In one embodiment, when the node of the third platform or block network generates a QR code, a valid number threshold or a valid duration threshold of the QR code can also be set, wherein the valid number threshold and the valid duration threshold can be pre-set by the developer based on experimental measurement data. In one embodiment, when the node of the third platform or block network generates a QR code, a valid number threshold is set for the QR code. When the terminal device recognizes the QR code, the historical recognition times of the QR code can also be obtained. If the historical recognition times are greater than the valid number threshold, the QR code expiration information is output to prompt that the QR code recognition times have reached the upper limit. If the historical recognition times are less than or equal to the valid number threshold, the QR code can be recognized normally to obtain the QR code information. Further, the recognition times of the QR code can be accumulated once (that is, the above historical recognition times + 1).

[0089] In another embodiment, when the node of the third platform or block network generates a QR code, a valid duration threshold and a set time can be set for the QR code. When the terminal device recognizes the QR code, the time difference between the current system time and the set time can be used. If the time difference is greater than the valid duration threshold, the QR code expiration information is output to indicate that the time is too long and the QR code is invalid; if the time difference is less than or equal to the valid duration threshold, the QR code can be recognized normally to obtain the QR code information.

[0090] In an embodiment of the present invention, a terminal device can obtain a QR code including the target object information of the first user, and the QR code is generated based on the target object information encrypted by the public key of the second user. Further, the terminal device can identify the QR code, obtain the QR code information corresponding to the QR code, and decrypt the QR code information based on the private key of the second user to obtain the target object information, and then output the target object information in the display interface. In this way, the second user can quickly obtain the target object information of the first user by scanning the QR code, which is conducive to improving the query efficiency of the object information.

[0091] An embodiment of the present invention further provides a computer storage medium, in which program instructions are stored. When the program instructions are executed, they are used to implement the corresponding methods described in the above embodiments.

[0092] Based on the description of the above data processing method embodiment, the embodiment of the present invention further proposes a data processing device, which may be a computer program (including program code) running in the above node. The data processing device may be used to execute the following steps: Figure 3 and Figure 5 For the data processing method shown, see Figure 7 , the data processing device may include: a communication module 70 and a processing module 71.

[0093] The communication module 70 is used to receive an authorization request submitted by a first user for authorizing a second user to query object information, wherein the authorization request includes first user information of the first user and second user information of the second user;

[0094] Processing module 71, used for acquiring target object information matching the first user information from a storage area;

[0095] The processing module 71 is further configured to obtain a public key of the second user based on the second user information, encrypt the target object information using the public key of the second user, and generate a QR code according to the encrypted target object information;

[0096] The communication module 70 is further configured to send the QR code to the second user.

[0097] In one embodiment, the processing module 71 is further used to crawl user information and object information of each user from the target website based on the object data crawling rules configured for the target website; and associate the user information and object information of each user with each user and store them in a storage area.

[0098] In one embodiment, the storage area includes a blockchain maintained by the blockchain network, and the communication module 70 is further used to receive an object information upload request submitted by the first user, wherein the object information upload request includes the object information of the first user and the user information of the first user; the processing module 71 is further used to perform consensus verification on the object information of the first user and the user information of the first user; if the consensus verification passes, the object information of the first user and the user information of the first user are written into the blockchain.

[0099] In one embodiment, the target object information includes target marital information. The processing module 71 is further used to query the kinship relationship between the first user and the second user based on the first user information and the second user information if it is determined that the first user is unmarried based on the target marital information; if it is detected that the kinship relationship is a close relative relationship, generate close relative warning information; the communication module 70 is also used to send the encrypted QR code and the close relative warning information to the second user.

[0100] In one embodiment, the target object information includes target marital information. The processing module 71 is also used to query the genetic disease history information corresponding to the first user and the second user based on the first user information and the second user information if it is determined that the first user is unmarried based on the target marital information; the communication module 70 is also used to send the encrypted QR code and the genetic disease history information to the second user.

[0101] In one embodiment, the processing module 71 is specifically configured to obtain object information corresponding to the first user information from a storage area; and based on an indication of the authorization permission information, filter out target object information from the object information corresponding to the first user information.

[0102] See also Figure 8 , is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention, and the electronic device can be any node in a blockchain network, for example, Figure 2 or Figure 4 As shown in the first node or the second node, the electronic device of the embodiment of the present invention includes a power supply module and other structures, and includes a processor 801, a memory 802 and a communication interface 803. The processor 801, the memory 802 and the communication interface 803 can exchange data, and the processor 801 implements corresponding data processing.

[0103] The memory 802 may include a volatile memory (volatile memory), such as a random-access memory (RAM); the memory 802 may also include a non-volatile memory (non-volatile memory), such as a flash memory, a solid-state drive (SSD), etc.; the memory 802 may also include a combination of the above-mentioned types of memory.

[0104] The processor 801 may be a central processing unit (CPU) 801. In one embodiment, the processor 801 may also be a graphics processing unit (GPU) 801. The processor 801 may also be a combination of a CPU and a GPU. In the electronic device, a plurality of CPUs and GPUs may be included as needed to perform a corresponding root data processing system. In one embodiment, the memory 802 is used to store program instructions. The processor 801 may call the program instructions to implement the various methods involved in the embodiments of the present invention.

[0105] In one embodiment, the processor 801 of the electronic device calls the program instructions stored in the memory 802, and is used to receive, through the communication interface 803, an authorization request submitted by a first user for authorizing a second user to query object information, the authorization request including the first user information of the first user and the second user information of the second user; obtain target object information matching the first user information from the storage area; obtain the public key of the second user based on the second user information, and encrypt the target object information using the public key of the second user; generate a QR code based on the encrypted target object information, and send the QR code to the second user through the communication interface 803.

[0106] In one embodiment, the processor 801 is further used to crawl user information and object information of each user from the target website based on the object data crawling rules configured for the target website; and associate the user information and object information of each user with each user and store them in a storage area.

[0107] In one embodiment, the storage area includes a blockchain maintained by the blockchain network, and the processor 801 is further used to receive an object information upload request submitted by the first user through the communication interface 803, wherein the object information upload request includes the object information of the first user and the user information of the first user; the processor 801 is further used to perform consensus verification on the object information of the first user and the user information of the first user; if the consensus verification passes, the object information of the first user and the user information of the first user are written into the blockchain.

[0108] In one embodiment, the target object information includes target marital information. The processor 801 is further used to query the kinship relationship between the first user and the second user based on the first user information and the second user information if it is determined that the first user is unmarried based on the target marital information; if it is detected that the kinship relationship is a close relative relationship, generate close relative warning information, and send the encrypted QR code and the close relative warning information to the second user through the communication interface 803.

[0109] In one embodiment, the target object information includes target marital information. The processor 801 is further used to query the genetic medical history information corresponding to the first user and the second user respectively based on the first user information and the second user information if it is determined that the first user is unmarried based on the target marital information, and send the encrypted QR code and the genetic medical history information to the second user through the communication interface 803.

[0110] In one embodiment, the processor 801 is specifically configured to obtain object information corresponding to the first user information from a storage area; and based on an indication of the authorization permission information, filter out target object information from the object information corresponding to the first user information.

[0111] In the embodiment of the present invention, the specific implementation of the processor 801 may refer to the description of the relevant contents in the embodiments corresponding to the aforementioned figures.

[0112] Based on the description of the above data processing method embodiment, the embodiment of the present invention also proposes another data processing device, which can be a computer program (including program code) running in the above terminal device. The data processing device can be used to perform the following steps: Figure 3 and Figure 6 For the data processing method shown, see Fig. 9 The data processing device may include: an acquisition module 90, a processing module 91 and an output module 92.

[0113] An acquisition module 90 is used to acquire a two-dimensional code including target object information of the first user, wherein the two-dimensional code is generated based on the target object information encrypted by the public key of the second user;

[0114] A processing module 91 is used to identify the two-dimensional code and obtain the two-dimensional code information corresponding to the two-dimensional code;

[0115] The processing module 91 is further configured to decrypt the QR code information based on the private key of the second user to obtain the target object information;

[0116] The output module 92 is used to output the target object information in the display interface.

[0117] In one embodiment, the acquisition module 90 is specifically used to send an authorization request to a third platform for authorizing a second user to query object information, wherein the authorization request includes the first user information of the first user and the second user information of the second user, so that the third platform obtains and returns target object information matching the first user information based on the authorization request; receives the target object information returned by the third platform, and encrypts the target object information using the public key of the second user; and generates a QR code based on the encrypted target object information.

[0118] In one embodiment, the acquisition module 90 is specifically used to receive a QR code including the target object information of the first user sent by a node of the blockchain network, and the QR code is obtained by the node based on an authorization request submitted by the first user to authorize the second user to query the target object information.

[0119] See also Fig.10 , is a schematic diagram of the structure of a terminal device according to an embodiment of the present invention, wherein the terminal device according to the embodiment of the present invention includes a power supply module and other structures, and includes a processor 10, a memory 11, a communication interface 12 and an output device 13. The processor 10, the memory 11, the communication interface 12 and the output device 13 can exchange data, and the processor 10 implements corresponding data processing.

[0120] The memory 11 may include a volatile memory, such as a random-access memory (RAM); the memory 11 may also include a non-volatile memory, such as a flash memory, a solid-state drive (SSD), etc.; the memory 11 may also include a combination of the above-mentioned types of memories.

[0121] The processor 10 may be a central processing unit (CPU) 10. In one embodiment, the processor 10 may also be a graphics processing unit (GPU) 10. The processor 10 may also be a combination of a CPU and a GPU. In the electronic device, a plurality of CPUs and GPUs may be included as needed to perform a corresponding root data processing system. In one embodiment, the memory 11 is used to store program instructions. The processor 10 may call the program instructions to implement the various methods involved in the embodiments of the present invention.

[0122] In one embodiment, the processor 10 of the electronic device calls the program instructions stored in the memory 11 to obtain a QR code including the target object information of the first user through the communication interface 12, wherein the QR code is generated based on the target object information encrypted by the public key of the second user; identifies the QR code to obtain the QR code information corresponding to the QR code; decrypts the QR code information based on the private key of the second user to obtain the target object information; and outputs the target object information in the display interface through the output device 13.

[0123] In one embodiment, the processor 10 is specifically used to send an authorization request for authorizing the second user to query object information to the third platform through the communication interface 12, and the authorization request includes the first user information of the first user and the second user information of the second user, so that the third platform obtains and returns the target object information matching the first user information based on the authorization request; receives the target object information returned by the third platform through the communication interface 12, and encrypts the target object information through the public key of the second user; generates a QR code based on the encrypted target object information.

[0124] In one embodiment, the processor 10 is specifically used to receive a QR code including target object information of a first user sent by a node of the blockchain network through the communication interface 12, wherein the QR code is obtained by the node based on an authorization request submitted by the first user to authorize a second user to query the target object information.

[0125] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0126] What is disclosed above is only a partial embodiment of the present invention, which certainly cannot be used to limit the scope of rights of the present invention. Ordinary technicians in this field can understand that all or part of the processes of implementing the above embodiments and making equivalent changes according to the claims of the present invention still fall within the scope of the invention.

Claims

1. A data processing method, characterized in that: The method is applied to a node of a blockchain network, and the method comprises: Receiving an authorization request submitted by a first user for authorizing a second user to query object information, the authorization request including first user information of the first user and second user information of the second user; Acquire the public key of the first user based on the first user information, and verify the digital signature of the first user by using the public key of the first user, where the digital signature of the first user is obtained by signing the first user information based on the private key of the first user; If the verification passes, obtaining target object information matching the first user information from the storage area; If the target object information is target marriage information and it is determined based on the target marriage information that the first user is unmarried, querying the relationship between the first user and the second user based on the first user information and the second user information; If it is detected that the kinship relationship is a close relative relationship, a close relative warning message is generated; Acquire the public key of the second user based on the second user information, and encrypt the target object information by using the public key of the second user; A QR code is generated according to the encrypted target object information, and the QR code and the close relative alert information are sent to the second user.

2. The method according to claim 1, characterized in that Before acquiring the target object information matching the first user information from the storage area, the method further includes: crawling user information and object information of each user from the target website based on the object data crawling rules configured for the target website; The user information and the object information of each user are associated and stored in a storage area.

3. The method according to claim 1, characterized in that The storage area includes a blockchain maintained by the blockchain network. Before acquiring target object information matching the first user information from the storage area, the method further includes: receiving an object information upload request submitted by the first user, wherein the object information upload request includes the object information of the first user and the user information of the first user; Performing consensus verification on the object information of the first user and the user information of the first user; If the consensus verification passes, the object information of the first user and the user information of the first user are written into the blockchain.

4. The method according to any one of claims 1 to 3, characterized in that: The target object information includes target marital information. After acquiring the target object information matching the first user information from the storage area, the method further includes: If it is determined based on the target marriage information that the first user is unmarried, querying the genetic disease history information corresponding to the first user and the second user respectively based on the first user information and the second user information; The encrypted QR code and the genetic disease history information are sent to the second user.

5. The method according to claim 1, wherein the authorization request further includes authorization permission information, and the step of acquiring target object information matching the first user information from the storage area includes: Acquire object information corresponding to the first user information from a storage area; Based on the indication of the authorization authority information, target object information is filtered out from the object information corresponding to the first user information.

6. A data processing method, characterized in that: The method comprises: Obtaining a QR code including the target object information of the first user, wherein the QR code is generated by a node of the blockchain network based on the target object information encrypted by the public key of the second user when receiving an authorization request submitted by the first user for authorizing the second user to query the object information and the digital signature of the first user is verified by the public key of the first user, wherein the authorization request includes the first user information of the first user and the second user information of the second user, and the digital signature of the first user is obtained by signing the first user information based on the private key of the first user; Identify the two-dimensional code and obtain the two-dimensional code information corresponding to the two-dimensional code; Decrypting the QR code information based on the private key of the second user to obtain the target object information; Outputting the target object information in a display interface; If the target object information is target marriage information, the method further includes: Acquiring close relative warning information, where the close relative warning information is generated when it is determined that the first user is unmarried based on the target marriage information, and when it is determined that the relationship between the first user and the second user is a close relative based on the first user information and the second user information; The outputting the target object information in the display interface includes: The target object information and the close relative warning information are output in a display interface.

7. The method according to claim 6, characterized in that The obtaining of the QR code including the target object information of the first user includes: Sending an authorization request for authorizing the second user to query object information to the third platform, the authorization request including first user information of the first user and second user information of the second user, so that the third platform acquires and returns target object information matching the first user information based on the authorization request; receiving the target object information returned by the third platform, and encrypting the target object information by using the public key of the second user; Generate a QR code based on the encrypted target object information.

8. The method according to claim 6, characterized in that The obtaining of the QR code including the target object information of the first user includes: A QR code including target object information of a first user is received from a node of a blockchain network, wherein the QR code is obtained by the node based on an authorization request submitted by the first user to authorize a second user to query target object information.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, they are used to execute the data processing method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Abnormal marital relationship data detection method and device

    CN103617208A

  • Information transmission method and device

    CN104038472A

  • Encrypted data sharing method, server, and computer-readable storage medium

    CN109117671A

  • Method, apparatus and storage medium for processing privacy data based on block chain

    CN109214197A