A personal information management method and device based on blockchain
By managing personal information on the blockchain, the problem of low personal information management efficiency is solved, the information is made open, transparent and non-tamperable, ensuring the authenticity and accuracy of the information, and improving the efficiency of business activities.
Patent Information
- Application Number
- CN201910919609.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-26
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2039-09-26
AI Technical Summary
In the existing technology, the efficiency of personal information management is low, especially when multiple users provide supporting materials, they need to be checked one by one, which leads to a waste of time and energy and reduces the efficiency of the activity.
Using a blockchain-based personal information management method, by obtaining the business information upload request of the management node, extract the target user's historical business experience information, and generate business blocks based on their matching degree, and upload them to the target data blockchain to ensure data open, transparent and non-tamperable.
It improves the efficiency and credibility of personal information management, saves information verification time, and ensures the authenticity and accuracy of information related to business activities.
Smart Images

Figure CN110597864B
Abstract
Description
Technical Field
[0001] The present application relates to the field of blockchain technology, and in particular to a blockchain-based personal information management method and device. Background Art
[0002] With the continuous improvement of social systems and the development of the Internet, the things that each user has done or the honors he has obtained in different time periods can basically be obtained on the Internet, such as the user's birth information, schooling, work situation or certificate examination status, etc., and relevant information can be queried from the Internet at any time when needed. Nowadays, many activities are based on completed activities. That is to say, when carrying out a certain activity, it may be necessary to provide the execution status of some other activities to determine that the user is qualified to carry out a certain activity, so that the other participant of the activity can understand the basic information of the user and evaluate the user. At present, the execution results of most activities are obtained by downloading relevant information from the official website. The electronic version of the information is generally anti-counterfeiting or anti-modification through digital signatures or official seals. However, when the information is handed over to another participant, the paper version of the information is often submitted, which may cause problems with the authenticity of the information. Especially when the other participant receives information provided by multiple users, it will take a lot of time and energy to check all the information provided by each user one by one, thereby reducing the efficiency of the activity. For example, when users apply for jobs, they will provide a lot of information to prove their abilities, and when companies are recruiting, they will receive a large amount of supporting materials provided by users. If they check them one by one, it will waste a lot of time and energy, greatly reducing the efficiency of recruitment. Summary of the invention
[0003] The embodiments of the present application provide a blockchain-based personal information management method and device, which can improve the effectiveness and efficiency of personal information management.
[0004] The first aspect of the embodiment of the present application provides a personal information management method based on blockchain, including:
[0005] Obtaining a business information upload request sent by the management node, wherein the business information upload request includes the target personal information of the target user, the target business experience information, and the business behavior information to be uploaded to the chain;
[0006] Obtain at least one first block associated with the target personal information from the target data blockchain, and extract business information in each first block;
[0007] Generate historical business experience information corresponding to the target user according to the business information in the first block;
[0008] If the target business experience information matches the historical business experience information, a business block is generated according to the target personal information and the business behavior information to be uploaded to the chain, and the business block is uploaded to the target data blockchain.
[0009] The step of generating the historical business experience information corresponding to the target user according to the business information in the first block includes:
[0010] Generate historical business experience information corresponding to the target user according to the historical business time nodes and historical business duration of the business information in the at least one first block;
[0011] The method further comprises:
[0012] Acquire first service information associated with the target service experience information, and acquire a target service time node and a target service duration in the target service experience information;
[0013] If the target service time node is the same as the historical service time node of the first service information, and the target service duration is the same as the historical service duration of the first service information, then it is determined that the target service experience information matches the historical service experience information;
[0014] If the target service time node is different from the historical service time node of the first service information, or the target service duration is different from the historical service duration of the first service information, it is determined that the target service experience information does not match the historical service experience information.
[0015] Wherein, the method further comprises:
[0016] Acquire the experience type of the target business experience information, and acquire second business information in the historical business experience information according to the experience type, wherein the experience type of the second business information is the same as the experience type of the target business experience information;
[0017] If the target business experience information is the same as the second business information, determining that the target business experience information matches the historical business experience information;
[0018] If the target service experience information is different from the second service information, it is determined that the target service experience information does not match the historical service experience information.
[0019] The generating of the business block according to the target personal information, the target time node information and the target business information includes:
[0020] A block to be added is generated according to the target personal information and the business behavior information to be put on the chain; the block to be added is verified according to the consensus mechanism, and if the verification passes, the business block is generated according to the target data blockchain and the block to be added.
[0021] Wherein, generating the business block according to the target data blockchain and the block to be added includes:
[0022] Obtaining a second block in the target data blockchain and a hash value of the second block, wherein the second block is a block with a largest timestamp in the target data blockchain;
[0023] Generate a target hash value according to the block to be added, and generate business block header data according to the target hash value and the hash value of the second block, wherein the business block header data also includes a generation time of the business block header data;
[0024] The service block is generated according to the block to be added and the service block header data.
[0025] The verification of the block to be added according to the consensus mechanism includes:
[0026] Broadcasting the block to be added to at least one participating node in the personal information management system, so that the at least one participating node determines the first target participant and the second target participant according to the target business information in the block to be added, obtains the confirmation results of the first target participant and the second target participant for the target business information, and sends the confirmation results to the personal information management system;
[0027] Receive the confirmation result sent by the at least one participating node, reach a consensus based on the confirmation result sent by the at least one participating node, and verify the block to be added.
[0028] Wherein, the method further comprises:
[0029] Receiving a business information query request sent by a business recipient, wherein the business information query request includes personal information of the business requester and business experience information of the participant;
[0030] Obtain at least one third block from the target data blockchain, wherein the personal information in each of the at least one third block is the same as the personal information of the requesting party, and the experience type of the business information in each of the third blocks is the same as the experience type of the business experience information of the participating party;
[0031] If the service information in the third block is consistent with the service experience information of the participant, a service information confirmation message is sent to the service recipient;
[0032] If the business information in the third block is inconsistent with the business experience information of the participant, a business information error message is sent to the business recipient.
[0033] A second aspect of the embodiment of the present application provides a personal information management device based on blockchain, characterized in that the device includes:
[0034] A receiving module is used to obtain a business information upload request sent by a management node, wherein the business information upload request includes target personal information of a target user, target business experience information, and business behavior information to be uploaded to the chain;
[0035] A first acquisition module, configured to acquire at least one first block associated with the target personal information from a target data blockchain;
[0036] An extraction module, used for extracting business information in each first block;
[0037] A first generating module, configured to generate historical business experience information corresponding to the target user according to the business information in the first block;
[0038] A second generating module is used to generate a business block according to the target personal information and the business behavior information to be uploaded if the target business experience information matches the historical business experience information;
[0039] The uploading module is used to upload the business block to the target data blockchain.
[0040] The first generating module is specifically configured to generate the historical business experience information corresponding to the target user according to the historical business time nodes and the historical business duration of the business information in the at least one first block;
[0041] The device also includes:
[0042] A second acquisition module is used to acquire first service information associated with the target service experience information, and acquire a target service time node and a target service duration in the target service experience information;
[0043] a determination module, configured to determine that the target service experience information matches the historical service experience information if the target service time node is the same as the historical service time node of the first service information, and the target service duration is the same as the historical service duration of the first service information;
[0044] The determination module is further used to determine that the target business experience information does not match the historical business experience information if the target business time node is different from the historical business time node of the first business information, or the target business duration is different from the historical business duration of the first business information.
[0045] Wherein, the device further comprises:
[0046] The second acquisition module is further used to acquire the experience type of the target business experience information, and acquire the second business information in the historical business experience information according to the experience type, wherein the experience type of the second business information is the same as the experience type of the target business experience information;
[0047] The determination module is further configured to determine that the target business experience information matches the historical business experience information if the target business experience information is the same as the second business information;
[0048] The determination module is further configured to determine that the target service experience information does not match the historical service experience information if the target service experience information is different from the second service information.
[0049] Wherein, the second generation module includes:
[0050] A generating unit, configured to generate a block to be added according to the target personal information and the business behavior information to be uploaded to the chain;
[0051] A verification unit, used to verify the block to be added according to a consensus mechanism;
[0052] The generating unit is further configured to generate the business block according to the target data blockchain and the block to be added if the verification is passed.
[0053] Wherein, the generating unit comprises:
[0054] an acquisition subunit, configured to acquire a second block in the target data blockchain and a hash value of the second block, wherein the second block is a block with a largest timestamp in the target data blockchain;
[0055] A generating subunit, configured to generate a target hash value according to the block to be added, and generate business block header data according to the target hash value and the hash value of the second block, wherein the business block header data further includes a generation time of the business block header data;
[0056] The generating subunit is further used to generate the service block according to the block to be added and the service block header data.
[0057] Wherein, the verification unit comprises:
[0058] A sending subunit, configured to broadcast the block to be added to at least one participating node in the personal information management system, so that the at least one participating node determines a first target participant and a second target participant according to the target business information in the block to be added, obtains a confirmation result of the first target participant and the second target participant for the target business information, and sends the confirmation result to the personal information management system;
[0059] A receiving subunit, configured to receive a confirmation result sent by the at least one participating node;
[0060] The verification subunit is used to reach a consensus based on the confirmation result sent by the at least one participating node and verify the block to be added.
[0061] Wherein, the device further comprises:
[0062] The receiving module is further used to receive a business information query request sent by a business receiver, wherein the business information query request includes personal information of the business requester and business experience information of the participant;
[0063] The first acquisition module is further used to acquire at least one third block from the target data blockchain, the personal information in each of the at least one third block being the same as the personal information of the requesting party, and the experience type of the business information in each of the third blocks being the same as the experience type of the business experience information of the participating party;
[0064] A sending module, configured to send a service information confirmation message to the service recipient if the service information in the third block is consistent with the service experience information of the participant;
[0065] The sending module is further configured to send a business information error message to the business recipient if the business information in the third block is inconsistent with the business experience information of the participant.
[0066] A third aspect of an embodiment of the present application provides an electronic device, characterized in that it includes a processor, a memory, and an input and output interface;
[0067] The processor is connected to the memory and the input / output interface respectively, wherein the input / output interface is used for page interaction, the memory is used to store program code, and the processor is used to call the program code to execute the blockchain-based personal information management method as described in the first aspect of the embodiment of the present application.
[0068] The fourth aspect of the embodiments of the present application provides a computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, and the computer program includes program instructions. When the program instructions are executed by a processor, they execute the blockchain-based personal information management method as described in the first aspect of the embodiments of the present application.
[0069] Implementing the embodiments of the present application will have the following beneficial effects:
[0070] The embodiment of the present application receives a business information upload request sent by a management node, and the business information upload request includes the target personal information, target business experience information and business behavior information to be uploaded to the chain of the target user, obtains at least one first block associated with the target personal information from the target data blockchain, extracts the business information in each first block to generate the historical business experience information of the target user, and when the target business experience information matches the historical business experience information, generates a business block according to the target personal information and the business behavior information to be uploaded to the chain, and uploads the business block to the target data blockchain. When the target user performs any business activity, the relevant information of the business activity is uploaded to the target data blockchain. Due to the decentralization and immutability of the blockchain, the data in the personal information management system is open and transparent to each participating node, which improves the efficiency, credibility and convenience of personal information management. The personal information management system records everyone's life files, including the experience of each period. When uploading the relevant information of the new business activity to the target data blockchain, the relevant information of the new business activity can be verified according to the data in each block that the target user has uploaded to the chain, and the authenticity and accuracy of the new business activity can be determined, so that the relevant information of the business activity uploaded to the chain is authentic and credible. Moreover, each person's life file can be traced back, which will save time and energy in query and sorting when conducting business activities that require information verification, thereby improving the efficiency of the business activities. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0072] in:
[0073] Figure 1 This is a schematic diagram of the structure of a blockchain provided by an embodiment of the present application;
[0074] Figure 2aThis is a personal information management architecture diagram provided by an embodiment of the present application;
[0075] Figure 2b This is a schematic diagram of a personal information management system provided by an embodiment of the present application;
[0076] Figure 3 This is a flowchart of a personal information management method based on blockchain provided in an embodiment of the present application;
[0077] Figure 4 This is a schematic diagram of a specific process of personal information management based on blockchain provided in an embodiment of the present application;
[0078] Figure 5 This is a schematic diagram of the division of query permissions into roles provided in an embodiment of the present application;
[0079] Figure 6 This is a schematic diagram of data blockchain distribution provided by an embodiment of the present application;
[0080] Figure 7 This is a schematic diagram of the historical business experience information provided by the embodiment of the present application;
[0081] Figure 8 Schematic diagram of a personal information management device based on blockchain provided in an embodiment of the present application;
[0082] Fig. 9 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0083] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0084] First, the blockchain, block, chain, consensus mechanism and smart contract mentioned in the embodiments of this application are introduced.
[0085] 1. Blockchain: In a narrow sense, blockchain is a chain data structure with blocks as the basic unit. The digital summary is used in the block to verify the previous transaction history, which is suitable for the needs of tamper-proof and scalability in the distributed accounting scenario; in a broad sense, blockchain also refers to the distributed accounting technology implemented by the blockchain structure, including distributed consensus, privacy and security protection, peer-to-peer communication technology, network protocols, smart contracts, etc. The goal of the blockchain is to realize a distributed data record book, which only allows additions but not deletions. The basic structure of the underlying ledger is a linear linked list. The linked list is composed of "blocks" connected in series, and the hash value of the previous block is recorded in the subsequent block. Whether each block (and the transactions in the block) is legal can be quickly verified by calculating the hash value. If a node in the network proposes to add a new block, the block must be confirmed by the consensus mechanism.
[0086] 2. Block: It records all transactions and status results that occurred within a period of time, and is a consensus on the current state of the ledger. Specifically, for the blockchain, each time data is written, that is, the above-mentioned transaction process, a block is created.
[0087] 3. Chain: It is composed of blocks connected in series in the order of occurrence, and is a log record of changes in the status of the entire ledger.
[0088] 4. Consensus mechanism: Through the voting of special nodes, the verification and confirmation of transactions are completed in a very short time. The goal is to make all honest nodes save a consistent blockchain graph.
[0089] 5. Smart Contract: The working principle of the smart contract is similar to the if-then statement implemented in the program code. When the preset conditions are triggered, the smart contract executes the corresponding contract terms. A smart contract is a set of commitments defined in digital form, including agreements on which the contract participants can execute these commitments. It is implemented by deploying code on a shared ledger to execute when certain conditions are met. According to actual business needs, the code is used to complete automated transactions. It can also execute contracts for processing received information. For example, after receiving a business information upload request sent by a management node, the identity information of the management node is verified. When the identity information of the management node is authenticated as a relevant government department, the business information upload request sent by the management node is received.
[0090] For details, see Figure 1 , Figure 1 This is a schematic diagram of the structure of a blockchain provided by the embodiment of this application. Figure 1As shown in the figure, a blockchain is composed of blocks, each of which consists of two parts: a block header and a block body. The block header includes a timestamp, a current hash value, and a previous hash value. The timestamp is used to record the generation time of the block; the current hash value is the hash value of the block; the previous hash value is the hash value of the previous block of the block; and the block body is the transaction information stored in the block. Specifically, taking the second block joining the blockchain as an example, the way to generate a new block is as follows:
[0091] When the first block 101 exists in the blockchain, the first block 101 is used to indicate the first transaction data generated by the first transaction. If a second transaction occurs, the second transaction data will be generated through the second transaction. If the second transaction data is verified, the second block 102 is generated through the second transaction data and added to the blockchain as the successor block of the first block 101. Among them, the timestamp contained in the block header of the second block 102 is used to record the generation time of the second block 102; the current hash value is the hash value generated by the blockchain system through the data contained in the second block 102; the previous hash value is the hash value of the first block 101; the block body of the second block 102 is used to record the second transaction data.
[0092] Similarly, the third block 103 is added to the blockchain, and the third block 103 is used to indicate the third transaction data generated by the third transaction. If a new transaction occurs in the transaction chain indicated by the blockchain, a subsequent block is generated and added to the blockchain according to the above-mentioned method of generating a new block.
[0093] For details, see Figure 2a , Figure 2a A personal information management architecture diagram provided in an embodiment of the present application, such as Figure 2aAs shown, when the government department receives the business information from the business recipient or business requester for business activities, it sends a business information upload request to the blockchain network through the management node. The business information upload request includes relevant information of the business activity, such as the target personal information of the business requester, the target business experience information and the business behavior information to be uploaded to the chain, wherein the target business experience information is the historical experience of the business requester that needs to be provided when performing the business activity, and the business behavior information to be uploaded to the chain is the relevant information of the business activity. After the blockchain network receives the business information upload request, it verifies each data contained in the business information upload request according to the historical business experience information of the business requester. When the verification is passed, a business block is generated and the business block is added to the target data blockchain. When the business recipient needs to query any business information through the first client or the business requester needs to query any business information through the second client, at least one block associated with the business information can be found through the experience type of the business information, and at least one block can be sent to the business recipient or business requester. Among them, different query or increase permissions can be given to nodes with different roles in the personal information management system according to specific needs. Among them, the service recipient may also belong to a government department, and the first client and the second client are electronic devices, including but not limited to mobile phones, tablet computers, desktop computers, laptop computers, PDAs, mobile Internet devices (mobile internet device, MID), wearable devices (such as smart watches, smart bracelets, etc.), etc.
[0094] See also Figure 2b The personal information management system shown, the personal information management system 200 refers to a system for storing relevant information of the business activities experienced by each user, and data can be shared between nodes. The personal information management system 200 may include multiple nodes 201, and multiple nodes 201 may refer to each client in the personal information management system. Each node 201 can receive input information when performing normal work, and maintain the shared data in the personal information management system based on the received input information. In order to ensure the information intercommunication within the personal information management system, there can be an information connection between each node in the personal information management, and information can be transmitted between nodes through the above-mentioned information connection. For example, when any node in the personal information management system receives input information, other nodes in the personal information management obtain the input information according to the consensus algorithm, and store the input information as data in the shared data, so that the data stored on all nodes in the data sharing system are consistent.
[0095] Each node in the personal information management system has a node identifier corresponding to it, and each node in the personal information management system can store the node identifiers of other nodes in the personal information management system, so that the generated blocks can be broadcast to other nodes in the personal information management system according to the node identifiers of other nodes. A node identifier list as shown in the following table can be maintained in each node, and the node name and node identifier are stored in the node identifier list accordingly. Among them, the node identifier can be an IP (Internet Protocol, a protocol for interconnection between networks) address and any other information that can be used to identify the node. Table 1 only takes the assigned network interface address as an example for explanation, and it is assumed here that the assigned network interface address is 16 bits. Each node in the personal information management system stores the same blockchain.
[0096] Node Name Node ID Node 1 0.45 Node 2 22.36 … … Node N 22.88
[0097] See also Figure 3 , Figure 3 This is a flowchart of a personal information management method based on blockchain provided by the embodiment of this application. Figure 3 As shown, the personal information management process includes the following steps:
[0098] Step S301: Obtain a service information upload request sent by a management node.
[0099] Specifically, a business information upload request sent by a management node is obtained, and the business information upload request includes the target personal information of the target user, the target business experience information and the business behavior information to be chained. Among them, the business behavior information to be chained can be the birth information, school information, work information or marriage information of the target user, and the target business experience information is the business behavior information that has been chained. Among them, the management node corresponds to a government department, specifically a server corresponding to the electronic device used by the government department when sending a business information upload request. Or, in an optional case, the management node can be a business receiver. For example, when the business behavior information to be chained in the business information upload request includes an employment application, the management node can be the government department responsible for the filing of company employees when the company where the target user joins the company files employees, or it can also be the personnel manager of the company where the target user joins the company. Among them, the target personal information is the relevant personal information of the target user who needs to provide the target business experience information when performing the business behavior to be chained, including identity information, etc. The target business experience information includes the business information provided by the target user when performing the business behavior to be chained, and the business information is the result of the business activities that the target user needs to provide when performing the business behavior to be chained.
[0100] Step S302: Acquire at least one first block associated with the target personal information, and generate historical business experience information according to the at least one first block.
[0101] Specifically, at least one first block associated with the target personal information is obtained from the target data blockchain, the business information in each first block is extracted, and the historical business experience information corresponding to the target user is generated according to the business information in at least one first block. Among them, the ID number or other identity identifier in the target personal information can be obtained, and at least one first block containing the ID number or other identity identifier is obtained in the target data blockchain according to the ID number or other identity identifier, and the business behavior information to be uploaded to the chain in each first block is obtained. The business behavior information to be uploaded to the chain is a business activity performed by the target user recorded in the corresponding first block, including the business name and business results of the business activity. After obtaining the business behavior information to be uploaded to the chain in each first block, the business behavior information to be uploaded to the chain is sorted in sequence to obtain the historical business experience information corresponding to the target user.
[0102] Among them, when a data blockchain is recorded in the personal information management system, and the business activities that each user has carried out are recorded in the data blockchain, then after receiving the business information upload request sent by the management node, at least one first block that is the same as the identity information of the target user is searched in the data blockchain according to the target personal information of the target user, the business information in the at least one first block is extracted, and the historical business experience information corresponding to the target user is generated, and the data blockchain is the target data blockchain. Alternatively, when the business activities that each person has carried out are sorted and recorded by individuals in the personal information management system, that is, multiple data blockchains are recorded in the personal information management system, each data blockchain corresponds to a user, and is marked by the identity information of the corresponding user, specifically, it can be marked by the ID number or other identity identifier of the corresponding user, after receiving the business information upload request sent by the management node, the target data blockchain corresponding to the target user is searched from multiple data blockchains according to the identity information of the target user, the business information of each block in the target data blockchain is extracted, and the historical business experience information corresponding to the target user is generated according to the business information of each block.
[0103] Step S303: If the target business experience information matches the historical business experience information, a business block is generated and uploaded to the target data blockchain.
[0104] Specifically, the target business experience information is compared with the historical business experience information. If the two match, a business block is generated based on the target personal information and the business behavior information to be uploaded to the chain, and the business block is uploaded to the target data blockchain. Specifically, the historical business experience information contains relevant information about each business activity that the target user has conducted, including the start time, business duration, business results and other relevant descriptions of the business activity. The target business experience information is compared with the relevant information about the associated business activities in the historical business experience information. If the two match, it means that the target business experience information provided by the target user is correct. Then a business block is generated based on the target personal information and the business behavior information to be uploaded to the chain, and the business block is uploaded to the target data blockchain. For example, assuming that the business behavior information to be uploaded to the chain by the target user corresponds to the business activity "work", and the target business experience information provided includes certificate information, competition information, and performance information, etc., the business activities corresponding to each information in the target business experience information are obtained respectively, and the target business experience information is compared with the data recorded in the historical business experience information for each business activity. If they are consistent, it means that the target business experience information matches the historical business experience information, then a business block is generated and uploaded to the target data blockchain. For example, the business activity corresponding to the certificate information is "obtaining XX certificate", and the certificate information is compared with the data recorded in the historical business experience information of "obtaining XX certificate", including the time of obtaining the certificate and the certificate results, etc. If the certificate information is consistent with the data recorded in the historical business experience information of "obtaining XX certificate", it means that the certificate information matches the historical business experience information.
[0105] The embodiment of the present application receives a business information upload request sent by a management node, and the business information upload request includes the target personal information, target business experience information and business behavior information to be uploaded to the chain of the target user, obtains at least one first block associated with the target personal information from the target data blockchain, extracts the business information in each first block to generate the historical business experience information of the target user, and when the target business experience information matches the historical business experience information, generates a business block according to the target personal information and the business behavior information to be uploaded to the chain, and uploads the business block to the target data blockchain. When the target user conducts any business activity, the relevant information of the business activity is uploaded to the target data blockchain. Due to the decentralization and immutability of the blockchain, the data in the personal information management system is open and transparent to each participating node, which improves the efficiency, credibility and convenience of personal information management. The business information corresponding to the business activity includes the target user's birth information, school information, work information, and marriage information, so that the personal information management system records everyone's life files, including experiences in various periods. When uploading the relevant information of the new business activity to the target data blockchain, the relevant information of the new business activity can be verified based on the data in each block that the target user has uploaded to the chain, and the authenticity and accuracy of the new business activity can be determined, so that the relevant information of the business activity on the chain is authentic and credible. In addition, everyone's life files can be traced back, which will save time and energy in querying and sorting when conducting business activities that require information verification, and improve the efficiency of the business activities.
[0106] See also Figure 4 , Figure 4 This is a specific flowchart of personal information management based on blockchain provided by the embodiment of this application. Figure 4 As shown, the personal information management method includes the following steps:
[0107] Step S401: receiving a service information query request sent by a service receiver.
[0108] Specifically, a business information query request sent by a business receiver is received, and the business information query request includes the requester's personal information and the business experience information of the participants. The business receiver and the business requester are the two parties involved in the business activity, and the business requester is the target user who needs to provide business experience information. When the business receiver obtains the requester's personal information and the participant's business experience information provided by the business requester, it needs to verify the business experience information provided by the business requester, and then sends a business information query request to the personal information management system. After receiving the business information query request sent by the business receiver, the personal information management system executes the process shown in step S402. After receiving the business information query request sent by the business receiver, the query authority of the business receiver can be confirmed. Specifically, a smart contract for query authority confirmation is set to realize a logical process of "if the business receiver has query authority, then execute the query process". When performing the if judgment, the confirmation process of the query authority can be set. Since each person's relevant information is very important and confidential, including personal information such as identity information, information on various business behaviors that have been carried out, etc., if it is assumed that user A has an information leak, the leaked information will have a great impact on user A, especially in this era of increasing reliance on the Internet. Therefore, the privacy settings of the personal information management system are very important. Each user can query the data of each block associated with himself, but for each block associated with other users, when querying, it must be ensured that the user has the query permission to query each block associated with other users.
[0109] Among them, in the first case, different query permissions can be granted according to the roles played by different users in society. For example, if user B is employed as a human resource (HR) in a company, the personal information management system will grant query permissions to user B after uploading the relevant information of user B's business activities as HR to the chain; when the XX government department establishes a headquarters or branch in a certain place, when the XX government department first accesses the personal information management system, it will confirm that it is indeed the XX government department, obtain the node identifier of the XX government department, and associate the query permission with the node identifier; when user C is an ordinary user, and user C's work information is not related to the government department or HR or other positions that may need to verify the relevant information of other users, user C has no query permission.
[0110] In the second case, different specific query permissions are granted to different participating nodes according to their roles in the preset division of labor. For example, see Figure 5, assuming that the roles with query permissions are divided into government departments, companies and self-employed individuals, and government departments include household registration departments, police stations, education departments and business departments, etc., different query permissions can be granted to different departments, such as household registration departments can query various blocks associated with each user's identity information and residential address, and police stations can query all blocks in the personal information management system; companies include presidents, HR, etc., HR can query various blocks associated with each user's identity information, certificate information, competition information and learning information; self-employed individuals include bosses, who can query various blocks associated with each user's identity information, etc. Optionally, the corresponding query permission can be granted to the self-employed individual by obtaining the user query request confirmation of the self-employed individual's query application. Among them, except for the optional situation, the query permission can be to grant the corresponding user the relevant query permission when the relevant information confirmed by the role of a certain user is uploaded to the chain, or it can be to confirm the query permission of the user for the business information query request after receiving the business information query request sent by a certain user.
[0111] It is assumed here that the business recipient is the HR of XX Company. After receiving the business information query request from the HR of XX Company, the business information query request is assumed to include user A's personal information and business experience information. The business experience information includes user A's certificate information, competition information, learning information and position information, etc. User A here is the business requester.
[0112] Step S402, obtaining at least one third block from the target data blockchain, wherein the personal information of each third block is the same as the personal information of the requesting party.
[0113] Specifically, at least one third block is obtained from the target data blockchain, the personal information in each third block is the same as the requesting party's personal information, and the experience type of the business information in each third block is the same as the experience type of the business experience information of the participating party. In the personal information management platform, each data blockchain can be determined by the identity information of each user. Specifically, multiple data blockchains can be recorded in the personal information management platform, each data blockchain corresponds to the business activity of a user, and each data blockchain is uniquely determined by the identity information; or, there is only one data blockchain, and the data blockchain contains the business activity of each user.
[0114] For more information, see Figure 6 , is a schematic diagram of a data blockchain distribution provided by an embodiment of the present application. Figure 6In the example, the first blockchain distribution diagram 601 directly stores the business activities of each user through a data blockchain, which is equivalent to directly finding the data blockchain recorded in the personal information management system when receiving the business information query request sent by the business recipient, that is, the target user data blockchain. At least one third block is obtained from the target user data blockchain through the requester's personal information and the participant's business experience information. For example, if a business information query request sent by the HR of XX Company is received in step S401, at least one third block recording the certificate information, competition information, learning information, and job information of user A is obtained.
[0115] Among them, the second blockchain distribution map 602 stores the business activities of each user through multiple data blockchains, and each data blockchain corresponds to the business activities of one user. If blocks 6021 to 602n record the business activity request of user A, and blocks 6031 to 603n record the business activity request of user B, then after receiving the business information query request in the example of step S401, blocks 6021 to 602n are the target data blockchains. After confirming that block 602nb is associated with user A based on the requester's personal information, at least one third block associated with the participant's business experience information is found by tracing the target data blockchain without comparing the personal information again.
[0116] Step S403: Sending a comparison result of at least one third block and the business experience information of the participant to the business recipient.
[0117] Specifically, the data recorded in at least one third block is compared with the business experience information of the participating party. If the business information in the third block is consistent with the business experience information of the participating party, a business information confirmation message is sent to the business recipient; if the business information in the third block is inconsistent with the business experience information of the participating party, a business information error message is sent to the business recipient, and the business information error message includes the specific business activity where the error occurred and the actual data of the business activity.
[0118] For example, after obtaining at least one third block recording user A's certificate information, competition information, learning information, and job information, the data recorded in at least one third block is compared with the business experience information of the participant, including the time of obtaining the certificate, certificate score, and certificate name in the certificate information, the competition time, competition type, and competition score in the competition information, the academic background, school attended, and transcript in the learning information, and the job time and position information in the job information, such as "junior year, student union president". When all the data are consistent with the data recorded in the target data blockchain, a business information confirmation message is sent to the business receiver; when the data is inconsistent, a business information error message is sent to the business receiver, such as when user A provides "X year X month X day, English speech competition first prize", and the query in the target data blockchain records "X year X month X day, English speech competition participation award", then a message "User A participated in the English speech competition on X year X month X day and won the participation award" is sent to XX Company.
[0119] Among them, when the business recipient receives the business information confirmation message and agrees to the business activity, when the business recipient records the business activity with the government department, the government department sends the relevant information of the business activity to the personal information management system, specifically by sending a business information upload request through the management node, so that the personal information management system executes step S404.
[0120] Step S404: Obtain the service information upload request sent by the management node.
[0121] Specifically, obtain the business information upload request sent by the management node, which includes the target personal information of the target user, the target business experience information and the business behavior information to be uploaded to the chain. For a detailed description, please refer to Figure 3 The relevant description in step S301. The business behavior information to be uploaded includes the start time, duration, description of the business activity, and the parties involved in the business activity.
[0122] For example, when XX Company confirms that the target business experience information provided by User A is correct and accepts User A as an employee of the company, XX Company signs an employment contract with User A and files it with the government department. After the government department receives the relevant information of XX Company’s employee filing, it sends a business information upload request to the personal information management system through the management node. The business information upload request includes User A’s personal information, the target business experience information provided, and the business behavior information to be uploaded to the chain. The business behavior information to be uploaded to the chain includes "User A joined XX Company as a..., joined the company on X-month-X-day of X-year, and has worked for X years, etc."
[0123] Step S405: Acquire at least one first block associated with the target personal information, and extract business information in each first block.
[0124] Specifically, at least one first block associated with the target personal information is obtained from the target data blockchain according to the target personal information, and the business information in each first block is extracted, specifically the business behavior information in each first block is obtained, and the historical business experience information corresponding to the target user is generated according to the business information in each first block. The historical business experience information includes the historical business time nodes and historical business duration corresponding to the business activities recorded in each first block. For example, if only one data blockchain is stored in the personal information management system, such as Figure 6 As shown in the first blockchain distribution diagram 601, based on the example of step S404, at least one first block is searched from the data blockchain by the ID number or other identity identifier of user A, and the personal information recorded in each first block of the at least one first block is the personal information of user A; if multiple data blockchains are stored in the personal information management system, such as Figure 6 As shown in the second blockchain distribution diagram 602, based on the example of step S404, the first block 602(n-1) associated with the identity information of user A is found from multiple data blockchains through the ID number or other identity identifier of user A, indicating that the data blockchain to which the first block 602(n-1) belongs is the target data blockchain for recording the business activities of user A. The data is traced back through the first block 602(n-1), and the business information in the corresponding first block is extracted in sequence until the first block 6021 is obtained.
[0125] In which, after tracing back at least one first block, the business information of each first block is extracted, and the business information of each first block is sorted to generate historical business experience information. Figure 7 As shown in Figure 7 It is a schematic diagram of historical business experience information. By tracing the target data blockchain, each first block associated with the target personal information is found, and the business information in each first block is extracted in turn. Figure 7 The arrow in the middle indicates the direction, and the relevant information of the business activities of the target user in each time period is drawn in sequence to generate historical business experience information, where: Figure 7 Each node represents a historical business time node of a business activity, and the information recorded in the node includes the historical business duration of the corresponding business activity; or after extracting the business information in each first block, directly record the relevant information of the business activities corresponding to different time nodes, organize the business activity timeline of the target user, and generate historical business experience information.
[0126] Step S406 , comparing the service information in each first block with the target service experience information.
[0127] Specifically, the service information in each first block is compared with the target service experience information to determine whether the target service experience information is correct.
[0128] Among them, in a feasible method, the first business information associated with the target business experience information is obtained, and the target business time node and target business duration in the target business experience information are obtained; if the target business time node is the same as the historical business time node of the first business information, and the target business duration is the same as the historical business duration of the first business information, then it is determined that the target business experience information matches the historical business experience information; if the target business time node is different from the historical business time node of the first business information, or the target business duration is different from the historical business duration of the first business information, then it is determined that the target business experience information does not match the historical business experience information.
[0129] In another feasible method, the experience type of the target business experience information is obtained, and the second business information in the historical business experience information is obtained according to the experience type, and the experience type of the second business information is the same as the experience type of the target business experience information; if the target business experience information is the same as the second business information, it is determined that the target business experience information matches the historical business experience information; if the target business experience information is different from the second business information, it is determined that the target business experience information does not match the historical business experience information. Among them, the second business information can be obtained from the historical business experience information according to the name of the business activity corresponding to the target business experience information. For example, if the target business experience information includes a business activity "CET-4", the second business information containing CET-4 is obtained from the historical business experience information.
[0130] Among them, it is also possible to compare the target business time node with the historical business time node of the first business information, the target business duration with the historical business duration of the first business information, and compare the consistency of the target business experience information with the historical business experience information. If they are the same, it is determined that the target business experience information matches the historical business experience information. If one of the comparison objects is different, it is determined that the target business experience information does not match the historical business experience information.
[0131] When the target business experience information matches the historical business experience information, step S407 is executed; if the target business experience information does not match the historical business experience information, information of the mismatch is fed back to the management node.
[0132] Step S407, generate a business block based on the target personal information and the business behavior information to be uploaded to the chain, and upload the business block to the target data blockchain.
[0133] Specifically, a business block is generated according to the target personal information and the business behavior information to be uploaded to the chain, and the business block is uploaded to the target data blockchain. Specifically, a block to be added is generated according to the target personal information and the business behavior information to be uploaded to the chain; the block to be added is verified according to the consensus mechanism. If the verification passes, a business block is generated according to the target data blockchain and the block to be added, and the business block is uploaded to the target data blockchain. Among them, after the block to be added is verified, the second block in the target data blockchain and the hash value of the second block are obtained, and the second block is the block with the largest timestamp in the target data blockchain; the business block header data is generated according to the target hash value generated by the block to be added and the hash value of the second block, and the business block header data also includes the generation time of the business block header data; the business block is generated according to the block to be added and the business block header data.
[0134] Among them, when verifying the block to be added according to the consensus mechanism, specifically, the block to be added is broadcast to at least one participating node in the personal information management system, so that the at least one participating node determines the first target participant and the second target participant according to the target business information in the block to be added, obtains the confirmation result of the first target participant and the second target participant for the target business information, and sends the confirmation result to the personal information management system; receives the confirmation result sent by at least one participating node, reaches a consensus based on the confirmation result sent by at least one participating node, and verifies the block to be added. For example, when at least one participating node receives the block to be added, it determines the two participants of the business activity corresponding to the block to be added, including the first target participant and the second target participant, based on the business behavior information to be uploaded to the block to be added, and sends the business behavior information to be uploaded to the block to be added to the first target participant and the second target participant. After receiving the business behavior information to be uploaded to the chain, the first target participant and the second target participant verify the business behavior information to be uploaded to the chain based on the progress of the business activity, and send a confirmation result to each participating node. Each participating node determines the accuracy of the business behavior information to be uploaded to the chain based on the confirmation result, and sends the accuracy determination result of the business behavior information to be uploaded to the personal information management system. The personal information management system verifies the block to be added by reaching a consensus on the accuracy determination result of the business behavior information to be uploaded to the chain on each participating node. If the verification is successful, a business block is generated according to the target data blockchain and the block to be added, and the business block is uploaded to the target data blockchain.
[0135] Optionally, when generating the block to be added, a target hash value can be generated based on the target personal information and the business behavior information to be uploaded to the chain. After the block to be added is verified, the second block in the target data blockchain and the hash value of the second block are obtained. The second block is the block with the largest timestamp in the target data blockchain. The hash value of the second block is added to the block header of the block to be added to generate business block header data, and a business block is generated based on the block to be added and the business block header data.
[0136] The embodiment of the present application receives a business information upload request sent by a management node, and the business information upload request includes the target personal information, target business experience information and business behavior information to be uploaded to the chain of the target user, obtains at least one first block associated with the target personal information from the target data blockchain, extracts the business information in each first block to generate the historical business experience information of the target user, and when the target business experience information matches the historical business experience information, generates a business block according to the target personal information and the business behavior information to be uploaded to the chain, and uploads the business block to the target data blockchain. When the target user conducts any business activity, the relevant information of the business activity is uploaded to the target data blockchain. Due to the decentralization and immutability of the blockchain, the data in the personal information management system is open and transparent to each participating node, which improves the efficiency, credibility and convenience of personal information management. The business information corresponding to the business activity includes the target user's birth information, school information, work information and marriage information, etc., so that the personal information management system records everyone's life files, including experiences in various periods. When uploading the relevant information of the new business activity to the target data blockchain, the relevant information of the new business activity can be verified according to the data in each block of the target user that has been chained, and the authenticity and accuracy of the new business activity can be determined, so that the relevant information of the business activity on the chain is authentic and reliable. In addition, everyone's life file can be traced back, and when conducting business activities that require information verification, it will save time and energy for query and sorting, and improve the efficiency of the business activities. Among them, when conducting business activities, the relevant information of the target user is verified, so that the business recipient can ensure the accuracy of the relevant information of the target user, thereby improving the efficiency of the business activities; after the two parties involved in the business activity determine that the business activity is carried out, when the business recipient records the business activity, the personal information management system verifies the business activity again to ensure that the personal information stored in the system is correct, and improve the accuracy and credibility of subsequent personal information searches.
[0137] See also Figure 8 , Figure 8 Schematic diagram of a personal information management device based on blockchain provided in an embodiment of the present application, such as Figure 8As shown, the blockchain-based personal information management device 80 can be used for the above Figure 3 and Figure 4 The electronic device in the corresponding embodiment may specifically include: a receiving module 801 , a first obtaining module 802 , an extracting module 803 , a first generating module 804 , a second generating module 805 and an uploading module 806 .
[0138] The receiving module 801 is used to obtain a business information upload request sent by the management node, wherein the business information upload request includes target personal information of the target user, target business experience information, and business behavior information to be uploaded to the chain;
[0139] A first acquisition module 802, configured to acquire at least one first block associated with the target personal information from a target data blockchain;
[0140] An extraction module 803, used to extract business information in each first block;
[0141] A first generating module 804, configured to generate historical business experience information corresponding to the target user according to the business information in the first block;
[0142] The second generating module 805 is used to generate a business block according to the target personal information and the business behavior information to be uploaded if the target business experience information matches the historical business experience information;
[0143] The uploading module 806 is used to upload the business block to the target data blockchain.
[0144] The first generating module 804 is specifically configured to generate the historical business experience information corresponding to the target user according to the historical business time nodes and the historical business duration of the business information in the at least one first block;
[0145] The device also includes:
[0146] The second acquisition module 807 is used to acquire the first service information associated with the target service experience information, and acquire the target service time node and target service duration in the target service experience information;
[0147] A determination module 808 is configured to determine that the target service experience information matches the historical service experience information if the target service time node is the same as the historical service time node of the first service information, and the target service duration is the same as the historical service duration of the first service information;
[0148] The determination module 808 is also used to determine that the target business experience information does not match the historical business experience information if the target business time node is different from the historical business time node of the first business information, or the target business duration is different from the historical business duration of the first business information.
[0149] Wherein, the device further comprises:
[0150] The second acquisition module 807 is further used to acquire the experience type of the target business experience information, and acquire the second business information in the historical business experience information according to the experience type, wherein the experience type of the second business information is the same as the experience type of the target business experience information;
[0151] The determination module 808 is further configured to determine that the target business experience information matches the historical business experience information if the target business experience information is the same as the second business information;
[0152] The determination module 808 is further configured to determine that the target business experience information does not match the historical business experience information if the target business experience information is different from the second business information.
[0153] Wherein, the second generation module 805 includes:
[0154] A generating unit 8051 is used to generate a block to be added according to the target personal information and the business behavior information to be uploaded to the chain;
[0155] A verification unit 8052, used to verify the block to be added according to a consensus mechanism;
[0156] The generating unit 8051 is further configured to generate the business block according to the target data blockchain and the block to be added if the verification is passed.
[0157] Wherein, the generating unit 8051 includes:
[0158] An acquisition subunit 80511 is used to acquire a second block in the target data blockchain and a hash value of the second block, where the second block is a block with a largest timestamp in the target data blockchain;
[0159] A generating subunit 80512 is used to generate a target hash value according to the block to be added, and generate business block header data according to the target hash value and the hash value of the second block, wherein the business block header data also includes a generation time of the business block header data;
[0160] The generating subunit 80512 is further configured to generate the service block according to the block to be added and the service block header data.
[0161] Wherein, the verification unit 8052 includes:
[0162] The sending subunit 80521 is used to broadcast the block to be added to at least one participating node in the personal information management system, so that the at least one participating node determines the first target participant and the second target participant according to the target business information in the block to be added, obtains the confirmation result of the first target participant and the second target participant for the target business information, and sends the confirmation result to the personal information management system;
[0163] The receiving subunit 80522 is configured to receive a confirmation result sent by the at least one participating node;
[0164] The verification subunit 80523 is used to reach a consensus based on the confirmation result sent by the at least one participating node and verify the block to be added.
[0165] Wherein, the device further comprises:
[0166] The receiving module 801 is further configured to receive a business information query request sent by a business receiver, wherein the business information query request includes personal information of the business requester and business experience information of the participant;
[0167] The first acquisition module 802 is further configured to acquire at least one third block from the target data blockchain, wherein the personal information in each of the at least one third block is the same as the personal information of the requesting party, and the experience type of the business information in each of the third blocks is the same as the experience type of the business experience information of the participating party;
[0168] The sending module 809 is configured to send a service information confirmation message to the service recipient if the service information in the third block is consistent with the service experience information of the participant;
[0169] The sending module 809 is further configured to send a business information error message to the business recipient if the business information in the third block is inconsistent with the business experience information of the participant.
[0170] The embodiment of the present application provides a personal information management device based on blockchain, which receives a business information upload request sent by a management node, the business information upload request includes the target personal information of the target user, the target business experience information and the business behavior information to be uploaded to the chain, obtains at least one first block associated with the target personal information from the target data blockchain, extracts the business information in each first block to generate the historical business experience information of the target user, and when the target business experience information matches the historical business experience information, generates a business block according to the target personal information and the business behavior information to be uploaded to the chain, and uploads the business block to the target data blockchain. When the target user conducts any business activity, the relevant information of the business activity is uploaded to the target data blockchain. Due to the decentralization and immutability of the blockchain, the data in the personal information management system is open and transparent to each participating node, which improves the efficiency, credibility and convenience of personal information management. The business information corresponding to the business activity includes the target user's birth information, school information, work information, and marriage information, so that the personal information management system records everyone's life files, including experiences in various periods. When uploading the relevant information of the new business activity to the target data blockchain, the relevant information of the new business activity can be verified based on the data in each block that the target user has uploaded to the chain, and the authenticity and accuracy of the new business activity can be determined, so that the relevant information of the business activity on the chain is authentic and credible. In addition, everyone's life files can be traced back, which will save time and energy in querying and sorting when conducting business activities that require information verification, and improve the efficiency of the business activities.
[0171] See also Fig. 9 , Fig. 9 Schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig. 9 As shown, the electronic device in this embodiment may include: one or more processors 901, memory 902 and input / output interface 903. The processor 901, memory 902 and input / output interface 903 are connected via a bus 904. The memory 902 is used to store a computer program, which includes program instructions, and the input / output interface 903 is used for page interaction; the processor 901 is used to execute the program instructions stored in the memory 902, and perform the following operations:
[0172] Obtaining a business information upload request sent by the management node, wherein the business information upload request includes the target personal information of the target user, the target business experience information, and the business behavior information to be uploaded to the chain;
[0173] Obtain at least one first block associated with the target personal information from the target data blockchain, and extract business information in each first block;
[0174] Generate historical business experience information corresponding to the target user according to the business information in the first block;
[0175] If the target business experience information matches the historical business experience information, a business block is generated according to the target personal information and the business behavior information to be uploaded to the chain, and the business block is uploaded to the target data blockchain.
[0176] In some feasible implementations, the processor 901 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0177] The memory 902 may include a read-only memory and a random access memory, and provide instructions and data to the processor 901 and the input / output interface 903. A portion of the memory 902 may also include a non-volatile random access memory. For example, the memory 902 may also store information about the device type.
[0178] In a specific implementation, the electronic device can execute the above-mentioned functions through its built-in functional modules. Figure 3 and Figure 4 For details on the implementation methods provided in each step, please refer to the above Figure 3 and Figure 4 The implementation methods provided in each step will not be repeated here.
[0179] The embodiment of the present application provides an electronic device, including: a processor, an input / output interface, and a memory, wherein the processor obtains computer instructions in the memory to execute the above Figure 3 and Figure 4The steps of the method shown in the figure are used to perform personal information management operations. Through the computer instructions in the memory, the processor performs operations such as querying or uploading relevant information of business activities recorded in the block in the personal information management system, so that each participating node in the personal information management system can query the personal information of each user at any time. When the business experience information provided by the target user needs to be verified, the historical business experience information recorded in the target data blockchain can be easily queried, thereby determining the accuracy of the business experience information provided by the target user. Since the block data is open and transparent, the accuracy and traceability of the block data are improved.
[0180] The present application also provides a computer-readable storage medium storing a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, Figure 3 and Figure 4 For details on the personal information management methods provided in each step, please refer to the above Figure 3 and Figure 4 The implementation methods provided by each step will not be repeated here.
[0181] The computer-readable storage medium may be the personal information management device provided in any of the aforementioned embodiments or the internal storage unit of the electronic device, such as the hard disk or memory of the electronic device. The computer-readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, a smart memory card (smart media card, SMC), a secure digital (secure digital, SD) card, a flash card (flash card), etc. equipped on the electronic device. Further, the computer-readable storage medium may also include both the internal storage unit of the electronic device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the electronic device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
[0182] The terms "first", "second", etc. in the description, claims, and drawings of the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, device, product, or equipment that includes a series of steps or units is not limited to the listed steps or modules, but optionally includes steps or modules that are not listed, or optionally includes other step units inherent to these processes, methods, devices, products, or equipment.
[0183] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0184] The method and related apparatus provided by the embodiment of the present application are described with reference to the method flow chart and / or structural diagram provided by the embodiment of the present application. Specifically, each process and / or box in the method flow chart and / or structural diagram, as well as the combination of the processes and / or boxes in the flow chart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the process. Figure 1 A process or multiple processes and / or structures Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or structures Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A flow or multiple flows and / or structures illustrate the steps of the functions specified in one block or multiple blocks.
[0185] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A personal information management method based on blockchain, It is characterized in that The method comprises: Receiving a business information query request sent by a business recipient, and confirming the query authority of the business recipient through a smart contract for query authority confirmation; the business information query request includes the personal information of the business requester and the business experience information of the participant; the query authority is granted based on the role played by different users in society, or based on the role played in the preset role division; When the business recipient has query authority, obtain at least one third block from the target data blockchain, the personal information in each of the at least one third block is the same as the personal information of the requesting party, and the experience type of the business information in each third block is the same as the experience type of the business experience information of the participating party; If the business information in the third block is consistent with the business experience information of the participant, a business information upload request sent by the management node is obtained, wherein the business information upload request includes the target personal information of the target user, the target business experience information and the business behavior information to be uploaded to the chain; the management node is a government department or a business recipient; the target personal information is the relevant personal information of the target user who provides the target business experience information when performing the business behavior to be uploaded to the chain, and the target business experience information is the business behavior information of the target user that has been uploaded to the chain; Obtaining at least one first block associated with the target personal information from the target data blockchain, and extracting business information in each first block; Generate historical business experience information corresponding to the target user according to the business information in the first block; If the target business experience information matches the historical business experience information, a business block is generated according to the target personal information and the business behavior information to be uploaded to the chain, and the business block is uploaded to the target data blockchain.
2. The method according to claim 1, It is characterized in that The generating the historical business experience information corresponding to the target user according to the business information in the first block includes: Generate historical business experience information corresponding to the target user according to the historical business time nodes and historical business duration of the business information in the at least one first block; The method further comprises: Acquire first service information associated with the target service experience information, and acquire a target service time node and a target service duration in the target service experience information; If the target service time node is the same as the historical service time node of the first service information, and the target service duration is the same as the historical service duration of the first service information, then it is determined that the target service experience information matches the historical service experience information; If the target service time node is different from the historical service time node of the first service information, or the target service duration is different from the historical service duration of the first service information, it is determined that the target service experience information does not match the historical service experience information.
3. The method according to claim 1, It is characterized in that The method further comprises: Acquire the experience type of the target business experience information, and acquire second business information in the historical business experience information according to the experience type, wherein the experience type of the second business information is the same as the experience type of the target business experience information; If the target business experience information is the same as the second business information, determining that the target business experience information matches the historical business experience information; If the target service experience information is different from the second service information, it is determined that the target service experience information does not match the historical service experience information.
4. The method according to claim 1, It is characterized in that The generating of the business block according to the target personal information and the business behavior information to be uploaded to the chain includes: A block to be added is generated according to the target personal information and the business behavior information to be put on the chain; the block to be added is verified according to the consensus mechanism, and if the verification passes, the business block is generated according to the target data blockchain and the block to be added.
5. The method according to claim 4, It is characterized in that The generating the business block according to the target data blockchain and the block to be added includes: Obtaining a second block in the target data blockchain and a hash value of the second block, wherein the second block is a block with a largest timestamp in the target data blockchain; Generate a target hash value according to the block to be added, and generate business block header data according to the target hash value and the hash value of the second block, wherein the business block header data also includes a generation time of the business block header data; The service block is generated according to the block to be added and the service block header data.
6. The method according to claim 4, It is characterized in that The verifying the block to be added according to the consensus mechanism includes: Broadcasting the block to be added to at least one participating node in the personal information management system, so that the at least one participating node determines the first target participant and the second target participant according to the target business information in the block to be added, obtains the confirmation results of the first target participant and the second target participant for the target business information, and sends the confirmation results to the personal information management system; Receive the confirmation result sent by the at least one participating node, reach a consensus based on the confirmation result sent by the at least one participating node, and verify the block to be added.
7. The method according to claim 1, It is characterized in that The method further comprises: If the business information in the third block is inconsistent with the business experience information of the participant, a business information error message is sent to the business recipient; When the business information in the third block is consistent with the business experience information of the participant, the method further includes: Then send a service information confirmation message to the service recipient.
8. A personal information management device based on blockchain, It is characterized in that The device comprises: A receiving module, used to receive a business information query request sent by a business recipient, and confirm the query authority of the business recipient through a smart contract for query authority confirmation; the business information query request includes the personal information of the business requester and the business experience information of the participant; the query authority is granted based on the role played by different users in society, or based on the role played in a preset role division; A first acquisition module is used to acquire at least one third block from the target data blockchain when the business recipient has query authority, wherein the personal information in each of the at least one third block is the same as the personal information of the requesting party, and the experience type of the business information in each third block is the same as the experience type of the business experience information of the participating party; The receiving module is further configured to obtain a business information upload request sent by a management node if the business information in the third block is consistent with the business experience information of the participant, wherein the business information upload request includes target personal information of the target user, target business experience information, and business behavior information to be uploaded to the chain; the management node is a government department or a business recipient; the target personal information is the relevant personal information of the target user who provides the target business experience information when performing the business behavior to be uploaded to the chain, and the target business experience information is the business behavior information of the target user that has been uploaded to the chain; The first acquisition module is further used to acquire at least one first block associated with the target personal information from the target data blockchain; An extraction module, used for extracting business information in each first block; A first generating module, configured to generate historical business experience information corresponding to the target user according to the business information in the first block; A second generating module is used to generate a business block according to the target personal information and the business behavior information to be uploaded if the target business experience information matches the historical business experience information; The uploading module is used to upload the business block to the target data blockchain.
9. An electronic device, It is characterized in that Includes processor, memory, input and output interfaces; The processor is connected to the memory and the input / output interface respectively, wherein the input / output interface is used for page interaction, the memory is used for storing program code, and the processor is used for calling the program code to execute the method according to any one of claims 1-7.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the method according to any one of claims 1 to 7 is executed.
