CN112507667A - Block chain-based family tree merging method, equipment and storage medium - Google Patents

Block chain-based family tree merging method, equipment and storage medium Download PDF

Info

Publication number
CN112507667A
CN112507667A CN202011300494.7A CN202011300494A CN112507667A CN 112507667 A CN112507667 A CN 112507667A CN 202011300494 A CN202011300494 A CN 202011300494A CN 112507667 A CN112507667 A CN 112507667A
Authority
CN
China
Prior art keywords
family
spectrum
target
genealogy
block chain
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.)
Pending
Application number
CN202011300494.7A
Other languages
Chinese (zh)
Inventor
李珈慧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Yuanzhongrui Technology Co ltd
Original Assignee
Shenzhen Yuanzhongrui Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Yuanzhongrui Technology Co ltd filed Critical Shenzhen Yuanzhongrui Technology Co ltd
Priority to CN202011300494.7A priority Critical patent/CN112507667A/en
Publication of CN112507667A publication Critical patent/CN112507667A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9024Graphs; Linked lists
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Abstract

The application relates to a block chain, and provides a family spectrum merging method, equipment and a storage medium based on the block chain, wherein the method comprises the following steps: acquiring a first family spectrum and a second family spectrum to be merged, wherein the first family spectrum is stored in a first block chain, and the second family spectrum is stored in a second block chain; merging the first family spectrum and the second family spectrum according to the family spectrum graph data corresponding to the first family spectrum and the family spectrum graph data corresponding to the second family spectrum to obtain a target spectrum; updating the first family spectra in the first blockchain and the second family spectra in the second blockchain according to the target atlas. The family spectrums of different families are combined through a block chain technology, so that the relativity between all family members can be conveniently and accurately searched.

Description

Block chain-based family tree merging method, equipment and storage medium
Technical Field
The present application relates to the field of block chain technologies, and in particular, to a method, an apparatus, and a storage medium for merging family spectrums based on a block chain.
Background
The traditional pedigree book (pedigree for short) of Chinese nation has a history of inheritance for thousands of years, wherein the described pedigree of the family is described by the inheritance of the relationship of father blood relationship as the venation and passing through from top to bottom in the form of pedigree. The genealogy can connect individual people to families and families, and further to countries and nationalities, and brings group attribution feeling. The traditional genealogy is printed in a papery arrangement mode as a recording mode, and the paper genealogy is very expensive and difficult to refer and store. In addition, the traditional family spectrums are mostly arranged and printed by taking families as units, and the family spectrums of each family are mutually independent, so that the connection relationship between different families cannot be embodied, and the seeking of the relativity between family members is not facilitated.
Disclosure of Invention
The present application mainly aims to provide a family score merging method, device and storage medium based on a blockchain, which are used to merge family scores of different families through a blockchain technique, so as to accurately seek the relationship between family members.
In a first aspect, the present application provides a family merging method based on a block chain, including:
acquiring a first family spectrum and a second family spectrum to be merged, wherein the first family spectrum is stored in a first block chain, and the second family spectrum is stored in a second block chain;
merging the first family spectrum and the second family spectrum according to the family spectrum graph data corresponding to the first family spectrum and the family spectrum graph data corresponding to the second family spectrum to obtain a target spectrum;
updating the first family spectra in the first blockchain and the second family spectra in the second blockchain according to the target atlas.
In a second aspect, the present application also provides a computer device comprising a processor, a memory, and a computer program stored on the memory and executable by the processor, wherein the computer program, when executed by the processor, implements the steps of the blockchain based genealogy merging method as described above.
In a third aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, where the computer program, when executed by a processor, implements the steps of the block chain based genealogy merging method as described above.
The application provides a family tree merging method, equipment and a storage medium based on a block chain, which are used for merging a first family tree and a second family tree to be merged by acquiring the first family tree and the second family tree to be merged, wherein, the first family of spectra are stored in the first block chain, the second family of spectra are stored in the second block chain, and according to the family spectrum graph data corresponding to the first family of spectra and the family spectrum graph data corresponding to the second family of spectra, combining the first family of spectrum and the second family of spectrum to obtain a target spectrum, then according to the target spectrum, updating the first family spectrum in the first blockchain and the second family spectrum in the second blockchain, so that each blocknode in the blockchain synchronizes the target map, the independent family spectrums of different families are combined through a block chain technology, the integrity of the family spectrums of multiple clans is improved, the relativity between all family members is conveniently and accurately searched, and the combined target spectrum is not easy to be distorted and is convenient to look up and store.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart illustrating steps of a family merging method based on a block chain according to an embodiment of the present disclosure;
FIG. 2 is a diagram illustrating family map data provided in accordance with the present embodiment;
FIG. 3 is a flow chart illustrating sub-steps of the blockchain-based family merging method of FIG. 1;
FIG. 4 is a schematic diagram of target family spectrogram data provided by the embodiment;
fig. 5 is a schematic block diagram of a structure of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
The embodiment of the application provides a family spectrum merging method and equipment based on a block chain and a storage medium. The family tree merging method based on the block chain can be applied to terminal equipment or a server, and the terminal equipment can be electronic equipment such as a mobile phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant and wearable equipment; the server may be a single server or a server cluster including a plurality of servers. The method for combining family spectrums based on block chains is applied to a server as an example and explained below.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a step of a family merging method based on a block chain according to an embodiment of the present disclosure.
As shown in fig. 1, the family merging method based on block chains includes steps S101 to S103.
Step S101, a first family spectrum and a second family spectrum to be merged are obtained, wherein the first family spectrum is stored in a first block chain, and the second family spectrum is stored in a second block chain.
The server is accessed into a blockchain network as a blockchain node, the blockchain network comprises a first blockchain and a second blockchain, a first family of spectrums is stored in the first blockchain, and a second family of spectrums is stored in the second blockchain. Each block link point in the first block chain and the second block chain represents each family member of the same clan. The first block chain comprises a plurality of blocks, each block being generated according to family member family information in the first family; the second blockchain also includes a plurality of blocks, each block generated based on the family member family profile information in the second family profile. The family information is personal information of family members in a preset format in the family, and comprises name, gender, identification card number, birth date, relatives information and the like.
In one embodiment, the first blockchain and the second blockchain include management blockchain nodes, the management blockchain nodes representing a family of administrators. The management block link points are capable of pedigree construction and are operable by the administrator on behalf of them. Each block link point in the first block chain and the second block chain stores family member family information represented by the block link point, and family member corresponding block link points also store family map data, the family map data is map data used for representing the relationship among the family members of the same clan, the family map data comprises relationship nodes, edges and attached attribute information, and optionally a map data structure or a tree data structure.
In an embodiment, when a management block link point in a block chain network receives a family tree construction request, a family tree corresponding to the management block link point is first created, specifically: loading a genealogy establishing interface, and loading a genealogy template on the genealogy establishing interface; acquiring family data corresponding to the members represented by the management block chain node, respectively acquiring personal information of family members represented by the management block chain node, such as parents, mothers, children, girls, brothers, spouses and other relatives from the family data, and filling the personal information into father filling items, mother filling items, son filling items, daughter filling items, brothers filling items, spouses filling items and other relatives filling items of a genealogy template so as to obtain genealogies corresponding to the management block chain link points; the management block link point synchronizes the created genealogy to the block chain to form a first block.
Further, personal information respectively representing family members such as parents, mothers, children, girls, brothers, spouses and other relatives in the genealogy corresponding to the management block link points is filled into the relationship nodes such as father relationship nodes, mother relationship nodes, son relationship nodes, daughter relationship nodes, brothers relationship nodes and spouse relationship nodes of the genealogy data template, so that genealogy data corresponding to the management block link points are obtained. The family map data is a map data structure, each relationship node in the family map data represents each family member of the same clan, each relationship node stores attribute information (family map information) of the represented family member, and edges between the relationship nodes are generation relationships of each relative. Exemplary family map data are, for example, family map data 10 and family map data 20 in fig. 2, with family map data 10 corresponding to a first family and family map data 20 corresponding to a second family.
In an embodiment, before acquiring the first family and the second family to be merged, the method further comprises: acquiring a family spectrum member adding request sent by a first client, and updating the family spectrum of a member to be added according to the personal information of a target family member in the family spectrum member adding request to obtain a first family spectrum; determining whether a second family profile comprising the target family member exists; if a second family spectrum comprising the target family members exists, sending a family spectrum merging request to a corresponding second client according to the family spectrum adding request; and when acquiring the genealogy combination confirmation information returned by the second client, determining the first genealogy and the second genealogy to be combined.
It should be noted that, after the user sends the family member adding request through the first client, the server performs authentication according to the received family member adding request, and updates the family spectrum of the member to be added according to the personal information of the target family member carried in the family member adding request after the authentication is passed, so as to obtain the first family spectrum, if the server determines that the second family spectrum including the target family member exists, the second family spectrum can be merged with the first family spectrum through the target family member, and sends the family spectrum merging request to the corresponding second client according to the family spectrum adding request, the second client is, for example, a management block chain node, after the administrator represented by the management block chain node agrees, the server obtains the family spectrum merging confirmation information returned by the second client, determines the first family spectrum and the second family spectrum to be merged, so as to conveniently and accurately merge the first family spectrum and the second family spectrum in the subsequent process, the genealogy becomes more perfect, and the repair work of the genealogy is greatly shortened.
Wherein, the updating of the family spectrum of the member to be added according to the personal information of the target family member in the family spectrum member adding request to obtain a first family spectrum comprises: acquiring personal information of a target family member in a family member adding instruction; generating family information of the target family members according to the personal information of the target family members; and adding the family spectrum information of the target family member to the family spectrum of the member to be added to obtain a first family spectrum.
Specifically, the family member adding instruction carries personal information of a target family member, the target family member is a family member applying for adding the family member into the family, the personal information comprises name, gender, identification number, birth date, and relatives information, and the like, wherein the relatives information comprises spouse information, parents information, grandparents information, children information, and the like. It should be noted that, the generation information of the target family member in the family tree of the member to be added can be determined according to the personal information of the target family member, then, the table spectrum processing is performed on the personal information of the target family member according to the preset table spectrum rule of the family tree and the generation information of the target family member in the family tree of the member to be added, the family spectrum information of the target family member can be quickly and accurately generated, the family spectrum information is the family spectrum information of the target family member to be added to the family tree, and includes the personal information conforming to the preset table spectrum rule (preset format), then, the personal information conforming to the preset format of the preset table spectrum rule is added to the family tree of the member to be added, so that the first family tree can be accurately and quickly obtained, and the server synchronizes the updated family tree to the block chain to form a new block.
In an embodiment, before the updating the family score of the member to be added according to the personal information of the target family member in the family score member addition request and obtaining the first family score, the method further includes: sending the family tree member adding request to a plurality of block chain nodes in a block chain network so that each block chain node can authenticate the family tree member adding request; determining an authentication result of the family member adding request according to authentication information sent by a plurality of block chain nodes; and if the authentication result of the family spectrum adding instruction is passed, executing the step of updating the family spectrum of the member to be added according to the personal information of the target family member in the family spectrum member adding request to obtain a first family spectrum.
It should be noted that when the number of authentication information sent by the multiple blockchain nodes is greater than the preset number or the ratio is greater than the preset ratio, it is determined that the authentication result of the family member addition request is passed. The family spectrum member adding request is authenticated through the plurality of block chain link points in the block chain network, the family spectrum member adding request is not required to be authenticated through the management block chain link points, the authentication safety and fairness are improved, and when the management block chain link points do not conveniently authenticate the family spectrum member adding request, the family spectrum member adding request can be authenticated through the plurality of block chain nodes near the management block chain nodes, so that the feasibility is high.
And S102, merging the first family spectrum and the second family spectrum according to the family spectrum data corresponding to the first family spectrum and the family spectrum data corresponding to the second family spectrum to obtain a target spectrum.
The family spectrum data corresponding to the first family spectrum and the first family spectrum are stored in a first block chain, the first block chain represents each family member in the first family spectrum, the family spectrum data corresponding to the second family spectrum and the second family spectrum are stored in a second block chain, and the second block chain represents each family member in the second family spectrum. And combining the first family spectrum and the second family spectrum according to the family spectrum data corresponding to the first family spectrum and the family spectrum data corresponding to the second family spectrum to obtain a target spectrum, thereby realizing family spectrum combination among different families and being convenient for accurately seeking the relativity between the family members of different families.
In one embodiment, the first family profile and the second family profile comprise target family members; as shown in fig. 3, step S102 includes: substeps 1021 to substep S1022.
And a substep S1021, determining a first relationship node of the target family member in the genealogy graph data corresponding to the first genealogy, and determining a second relationship node of the target family member in the genealogy graph data corresponding to the second genealogy.
It is to be noted that the first family score and the second family score include the target family member, which is determined based on the personal information of the target family member in the family member addition request. The personal information includes, but is not limited to, a name, a gender, an identification number, a birth date, academic calendar information, and the like, and it is determined whether the personal information of the target family member in the first family spectrum matches the personal information of the target family member in the second family spectrum, and if the personal information of the target family member in the first family spectrum matches the personal information of the target family member in the second family spectrum, it is determined that the first family spectrum and the second family spectrum include the target family member, and the second family spectrum may be one or more, which is not specifically limited in this embodiment. Illustratively, whether the identity card numbers of the target family members in the first family spectrum and the second family spectrum are consistent or not is verified, and if so, the first family spectrum and the second family spectrum are determined to comprise the target family members.
Illustratively, as shown in fig. 2, according to the personal information of the target family member, a first relationship node 11 of the target family member in the genealogy map data 10 corresponding to the first genealogy can be determined, and a second relationship node 21 of the target family member in the genealogy map data corresponding to the second genealogy can be determined.
And a substep S1022, combining the first family spectrum and the second family spectrum through the first relation node and the second relation node to obtain the target spectrum.
In one embodiment, the first relationship node and the second relationship node are used as central relationship nodes; merging the genealogy graph data corresponding to the first genealogy with the genealogy graph data corresponding to the second genealogy through a central relation node to obtain target genealogy graph data; and merging the first family spectrum and the second family spectrum based on the target family spectrum data to obtain a target spectrum. Target genealogy graph data are generated through the first relation node and the second relation node, and then the first genealogy graph and the second genealogy graph are combined based on the target genealogy graph data, so that mutually independent genealogy graphs of different families can be quickly and accurately combined, the combined target genealogy graph is not easy to tamper, and the combined target genealogy graph is convenient to look up and store.
For example, as shown in fig. 2 and 4, the first relationship node 11 and the second relationship node 21 are used as a central relationship node 1121, and the genealogy graph data 10 corresponding to the first genealogy and the genealogy graph data 20 corresponding to the second genealogy are merged by the central relationship node 1121, so as to remove the relationship nodes in which the duplicate attribute information is mutually duplicated. And reserving the relationship nodes with different attribute information to obtain target family spectrogram data 1020 in fig. 4. Wherein the attribute information (for example, name and date of birth) between the contemporary relationship node 12 of the first relationship node 11 and the contemporary relationship node 22 of the second relationship node 21 is different, and the attribute information (for example, name and date of birth) between the contemporary relationship node 23 of the second relationship node 21 and the contemporary relationship node of the first relationship node 11 is different, so that the contemporary relationship node 12 of the first relationship node 11, the contemporary relationship node 22 of the second relationship node 21 and the contemporary relationship node 23 are retained in the target family spectrogram data 1020.
In one embodiment, merging the first family spectrum and the second family spectrum based on the target family spectrogram data to obtain the target family spectrogram, includes: acquiring attribute information of each relationship node in target genealogy graph data; determining generation information corresponding to each family member in the first family spectrum and the second family spectrum according to the attribute information of each relationship node; and performing table spectrum on the personal information of each family member in the first family spectrum and the second family spectrum according to the generation information corresponding to each family member to obtain a target spectrum. The attribute information is family information representing family members stored by each relationship node in the family map data, for example, personal information of a preset table spectrum rule (preset format). If the generation information corresponding to the family members is the same, whether other personal information (identity card number, birth date, gender and the like) is the same is confirmed, if the other personal information is the same, data merging is carried out, and if the other personal information is different, expansion and increase are carried out. Family member data combination greatly reduces the repair complexity of the genealogy and can ensure the integrity and expandability of the genealogy.
It should be noted that the first family tree and the second family tree are merged based on the target family tree graph data, the co-generation relationship node, the up-generation relationship node and the down-generation relationship node of the central relationship node are compared by taking the central relationship node as a center to determine the generation information corresponding to each family member in the first family tree and the second family tree, and then the individual information of each family member is represented according to the generation information corresponding to each family member, so that the first family tree and the second family tree can be merged quickly and accurately, and the integrity and the authenticity of the multi-family tree are improved through decentralization of a block chain.
Step S103, updating the first family spectrum in the first block chain and the second family spectrum in the second block chain according to the target map.
After the target maps are obtained through combination, the first family of spectrums are updated in the first block chain, so that the first family of spectrums stored in the first block chain are replaced by the target maps, and the second family of spectrums are updated in the second block chain, so that the second family of spectrums stored in the second block chain are also replaced by the target maps. By broadcasting the target map, each block node in the block chain synchronizes the target map, and mutually independent family maps of different families are combined by the block chain technology, so that the relativity among the family members can be conveniently and accurately found, and the combined target map is not easy to be distorted and is convenient to look up and store.
In one embodiment, the nine-family five-clothes data of the target family members are generated and broadcast in the first blockchain and the second blockchain, so that the relationship between the family members can be accurately searched in the combined target map, and the traditional blood relationship inheritance relationship can be deeply embodied.
In one embodiment, before updating the first family in the first blockchain and the second family in the second blockchain, the method comprises: checking the target family, if the check is passed, executing the following steps: the first family of spectra is updated in the first blockchain and the second family of spectra is updated in the second blockchain. That is, in order to ensure the accuracy of the genealogies recorded in the block chain network, the target genealogies are generated by merging, and then the target genealogies are checked. For example, personal information, such as a birth date, of each member in the target genealogy can be obtained, and the relationship of each family member in the target genealogy can be verified according to the birth date of each family member. If the check passes, the target family is synchronized.
The family spectrum merging method based on the block chain provided in the above embodiment includes obtaining a first family spectrum and a second family spectrum to be merged, where the first family spectrum is stored in the first block chain, the second family spectrum is stored in the second block chain, and the first family spectrum and the second family spectrum are merged according to family spectrum map data corresponding to the first family spectrum and family spectrum map data corresponding to the second family spectrum, so as to obtain a target spectrum, and then the first family spectrum is updated in the first block chain and the second family spectrum is updated in the second block chain according to the target spectrum, so that each block node in the block chain synchronizes with the target spectrum, and the independent family spectrums of different families are merged through a block chain technology, so that the integrity of the multi-clan family spectrum is improved, the relationship between each family member is accurately sought, and the merged target spectrum is not easily tampered, and is also convenient to refer and store.
Referring to fig. 5, fig. 5 is a schematic block diagram of a computer device according to an embodiment of the present disclosure. The computer device may be a server or a terminal device.
As shown in fig. 5, the computer device includes a processor, a memory, and a network interface connected by a system bus, wherein the memory may include a nonvolatile storage medium and an internal memory.
The non-volatile storage medium may store an operating system and a computer program. The computer program includes program instructions that, when executed, cause a processor to perform any one of the blockchain based genealogy merging methods.
The processor is used for providing calculation and control capability and supporting the operation of the whole computer equipment.
The internal memory provides an environment for the execution of a computer program on a non-volatile storage medium, which when executed by the processor causes the processor to perform any one of the tile chain based genealogy merging methods.
The network interface is used for network communication, such as sending assigned tasks and the like. Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
It should be understood that the Processor may be a Central Processing Unit (CPU), and the Processor may be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein, in one embodiment, the processor is configured to execute a computer program stored in the memory to implement the steps of:
acquiring a first family spectrum and a second family spectrum to be merged, wherein the first family spectrum is stored in a first block chain, and the second family spectrum is stored in a second block chain;
merging the first family spectrum and the second family spectrum according to the family spectrum graph data corresponding to the first family spectrum and the family spectrum graph data corresponding to the second family spectrum to obtain a target spectrum;
updating the first family spectra in the first blockchain and the second family spectra in the second blockchain according to the target atlas.
In one embodiment, the first family profile and the second family profile comprise target family members; the processor is configured to, when the first family spectrum and the second family spectrum are merged according to the family spectrum map data corresponding to the first family spectrum and the family spectrum map data corresponding to the second family spectrum to obtain a target spectrum, implement:
determining a first relation node of the target family member in the genealogy map data corresponding to the first genealogy and determining a second relation node of the target family member in the genealogy map data corresponding to the second genealogy;
and combining the first family spectrum and the second family spectrum through the first relation node and the second relation node to obtain a target spectrum.
In one embodiment, the processor is configured to, when the merging of the first family spectrum and the second family spectrum through the first relationship node and the second relationship node to obtain the target spectrum, implement:
taking the first relation node and the second relation node as a central relation node;
merging the genealogy graph data corresponding to the first genealogy spectrum and the genealogy graph data corresponding to the second genealogy spectrum through the central relation node to obtain target genealogy graph data;
and merging the first family spectrum and the second family spectrum based on the target family spectrum data to obtain a target spectrum.
In one embodiment, the processor, when implementing the merging the first genealogy and the second genealogy based on the target genealogy map data to obtain a target genealogy, is configured to implement:
acquiring attribute information of each relationship node in the target genealogy graph data;
determining generation information corresponding to each family member in the first family spectrum and the second family spectrum according to the attribute information of each relationship node;
and performing table spectrum on the personal information of each family member in the first family spectrum and the second family spectrum according to the generation information corresponding to each family member to obtain a target spectrum.
In one embodiment, the processor, prior to implementing the acquiring the first family spectra and the second family spectra to be merged, is further configured to implement:
acquiring a family spectrum member adding request sent by a first client, and updating the family spectrum of a member to be added according to personal information of a target family member in the family spectrum member adding request to obtain a first family spectrum;
determining whether a second family profile comprising the target family member exists;
if a second family spectrum comprising the target family member exists, sending a family spectrum merging request to a corresponding second client according to the family spectrum adding request;
and when acquiring the family spectrum combination confirmation information returned by the second client, determining a first family spectrum and a second family spectrum to be combined.
In one embodiment, the processor is configured to, when the updating of the family score of the member to be added according to the personal information of the target family member in the family score member addition request is implemented to obtain a first family score, implement:
acquiring personal information of a target family member in the family member adding instruction;
generating genealogy information of the target family member according to the personal information of the target family member;
and adding the family spectrum information of the target family member to the family spectrum of the member to be added to obtain a first family spectrum.
In one embodiment, before the updating of the family score of the member to be added according to the personal information of the target family member in the family score member addition request to obtain the first family score, the processor is further configured to:
sending the family member adding request to a plurality of block chain nodes in a block chain network so that each block chain node can authenticate the family member adding request;
determining an authentication result of the family spectrum member adding request according to authentication information sent by the plurality of block chain nodes;
and if the authentication result of the family spectrum adding instruction is passed, executing the step of updating the family spectrum of the member to be added according to the personal information of the target family member in the family spectrum member adding request to obtain a first family spectrum.
In one embodiment, the first chain of blocks includes a plurality of blocks generated from family member pedigree information in the first family pedigree.
It should be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the computer device described above may refer to the corresponding process in the foregoing embodiment of the family merging method based on the block chain, and details are not described herein again.
Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, where the computer program includes program instructions, and when the program instructions are executed, the method implemented by the computer program instructions may refer to the embodiments of the tile chain-based genealogy merging method according to the present application.
The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, for example, a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the computer device.
It is to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments. While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A family merging method based on block chains is characterized by comprising the following steps:
acquiring a first family spectrum and a second family spectrum to be merged, wherein the first family spectrum is stored in a first block chain, and the second family spectrum is stored in a second block chain;
merging the first family spectrum and the second family spectrum according to the family spectrum graph data corresponding to the first family spectrum and the family spectrum graph data corresponding to the second family spectrum to obtain a target spectrum;
updating the first family spectra in the first blockchain and the second family spectra in the second blockchain according to the target atlas.
2. The blockchain-based family merging method of claim 1, wherein the first family spectrum and the second family spectrum comprise target family members; the merging the first family spectrum and the second family spectrum according to the family spectrum graph data corresponding to the first family spectrum and the family spectrum graph data corresponding to the second family spectrum to obtain a target spectrum comprises:
determining a first relation node of the target family member in the genealogy map data corresponding to the first genealogy and determining a second relation node of the target family member in the genealogy map data corresponding to the second genealogy;
and combining the first family spectrum and the second family spectrum through the first relation node and the second relation node to obtain a target spectrum.
3. The method according to claim 2, wherein the merging the first family spectrum and the second family spectrum through the first relationship node and the second relationship node to obtain the target spectrum comprises:
taking the first relation node and the second relation node as a central relation node;
merging the genealogy graph data corresponding to the first genealogy spectrum and the genealogy graph data corresponding to the second genealogy spectrum through the central relation node to obtain target genealogy graph data;
and merging the first family spectrum and the second family spectrum based on the target family spectrum data to obtain a target spectrum.
4. The method of claim 3, wherein the merging the first family spectrum and the second family spectrum based on the target family spectrum data to obtain a target spectrum comprises:
acquiring attribute information of each relationship node in the target genealogy graph data;
determining generation information corresponding to each family member in the first family spectrum and the second family spectrum according to the attribute information of each relationship node;
and performing table spectrum on the personal information of each family member in the first family spectrum and the second family spectrum according to the generation information corresponding to each family member to obtain a target spectrum.
5. The method of any of claims 1-4, wherein obtaining the first family and the second family to be combined further comprises:
acquiring a family spectrum member adding request sent by a first client, and updating the family spectrum of a member to be added according to personal information of a target family member in the family spectrum member adding request to obtain a first family spectrum;
determining whether a second family profile comprising the target family member exists;
if a second family spectrum comprising the target family member exists, sending a family spectrum merging request to a corresponding second client according to the family spectrum adding request;
and when acquiring the family spectrum combination confirmation information returned by the second client, determining a first family spectrum and a second family spectrum to be combined.
6. The method according to claim 5, wherein the updating the family score of the member to be added according to the personal information of the target family member in the family score member adding request to obtain the first family score comprises:
acquiring personal information of a target family member in the family member adding instruction;
generating genealogy information of the target family member according to the personal information of the target family member;
and adding the family spectrum information of the target family member to the family spectrum of the member to be added to obtain a first family spectrum.
7. The method according to claim 5, wherein before the updating the family score of the member to be added according to the personal information of the target family member in the family score member adding request to obtain the first family score, the method further comprises:
sending the family member adding request to a plurality of block chain nodes in a block chain network so that each block chain node can authenticate the family member adding request;
determining an authentication result of the family spectrum member adding request according to authentication information sent by the plurality of block chain nodes;
and if the authentication result of the family spectrum adding instruction is passed, executing the step of updating the family spectrum of the member to be added according to the personal information of the target family member in the family spectrum member adding request to obtain a first family spectrum.
8. The method of any of claims 1-4, wherein the first block chain comprises a plurality of blocks, and wherein the plurality of blocks are generated according to family member family spectrum information in the first family.
9. A computer device comprising a processor, a memory, and a computer program stored on the memory and executable by the processor, wherein the computer program, when executed by the processor, implements the steps of the block chain based genealogy merging method of any one of claims 1 to 8.
10. A computer-readable storage medium, having a computer program stored thereon, wherein the computer program, when being executed by a processor, implements the steps of the blockchain based genealogy merging method according to any one of claims 1 to 8.
CN202011300494.7A 2020-11-18 2020-11-18 Block chain-based family tree merging method, equipment and storage medium Pending CN112507667A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011300494.7A CN112507667A (en) 2020-11-18 2020-11-18 Block chain-based family tree merging method, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011300494.7A CN112507667A (en) 2020-11-18 2020-11-18 Block chain-based family tree merging method, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112507667A true CN112507667A (en) 2021-03-16

Family

ID=74958646

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011300494.7A Pending CN112507667A (en) 2020-11-18 2020-11-18 Block chain-based family tree merging method, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112507667A (en)

Similar Documents

Publication Publication Date Title
TWI737944B (en) Block chain-based transaction execution method and device, and electronic equipment
EP3560143B1 (en) Data isolation in a blockchain network
US20190229909A1 (en) Key recovery
EP3678346B1 (en) Blockchain smart contract verification method and apparatus, and storage medium
US11372980B2 (en) Blockchains for software component vulnerability databases
CN106611061B (en) Database write-in method and system based on block chain network
CN108932348B (en) Block chain merging processing method and device, block chain node and storage medium
EP3500972B1 (en) Protection feature for data stored at storage service
WO2019228843A1 (en) Blockchain implementing delta storage
CN111177252B (en) Service data processing method and device
CN107579848A (en) The method that common recognition node is dynamically changed in practical Byzantine failure tolerance common recognition mechanism
CN108985934B (en) Block chain modification method and device
CN111510333B (en) Alliance block chain system based on K3S platform, realization method and device
CN110989994A (en) Block chain-based code version management method and device, terminal and storage medium
BR102014028893B1 (en) Method for resolving entities from a plurality of documents; and entity resolution system for entity resolution of a plurality of documents
US20200234293A1 (en) Method and appratus for blockchains with modifiable recorded transactions
CN110022315A (en) Weight management method, device and equipment in a kind of piece of chain type account book
CN112287033A (en) Data synchronization method, equipment and computer readable storage medium
CN112001159A (en) Document generation method and device, electronic equipment and storage medium
CN109885258B (en) Data deleting device and method based on block chain
CN110855441A (en) Method, device and equipment for authenticating electronic identity and storage medium
CN112507667A (en) Block chain-based family tree merging method, equipment and storage medium
CN113361236A (en) Method and device for editing document
CN113312669B (en) Password synchronization method, device and storage medium
CN111339193A (en) Category coding 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