CN110597864B - Personal information management method and device based on blockchain - Google Patents
Personal information management method and device based on blockchain Download PDFInfo
- Publication number
- CN110597864B CN110597864B CN201910919609.1A CN201910919609A CN110597864B CN 110597864 B CN110597864 B CN 110597864B CN 201910919609 A CN201910919609 A CN 201910919609A CN 110597864 B CN110597864 B CN 110597864B
- Authority
- CN
- China
- Prior art keywords
- service
- information
- target
- block
- experience
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
- G06Q10/105—Human resources
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- Human Resources & Organizations (AREA)
- Data Mining & Analysis (AREA)
- General Physics & Mathematics (AREA)
- Entrepreneurship & Innovation (AREA)
- Strategic Management (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Tourism & Hospitality (AREA)
- General Business, Economics & Management (AREA)
- Quality & Reliability (AREA)
- Operations Research (AREA)
- Software Systems (AREA)
- Marketing (AREA)
- Economics (AREA)
- Computational Linguistics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the application discloses a personal information management method based on a block chain, which comprises the following steps: acquiring a service information uploading request sent by a management node, wherein the service information uploading request comprises target personal information of a target user, target service experience information and service behavior information to be uploaded; acquiring at least one first block associated with target personal information from a target data block chain, and extracting service information in each first block; generating historical service experience information corresponding to the target user according to the service information in the first block; and if the target business experience information is matched with the historical business experience information, generating a business block according to the target personal information and the business behavior information to be uplink, and uploading the business block to a target data block chain. By adopting the application, the experiences of each user in each time period are added into the blockchain, so that the life experiences of each user can be traced, and the high efficiency and convenience of personal information management are improved.
Description
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a blockchain-based personal information management method and apparatus.
Background
With the continuous improvement of social system and the development of the internet, the user can basically obtain the information of birth, school, work or certificate on the internet for each user in different time periods, and can inquire the related information from the network at any time when needed. Many activities are performed today on the basis of completed activities, i.e. when a certain activity is performed, it may be necessary to provide performance of some other activity to determine that the user qualifies for performing the certain activity, so that another party to the certain activity can learn basic information of the user to evaluate the user. At present, most of activities are performed by downloading related data from an official website, and an electronic version of the data is generally anti-fake or anti-modification through a digital signature or an official seal, but when the data is submitted to another party, the data is often submitted to be a paper version of the data, so that the authenticity of the data may be problematic, especially when the other party receives data provided by a plurality of users, a great deal of time and effort are consumed for checking all the data provided by each user one by one, thereby reducing the efficiency of performing the activities. For example, when a user goes for job, a lot of data for proving the self-ability is provided, and the enterprise receives a lot of proving materials provided by the user when recruiting, if checking is performed one by one, a lot of time and effort are wasted, and the recruiting efficiency is greatly reduced.
Disclosure of Invention
The embodiment of the application provides a personal information management method and device based on a block chain, which can improve the effectiveness and efficiency of personal information management.
The first aspect of the embodiment of the application provides a personal information management method based on a blockchain, which comprises the following steps:
Acquiring a service information uploading request sent by a management node, wherein the service information uploading request comprises target personal information of a target user, target service experience information and service behavior information to be uplink;
acquiring at least one first block associated with the target personal information from a target data block chain, and extracting service information in each first block;
generating historical service experience information corresponding to the target user according to the service information in the first block;
And if the target business experience information is matched with the historical business experience information, generating a business block according to the target personal information and the business behavior information to be uplink, and uploading the business block to the target data block chain.
Wherein the generating the historical service experience information corresponding to the target user according to the service information in the first block includes:
generating historical service experience information corresponding to the target user according to the historical service time node and the historical service duration of the service information in the at least one first block;
the method further comprises the steps of:
acquiring first service information associated with the target service experience information, and acquiring a target service time node and 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 time is the same as the historical service time of the first service information, determining that the target service experience information is matched with the historical service experience information;
and if the target service time node is different from the historical service time node of the first service information or the target service time length is different from the historical service time length of the first service information, determining that the target service experience information is not matched with the historical service experience information.
Wherein the method further comprises:
acquiring the experience type of the target service experience information, and acquiring second service information in the history service experience information according to the experience type, wherein the experience type of the second service information is the same as the experience type of the target service experience information;
if the target service experience information is the same as the second service information, determining that the target service experience information is matched with the historical service experience information;
and if the target service experience information is different from the second service information, determining that the target service experience information is not matched with the historical service experience information.
Wherein the generating a service block according to the target personal information, the target time node information and the target service information includes:
Generating a block to be added according to the target personal information and the service behavior information to be uplink; and verifying the block to be added according to a consensus mechanism, and if the verification is passed, generating the service block according to the target data block chain and the block to be added.
Wherein the generating the service block according to the target data blockchain and the to-be-added block includes:
Acquiring a second block in the target data block chain and a hash value of the second block, wherein the second block is a block with the largest timestamp in the target data block chain;
Generating a target hash value according to the block to be added, and generating service block head data according to the target hash value and the hash value of the second block, wherein the service block head data also comprises the generation time of the service block head data;
and generating the service block according to the block to be added and the service block header data.
Wherein 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 a personal information management system, so that the at least one participating node determines a first target participant and a second target participant according to target business information in the block to be added, acquires 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;
And receiving a confirmation result sent by the at least one participating node, carrying out consensus according to the confirmation result sent by the at least one participating node, and verifying the block to be added.
Wherein the method further comprises:
receiving a service information inquiry request sent by a service receiver, wherein the service information inquiry request comprises personal information of a requester of a service requester and service experience information of a participant;
Acquiring at least one third block from the target data block chain, wherein personal information in each third block in the at least one third block is the same as the personal information of the requester, and experience types of service information in each third block are the same as those of the service experience information of the participant;
If the service information in the third block is consistent with the service experience information of the participator, sending a service information confirmation message to the service receiver;
and if the service information in the third block is inconsistent with the service experience information of the participator, sending a service information error message to the service receiver.
A second aspect of an embodiment of the present application provides a personal information management apparatus based on a blockchain, wherein the apparatus includes:
The receiving module is used for acquiring a service information uploading request sent by the management node, wherein the service information uploading request comprises target personal information of a target user, target service experience information and service behavior information to be uplink;
a first acquisition module for acquiring at least one first block associated with the target personal information from a target data blockchain;
the extraction module is used for extracting the service information in each first block;
The first generation module is used for generating historical service experience information corresponding to the target user according to the service information in the first block;
The second generation module is used for generating a service block according to the target personal information and the service behavior information to be uplink if the target service experience information is matched with the history service experience information;
And the uploading module is used for uploading the service block to the target data block chain.
The first generation module is specifically configured to generate historical service experience information corresponding to the target user according to a historical service time node and a historical service duration of service information in the at least one first block;
the apparatus further comprises:
the second acquisition module is used for acquiring first service information associated with the target service experience information and acquiring a target service time node and target service duration in the target service experience information;
The determining module is used for determining that the target service experience information is matched with the history service experience information if the target service time node is the same as the history service time node of the first service information and the target service time is the same as the history service time of the first service information;
The determining module is further configured to determine that the target service experience information is not matched with the history service experience information if the target service time node is not the same as the history service time node of the first service information or the target service duration is not the same as the history service duration of the first service information.
Wherein the apparatus further comprises:
The second acquisition module is further configured to acquire a experience type of the target service experience information, and acquire second service information in the historical service experience information according to the experience type, where the experience type of the second service information is the same as the experience type of the target service experience information;
The determining module is further configured to determine that the target service experience information is matched with the historical service experience information if the target service experience information is the same as the second service information;
And the determining module is further configured to determine that the target service experience information is not matched with the historical service experience information if the target service experience information is not identical to the second service information.
Wherein the second generating module includes:
the generating unit is used for generating a block to be added according to the target personal information and the service behavior information to be uplink;
The verification unit is used for verifying the block to be added according to a consensus mechanism;
And the generating unit is further configured to generate the service block according to the target data blockchain and the block to be added if the verification is passed.
Wherein the generating unit includes:
An obtaining subunit, configured to obtain 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 maximum timestamp in the target data blockchain;
A generating subunit, configured to generate a target hash value according to the block to be added, and generate service block header data according to the target hash value and the hash value of the second block, where the service block header data further includes a generation time of the service block header data;
The generating subunit is further configured to generate the service block according to the block to be added and the service block header data.
Wherein the authentication unit includes:
A sending subunit, configured to broadcast the block to be added to at least one participating node in a personal information management system, so that the at least one participating node determines a first target participant and a second target participant according to target service information in the block to be added, obtains confirmation results of the first target participant and the second target participant for the target service information, and sends the confirmation results to the personal information management system;
a receiving subunit, configured to receive a confirmation result sent by the at least one participating node;
And the verification subunit is used for carrying out consensus according to the confirmation result sent by the at least one participating node and verifying the block to be added.
Wherein the apparatus further comprises:
The receiving module is further used for receiving a service information inquiry request sent by a service receiver, wherein the service information inquiry request comprises personal information of a requester of a service requester and service experience information of a participant;
The first obtaining module is further configured to obtain at least one third block from the target data blockchain, where personal information in each third block in the at least one third block is the same as the personal information of the requester, and experience types of service information in each third block are the same as experience types of service experience information of the participant;
The sending module is used for sending a service information confirmation message to the service receiver if the service information in the third block is consistent with the service experience information of the participant;
And the sending module is further configured to send a service information error message to the service receiver if the service information in the third block is inconsistent with the service experience information of the participant.
A third aspect of the embodiment of the present application provides an electronic device, which is characterized by including a processor, a memory, and an input/output interface;
The processor is respectively connected with the memory and the input/output interface, wherein the input/output interface is used for page interaction, the memory is used for storing program codes, and the processor is used for calling the program codes to execute the personal information management method based on the block chain in the first aspect of the embodiment of the application.
A fourth aspect of the embodiments of the present application provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program comprising program instructions that, when executed by a processor, perform a blockchain-based personal information management method as described in the first aspect of the embodiments of the present application.
The implementation of the embodiment of the application has the following beneficial effects:
the embodiment of the application acquires at least one first block associated with target personal information from a target data block chain by receiving a service information uploading request sent by a management node, wherein the service information uploading request comprises the target personal information, target service experience information and service behavior information to be uplinked of a target user, extracts service information in each first block to generate historical service experience information of the target user, generates a service block according to the target personal information and the service behavior information to be uplinked when the target service experience information is matched with the historical service experience information, and uploads the service block to the target data block chain. When any business activity is carried out on a target user, the related information of the business activity is uploaded to a target data blockchain, and the data in the personal information management system are public and transparent to each participating node due to the decentralization and the non-tamper property of the blockchain, so that the high efficiency, the reliability and the convenience of personal information management are improved. The personal information management system records the personal files of each person, including experiences of each period, and when uploading the related information of the new business activity to the target data block chain, the related information of the new business activity can be verified according to the data in each block which the target user has uplink, and the authenticity and accuracy of the new business activity are determined, so that the related information of the uplink business activity is authentic and credible. And the personal files of each person can be traced, so that the time and energy for inquiring and sorting can be saved when the business activity requiring information verification is performed, and the performance efficiency of the business activity can be improved.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Wherein:
FIG. 1 is a schematic diagram of a blockchain architecture according to an embodiment of the present application;
FIG. 2a is a diagram of a personal information management architecture provided by an embodiment of the present application;
FIG. 2b is a schematic diagram of a personal information management system according to an embodiment of the present application;
FIG. 3 is a flowchart of a personal information management method based on blockchain according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a specific flow of personal information management based on blockchain according to an embodiment of the present application;
Fig. 5 is a schematic diagram of role division corresponding to query rights according to an embodiment of the present application;
FIG. 6 is a diagram illustrating a data blockchain distribution scenario provided by an embodiment of the present application;
FIG. 7 is a schematic diagram of historical business experience information provided by an embodiment of the present application;
FIG. 8 is a schematic diagram of a personal information management device based on a blockchain in accordance with an embodiment of the present application;
Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
First, the blockchain, the block, the chain, the consensus mechanism and the intelligent contract mentioned in the embodiments of the present application will be described.
1. Blockchain: in a narrow sense, the blockchain is a chain data structure taking a block as a basic unit, and the block uses a digital abstract to verify the previous transaction history, so that the requirements of tamper resistance and expandability in a distributed billing scene are met; in a broad sense, blockchain also refers to distributed accounting techniques implemented by blockchain structures, including distributed consensus, privacy and security protection, point-to-point communication techniques, network protocols, smart contracts, and the like. The goal of the blockchain is to implement a distributed data logging ledger that allows only additions and not deletions. The basic structure of the ledger floor is a linear linked list. The linked list is formed by serially connecting blocks, the Hash value of the preceding block is recorded in the following blocks, and whether each block (and the transaction in the block) is legal or not can be rapidly checked by calculating the Hash value. If a node in the network proposes to add a new block, it must be acknowledged by the consensus mechanism.
2. Block (Block): all transactions and status results occurring within a period of time are recorded and are a consensus of the current ledger status. Specifically, for a blockchain, each time data is written, the transaction process described above creates a block.
3. Chain (Chain): the system is formed by serially connecting blocks according to the occurrence sequence, and is a log record of the state change of the whole account book.
4. Consensus mechanism: the verification and confirmation of the transaction is completed in a short time by voting of the special nodes, and the aim is to enable all honest nodes to store a consistent block chain diagram.
5. Intelligent contract: the working principle of the intelligent contract is similar to if-then statement implemented in program code, and when a preset condition is triggered, the intelligent contract executes corresponding contract terms. The smart contract is a digitally defined set of commitments including agreements on which the contract participants can execute the commitments, implemented by code deployed on the shared ledger for execution when certain conditions are met, for completing automated transactions based on actual business requirement codes, and also executing contracts that process the received information, e.g., after receiving a business information upload request sent by a management node, verifying the identity information of the management node, and receiving a business information upload request sent by the management node when the identity information of the management node is authenticated as a government related department.
Specifically, referring to fig. 1, fig. 1 is a schematic diagram of a blockchain architecture according to an embodiment of the present application. As shown in fig. 1, a blockchain is composed of blocks, each of which includes two parts: a chunk header and a chunk, and the chunk header includes a timestamp, a current hash value, and a successor hash value. The time stamp is used for recording the generation time of the block; the current hash value is the hash value of the block; the preceding hash value is the hash value of the preceding block of the block; and the block body is transaction information stored for the block body. Specifically, taking the example that the second block is added to the blockchain, the new block is generated as follows:
When the blockchain has the first block 101, the first block 101 is configured to instruct the first transaction data generated by the first transaction, generate second transaction data through the second transaction if the second transaction occurs, and generate the second block 102 through the second transaction data if the second transaction data passes verification, and be added into the blockchain as a subsequent block of the first block 101. Wherein, the timestamp included in the block header of the second block 102 is used for recording the generation time of the second block 102; the current hash value is a hash value generated by the blockchain system from the data contained in the second block 102; the preceding hash value is the hash value of the first block 101; the block body of the second block 102 is used for recording second transaction data.
Similarly, a third block 103 is added to the blockchain, the third block 103 being used to indicate third transaction data generated by a third transaction. If a new transaction occurs in the transaction chain indicated by the blockchain, generating a subsequent block and adding the subsequent block into the blockchain according to the mode of generating a new block by the same principle.
Specifically, referring to fig. 2a, fig. 2a is a schematic diagram of a personal information management structure provided in an embodiment of the present application, as shown in fig. 2a, when a government department receives a service receiver or a service requester to perform a service activity, a service information uploading request is sent to a blockchain network through a management node, where the service information uploading request includes relevant information of the service activity, such as target personal information, target service experience information and service behavior information to be uplink of the service requester, where the target service experience information is a history experience of the service requester that needs to be provided when the service activity is performed, and the service behavior information to be uplink is relevant information of the service activity. After receiving the service information uploading request, the block chain network verifies each data contained in the service information uploading request according to the historical service experience information of the service requester, and after the verification is passed, a service block is generated and added into a target data block chain. When a service receiver needs to inquire any service information through a first client or a service requester through a second client, at least one block associated with the service information can be searched through the experience type of the service information, and the at least one block is sent to the service receiver or the service requester. The nodes which play different roles in the personal information management system can be endowed with different inquiry or increased rights according to specific requirements. The service receiver may also belong to a government department, where the first client and the second client are electronic devices, including but not limited to a mobile phone, a tablet computer, a desktop computer, a notebook computer, a palm computer, a Mobile Internet Device (MID), a wearable device (e.g., a smart watch, a smart bracelet, etc.), etc.
Referring to the personal information management system shown in fig. 2b, the personal information management system 200 refers to a system for storing information related to business activities experienced by each user, data sharing may be performed between nodes, and the personal information management system 200 may include a plurality of nodes 201, and the plurality of nodes 201 may refer to respective clients in the personal information management system. Each node 201 may receive input information while performing normal operations and maintain shared data within the personal information management system based on the received input information. In order to ensure the information intercommunication in the personal information management system, information connection can exist between each node in the personal information management, and information transmission can be carried out between the nodes through the information connection. For example, when any node in the personal information management system receives input information, other nodes in the personal information management system acquire the input information according to a consensus algorithm, and store the input information as data in shared data, so that the data stored on all nodes in the data sharing system are consistent.
Each node in the personal information management system has a node identifier corresponding to the node identifier, and each node in the personal information management system may store the node identifiers of other nodes in the personal information management system, so that the generated block is broadcast to other nodes in the personal information management system according to the node identifiers of other nodes. Each node can maintain a node identification list shown in the following table, and the node names and the node identifications are correspondingly stored in the node identification list. The node identifier may be an IP (Internet Protocol, protocol interconnecting networks) address, and any other information that can be used to identify the node, and table 1 is only described by taking an allocated network interface address as an example, where the allocated network interface address is assumed to be 16 bits. Each node in the personal information management system stores one and the same blockchain.
| Node name | Node identification |
| Node 1 | 0.45 |
| Node 2 | 22.36 |
| … | … |
| Node N | 22.88 |
Referring to fig. 3, fig. 3 is a flowchart of a personal information management method based on a blockchain according to an embodiment of the present application. As shown in fig. 3, the personal information management process includes the steps of:
step S301, a service information uploading request sent by a management node is obtained.
Specifically, a service information uploading request sent by a management node is obtained, wherein the service information uploading request comprises target personal information of a target user, target service experience information and service behavior information to be uplink. The service behavior information to be uplink can be birth information, school information, work information or marital information of the target user, and the target service experience information is the uplink service behavior information. The management node corresponds to a government department, and particularly corresponds to a server of electronic equipment used by the government department when sending a service information uploading request. Or in an alternative case, the management node may be a service receiver, for example, when the service behavior information to be uplink in the service information uploading request includes a job entering application, the management node may be a government department responsible for the job record of the company when the target user enters the company to make a job record, or may be a personnel manager of the target user entering the company. The target personal information is related personal information of a target user which needs to provide target service experience information when the target user performs the service action to be uplink, the target service experience information comprises identity information and the like, the target service experience information comprises service information provided by the target user when the target user performs the service action to be uplink, and the service information is a result of the service activity which the target user needs to provide when the target user performs the service action to be uplink.
Step S302, at least one first block associated with the target personal information is acquired, and historical business experience information is generated according to the at least one first block.
Specifically, at least one first block associated with target personal information is obtained from a target data block chain, service information in each first block is extracted, and historical service experience information corresponding to a target user is generated according to the service information in the at least one first block. The method comprises the steps of acquiring an identification card number or other identification marks in target personal information, acquiring at least one first block containing the identification card number or other identification marks in a target data block chain according to the identification card number or other identification marks, and acquiring service behavior information to be uplink in each first block, wherein the service behavior information to be uplink is a service activity executed by a target user and recorded in the corresponding first block, and comprises a service name, a service result and the like of the service activity. After the service behavior information to be uplink in each first block is obtained, the service behavior information to be uplink is orderly arranged to obtain the history service experience information corresponding to the target user.
When a data blockchain is recorded in the personal information management system, the data blockchain records the business activity which is carried out by each user, after receiving a business information uploading request sent by a management node, at least one first block which is the same as the identity information of a target user is searched in the data blockchain according to the target personal information of the target user, business information in the at least one first block is extracted, historical business experience information corresponding to the target user is generated, and the data blockchain is the target data blockchain. Or when the personal information management system is used for finishing and recording the business activities which are carried out by each person, namely, a plurality of data block chains are recorded in the personal information management system, each data block chain corresponds to one user and is marked by the identity information of the corresponding user, specifically, the identity card number or other identity mark of the corresponding user can be used for marking, after the business information uploading request sent by the management node is received, the target data block chain corresponding to the target user is searched from the plurality of data block chains according to the identity information of the target user, the business information of each block in the target data block chain is extracted, and the history business experience information corresponding to the target user is generated according to the business information of each block.
In step S303, if the target service experience information is matched with the history service experience information, a service block is generated and uploaded to the target data block chain.
Specifically, the target service experience information is compared with the history service experience information, if the target service experience information is matched with the history service experience information, a service block is generated according to target personal information and service behavior information to be uplink, and the service block is uploaded to a target data block chain. Specifically, the historical service experience information includes related information of each service activity which has been performed by the target user, including start time, service duration, service result and other related description of the service activity, the target service experience information is compared with related information of related service activities in the historical service experience information, if the two are matched, the target service experience information provided by the target user is correct, a service block is generated according to target personal information and service behavior information to be uplink, and the service block is uploaded to a target data block chain. For example, assuming that the service activity corresponding to the service behavior information to be uplink performed by the target user is "work", the provided target service experience information includes certificate information, competition information, achievement information and the like, the service activity corresponding to each information in the target service experience information is obtained respectively, the target service experience information is compared with the data recorded in the history service experience information of each service activity, if the target service experience information is consistent with the history service experience information, a service block is generated and uploaded to a target data block chain, if the service activity corresponding to the certificate information is "taking XX certificate", the certificate information is compared with the data recorded in the history service experience information of "taking XX certificate", the time of obtaining the certificate, the certificate achievement and the like are included, and the certificate information is consistent with the data recorded in the history service experience information of "taking XX certificate", and the certificate information is matched with the history service experience information.
The embodiment of the application acquires at least one first block associated with target personal information from a target data block chain by receiving a service information uploading request sent by a management node, wherein the service information uploading request comprises the target personal information, target service experience information and service behavior information to be uplinked of a target user, extracts service information in each first block to generate historical service experience information of the target user, generates a service block according to the target personal information and the service behavior information to be uplinked when the target service experience information is matched with the historical service experience information, and uploads the service block to the target data block chain. When any business activity is carried out on a target user, the related information of the business activity is uploaded to a target data blockchain, and the data in the personal information management system are public and transparent to each participating node due to the decentralization and the non-tamper property of the blockchain, so that the high efficiency, the reliability and the convenience of personal information management are improved. The business information corresponding to the business activity comprises birth information, school information, work information, marital information and the like of a target user, so that the personal information management system records personal files of each person, including experiences of each period, and when the related information of the new business activity is uploaded to a target data blockchain, the related information of the new business activity can be verified according to data in each block which the target user has uplink, and the authenticity and accuracy of the new business activity are determined, so that the related information of the uplink business activity is authentic and credible. And the personal files of each person can be traced, so that the time and energy for inquiring and sorting can be saved when the business activity requiring information verification is performed, and the performance efficiency of the business activity can be improved.
Referring to fig. 4, fig. 4 is a schematic flow chart of personal information management based on blockchain according to an embodiment of the present application. As shown in fig. 4, the personal information management method includes the steps of:
step S401, receiving service information inquiry request sent by service receiver.
Specifically, a service information inquiry request sent by a service receiver is received, wherein the service information inquiry request comprises personal information of a requester of a service requester and service experience information of a participant. The service receiver and the service requester are parties involved in service activities, the service requester is a target user who needs to provide service experience information, when the service receiver acquires personal information of the requester and the service experience information of the participant provided by the service requester, and the service experience information provided by the service requester needs to be verified, a service information inquiry request is sent to a personal information management system, and after the personal information management system receives the service information inquiry request sent by the service receiver, the process shown in step S402 is executed. After receiving a service information inquiry request sent by a service receiver, the service receiver can be subjected to inquiry authority confirmation, specifically, a logic process that the if service receiver has inquiry authority then and executes an inquiry process is realized by setting an intelligent contract for inquiry authority confirmation, and the confirmation process of the inquiry authority can be set when if judgment is performed. Since relevant information of each person is very important and secret, including personal information such as identity information, and various business behavior information which is already performed, if it is assumed that information leakage occurs to user a, the leaked information will have a great influence on user a, especially in the time of increasingly relying on networks now, so that privacy setting of a personal information management system is important, each user can query data of various blocks associated with the user, but for various blocks associated with other users, query authority must be given to ensure that the user has query authority for querying various blocks associated with other users when querying.
In the first case, different query authorities can be given according to roles played by different users in society. For example, if the user B applies a company to use as a Human Resource (HR), the personal information management system grants the user B a query right after linking the related information of the business activity of the user B as HR; when a XX government department establishes a headquarter or subsection in a certain place, confirming that the personal information management system is indeed the XX government department when the XX government department accesses the personal information management system for the first time, acquiring a node identifier of the XX government department, and associating inquiry rights for the node identifier; when user C is a normal user, the work information of user C is not related to government departments or HR or other positions where other user related information may need to be verified, and the user C has no query authority.
In the second case, different specific query authorities are given to different participating nodes according to roles of the different participating nodes in a preset role division process. For example, referring to fig. 5, assume that roles having inquiry authority are divided into government departments, companies, individual households, etc., and government departments include a household department, a police department, an education department, a business department, etc., different inquiry authorities may be given to different departments, for example, the household department may inquire about each block associated with identity information, residence address, etc. of each user, and the police department may inquire about all blocks in the personal information management system, etc.; the company comprises a president, HR and the like, and the HR can inquire each block related to the identity information, the certificate information, the competition information, the learning information and the like of each user; the individual user comprises boss, can inquire each relevant block such as identity information of each user, optionally, can also be confirmed by obtaining user inquiry request that the individual user applies for inquiry, and then assign corresponding inquiry authority to the individual user. The query permission may be to assign the relevant query permission to the corresponding user when the relevant information confirmed by the role of the user is uplink, or confirm the query permission of the user for the service information query request after receiving the service information query request sent by the user.
Here, it is assumed that the service receiver is HR of XX company, and after receiving the service information query request of HR of XX company, the service information query request is assumed to include personal information and service experience information of user a, where the service experience information includes certificate information, competition information, learning information, job-free information, and the like of user a, and user a is the service requester.
In step S402, at least one third block is obtained from the target data block chain, and the personal information of each third block is the same as the personal information of the requester.
Specifically, at least one third block is obtained from the target data block chain, personal information in each third block is identical to the personal information of the requester, and experience type of service information in each third block is identical to experience type of service experience information of the participator. In the personal information management platform, each data blockchain can be determined according to the identity information of each user, and particularly, a plurality of data blockchains can be recorded in the personal information management platform, each data blockchain corresponds to the business activity condition of one user, and each data blockchain is uniquely determined according to the identity information; or there may be only one data blockchain containing the traffic activity situation for each user.
Referring specifically to fig. 6, a schematic diagram of a data blockchain distribution situation is provided in an embodiment of the present application. In fig. 6, the first blockchain distribution map 601 directly stores the service activity condition of each user through one data blockchain, which is equivalent to directly searching the data blockchain recorded in the personal information management system when receiving the service information inquiry request sent by the service receiver, namely, the target user data blockchain. At least one third block is obtained from the target user data blockchain by the requester personal information and the participant traffic experience information. For example, if a service information inquiry request sent by HR of XX company is received in step S401, at least one third block recording the certificate information, competition information, learning information, job information, and the like of the user a is acquired.
The second blockchain distribution map 602 stores the business activity situation of each user through a plurality of data blockchains, wherein each data blockchain corresponds to the business activity situation of one user. If the blocks 6021 to 602n record the traffic activity request of the user a and the blocks 6031 to 603n record the traffic activity request of the user B, the blocks 6021 to 602n are the target data blockchain after receiving the traffic information query request in the example in the step S401. After confirming that block 602nb is associated with user a based on the requestor personal information, at least one third block associated with the participant traffic experience information is found by tracing back the target data blockchain without having to compare the personal information again.
Step S403, the comparison result of the service experience information of the at least one third block and the participant is sent to the service receiver.
Specifically, comparing the data recorded in at least one third block with the service experience information of the participator, and if the service information in the third block is consistent with the service experience information of the participator, sending a service information confirmation message to the service receiver; if the business information in the third block is inconsistent with the business experience information of the participator, sending a business information error message to the business receiver, wherein the business information error message comprises the specific business activity with errors and the actual data of the business activity.
For example, after at least one third block recording the certificate information, competition information, learning information, and job information of the user a is obtained, the data recorded in the at least one third block is compared with the participant business experience information, including the time of taking the certificate in the certificate information, the certificate score, the certificate name, etc., the competition time, the competition type, the competition score, etc., the calendar condition, the read school, the score, etc., in the learning information, the job time and job information, such as "Dasan, student meeting, etc., in the job information. When all the data are consistent with the data recorded in the target data block chain, sending a service information confirmation message to a service receiver; when the data is inconsistent, a service information error message is sent to a service receiver, for example, when a user A provides 'X years, X months and X days, an English lecture game first-class prize', and 'X years, X months and X days, an English lecture game participation prize' is recorded in a target data block chain, and 'user A participates in the English lecture game at X years, X months and X days' is sent to an XX company, and the participation prize is obtained.
When the service receiver receives the service information confirmation message and agrees to the service activity, the government department sends the relevant information of the service activity to the personal information management system, specifically, sends a service information uploading request through the management node when the service receiver records the service activity in the government department, so that the personal information management system executes step S404.
Step S404, obtaining a service information uploading request sent by the management node.
Specifically, a service information upload request sent by the management node is obtained, where the service information upload request includes target personal information of the target user, target service experience information and service behavior information to be uplink, and a specific description may refer to a related description in step S301 of fig. 3. The service behavior information to be uplink comprises the starting time, duration, description of the service activity, participation of the service activity and the like of the service activity which is being uplink.
For example, when the XX company confirms that the target business experience information provided by the user a is correct, and receives that the user a becomes an employee of the company, the XX company signs a working contract with the user a and makes a record in a government department, the government department sends a business information uploading request to the personal information management system through the management node after receiving the related information of the employee record of the XX company, the business information uploading request includes the personal information of the user a, the provided target business experience information and the business behavior information to be uplink, and the business behavior information to be uplink includes that "the user a joins the XX company as a name.
Step S405, at least one first block associated with the target personal information is acquired, and service information in each first block is extracted.
Specifically, at least one first block associated with the target personal information is obtained from the target data block chain according to the target personal information, service information in each first block is extracted, specifically, service behavior information in each first block is obtained, and historical service experience information corresponding to the target user is generated according to the service information in each first block. The historical service experience information comprises historical service time nodes and historical service time lengths corresponding to the service activities recorded in each first block. For example, if only one data blockchain is stored in the personal information management system, as shown in the first blockchain distribution diagram 601 in fig. 6, at least one first block is searched from the data blockchain by the identification card number or other identification of the user a based on the example of step S404, and the personal information recorded in each first block in the at least one first block is the personal information of the user a; if multiple data blockchains are stored in the personal information management system, as shown in the second blockchain distribution diagram 602 in fig. 6, based on the example of step S404, the first block 602 (n-1) associated with the identity information of the user a is found from the multiple data blockchains by the id number or other identities of the user a, which indicates that the data blockchain to which the first block 602 (n-1) belongs is a target data blockchain for recording the business activity of the user a, tracing is performed by the first block 602 (n-1), and the business information in the corresponding first block is sequentially extracted until the first block 6021 is obtained.
And tracing at least one first block, extracting the service information of each first block, and meanwhile, sorting the service information of each first block to generate historical service experience information. Referring to fig. 7 specifically, fig. 7 is a schematic diagram of historical service experience information, by tracing a target data blockchain, finding each first block associated with target personal information, sequentially extracting service information in each first block, and sequentially drawing relevant information of service activities performed by each time period of the target user along the direction indicated by an arrow in fig. 7 to generate historical service experience information, wherein each node in fig. 7 represents a historical service time node of a service activity, and the information recorded by the node includes a historical service duration of a corresponding service activity; or after the service information in each first block is extracted, directly recording the related information of the service activities corresponding to different time nodes, and finishing the service activities of the target user to perform a time line so as to generate historical service experience information.
In step S406, the service information in each first block is compared with the target service experience information.
Specifically, the service information in each first block is compared with the target service experience information to determine that the target service experience information is correct.
In one feasible method, first service information associated with the target service experience information is acquired, and a target service time node and a target service duration in the target service experience information are acquired; if the target service time node is the same as the historical service time node of the first service information and the target service time is the same as the historical service time of the first service information, determining that the target service experience information is matched with 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 time is different from the historical service time of the first service information, determining that the target service experience information is not matched with the historical service experience information.
In another possible method, obtaining an experience type of the target service experience information, and obtaining second service information in the history service experience information according to the experience type, wherein the experience type of the second service information is the same as that of the target service experience information; if the target service experience information is the same as the second service information, determining that the target service experience information is matched with the history service experience information; and if the target service experience information is different from the second service information, determining that the target service experience information is not matched with the historical service experience information. The second service information may be obtained from the historical service experience information according to the service activity name corresponding to the target service experience information, if the target service experience information includes a service activity "english fourth level", the second service information including english fourth level is obtained from the historical service experience information.
The method can also compare the historical service time node of the target service time node with the historical service time node of the first service information, the historical service time duration of the target service time duration with the historical service time duration of the first service information, and also compare the consistency of the target service experience information with the historical service experience information, if the target service time node and the historical service time node are identical, the target service experience information is determined to be matched with the historical service experience information, and if one compared object is different, the target service experience information is determined to be not matched with the historical service experience information.
Wherein, when the target service experience information matches with the history service experience information, step S407 is executed; if the target service experience information is not matched with the history service experience information, the unmatched information is fed back to the management node.
Step S407, a service block is generated according to the target personal information and the service behavior information to be uplink, and the service block is uploaded to the target data block chain.
Specifically, a service block is generated according to target personal information and service behavior information to be uplink, and the service block is uploaded to a target data block chain. Generating a block to be added according to target personal information and service behavior information to be uplink; and verifying the block to be added according to the consensus mechanism, and if the verification is passed, generating a service block according to the target data block chain and the block to be added, and uploading the service block to the target data block chain. After the block to be added passes the verification, a second block in the target data block chain and a hash value of the second block are obtained, wherein the second block is the block with the largest timestamp in the target data block chain; generating service block header data according to the target hash value generated by the block to be added and the hash value of the second block, wherein the service block header data also comprises the generation time of the service block header data; and generating the service block according to the to-be-added block and the service block header data.
When verifying a block to be added according to a consensus mechanism, broadcasting the block to be added to at least one participation node in a personal information management system, so that the at least one participation node determines a first target participant and a second target participant according to target service information in the block to be added, acquires confirmation results of the first target participant and the second target participant on target service information, and sends the confirmation results to the personal information management system; and receiving a confirmation result sent by at least one participating node, and carrying out consensus according to the confirmation result sent by the at least one participating node, and verifying the block to be added. For example, after at least one participant node receives the block to be added, determining, according to the information of the service activity to be uplink in the block to be added, two parties of the service activity corresponding to the block to be added, including a first target participant and a second target participant, sending the information of the service activity to be uplink in the block to be added to the first target participant and the second target participant, verifying the information of the service activity to be uplink according to the progress of the service activity after the first target participant and the second target participant receive the information of the service activity to be uplink, sending a confirmation result to each participant node, determining, by each participant node, the accuracy of the information of the service activity to be uplink according to the confirmation result, sending the accuracy determination result of the information of the service activity to be uplink to a personal information management system, and if the verification is passed, verifying the block to be added, generating a service block according to a target data block chain and the block to be added, and uploading the service block to the target data chain.
Alternatively, when generating the block to be added, a target hash value is generated according to the target personal information and the service behavior information to be uplink, after the block to be added passes the verification, a second block in the target data block chain and the hash value of the second block are obtained, the second block is the block with the largest timestamp in the target data block chain, the hash value of the second block is added into the block header of the block to be added, so as to generate service block header data, and the service block is generated according to the block to be added and the service block header data.
The embodiment of the application acquires at least one first block associated with target personal information from a target data block chain by receiving a service information uploading request sent by a management node, wherein the service information uploading request comprises the target personal information, target service experience information and service behavior information to be uplinked of a target user, extracts service information in each first block to generate historical service experience information of the target user, generates a service block according to the target personal information and the service behavior information to be uplinked when the target service experience information is matched with the historical service experience information, and uploads the service block to the target data block chain. When any business activity is carried out on a target user, the related information of the business activity is uploaded to a target data blockchain, and the data in the personal information management system are public and transparent to each participating node due to the decentralization and the non-tamper property of the blockchain, so that the high efficiency, the reliability and the convenience of personal information management are improved. The business information corresponding to the business activity comprises birth information, school information, work information, marital information and the like of a target user, so that the personal information management system records personal files of each person, including experiences of each period, and when the related information of the new business activity is uploaded to a target data blockchain, the related information of the new business activity can be verified according to data in each block which the target user has uplink, and the authenticity and accuracy of the new business activity are determined, so that the related information of the uplink business activity is authentic and credible. And the personal files of each person can be traced, so that the time and energy for inquiring and sorting can be saved when the business activity requiring information verification is performed, and the performance efficiency of the business activity can be improved. When the business activity is carried out, the related information of the target user is verified, so that the business receiver can ensure the accuracy of the related information of the target user, thereby improving the efficiency of the business activity; after the two parties of the business activity determine that the business activity is carried out, when the business receiver records the business activity, the personal information management system verifies the business activity again, so that the personal information stored in the system is ensured to be free of errors, and the accuracy and the credibility of subsequent personal information searching are improved.
Referring to fig. 8, fig. 8 is a schematic diagram of a personal information management device based on a blockchain according to an embodiment of the present application, as shown in fig. 8, the personal information management device 80 based on a blockchain may be used in the electronic apparatus in the embodiment corresponding to fig. 3 and fig. 4, and specifically the device may include: the device comprises 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.
A receiving module 801, configured to obtain a service information upload request sent by a management node, where the service information upload request includes target personal information of a target user, target service experience information, and service behavior information to be uplink;
a first obtaining module 802, configured to obtain at least one first block associated with the target personal information from a target data blockchain;
an extracting module 803, configured to extract service information in each first block;
A first generating module 804, configured to generate historical service experience information corresponding to the target user according to the service information in the first block;
A second generating module 805, configured to generate a service block according to the target personal information and the service behavior information to be uplink if the target service experience information matches with the historical service experience information;
An upload module 806, configured to upload the service block into the target data blockchain.
The first generating module 804 is specifically configured to generate historical service experience information corresponding to the target user according to a historical service time node and a historical service duration of service information in the at least one first block;
the apparatus further comprises:
A second obtaining module 807, configured to obtain first service information associated with the target service experience information, and obtain a target service time node and a target service duration in the target service experience information;
a determining module 808, 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;
The determining module 808 is further configured to determine that the target service experience information is not matched with the history service experience information if the target service time node is not the same as the history service time node of the first service information or the target service duration is not the same as the history service duration of the first service information.
Wherein the apparatus further comprises:
The second obtaining module 807 is further configured to obtain a experience type of the target service experience information, and obtain second service information in the historical service experience information according to the experience type, where the experience type of the second service information is the same as the experience type of the target service experience information;
the determining module 808 is further configured to determine that the target service experience information matches the historical service experience information if the target service experience information is the same as the second service information;
The determining module 808 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 not identical to the second service information.
Wherein the second generating module 805 includes:
A generating unit 8051, configured to generate a block to be added according to the target personal information and the service behavior information to be uplink;
The verifying unit 8052 is configured to verify the block to be added according to a consensus mechanism;
the generating unit 8051 is further configured to generate the service block according to the target data blockchain and the block to be added if the verification is passed.
Wherein the generating unit 8051 includes:
an obtaining subunit 80511, configured to obtain 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 maximum timestamp in the target data blockchain;
A generating subunit 80512, configured to generate a target hash value according to the block to be added, and generate service block header data according to the target hash value and the hash value of the second block, where the service block header data further includes a generation time of the service block header data;
the generating subunit 80512 is further configured to generate the service block according to the to-be-added block and the service block header data.
Wherein the authentication unit 8052 includes:
A sending subunit 80521, configured to broadcast the block to be added to at least one participating node in a personal information management system, so that the at least one participating node determines a first target participant and a second target participant according to target service information in the block to be added, obtains confirmation results of the first target participant and the second target participant for the target service information, and sends the confirmation results to the personal information management system;
a receiving subunit 80522, configured to receive a confirmation result sent by the at least one participating node;
and the verification subunit 80523 is configured to perform consensus according to a confirmation result sent by the at least one participating node, and verify the block to be added.
Wherein the apparatus further comprises:
The receiving module 801 is further configured to receive a service information query request sent by a service receiver, where the service information query request includes personal information of a requester of a service requester and service experience information of a participant;
The first obtaining module 802 is further configured to obtain at least one third block from the target data blockchain, where personal information in each third block of the at least one third block is the same as the personal information of the requester, and experience types of service information in each third block are the same as experience types of the service experience information of the participant;
A sending module 809, configured to send a service information acknowledgement message to the service receiver if the service information in the third block is consistent with the service experience information of the participant;
The sending module 809 is further configured to send a service information error message to the service receiver if the service information in the third block is inconsistent with the service experience information of the participant.
The embodiment of the application provides a personal information management device based on a blockchain, which is used for receiving a service information uploading request sent by a management node, wherein the service information uploading request comprises target personal information, target service experience information and service behavior information to be uplinked of a target user, acquiring at least one first block associated with the target personal information from a target data blockchain, extracting the service information in each first block to generate historical service experience information of the target user, generating a service block according to the target personal information and the service behavior information to be uplinked when the target service experience information is matched with the historical service experience information, and uploading the service block to the target data blockchain. When any business activity is carried out on a target user, the related information of the business activity is uploaded to a target data blockchain, and the data in the personal information management system are public and transparent to each participating node due to the decentralization and the non-tamper property of the blockchain, so that the high efficiency, the reliability and the convenience of personal information management are improved. The business information corresponding to the business activity comprises birth information, school information, work information, marital information and the like of a target user, so that the personal information management system records personal files of each person, including experiences of each period, and when the related information of the new business activity is uploaded to a target data blockchain, the related information of the new business activity can be verified according to data in each block which the target user has uplink, and the authenticity and accuracy of the new business activity are determined, so that the related information of the uplink business activity is authentic and credible. And the personal files of each person can be traced, so that the time and energy for inquiring and sorting can be saved when the business activity requiring information verification is performed, and the performance efficiency of the business activity can be improved.
Referring to fig. 9, fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 9, the electronic device in the present embodiment may include: one or more processors 901, memory 902, and input-output interfaces 903. The processor 901, the memory 902, and the input/output interface 903 are connected via a bus 904. The memory 902 is used for storing a computer program comprising program instructions, the input output interface 903 being used for page interaction; the processor 901 is configured to execute program instructions stored in the memory 902, and perform the following operations:
Acquiring a service information uploading request sent by a management node, wherein the service information uploading request comprises target personal information of a target user, target service experience information and service behavior information to be uplink;
acquiring at least one first block associated with the target personal information from a target data block chain, and extracting service information in each first block;
generating historical service experience information corresponding to the target user according to the service information in the first block;
And if the target business experience information is matched with the historical business experience information, generating a business block according to the target personal information and the business behavior information to be uplink, and uploading the business block to the target data block chain.
In some possible embodiments, the processor 901 may be a central processing unit (central processing unit, CPU), which may also be other general purpose processors, digital signal processors (DIGITAL SIGNAL processors, DSPs), application Specific Integrated Circuits (ASICs), off-the-shelf programmable gate arrays (FPGAs) 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 or the like.
The memory 902 may include read only memory and random access memory and provides instructions and data to the processor 901 and the input output interface 903. A portion of the memory 902 may also include non-volatile random access memory. For example, the memory 902 may also store information of device type.
In a specific implementation, the electronic device may execute, through each functional module built in the electronic device, an implementation manner provided by each step in fig. 3 and fig. 4, and in particular, the implementation manner provided by each step in fig. 3 and fig. 4 may be referred to, which is not described herein again.
The embodiment of the application provides electronic equipment, which comprises: the processor, the input/output interface and the memory acquire the computer instructions in the memory through the processor, execute the steps of the method shown in the above fig. 3 and fig. 4, and perform the personal information management operation. Through computer instructions in a memory, a processor executes operations such as inquiring or uplink of relevant information of business activities recorded by blocks in a personal information management system, so that each participating node in the personal information management system can inquire personal information of each user at any time, and when business experience information provided by a target user needs to be verified, historical business experience information recorded by the business experience information in a target data block chain can be conveniently inquired, and accuracy of the business experience information provided by the target user is determined. Because the block data is disclosed transparent, the accuracy and traceability of the block data are improved.
The embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium stores a computer program, where the computer program includes program instructions, and when the program instructions are executed by a processor, implement the personal information management method provided by each step in fig. 3 and fig. 4, and specifically refer to the implementation manner provided by each step in fig. 3 and fig. 4, which is not repeated herein.
The computer readable storage medium may be the personal information management apparatus provided in any one of the foregoing embodiments or an internal storage unit of the electronic device, for example, a hard disk or a 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 (SD) card, a flash memory card (FLASH CARD), or the like, which are provided on the electronic device. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the electronic 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.
The terms first, second and the like in the description and in the claims and drawings of embodiments of the application are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the term "include" and any variations thereof is intended to cover a non-exclusive inclusion. For example, a process, method, apparatus, article, or device that comprises a list of steps or elements is not limited to the list of steps or modules but may, in the alternative, include other steps or modules not listed or inherent to such process, method, apparatus, article, or device.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The method and related apparatus provided in the embodiments of the present application are described with reference to the flowchart and/or schematic structural diagrams of the method provided in the embodiments of the present application, and each flow and/or block of the flowchart and/or schematic structural diagrams of the method may be implemented by computer program instructions, and combinations of flows and/or blocks in the flowchart and/or block diagrams. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or structural diagram block or blocks. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or structures.
The foregoing disclosure is illustrative of the present application and is not to be construed as limiting the scope of the application, which is defined by the appended claims.
Claims (10)
1. A blockchain-based personal information management method, the method comprising:
Receiving a service information inquiry request sent by a service receiver, and confirming the inquiry authority of the service receiver through an intelligent contract for confirming the inquiry authority; the service information inquiry request comprises personal information of a requester of a service requester and service experience information of a participant; the query permission is given based on roles played by different users in society or on roles in preset role division;
when the service receiver has the inquiry right, at least one third block is acquired from a target data block chain, the personal information in each third block in the at least one third block is the same as the personal information of the requester, and the experience type of the service information in each third block is the same as the experience type of the service experience information of the participant;
If the service information in the third block is consistent with the service experience information of the participant, acquiring a service information uploading request sent by a management node, wherein the service information uploading request comprises target personal information of a target user, target service experience information and service behavior information to be uploaded; the management node is a government department or a business receiver; the target personal information is related personal information of a target user providing the target service experience information when the service behavior to be uplink is carried out, and the target service experience information is the service behavior information of the target user which is already uplink;
acquiring at least one first block associated with the target personal information from the target data block chain, and extracting service information in each first block;
generating historical service experience information corresponding to the target user according to the service information in the first block;
And if the target business experience information is matched with the historical business experience information, generating a business block according to the target personal information and the business behavior information to be uplink, and uploading the business block to the target data block chain.
2. The method of claim 1, wherein the generating historical traffic experience information corresponding to the target user from traffic information in the first block comprises:
generating historical service experience information corresponding to the target user according to the historical service time node and the historical service duration of the service information in the at least one first block;
the method further comprises the steps of:
acquiring first service information associated with the target service experience information, and acquiring a target service time node and 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 time is the same as the historical service time of the first service information, determining that the target service experience information is matched with the historical service experience information;
and if the target service time node is different from the historical service time node of the first service information or the target service time length is different from the historical service time length of the first service information, determining that the target service experience information is not matched with the historical service experience information.
3. The method of claim 1, wherein the method further comprises:
acquiring the experience type of the target service experience information, and acquiring second service information in the history service experience information according to the experience type, wherein the experience type of the second service information is the same as the experience type of the target service experience information;
if the target service experience information is the same as the second service information, determining that the target service experience information is matched with the historical service experience information;
and if the target service experience information is different from the second service information, determining that the target service experience information is not matched with the historical service experience information.
4. The method of claim 1, wherein the generating a traffic block from the target personal information and the to-be-uplink traffic behavior information comprises:
Generating a block to be added according to the target personal information and the service behavior information to be uplink; and verifying the block to be added according to a consensus mechanism, and if the verification is passed, generating the service block according to the target data block chain and the block to be added.
5. The method of claim 4, wherein the generating the traffic block from the target data blockchain and the to-be-added block comprises:
Acquiring a second block in the target data block chain and a hash value of the second block, wherein the second block is a block with the largest timestamp in the target data block chain;
Generating a target hash value according to the block to be added, and generating service block head data according to the target hash value and the hash value of the second block, wherein the service block head data also comprises the generation time of the service block head data;
and generating the service block according to the block to be added and the service block header data.
6. The method of claim 4, wherein verifying the block to be joined according to a consensus mechanism comprises:
broadcasting the block to be added to at least one participating node in a personal information management system, so that the at least one participating node determines a first target participant and a second target participant according to target business information in the block to be added, acquires 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;
And receiving a confirmation result sent by the at least one participating node, carrying out consensus according to the confirmation result sent by the at least one participating node, and verifying the block to be added.
7. The method of claim 1, wherein the method further comprises:
if the service information in the third block is inconsistent with the service experience information of the participator, sending a service information error message to the service receiver;
when the service information in the third block is consistent with the participant service experience information, the method further comprises:
a service information confirmation message is sent to the service recipient.
8. A blockchain-based personal information management device, the device comprising:
The receiving module is used for receiving a service information inquiry request sent by a service receiver and carrying out inquiry authority confirmation on the service receiver through an intelligent contract for inquiry authority confirmation; the service information inquiry request comprises personal information of a requester of a service requester and service experience information of a participant; the query permission is given based on roles played by different users in society or on roles in preset role division;
The first acquisition module is used for acquiring at least one third block from a target data block chain when the service receiver has the inquiry right, wherein the personal information in each third block in the at least one third block is the same as the personal information of the requester, and the experience type of the service information in each third block is the same as the experience type of the service experience information of the participant;
The receiving module is further configured to obtain a service information upload request sent by a management node if the service information in the third block is consistent with the service experience information of the participant, where the service information upload request includes target personal information of a target user, target service experience information and service behavior information to be uplink; the management node is a government department or a business receiver; the target personal information is related personal information of a target user providing the target service experience information when the service behavior to be uplink is carried out, and the target service experience information is the service behavior information of the target user which is already uplink;
The first obtaining module is further configured to obtain at least one first block associated with the target personal information from the target data blockchain;
the extraction module is used for extracting the service information in each first block;
The first generation module is used for generating historical service experience information corresponding to the target user according to the service information in the first block;
The second generation module is used for generating a service block according to the target personal information and the service behavior information to be uplink if the target service experience information is matched with the history service experience information;
And the uploading module is used for uploading the service block to the target data block chain.
9. An electronic device is characterized by comprising a processor, a memory and an input-output interface;
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 as claimed in any one of claims 1-7.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program comprising program instructions which, when executed by a processor, perform the method of any of claims 1-7.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910919609.1A CN110597864B (en) | 2019-09-26 | 2019-09-26 | Personal information management method and device based on blockchain |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910919609.1A CN110597864B (en) | 2019-09-26 | 2019-09-26 | Personal information management method and device based on blockchain |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110597864A CN110597864A (en) | 2019-12-20 |
| CN110597864B true CN110597864B (en) | 2024-09-24 |
Family
ID=68864044
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910919609.1A Active CN110597864B (en) | 2019-09-26 | 2019-09-26 | Personal information management method and device based on blockchain |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110597864B (en) |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111507594B (en) * | 2020-04-08 | 2023-06-09 | 微民保险代理有限公司 | Data processing method and device |
| CN111539693B (en) * | 2020-04-29 | 2023-10-13 | 重庆忽米网络科技有限公司 | A blockchain-based data tamper-proof assessment method |
| CN111666544A (en) * | 2020-05-11 | 2020-09-15 | 广州网格科技有限公司 | Block chain-based personal information right confirming method and block chain client |
| CN113407624A (en) * | 2021-06-05 | 2021-09-17 | 广东辰宜信息科技有限公司 | Block chain automatic grouping method and device and computer readable storage medium |
| CN113411252A (en) * | 2021-06-22 | 2021-09-17 | 邓润阳 | Speech platform and speech method |
| CN115314216A (en) * | 2022-07-01 | 2022-11-08 | 万达信息股份有限公司 | Block chain-based personal information authorization and calling license retention method and system |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110188109A (en) * | 2019-04-03 | 2019-08-30 | 阿里巴巴集团控股有限公司 | Approaches to IM, device and equipment and storage medium based on block chain |
Family Cites Families (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10796329B2 (en) * | 2016-11-29 | 2020-10-06 | Mastercard International Incorporated | Method and system for authentication of coupons via blockchain |
| CN107391735A (en) * | 2017-08-04 | 2017-11-24 | 北京明朝万达科技股份有限公司 | Business datum source tracing method, device, system and storage device based on block chain |
| JP6840692B2 (en) * | 2018-02-22 | 2021-03-10 | 株式会社日立製作所 | Computer system, connection device, and data processing method |
| CN110245144B (en) * | 2018-04-27 | 2022-02-22 | 腾讯科技(深圳)有限公司 | Protocol data management method, device, storage medium and system |
| CN109003043A (en) * | 2018-06-27 | 2018-12-14 | 中国银行股份有限公司 | A kind of history information management system based on block chain |
| KR102051231B1 (en) * | 2018-11-27 | 2020-01-08 | 한국과학기술원 | Method and system for tracking transaction of the user personal information based in blockchain |
| CN109979580B (en) * | 2019-03-27 | 2022-07-19 | 深圳市元征科技股份有限公司 | Medical service management method and device |
-
2019
- 2019-09-26 CN CN201910919609.1A patent/CN110597864B/en active Active
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110188109A (en) * | 2019-04-03 | 2019-08-30 | 阿里巴巴集团控股有限公司 | Approaches to IM, device and equipment and storage medium based on block chain |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110597864A (en) | 2019-12-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110597864B (en) | Personal information management method and device based on blockchain | |
| CN112132292B (en) | Longitudinal federation learning data processing method, device and system based on block chain | |
| CN115210741B (en) | partially ordered blockchain | |
| CN110633963B (en) | Electronic bill processing method, device, computer-readable storage medium and equipment | |
| Hjálmarsson et al. | Blockchain-based e-voting system | |
| Khoury et al. | Decentralized voting platform based on ethereum blockchain | |
| Shukla et al. | Online voting application using ethereum blockchain | |
| CN111324663B (en) | Block chain-based data processing method, device, equipment and readable storage medium | |
| CN111291394B (en) | False information management method, false information management device and storage medium | |
| CN111416709B (en) | Voting method, device, equipment and storage medium based on block chain system | |
| CN111934881B (en) | Data right determining method and device, storage medium and electronic device | |
| CN110992178A (en) | Verification method and device for block chain node, computer equipment and storage medium | |
| CN110866289A (en) | Data processing method and device based on block chain, server and storage medium | |
| US20260037973A1 (en) | Blockchain-based data processing method and apparatus, device, storage medium, and program product | |
| CN110942305A (en) | Real estate information management method and device based on block chain | |
| CN114039733A (en) | Certificate storage service transfer method, device and equipment for alliance chain | |
| CN114697048B (en) | Block chain-based carbon emission data sharing method and system | |
| CN110659967B (en) | House management method and device based on block chain | |
| Chaudhary et al. | Decentralized voting platform based on Ethereum blockchain | |
| CN118628237A (en) | Blockchain consensus method, device, computer equipment, medium and product | |
| CN112069529B (en) | Block chain-based volume management method and device, computer and storage medium | |
| CN111327426A (en) | Data sharing method and related device, equipment and system | |
| CN111475778B (en) | A music data processing method and device based on blockchain | |
| CN116418546B (en) | A data processing method and related device based on blockchain | |
| CN110598459A (en) | Block chain-based data storage card management method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |