The acquisition methods and server of Profile information[technical field]
This programme is related to field of communication technology more particularly to a kind of acquisition methods and server of Profile information.
[background technique]
Currently, in China, everyone has archives, i.e. Profile.Profile is our proofs in societyMaterial plays an important role for everyone.The schooling certificate needed when for example, looking for a job, changing jobs is exactlyOne kind of people's archive information handles affairs to government department and is also required to provide relevant Profile information.
However, all kinds of Profile information of the same person are stored in respectively in different mechanisms.It illustrates.Student status letterBreath is stored in educational institution, and in the civil administration (such as Department of Civil Affairs) of government, work unit's information preservation exists native place information preservationHuman resources centers, private insurance information, personal common reserve fund information preservation government human resources and social security mechanism (such as peopleGuarantor office), etc..If a variety of Profile information that user when handling something, needs are not saved in the same mechanism,So user just needs that multiple and different archives preservation mechanisms is gone to obtain corresponding Profile information respectively, very the consuming timeAnd energy, it is extremely inconvenient for users.
As it can be seen that in the prior art, when obtaining Profile information, need to take a substantial amount of time and energy, low efficiencyDown and it is inconvenient.
[summary of the invention]
In view of this, this programme embodiment provides the acquisition methods and system of a kind of Profile information, to solveIt in the prior art when obtaining Profile information, needs to take a substantial amount of time and energy, inefficiency and be inconvenientThe problem of.
In a first aspect, the embodiment of the present invention provides a kind of acquisition methods of Profile information, execute in block chain nodeOn, which comprises
The Profile inquiry request of client is received, includes applicant information in the Profile inquiry request;
Judge whether the requestor of the Profile inquiry request has search access right to the Profile of request inquiry;
If the requestor of the Profile inquiry request has search access right to the Profile of request inquiry, from blockThe corresponding target Profile information of the Profile inquiry request is read in chain, is stored in the block chain from eachThe Profile information of archives associated mechanisms;
The target Profile information is returned into the client.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation receives clientBefore the Profile inquiry request of transmission, the method also includes:
Obtain all kinds of Profile information of each archives associated mechanisms management;
By Profile information storage into the block chain.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, the method is alsoInclude:
The authorization message of client is received, the authorization message is used to give described in designated user's inquiry other than authorized personThe permission of the Profile information of authorized person includes the identity information of the designated user in the authorization message;
The corresponding digital signature of the authorization message, and the digital signature described in the public key decryptions of the authorized person are obtained,Obtain the first summary info;
The corresponding ciphertext of the authorization message is decrypted with the private key of the authorized person, obtains original text;
Hash operation is carried out to the original text, obtains the second summary info;
Judge whether first summary info and second summary info are consistent;
If first summary info is consistent with second summary info, it is arranged for the designated user to the authorizationThe search access right of the Profile information of person, and store the identity information of the designated user.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation obtains each archivesAll kinds of Profile information of associated mechanisms management, comprising:
Personal student status information is obtained from educational institution;And/or
Personal work unit information is obtained from human resources centers;And/or
Personal native place information is obtained from civil administration of government;And/or
Private insurance information and/or personal common reserve fund information are obtained from the human resources and social security mechanism of government.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, it is described will be describedProfile information is stored into the block chain, comprising:
From all kinds of Profile information of each archives associated mechanisms management of acquisition, by all kinds of Profile information according toAffiliated people's grouping, obtains multiple groups Profile information, the corresponding ID card No. of every group of Profile information is identical;
By multiple groups Profile information storage into the block chain.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, it is described will be describedProfile information is stored into the block chain, comprising:
The Profile information is written in designated blocks;
The designated blocks are sent to all memory nodes of the block chain, so that the memory node will be described specifiedBlock is added in the block chain.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation obtains each archivesAll kinds of Profile information of associated mechanisms management, comprising:
Archives uploading instructions are sent to the server where each archives associated mechanisms;
It receives the local that each archives associated mechanisms are uploaded in response to the archives uploading instructions and increases Profile information newly;And/or receive the newly-increased Profile information in local of the server active upload where each archives associated mechanisms.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, by the individualArchive information is stored into block chain, comprising:
The corresponding target identities of the affiliated person of archives are extracted from newly-increased Profile information demonstrate,proves number;
The target identities card number is searched in block chain, obtains lookup result;
If lookup result is that there are the target identities to demonstrate,prove number in block chain, number is demonstrate,proved according to the target identities, it willCorresponding newly-increased Profile information is added to the Profile information group of the corresponding existing ID card No. in block chainIn.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, the method is alsoInclude:
If lookup result is that there is no the target identities to demonstrate,prove number in block chain, the target body is created in block chainThe corresponding newly-increased Profile information group of part card number;
By the newly-increased Profile information according to target identities card number storage to corresponding newly-increased Profile informationIn group.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, the requestorInformation is identity card scanning information;
Judge whether the requestor of the Profile inquiry request has search access right to the Profile of request inquiry,Include:
Corresponding first ID card No. of requestor is determined according to the identity card scanning information;
According to the Profile inquiry request, corresponding second identity card of the Profile owner of request inquiry is determinedNumber;
Judge whether first ID card No. and second ID card No. are identical;
If first ID card No. is identical as second ID card No., the Profile inquiry request is determinedRequestor to request inquiry Profile have search access right;Or, if first ID card No. and second bodyPart card number difference determines that the requestor of the Profile inquiry request weighs the Profile of request inquiry without inquiryLimit.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, the method is alsoInclude:
If the requestor of the Profile inquiry request does not have search access right to the Profile of request inquiry, generateFor prompting requestor not have the prompt information of associated profiles search access right;
The prompt information is returned into the client.
Second aspect, the embodiment of the present invention provide a kind of server, including memory, processor and are stored in described depositIn reservoir and the computer program that can run on the processor, the processor are realized such as when executing the computer programThe step of acquisition methods of any one of first aspect Profile information.
The embodiment of the present invention has the advantages that
The embodiment of the present invention, the Profile inquiry request sent by receiving client, in Profile inquiry requestComprising applicant information, judge whether the requestor of Profile inquiry request there is inquiry to weigh the Profile of request inquiryLimit is read from block chain if the requestor of Profile inquiry request has search access right to the Profile of request inquiryProfile inquiry request corresponding target Profile information is stored with from each archives associated mechanisms in block chainTarget Profile information is returned to client by people's archive information, can be fast based on the Profile information of block chain storageSpeed inquires the Profile information for having permission inquiry, does not need to arrive different archives preservation mechanisms respectively and obtains one by one, forTime and efforts has been saved at family, convenient and efficient, high-efficient.
[Detailed description of the invention]
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attachedFigure is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this fieldFor those of ordinary skill, without creative efforts, it can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is the first pass exemplary diagram of the acquisition methods of Profile information provided in an embodiment of the present invention.
Fig. 2 is the second procedure exemplary diagram of the acquisition methods of Profile information provided in an embodiment of the present invention.
Fig. 3 is the third flow example figure of the acquisition methods of Profile information provided in an embodiment of the present invention.
Fig. 4 is the structural block diagram of the acquisition system of Profile information provided in an embodiment of the present invention.
Fig. 5 is the simplified block diagram of server provided in an embodiment of the present invention.
[specific embodiment]
For a better understanding of the technical solution of the present invention, being retouched in detail to the embodiment of the present invention with reference to the accompanying drawingIt states.
It will be appreciated that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.BaseEmbodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all itsIts embodiment, shall fall within the protection scope of the present invention.
The term used in embodiments of the present invention is only to be not intended to be limiting merely for for the purpose of describing particular embodimentsThe present invention.In the embodiment of the present invention and the "an" of singular used in the attached claims, " described " and "the"It is also intended to including most forms, unless the context clearly indicates other meaning.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation for describing affiliated partner, indicateThere may be three kinds of relationships, for example, A and/or B, can indicate: individualism A, exist simultaneously A and B, individualism B these threeSituation.In addition, character "/" herein, typicallys represent the relationship that forward-backward correlation object is a kind of "or".
Depending on context, word as used in this " if " can be construed to " ... when " or " when ...When " or " in response to determination " or " in response to detection ".Similarly, depend on context, phrase " if it is determined that " or " if detection(condition or event of statement) " can be construed to " when determining " or " in response to determination " or " when the detection (condition of statementOr event) when " or " in response to detection (condition or event of statement) ".
Embodiment one
The embodiment of the present invention provides a kind of acquisition methods of Profile information.Profile provided in an embodiment of the present inventionThe acquisition methods of information can execute on the arbitrary node of block chain, or execute on the specified node of block chain.
Fig. 1 is the first pass exemplary diagram of the acquisition methods of Profile information provided in an embodiment of the present invention.This implementationIn example, the acquisition methods of Profile information are executed on block chain node, as shown in Figure 1, this method may include following stepIt is rapid:
S101 receives the Profile inquiry request of client, includes applicant information in Profile inquiry request.
S102, judges whether the requestor of Profile inquiry request there is inquiry to weigh the Profile of request inquiryLimit.
S103, if the requestor of Profile inquiry request has search access right to the Profile of request inquiry, from areaThe corresponding target Profile information of Profile inquiry request is read in block chain, is stored in block chain from each archives phaseThe Profile information of shutting mechanism.
Target Profile information is returned to client by S104.
It should be noted that the premise that the present embodiment is carried out is stored in block chain from each archives associated mechanismsProfile information.
The server of each archives associated mechanisms can be used as block chain node, the information that memory block chain is recorded.ByIt is all stored with complete block chained record information in either block chain node, therefore, in either block chain node, can be inquiredTo all kinds of Profile information, goes to inquire to different mechanisms respectively without user, thus saved the time for userAnd energy, it is convenient and efficient and high-efficient.
Wherein, archives associated mechanisms can be educational institution, civil administration, human resources centers, human resources and social securityMechanism etc..
Block chain in the embodiment of the present invention can be alliance's chain.Alliance's chain just for some specific group member and haveThe third party of limit, inside specify the node of multiple pre-selections for book keeping operation people, and each piece of generation is determined jointly by all preselected nodesFixed, other access nodes can participate in business, but keep aloof from accounting procedure, what other third parties can be open by the block chainAPI (Application Programming Interface, application programming interface) is defined inquiry.
Each archives associated mechanisms, such as educational institution, civil administration, human resources centers, human resources and social security mechanismEtc. alliance's chain, a node of each mechanism as alliance's chain can be created jointly.All nodes of alliance's chain can jointly reallyThe preselected node for determining alliance's chain controls common recognition process by preselected node.Other access nodes in addition to preselected node of alliance's chainIt can participate in business, but keep aloof from accounting procedure.
Each Profile setting in the archives that each archives associated mechanisms can be managed for this archives associated mechanisms is looked intoPermission is ask, and by Profile and its search access right storage into the block of alliance's chain.Each archives in alliance's chain mutually shut downStructure is trusted based on interaction, other archives associated mechanisms in alliance's chain can be authorized to inquire what this archives associated mechanisms were managedProfile.In this way, inquiry can inquire all of alliance's chain to any one of alliance's chain archives associated mechanismsThe archive information for belonging to inquiry individual of archives associated mechanisms management.
Wherein, the applicant information for including in Profile inquiry request can be the identity card scanning information of requestor.Identity card is the valid certificates for proving personal user's legal identity, therefore user is when needing querying individual archive information, can be withIdentity card is provided to associated mechanisms, associated mechanisms obtain the applicant information of Profile inquiry request by scanning identity card.
Wherein, associated mechanisms herein can be block chain node, or have the right to obtain information from block chain nodeMechanism.
It should be noted that not any user has search access right to arbitrary Profile information.In block chainThe search access right information of Profile information can be stored in advance.In this way, being asked when block chain node receives Profile inquiryWhen asking, so that it may judge whether the requestor of Profile inquiry request has according to the search access right information stored in block chainThere is corresponding search access right, and determines whether that requestor provides related Profile information on this basis.
Here search access right information is illustrated.For example, personal user can inquire my Profile letterBreath, government department user can inquire its Profile information within the scope of authority.
By step S102, can determine the requestor of Profile inquiry request to the Profile of request inquiry whetherProfile information is caused with search access right to prevent the claimant of no search access right from obtaining related Profile informationLeakage.
During an illustrative realization, applicant information is identity card scanning information;Judge that Profile is inquiredWhether the requestor of request has search access right to the Profile of request inquiry, may include: according to identity card scanning informationDetermine corresponding first ID card No. of requestor;According to Profile inquiry request, the Profile institute of request inquiry is determinedCorresponding second ID card No. of the person of having;Judge whether the first ID card No. is identical as the second ID card No.;If the first bodyPart card number is identical as the second ID card No., determines Profile of the requestor to request inquiry of Profile inquiry requestWith search access right;Or, determining asking for Profile inquiry request if the first ID card No. is different from the second ID card No.The person of asking does not have search access right to the Profile of request inquiry.
In step S103, there is search access right to the Profile of request inquiry in the requestor of Profile inquiry requestIn the case where, just go to read related Profile information, the effective guarantee safety of Profile information.Also, step S103In, target Profile information is to read from block chain, and therefore the characteristic that there is block chain information can not distort is protectedThe true and reliable of the target Profile information read is demonstrate,proved.
During an illustrative realization, the acquisition methods of Profile information can also include: reception clientAuthorization message, authorization message is used to give the power for the Profile information that designated user other than authorized person inquires authorized personIt limits, includes the identity information of designated user in authorization message;Obtain the corresponding digital signature of authorization message, and with the public affairs of authorized personKey decrypts digital signature, obtains the first summary info;With the corresponding ciphertext of private key decryption and authorization information of authorized person, original is obtainedText;Hash operation is carried out to original text, obtains the second summary info;Judge the first summary info and the second summary info whether oneIt causes;If the first summary info is consistent with the second summary info, looking into the Profile information of authorized person is set for designated userPermission is ask, and stores the identity information of designated user.By this example, user passes through the authorization of Profile information owner,The Profile information in block chain can be inquired.
During an illustrative realization, if the acquisition methods of Profile information can also include: the first abstractInformation and the second summary info are inconsistent, and the prompt information of authorization failure is returned to client.
Fig. 2 is the second procedure exemplary diagram of the acquisition methods of Profile information provided in an embodiment of the present invention.This implementationIn example, the acquisition methods of Profile information are executed on block chain node, as shown in Fig. 2, this method may include following stepIt is rapid:
S201 obtains all kinds of Profile information of each archives associated mechanisms management.
S202, by the storage of Profile information into block chain.
S203 receives the Profile inquiry request that client is sent, believes in Profile inquiry request comprising requestorBreath.
S204, judges whether the requestor of Profile inquiry request there is inquiry to weigh the Profile of request inquiryLimit.
S205, if the requestor of Profile inquiry request has search access right to the Profile of request inquiry, from areaThe corresponding target Profile information of Profile inquiry request is read in block chain, is stored in block chain from each archives phaseThe Profile information of shutting mechanism.
Target Profile information is returned to client by S206.
During an illustrative realization, by the storage of Profile information into block chain, comprising: by ProfileInformation is written in designated blocks;Designated blocks are sent to all memory nodes of block chain, so that memory node is by designated blocksIt is added in block chain.
During an illustrative realization, all kinds of Profile information of each archives associated mechanisms management are obtained, it canTo include: to obtain personal student status information from educational institution;And/or personal work unit information is obtained from human resources centers;And/orPersonal native place information is obtained from civil administration of government;And/or personal protect is obtained from the human resources and social security mechanism of governmentDangerous information and/or personal common reserve fund information.In this example, the source of several Profile information, i.e. educational institution, people are listedAbility center, civil administration of government, the human resources of government and social security mechanism etc..
It is understood that the present embodiment provides only the example in the source of Profile information, it is not used to individualThe source of archive information is defined.In other embodiments, Profile information can also be obtained from other reliable sources.
It on the basis of the above,, can by the storage of Profile information into block chain during an illustrative realizationWith include: from all kinds of Profile information of each archives associated mechanisms management of acquisition, by all kinds of Profile information according toAffiliated people's grouping, obtains multiple groups Profile information, the corresponding ID card No. of every group of Profile information is identical;By multiple groupsPeople's archive information is stored into block chain.In this example, according to ID card No., all kinds of Profile information of same people are returnedIt is convenient that personal files are inquired according to identification number into a group, to accelerate inquiry velocity.
During an illustrative realization, all kinds of Profile information of each archives associated mechanisms management are obtained, it canTo include: to send archives uploading instructions to the server where each archives associated mechanisms;Receive each archives associated mechanisms in response toArchives uploading instructions and the local that uploads increases Profile information newly.In this example, block chain node is uploaded by sending archivesInstruction actively obtains newly-increased Profile information from each archives associated mechanisms, to believe in time the Profile of block chain storageBreath is updated.Archives uploading instructions herein can periodically be sent by block chain node or irregularly be sent.
During an illustrative realization, all kinds of Profile information of each archives associated mechanisms management are obtained, it canProfile information is increased newly with the local for including: server active upload where receiving each archives associated mechanisms.In this example,The local that block chain node passively receives the server active upload where each archives associated mechanisms increases Profile information newly, thisKind mode can just trigger block chain to Profile when the server where archives associated mechanisms has newly-increased Profile informationInformation is updated, and is not needed the server where block chain expends each archives associated mechanisms of certain hardware resource whereabouts and is looked intoIt askes, facilitates the resource for saving block chain.
Over time, Profile information can increase.For example the first student, before graduation, Profile is the presence of religionMechanism is educated, after graduation, has found work unit, archives have human resources centers, then human resources centers will increase of first newlyPeople's archive information, with do not have in the Profile information of proostracum work unit this, just have after work, in this way, firstPeople's archive information just increases.Above-described embodiment enables block chain to store newly-increased Profile information in time, to protectDemonstrate,prove the accuracy of Profile query result.
On the basis of the above, during an illustrative realization, by the storage of Profile information into block chain, packetIt includes: extracting the corresponding target identities card number of the affiliated person of archives from newly-increased Profile information;Target is searched in block chainID card No. obtains lookup result;If lookup result is that there are target identities to demonstrate,prove number in block chain, demonstrate,proved according to target identitiesCorresponding newly-increased Profile information is added to the Profile letter of the corresponding existing ID card No. in block chain by numberIt ceases in group.
During an illustrative realization, if the acquisition methods of Profile information can also include: lookup resultIt is that there is no target identities to demonstrate,prove number in block chain, the corresponding newly-increased Profile of target identities card number is created in block chainInformation group;By newly-increased Profile information according to target identities card number storage to corresponding newly-increased Profile information groupIn.
Above-described embodiment according in block chain whether the corresponding ID card No. of existing newly-increased Profile information, determineThe storage mode of newly-increased Profile information, so that the newly-increased Profile information of same people and original Profile information storeIn same group, to facilitate inquiry.
Fig. 3 is the third flow example figure of the acquisition methods of Profile information provided in an embodiment of the present invention.This implementationIn example, the acquisition methods of Profile information are executed on block chain node, as shown in figure 3, this method may include following stepIt is rapid:
S301 receives the Profile inquiry request of client, includes applicant information in Profile inquiry request.
S302, judges whether the requestor of Profile inquiry request there is inquiry to weigh the Profile of request inquiryThere is search access right to execute step S303, then follow the steps S305 without search access right for limit.
S303, if the requestor of Profile inquiry request has search access right to the Profile of request inquiry, from areaThe corresponding target Profile information of Profile inquiry request is read in block chain, is stored in block chain from each archives phaseThe Profile information of shutting mechanism.
Target Profile information is returned to client by S304, is terminated.
S305 generates the prompt information for prompting requestor not have associated profiles search access right.
S306 will be prompted to information and return to client, terminate.
The acquisition methods of Profile information provided in an embodiment of the present invention, the Profile sent by receiving clientInquiry request includes applicant information in Profile inquiry request, judges the requestor of Profile inquiry request to requestWhether the Profile of inquiry has search access right, if the requestor of Profile inquiry request is to the Profile of request inquiryWith search access right, the corresponding target Profile information of Profile inquiry request is read from block chain, is deposited in block chainThe Profile information from each archives associated mechanisms is contained, target Profile information is returned into client, is based on areaBlock chain storage Profile information, can quick search to the Profile information for having permission inquiry, do not need to arrive respectively notSame archives preservation mechanism obtains one by one, has saved time and efforts for user, convenient and efficient, high-efficient.
Embodiment two
The embodiment of the present invention provides a kind of acquisition system of Profile information, and the acquisition system of the Profile information is usedIn the acquisition methods for executing the Profile information in previous embodiment one, the acquisition system configuration of the Profile information is in areaOn block chain node.
Fig. 4 is the structural block diagram of the acquisition system of Profile information provided in an embodiment of the present invention.It is a in the present embodimentThe acquisition system configuration of people's archive information is on block chain node, as shown in figure 4, the system includes:
Inquiry request receiving module 410, for receiving the Profile inquiry request of client transmission, Profile inquiryIt include applicant information in request.
Permission judgment module 420, for judging Profile of the requestor to request inquiry of Profile inquiry requestWhether there is search access right.
Information reading module 430, if the requestor for Profile inquiry request has the Profile of request inquiryThere is search access right, the corresponding target Profile information of Profile inquiry request is read from block chain, is stored in block chainThere is the Profile information from each archives associated mechanisms.
Information return module 440, for target Profile information to be returned to client.
During an illustrative realization, the acquisition system of Profile information can also include: acquisition of information mouldBlock, for obtaining all kinds of Profile information of each archives associated mechanisms management;Information storage module, for believing ProfileBreath storage is into block chain.
During an illustrative realization, data obtaining module is for obtaining each of each archives associated mechanisms managementIt when class Profile information, can be specifically used for: obtain personal student status information from educational institution;And/or it is obtained from human resources centersPersonal work unit information;And/or personal native place information is obtained from civil administration of government;And/or the human resources from governmentPrivate insurance information and/or personal common reserve fund information are obtained with social security mechanism.
During an illustrative realization, information storage module is for storing Profile information to block chainWhen middle, it can be specifically used for: from all kinds of Profile information of each archives associated mechanisms management of acquisition, by all kinds of personal shelvesCase information is grouped according to affiliated people, obtains multiple groups Profile information, the corresponding ID card No. phase of every group of Profile informationTogether;By the storage of multiple groups Profile information into block chain.
During an illustrative realization, data obtaining module is for obtaining each of each archives associated mechanisms managementIt when class Profile information, can be specifically used for: send archives uploading instructions to the server where each archives associated mechanisms;It connectsIt receives the local that each archives associated mechanisms are uploaded in response to archives uploading instructions and increases Profile information newly.
During an illustrative realization, data obtaining module is for obtaining each of each archives associated mechanisms managementIt when class Profile information, can be specifically used for: receive the local new of the server active upload where each archives associated mechanismsIncrease Profile information.
During an illustrative realization, information storage module is for storing Profile information to block chainIt when middle, can be specifically used for: extract the corresponding target identities card number of the affiliated person of archives from newly-increased Profile information;In areaTarget identities are searched in block chain and demonstrate,prove number, obtain lookup result;If lookup result is that there are target identities to demonstrate,prove number in block chain,Number, the corresponding existing identification card number corresponding newly-increased Profile information being added in block chain are demonstrate,proved according to target identitiesIn the Profile information group of code.
During an illustrative realization, if the acquisition system of Profile information can also include: lookup resultIt is that there is no target identities to demonstrate,prove number in block chain, the corresponding newly-increased Profile of target identities card number is created in block chainInformation group;By newly-increased Profile information according to target identities card number storage to corresponding newly-increased Profile information groupIn.
During an illustrative realization, applicant information is identity card scanning information;Permission judgment module 420 existsIt is specific to use when for judging whether the requestor of Profile inquiry request has search access right to the Profile of request inquiryIn: corresponding first ID card No. of requestor is determined according to identity card scanning information;According to Profile inquiry request, determineRequest corresponding second ID card No. of the Profile owner of inquiry;Judge the first ID card No. and the second identification card numberWhether code is identical;If the first ID card No. is identical as the second ID card No., the requestor of Profile inquiry request is determinedThere is search access right to the Profile of request inquiry;Or, determining if the first ID card No. is different from the second ID card No.The requestor of Profile inquiry request does not have search access right to the Profile of request inquiry.
During an illustrative realization, if the acquisition system of Profile information can also include: ProfileThe requestor of inquiry request does not have search access right to the Profile of request inquiry, generates for prompting requestor not have phaseClose the prompt information of document query permission;It will be prompted to information and return to the client.
Since the acquisition system of the Profile information of the present embodiment is used to execute the Profile in previous embodiment oneThe acquisition methods of information, the place being not described in detail for the acquisition system of Profile information in the present embodiment, before referring toState the explanation of the acquisition methods corresponding portion of Profile information in embodiment one.
The acquisition system of Profile information provided in an embodiment of the present invention, the Profile sent by receiving clientInquiry request includes applicant information in Profile inquiry request, judges the requestor of Profile inquiry request to requestWhether the Profile of inquiry has search access right, if the requestor of Profile inquiry request is to the Profile of request inquiryWith search access right, the corresponding target Profile information of Profile inquiry request is read from block chain, is deposited in block chainThe Profile information from each archives associated mechanisms is contained, target Profile information is returned into client, is based on areaBlock chain storage Profile information, can quick search to the Profile information for having permission inquiry, do not need to arrive respectively notSame archives preservation mechanism obtains one by one, has saved time and efforts for user, convenient and efficient, high-efficient.
Embodiment three
The embodiment of the invention provides a kind of server, which includes memory, processor and is stored in storageIn device and the computer program that can run on a processor, when processor executes the computer program, such as previous embodiment is realizedIn one the step of the acquisition methods of any Profile information.
Fig. 5 is the simplified block diagram of server provided in an embodiment of the present invention.Fig. 5 is referred to, which may includeThe processor 501 connecting with one or more data storage facilities, the data storage facility may include storage medium 506 and interiorMemory cell 504.Server 500 can also include input interface 505 and output interface 507, for another device or system intoRow communication.It is storable in internal storage location 504 or storage medium 506 by the CPU of processor 501 program code executed.
Processor 501 in server 500 calls the program code for being stored in internal storage location 504 or storage medium 506, holdsThe following each step of row:
The Profile inquiry request of client is received, includes applicant information in Profile inquiry request.
Judge whether the requestor of Profile inquiry request has search access right to the Profile of request inquiry.
If the requestor of Profile inquiry request has search access right to the Profile of request inquiry, from block chainThe corresponding target Profile information of Profile inquiry request is read, is stored in block chain from each archives associated mechanismsProfile information.
Target Profile information is returned into client.
During an illustrative realization, processor 501 be can be additionally configured to: obtain each archives associated mechanisms pipeAll kinds of Profile information of reason;By the storage of Profile information into block chain.
During an illustrative realization, processor 501 be can be additionally configured to: receive the authorization letter of clientBreath, the designated user that authorization message is used to give other than authorized person inquire the permission of the Profile information of authorized person, authorization letterIt include the identity information of designated user in breath;Obtain the corresponding digital signature of authorization message, and with the public key decryptions number of authorized personWord signature, obtains the first summary info;With the corresponding ciphertext of private key decryption and authorization information of authorized person, original text is obtained;To original textHash operation is carried out, the second summary info is obtained;Judge whether the first summary info is consistent with the second summary info;If first plucksIt wants information consistent with the second summary info, is designated user's setting to the search access right of the Profile information of authorized person, and depositStore up the identity information of designated user.
During an illustrative realization, processor 501, can when by the storage of Profile information into block chainTo be configured as: from all kinds of Profile information of each archives associated mechanisms management of acquisition, by all kinds of Profile informationIt is grouped according to affiliated people, obtains multiple groups Profile information, the corresponding ID card No. of every group of Profile information is identical;It will be moreGroup Profile information storage is into block chain.
During an illustrative realization, processor 501, can when by the storage of Profile information into block chainTo be configured as: Profile information is written in designated blocks;Designated blocks are sent to all memory nodes of block chain, withBe added to memory node designated blocks in block chain.
During an illustrative realization, processor 501 is in all kinds of individuals for obtaining each archives associated mechanisms managementIt when archive information, can be configured as: sending archives uploading instructions to the server where each archives associated mechanisms;Receive each shelvesThe local that case associated mechanisms are uploaded in response to archives uploading instructions increases Profile information newly;And/or receive each archives correlationThe local of server active upload where mechanism increases Profile information newly.
During an illustrative realization, processor 501, can when by the storage of Profile information into block chainTo be configured as: extracting the corresponding target identities of the affiliated person of archives from newly-increased Profile information and demonstrate,prove number;In block chainIt searches target identities and demonstrate,proves number, obtain lookup result;If lookup result is that there are target identities to demonstrate,prove number in block chain, according to meshID card No. is marked, corresponding newly-increased Profile information is added to of the corresponding existing ID card No. in block chainIn people's archive information group.
During an illustrative realization, processor 501 be can be additionally configured to: if lookup result is in block chainThere is no target identities to demonstrate,prove number, and the corresponding newly-increased Profile information group of target identities card number is created in block chain;By newly-increased Profile information according to target identities card number storage into corresponding newly-increased Profile information group.
During an illustrative realization, applicant information is identity card scanning information;Processor 501 is in judgementWhen whether the requestor of people's document query request has search access right to the Profile of request inquiry, it can be configured as: rootCorresponding first ID card No. of requestor is determined according to identity card scanning information;According to Profile inquiry request, request is determinedCorresponding second ID card No. of the Profile owner of inquiry;Judge the first ID card No. is with the second ID card No.It is no identical;If the first ID card No. is identical as the second ID card No., determine the requestor of Profile inquiry request to askingSeeking the Profile of inquiry has search access right;Or, determining personal if the first ID card No. is different from the second ID card No.The requestor of document query request does not have search access right to the Profile of request inquiry.
Example IV
The embodiment of the invention provides a kind of computer readable storage medium, which has meterCalculation machine program realizes the Profile information as described in any in previous embodiment one when the computer program is executed by processorAcquisition methods the step of.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,The specific work process of device and module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be withIt realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the moduleIt divides, only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple modules or groupPart can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shownOr the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or module it is indirectCoupling or communication connection can be electrical property, mechanical or other forms.
The module as illustrated by the separation member may or may not be physically separated, aobvious as moduleThe component shown may or may not be physical module, it can and it is in one place, or may be distributed over multipleIn network unit.Some or all of the modules therein can be selected to realize the mesh of this embodiment scheme according to the actual needs's.
It, can also be in addition, each functional module in each embodiment of the present invention can integrate in one processing unitIt is that modules physically exist alone, can also be integrated in one unit with two or more modules.Above-mentioned integrated listMember both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at oneIn storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computerIt is each that device (can be personal computer, server or network equipment etc.) or processor (Processor) execute the present inventionThe part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. it is variousIt can store the medium of program code.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the inventionWithin mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.