CN114329624A - Bone marrow matching method and device based on block chain, electronic equipment and readable medium - Google Patents

Bone marrow matching method and device based on block chain, electronic equipment and readable medium Download PDF

Info

Publication number
CN114329624A
CN114329624A CN202111626208.0A CN202111626208A CN114329624A CN 114329624 A CN114329624 A CN 114329624A CN 202111626208 A CN202111626208 A CN 202111626208A CN 114329624 A CN114329624 A CN 114329624A
Authority
CN
China
Prior art keywords
node
donation
operator
broadcast message
donor
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.)
Granted
Application number
CN202111626208.0A
Other languages
Chinese (zh)
Other versions
CN114329624B (en
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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202111626208.0A priority Critical patent/CN114329624B/en
Publication of CN114329624A publication Critical patent/CN114329624A/en
Application granted granted Critical
Publication of CN114329624B publication Critical patent/CN114329624B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Storage Device Security (AREA)

Abstract

The invention discloses a bone marrow matching method and device based on a block chain, electronic equipment and a readable medium, and belongs to the technical field of block chains. The method includes receiving a first operator node broadcast message; the first operator node broadcast message is obtained after the operator node signs the registration information of the donation node by using a private key of the operator node under the condition that the operator node checks that the registration information of the donation node is real, and the private key signature of the donation node and the private key signature of the operator node in the first operator node broadcast message are verified by using a public key of the donation node and a public key of the operator node respectively; and under the condition that the verification is passed, inquiring the block chain account book based on the hash value of the donation node, and under the condition that the donation node is determined not to be registered in the block chain, writing the registration information of the donation node into the block chain account book. The method can avoid mass registration of illegal users in the block chain, and improve authenticity of donated bone marrow databases.

Description

Bone marrow matching method and device based on block chain, electronic equipment and readable medium
Technical Field
The invention relates to the technical field of block chains, in particular to a bone marrow matching method and device based on a block chain, electronic equipment and a readable medium.
Background
The matching of bone marrow is the key of bone marrow transplantation, the possibility of rejection of the fully matched bone marrow in the later stage is low, the possibility of rejection of the half matched bone marrow is high, the rejection easily causes pain or transplant failure of a large number of patients, and death is caused by serious to uncontrollable diseases. Therefore, finding a fully compatible bone marrow match is the most desirable outcome for the patient.
The utility model has the advantages of utilize the block chain to carry out the marrow and join in marriage the type and can improve the type matching efficiency, however, if illegal user pretends to donator and carries out magnanimity registration in the block chain, will cause the influence to the authenticity of donation marrow database to influence the efficiency of marrow type matching.
Disclosure of Invention
Therefore, the invention provides a bone marrow typing method and device based on a block chain, an electronic device and a readable medium, which aim to solve the problem that authenticity of a donated bone marrow database is caused by an illegal user pretending to be a donator to be registered in the block chain in the prior art.
In order to achieve the above object, a first aspect of the present invention provides a block chain-based bone marrow typing method applied to an originating node, including:
receiving a first operator node broadcast message; the first operator node broadcast message is obtained after the operator node signs the registration information of the donation node by using a private key of the operator node under the condition that the operator node checks that the registration information of the donation node is real; the registration information of the donation node comprises a donation node hash value, a first donation node encryption result and a public key of the donation node, and the registration information of the donation node is signed by the donation node by using a private key of the donation node before the operator node signs, wherein the donation node hash value is obtained by the donation node through hash calculation on the personal information of the donator according to a pre-agreed algorithm, and the first donation node encryption result is obtained by the donation node through encryption on the personal information of the donation node by using the public key of the operator node;
verifying the private key signature of the donation node and the private key signature of the operator node in the first operator node broadcast message respectively by using the public key of the donation node and the public key of the operator node;
and inquiring a block chain account book based on the hash value of the donation node under the condition that the verification is passed, and writing the registration information of the donation node into the block chain account book under the condition that the donation node is determined not to be registered in the block chain.
Wherein, still include:
receiving a second operator node broadcast message, wherein the second operator node broadcast message is obtained after a private key of an operator node signs registration information of a donated node under the condition that the operator node checks that the registration information of the donated node is real; the registration information of the given node comprises a given node hash value, a first given node encryption result and a public key of the given node, and the registration information of the given node is signed by the given node by using a private key of the given node before the operator node signs, wherein the given node hash value is obtained by carrying out hash calculation on the personal information of the given by the given node according to a predetermined algorithm, and the first given node encryption result is obtained by encrypting the personal information of the given by the given node by using the public key of the operator node;
verifying the private key signature of the donated node and the private key signature of the operator node in the broadcast message of the second operator node respectively by using the public key of the donated node and the public key of the operator node;
and if the verification is passed, inquiring a blockchain account book based on the hash value of the donated node, and writing the registration information of the donated node into the blockchain account book under the condition that the donated node is determined not to be registered in the blockchain.
In order to achieve the above object, a second aspect of the present invention provides a block chain-based bone marrow typing method applied to an operator node, including:
receiving a first donation node broadcast message, wherein the first donation node broadcast message is obtained by a donation node by signing registration information of the donation node by using a private key of the donation node, and the registration information of the donation node comprises a donation node hash value, a first donation node encryption result and a public key of the donation node; the donor node hash value is obtained by the donor node performing hash calculation on the personal information of the donor according to a predetermined algorithm, and the first donor node encryption result is obtained by the donor node encrypting the personal information of the donor by using the public key of the operator node;
verifying the private key signature of the donated node in the first donated node broadcast message by using the public key of the donated node;
under the condition that the verification is passed, decrypting the encrypted result of the first donation node by using a private key of the operator node to obtain the personal information of the donator;
verifying authenticity of the personal information of the donor based on the personal information of the donor and a database of the operator node;
under the condition that the personal information of the donor is verified to be authentic, signing the registration information of the donor again by using the private key of the operator node, obtaining a first operator node broadcast message and broadcasting the message in a block chain, verifying the private key signature of the donor node and the private key signature of the operator node in the first operator node broadcast message by using the public key of the donor node and the public key of the operator node respectively by using the originator node, and writing the registration information of the donor node into the block chain account book under the condition that the verification is passed and under the condition that the donor node is confirmed not to be registered in the block chain based on the hash value of the donor node and the block chain account book.
Wherein, still include:
receiving a first gifted node broadcast message, wherein the first gifted node broadcast message is obtained by a gifted node by signing registration information of a gifted node by using a private key of the gifted node, and the registration information of the gifted node comprises a gifted node hash value, a first gifted node encryption result and a public key of the gifted node; the hash value of the given node is obtained by the given node performing hash calculation on the personal information of the given person according to a predetermined algorithm, and the first encryption result of the given node is obtained by the given node encrypting the personal information of the given person by using the public key of the operator node;
verifying the private key signature of the donated node in the first donated node broadcast message by using the public key of the donated node;
under the condition that the verification is passed, decrypting the encrypted result of the first donated node by using a private key of the operator node to obtain the personal information of the donated person;
verifying authenticity of the recipient's personal information based on the recipient's personal information and a database of the operator node;
under the condition that the personal information of the donate is verified to be authentic, signing the registration information of the donate node again by using the private key of the operator node, obtaining a second operator node broadcast message and broadcasting the second operator node broadcast message in a block chain, enabling an initiating node to verify the private key signature of the donate node and the private key signature of the operator node in the second operator node broadcast message by using the public key of the donate node and the public key of the operator node respectively, and writing the registration information of the donate node into the block chain account book under the condition that the verification is passed and under the condition that the donate node is confirmed not to be registered in the block chain based on the hash value of the donate node and the block chain account book.
In order to achieve the above object, a third aspect of the present invention provides a block chain-based bone marrow typing method applied to a donation node, comprising:
encrypting the personal information of the donor by using the public key of the operator node to obtain a first donation node encryption result;
carrying out Hash calculation on the personal information of the donor according to a predetermined algorithm to obtain a Hash value of a donor node;
generating registration information of the donation node based on the donation node hash value, the first donation node encryption result and the public key of the donation node, signing the registration information of the donation node by using the private key of the donation node, obtaining a first donation node broadcast message and broadcasting the first donation node broadcast message in a block chain so that an operator node checks personal information of the donation node based on the registration information, signing the registration information again by using the private key of the operator node if the check is passed, obtaining and broadcasting a first operator node broadcast message in the block chain, respectively verifying the private key signature of the donation node and the private key signature of the operator node in the first operator node broadcast message by using the public key of the donation node and the public key of the operator node, and if the verification is passed, and writing the registration information of the donation node into the blockchain account book under the condition that the donation node is not registered in the blockchain based on the hash value of the donation node and the blockchain account book.
In order to achieve the above object, a fourth aspect of the present invention provides a block chain-based bone marrow typing method applied to a donated node, including:
encrypting the personal information of the donator by using the public key of the operator node to obtain an encryption result of the first donated node;
carrying out Hash calculation on the personal information of the recipient according to a predetermined algorithm to obtain a Hash value of the recipient node;
generating registration information of the given node based on the hash value of the given node, the encryption result of the first given node and the public key of the given node, signing the registration information of the given node by using the private key of the given node, obtaining a first given node broadcast message and broadcasting the first given node broadcast message in a block chain, so that an operator node can check personal information of a given person based on the registration information of the given node, and if the check is passed, signing the registration information of the given node again by using the private key of the operator node, obtaining a second operator node broadcast message and broadcasting the second operator node broadcast message in the block chain, so that an originator node can respectively verify the private key signature of the given node and the private key signature of the operator node in the second operator node broadcast message by using the public key of the given node and the public key of the operator node, and writing the registration information of the donated node into the blockchain account book under the condition that the verification is passed and under the condition that the donated node is not registered in the blockchain based on the hash value of the donated node and the blockchain account book.
In order to achieve the above object, a fifth aspect of the present invention provides a block chain-based bone marrow typing device applied to an originating node, comprising:
a first receiving module, configured to receive a first operator node broadcast message; the first operator node broadcast message is obtained after the operator node signs the registration information of the donation node by using a private key of the operator node under the condition that the operator node checks that the registration information of the donation node is real; the registration information of the donation node comprises a donation node hash value, a first donation node encryption result and a public key of the donation node, and the registration information of the donation node is signed by the donation node by using a private key of the donation node before the operator node signs, wherein the donation node hash value is obtained by the donation node through hash calculation on the personal information of the donator according to a pre-agreed algorithm, and the first donation node encryption result is obtained by the donation node through encryption on the personal information of the donation node by using the public key of the operator node;
a first verification module, configured to verify, by using the public key of the donation node and the public key of the operator node, the private key signature of the donation node and the private key signature of the operator node in the first operator node broadcast message, respectively;
the query module is used for querying a block chain account book based on the donation node hash value under the condition that the verification is passed;
and the writing module is used for writing the registration information of the donation node into the block chain account book under the condition that the donation node is determined not to be registered in the block chain.
In order to achieve the above object, a sixth aspect of the present invention provides a device for bone marrow typing based on a blockchain, applied to an operator node, comprising:
the second receiving module is used for receiving a first donation node broadcast message, wherein the first donation node broadcast message is obtained by a donation node by signing registration information of the donation node through a private key of the donation node, and the registration information of the donation node comprises a donation node hash value, a first donation node encryption result and a public key of the donation node; the donor node hash value is obtained by the donor node performing hash calculation on the personal information of the donor according to a predetermined algorithm, and the first donor node encryption result is obtained by the donor node encrypting the personal information of the donor by using the public key of the operator node;
the second verification module is used for verifying the private key signature of the donation node in the first donation node broadcast message by using the public key of the donation node;
the decryption module is used for decrypting the encrypted result of the first donation node by using the private key of the operator node under the condition that the verification is passed, so as to obtain the personal information of the donator;
a verification module for verifying authenticity of the personal information of the donor based on the personal information of the donor and a database of the operator node;
and a second signature module, configured to, under a condition that the personal information of the donor is verified to be authentic, sign the registration information of the donor again by using the private key of the operator node, obtain a first operator node broadcast message and broadcast the message in a block chain, so that an originator node verifies the private key signature of the donor node and the private key signature of the operator node in the first operator node broadcast message by using the public key of the donor node and the public key of the operator node, respectively, and write the registration information of the donor node into the block chain account book when the verification passes and when the registration of the donor node in the block chain is confirmed based on the hash value of the donor node and the block chain account book.
In order to achieve the above object, a seventh aspect of the present invention provides a device for bone marrow typing based on a blockchain, applied to a donation node, comprising:
the first encryption module is used for encrypting the personal information of the donor by using the public key of the operator node to obtain an encryption result of the first donor node;
the first calculation module is used for carrying out Hash calculation on the personal information of the donor according to a predetermined algorithm to obtain a Hash value of a donor node;
the first signature module is used for generating the registration information of the donation node based on the hash value of the donation node, the encryption result of the first donation node and the public key of the donation node, and signing the registration information of the donation node by using the private key of the donation node to obtain a first donation node broadcast message;
a first broadcasting module for broadcasting the first donation node broadcast message in a blockchain for an operator node to check personal information of donors based on the registration information, and signing the registration information again by using the private key of the operator node under the condition that the check is passed, obtaining and broadcasting a first operator node broadcast message in the block chain, the originator node verifies the private key signature of the donor node and the private key signature of the operator node in the first operator node broadcast message respectively by using the public key of the donor node and the public key of the operator node, and if the verification passes, and writing the registration information of the donation node into the blockchain account book under the condition that the donation node is not registered in the blockchain based on the hash value of the donation node and the blockchain account book.
In order to achieve the above object, an eighth aspect of the present invention provides a device for bone marrow typing based on a blockchain, applied to a donated node, comprising:
the second encryption module is used for encrypting the personal information of the recipient by using the public key of the operator node to obtain an encryption result of the first recipient node;
the second calculation module is used for carrying out Hash calculation on the personal information of the recipient according to a predetermined algorithm to obtain a Hash value of the recipient node;
the second signature module is used for generating the registration information of the given node based on the Hash value of the given node, the encryption result of the first given node and the public key of the given node, and signing the registration information of the given node by using the private key of the given node to obtain a first given node broadcast message;
a second broadcasting module for broadcasting the first gifted node broadcast message in a blockchain for an operator node to check personal information of a gifted based on registration information of the gifted node, and signing the registration information of the donated node again by using the private key of the operator node under the condition that the verification is passed, obtaining a broadcast message of a second operator node and broadcasting the broadcast message in the block chain, the originator node verifies the private key signature of the donated node and the private key signature of the operator node in the broadcast message of the second operator node respectively by using the public key of the donated node and the public key of the operator node, and if the verification is passed, and writing the registration information of the donated node into the blockchain account book under the condition that the donated node is not registered in the blockchain based on the hash value of the donated node and the blockchain account book.
In order to achieve the above object, a ninth aspect of the present invention provides an electronic apparatus comprising:
one or more processors;
memory having one or more programs stored thereon that, when executed by the one or more processors, cause the one or more processors to implement the method according to any one of the first, second, third and fourth aspects;
one or more I/O interfaces connected between the processor and the memory and configured to enable information interaction between the processor and the memory.
In order to achieve the above object, a tenth aspect of the present invention provides a computer-readable medium on which a computer program is stored, which program, when executed by a processor, implements the method according to any one of the first, second, third and fourth aspects.
The invention has the following advantages:
the embodiment of the application provides a marrow typing method and device based on a block chain, an electronic device and a storage medium, after receiving a first operator node broadcast message, a private key signature in the first operator node broadcast message is verified, and under the condition that the verification is passed and the condition that a donation node is determined not to be registered in the block chain, the registration information of the donation node is written into a block chain account book, so that the registration of an illegal user in the block chain is avoided, the mass attack of the illegal user is avoided, the authenticity of a donation marrow database is improved, and the marrow typing efficiency is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a diagram illustrating an application scenario of a block chain-based bone marrow typing method according to an embodiment of the present application;
FIG. 2 is a flow chart of a blockchain-based bone marrow typing method according to an embodiment of the present disclosure;
FIG. 3 is a flow chart of a blockchain-based bone marrow typing method according to an embodiment of the present disclosure;
FIG. 4 is a flow chart of a blockchain-based bone marrow typing method according to an embodiment of the present disclosure;
FIG. 5 is a flow chart of a blockchain-based bone marrow typing method according to an embodiment of the present disclosure;
FIG. 6 is a schematic block diagram of a device for bone marrow profiling based on a blockchain according to an embodiment of the present disclosure;
FIG. 7 is a schematic block diagram of a device for bone marrow profiling based on a blockchain according to an embodiment of the present disclosure;
FIG. 8 is a schematic block diagram of a device for bone marrow profiling based on a blockchain according to an embodiment of the present disclosure;
FIG. 9 is a schematic block diagram of a device for bone marrow profiling based on a blockchain according to an embodiment of the present disclosure;
FIG. 10 is a flow chart of a blockchain-based bone marrow typing method according to an embodiment of the present disclosure;
fig. 11 is a functional block diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present invention, are given by way of illustration and explanation only, not limitation.
As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
When the terms "comprises" and/or "comprising … …" are used in this specification, the presence of stated features, integers, steps, operations, elements, and/or components are specified, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and the present invention and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
Fig. 1 is a diagram of an application scenario of a block chain-based bone marrow typing method according to an embodiment of the present application. As shown in fig. 1, the block chain-based bone marrow typing method involves a donated node 11, a donated node 12, an originating node 13, and an operator node 14, wherein the donated node 11 is a node used by a donate, and each donated node corresponds to one donate. The recipients send messages to the blockchain 15 or receive messages from the blockchain 15 through the recipient nodes 11, the donor nodes 12 are the nodes used by the donors, and each donor node corresponds to one donor. The donor sends messages to the blockchain 15 or receives messages from the blockchain 15 through the donor node 12.
The originating node 13 is used to manage a blockchain ledger that records registration information by the recipient node 11 and the donor node 12. The registration information at least comprises a public key and an identification of each node.
The operator node 14 is used to verify the authenticity of the personal information performed by the donor node 12 and the recipient node 11 to assist the registration process of the originator node 13.
In some embodiments, after the donation node accesses the block chain, in order to save the electric quantity and the storage space of the used terminal, all the accounts of the block chain need not be synchronized, only the accounts of the block chain need to be synchronized, and the public key and the identifier of the operator node can be obtained by querying the block chain accounts.
In this embodiment, each node has its own blockchain public key and blockchain private key, and for convenience of description, the blockchain public key is simply referred to as a public key and the blockchain private key is simply referred to as a private key in this embodiment.
In a first aspect, an embodiment of the present application provides a bone marrow typing method based on a block chain, which is applied to a starting node, and can avoid massive attacks from an illegal user, thereby improving authenticity of donation of a bone marrow database, and improving efficiency of bone marrow typing.
Fig. 2 is a flowchart of a method for bone marrow typing based on a blockchain according to an embodiment of the present disclosure. As shown in fig. 2, the method for bone marrow typing based on blockchain includes:
step S201, receiving a first operator node broadcast message.
The first operator node broadcast message is obtained after the operator node signs the registration information of the donation node by using a private key of the operator node under the condition that the operator node checks that the registration information of the donation node is real.
In some embodiments, the registration information of the donor node includes a donor node hash value, a first donor node encryption result and a public key of the donor node, and the registration information of the donor node is signed by the donor node using its private key before the operator node signs, where the donor node hash value is obtained by the donor node performing hash calculation on the personal information of the donor according to a predetermined algorithm, and the first donor node encryption result is obtained by the donor node encrypting the personal information of the donor using the public key of the operator node.
In some embodiments, the step of the operator node checking the registration information of the donor node comprises: the operator node verifies the private key signature of the donation node by using the public key of the donation node in the first operator node broadcast message, extracts the first donation node encryption result from the first operator node broadcast message under the condition that the verification is passed, decrypts the first donation node encryption result by using the private key of the operator node, and obtains the personal information of the donator. The personal information of the donor includes, but is not limited to, the name, identification number, and contact number of the donor.
Inquiring a database of an operator node based on the identification card number of the donor, verifying whether the personal information of the donor is consistent with the personal information in the database, if so, signing the personal information of the donor by using a private key of the operator, namely, signing the personal information of the donor by using the private key of the donor, and simultaneously, signing by using the private key of the operator node to obtain the broadcast message of the first operator node.
Step S202, the public key of the donation node and the public key of the operator node are used for respectively verifying the private key signature of the donation node and the private key signature of the operator node in the first operator node broadcast message.
Step S203, under the condition that the verification is passed, inquiring a block chain account book based on the hash value of the donation node, and under the condition that the donation node is determined not to be registered in the block chain, writing the registration information of the donation node into the block chain account book.
In the method provided by this embodiment, the originator node verifies the blockchain account book again when the private key signature in the first operator node broadcast message passes verification, so that a donation node can only register in the blockchain once, thereby avoiding mass registration of an illegal user in the blockchain, improving authenticity of the donation marrow database, and improving efficiency of marrow typing.
In some embodiments, the blockchain-based bone marrow typing method further comprises:
step S21, a second operator node broadcast message is received.
The second operator node broadcast message is obtained after the operator node signs the registration information of the donated node by using the private key of the operator node under the condition that the operator node checks that the registration information of the donated node is real.
In some embodiments, the registration information of the gifted node includes a gifted node hash value, a first gifted node encryption result and a public key of the gifted node, and the registration information of the gifted node is signed by the gifted node by using a private key of the gifted node before the operator node signs, wherein the gifted node hash value is obtained by the gifted node through hash calculation on personal information of the gifted person according to a predetermined algorithm, and the first gifted node encryption result is obtained by the gifted node through encryption on the personal information of the gifted person by using the public key of the operator node.
In some embodiments, the step of the operator node checking the registration information of the donor node comprises: and the operator node verifies the private key signature of the donated node by using the public key of the donated node in the broadcast message of the second operator node, extracts the encrypted result of the first donated node from the broadcast message of the second operator node under the condition that the verification is passed, and decrypts the encrypted result of the first donated node by using the private key of the operator node to obtain the personal information of the donator. The personal information of the recipient includes, but is not limited to, the name, identification number, and contact phone of the recipient.
And inquiring a database of the operator node based on the recipient identity card number, verifying whether the personal information of the recipient is consistent with the personal information of the recipient in the database, if so, signing the personal information of the recipient by using a private key of the provider, namely, signing the personal information of the recipient by the private key of the recipient node, and simultaneously, signing by using the private key of the operator node to obtain the broadcast message of the second operator node.
And step S22, verifying the private key signature of the donated node and the private key signature of the operator node in the broadcast message of the second operator node respectively by using the public key of the donated node and the public key of the operator node.
And step S23, when the verification is passed, inquiring the blockchain account book based on the hash value of the donated node, and when the donated node is determined not to be registered in the blockchain, writing the registration information of the donated node into the blockchain account book.
In this embodiment, the originator node verifies the blockchain ledger when the private key signature in the second operator node broadcast message passes the verification, so that a given node can only register in the blockchain once, thereby avoiding the registration of an illegal user in the blockchain and avoiding the phenomenon of resale of bone marrow.
In a second aspect, an embodiment of the present application provides a marrow typing method based on a block chain, which is applied to an operator node, and can avoid massive attacks from illegal users, improve authenticity of donated marrow databases, and thus improve efficiency of marrow typing.
Fig. 3 is a flowchart of a method for block chain-based bone marrow typing according to an embodiment of the present disclosure. As shown in fig. 3, the method for bone marrow typing based on blockchain includes:
step S301, receiving a first donation node broadcast message.
The first donation node broadcast message is obtained by the donation node by signing the registration information of the donation node by using a private key of the donation node.
The registration information of the donation node comprises a donation node Hash value, a first donation node encryption result and a public key of the donation node; the hash value of the donation node is obtained by the donation node through hash calculation on the personal information of the donator according to a predetermined algorithm, and the first donation node encryption result is obtained by the donation node through encryption on the personal information of the donator by using a public key of the operator node. The personal information of the donor includes, but is not limited to, the name, identification number, and contact number of the donor.
Step S302, the public key of the donation node is used to verify the private key signature of the donation node in the first donation node broadcast message.
The operator node verifies the private key signature of the donor node in the first donor node broadcast message using the public key of the donor node.
And step S303, under the condition that the verification is passed, decrypting the encrypted result of the first donation node by using the private key of the operator node to obtain the personal information of the donator.
And under the condition that the private key signature is verified by the operator node, extracting the first donation node encryption result from the first donation node broadcast message, and decrypting the first donation node encryption result by using the private key of the operator node to obtain the personal information of the donator.
Step S304, the authenticity of the personal information of the donor is checked based on the personal information of the donor and the database of the operator node.
The operator node queries a database of the operator node based on the identification card number of the donor, and verifies whether the personal information of the donor is consistent with the personal information in the database, if so, the personal information of the donor extracted from the broadcast message of the first donor node is consistent with the personal information of the donor stored in the database, the personal information of the donor is true, otherwise, the personal information of the donor is determined to be not true.
Step S305, under the condition of checking that the personal information of the donor is real, signing the registration information of the donor again by using the private key of the operator node, obtaining a first operator node broadcast message and broadcasting in the blockchain.
Broadcasting a first operator node broadcast message in the block chain, so that an originating node verifies a private key signature of a donation node and a private key signature of an operator node in the first operator node broadcast message respectively by using a public key of the donation node and a public key of the operator node, and writing registration information of the donation node into a block chain account book under the condition that the verification is passed and the condition that the registration of the donation node in the block chain is not confirmed based on a hash value of the donation node and the block chain account book.
In the method provided by this embodiment, the operator node verifies the identity of the donor, and sends the first operator node broadcast message when the verification passes, so that the originator node verifies the block chain account book again when the verification passes on the private key signature in the first operator node broadcast message, and thus, one donor node can only register in the block chain once, thereby avoiding mass registration of an illegal user in the block chain, improving the authenticity of the donation bone marrow database, and improving the efficiency of bone marrow typing.
In some embodiments, the blockchain-based bone marrow typing method further comprises:
step S31, receiving the first donor node broadcast message.
The first donated node broadcast message is obtained by the donated node by signing the registration information of the donated node by using a private key of the donated node.
The registration information of the given node comprises a hash value of the given node, an encryption result of the first given node and a public key of the given node; the hash value of the given node is obtained by the given node performing hash calculation on the personal information of the given person according to a predetermined algorithm, and the first encryption result of the given node is obtained by the given node encrypting the personal information of the given person by using the public key of the operator node. The recipient's personal information includes, but is not limited to, the name, identification number, and contact phone of the donor.
Step S32, verifying the private key signature of the donor-recipient node in the first donor-recipient node broadcast message using the public key of the donor-recipient node.
The operator node verifies the private key signature of the recipient node in the first donor node broadcast message using the public key of the recipient node.
And step S33, in the case of passing the verification, decrypting the encrypted result of the first donated node by using the private key of the operator node to obtain the personal information of the donated person.
And under the condition that the private key signature is verified, the operator node extracts the first given-as-you-go node encryption result from the first given-as-you-go node broadcast message, decrypts the first given-as-you-go node encryption result by using the private key of the operator node, and obtains the personal information of the given-as-you-go.
Step S34, the authenticity of the recipient 'S personal information is checked based on the recipient' S personal information and the database of the operator node.
And the operator node inquires a database of the operator node based on the identity card number of the donate, and verifies whether the personal information of the donate is consistent with the personal information in the database, if the personal information of the donate extracted from the broadcast message of the first donate node is consistent with the personal information of the donate stored in the database, the personal information of the donate is true, otherwise, the personal information of the donate is determined to be not true.
And step S35, under the condition that the personal information of the recipient is verified, signing the registration information of the recipient node again by using the private key of the operator node, obtaining the second operator node broadcast message and broadcasting the second operator node broadcast message in the blockchain, so that the initiating node verifies the private key signature of the recipient node and the private key signature of the operator node in the second operator node broadcast message by using the public key of the recipient node and the public key of the operator node respectively, and under the condition that the verification is passed and the condition that the recipient node confirms that the recipient node is not registered in the blockchain based on the hash value of the recipient node and the blockchain account book, writing the registration information of the recipient node into the blockchain account book.
In this embodiment, the operator node verifies the identity of the recipient, and sends the second operator node broadcast message when the verification passes, so that the originator node verifies the block chain ledger under the condition that the private key signature in the second operator node broadcast message passes the verification, and then one recipient node can only register in the block chain once, thereby avoiding the registration of an illegal user in the block chain, and avoiding the phenomenon of selling bone marrow.
In a third aspect, an embodiment of the present application provides a bone marrow typing method based on a block chain, which is applied to a donation node, and can avoid a massive attack of an illegal user, improve authenticity of a donation bone marrow database, and thus improve efficiency of bone marrow typing.
Fig. 4 is a flowchart of a method for block chain-based bone marrow typing according to an embodiment of the present disclosure. As shown in fig. 4, the method for bone marrow typing based on blockchain includes:
step S401, the public key of the operator node is used for encrypting the personal information of the donor, and a first donor node encryption result is obtained.
The embodiment encrypts the personal information of the donor, so that the privacy of the personal information of the donor can be improved. The personal information of the donor includes, but is not limited to, the name, identification number, contact phone number of the donor.
Step S402, carrying out Hash calculation on the personal information of the donor according to a predetermined algorithm to obtain a Hash value of the donor node.
In some embodiments, the donation node performs hash calculation on the name and identification number of the donator according to a predetermined algorithm to obtain a hash value of the donation node. The donation node hash value may serve as a unique identifier of the donation node in the blockchain, where the pre-agreed algorithm may be any algorithm suitable for hash calculation, and this embodiment does not limit this.
Step S403, generating registration information of the donation node based on the hash value of the donation node, the encryption result of the first donation node, and the public key of the donation node, and signing the registration information of the donation node by using the private key of the donation node, obtaining a broadcast message of the first donation node, and broadcasting in the blockchain.
Broadcasting a first donation node broadcast message in the block chain to allow an operator node to check personal information of a donator based on the registration information, signing the registration information again by using a private key of the operator node under the condition that the check is passed, obtaining and broadcasting the first operator node broadcast message in the block chain, allowing an originator node to respectively verify the private key signature of the donation node and the private key signature of the operator node in the first operator node broadcast message by using a public key of the donation node and a public key of the operator node, and writing the registration information of the donation node into the block chain account book under the condition that the verification is passed and under the condition that the registration of the donation node in the block chain is not confirmed based on a hash value of the donation node and the block chain account book.
The specific way for the operator node to check the personal information of the donor can refer to the content in the second aspect of the embodiment of the present application, which is not described herein again. The specific manner of registering the registration information of the donor node by the originator node may refer to the content of the first aspect of the embodiment of the present application, which is not described herein again.
According to the marrow typing method based on the block chain, after the donation nodes broadcast the first donation node broadcast messages in the block chain, the operator node verifies the registration information of the donation nodes in the first donation node broadcast messages, and under the condition that the verification is passed, the first operator node broadcast messages are broadcast in the block chain, and the originator node verifies the block chain account book under the condition that the private key signature in the first operator node broadcast messages is passed, so that one donation node can only register in the block chain once, mass registration of illegal users in the block chain is avoided, authenticity of a donation marrow database is improved, and marrow typing efficiency is improved.
In a fourth aspect, an embodiment of the present application provides a bone marrow typing method based on a block chain, which is applied to a donated node, and can avoid registration of an illegal user, thereby avoiding a phenomenon of selling bone marrow backwards.
Fig. 5 is a flowchart of a method for block chain-based bone marrow typing according to an embodiment of the present disclosure. As shown in fig. 5, the method for bone marrow typing based on blockchain includes:
step S501, the public key of the operator node is used for encrypting the personal information of the donator, and a first donated node encryption result is obtained.
The embodiment encrypts the personal information of the recipient, so that the privacy of the personal information of the recipient can be improved. The recipient's personal information includes, but is not limited to, the recipient's name, identification number, contact phone number.
Step S502, carrying out Hash calculation on the personal information of the recipient according to a predetermined algorithm to obtain a Hash value of the recipient node.
In some embodiments, the gifted node performs hash calculation on the name and the identity card number of the gifted person according to a pre-agreed algorithm to obtain a hash value of the gifted node. The hash value of the donated node may serve as a unique identifier of the donated node in the blockchain, where the pre-agreed algorithm may be any algorithm suitable for hash calculation, and this embodiment does not limit this.
Step S503, generating registration information of the given node based on the Hash value of the given node, the encryption result of the first given node and the public key of the given node, and signing the registration information of the given node by using the private key of the given node to obtain a broadcast message of the first given node and broadcast the broadcast message in the blockchain.
Broadcasting a first donated node broadcast message in the block chain, so that an operator node checks personal information of a donate based on registration information of the donated node, signing the registration information of the donated node again by using a private key of the operator node under the condition that the check is passed, obtaining a second operator node broadcast message and broadcasting the second operator node broadcast message in the block chain, so that an initiating node verifies the private key signature of the donated node and the private key signature of the operator node in the second operator node broadcast message by using a public key of the donated node and a public key of the operator node respectively, and writing the registration information of the donated node into a block chain account book under the condition that the verification is passed and under the condition that the registration of the donated node in the block chain is not confirmed based on a hash value of the donated node and the block chain account book.
The specific way for the operator node to check the personal information of the donor may refer to the content in the second aspect of the embodiment of the present application, which is not described herein again. For a specific manner of registering the registration information of the gifted node by the originating node, reference may be made to the content of the first aspect in the embodiment of the present application, which is not described herein again.
According to the marrow typing method based on the block chain, after the given node broadcasts the first given node broadcast message in the block chain, the operator node verifies the registration information of the given node in the first given node broadcast message, and broadcasts the second operator node broadcast message in the block chain under the condition that the verification is passed, and the starting node verifies the block chain account book under the condition that the signature of the private key in the second operator node broadcast message passes, so that one given node can only be registered in the block chain once, the registration of an illegal given node in the block chain is avoided, and the phenomenon of selling bone marrow backwards can be avoided.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
In a fifth aspect, an embodiment of the present application provides a marrow typing device based on a block chain, which is applied to a starting node, and can avoid massive attacks from an illegal user, thereby improving authenticity of donation of a marrow database, and improving efficiency of marrow typing.
Fig. 6 is a schematic block diagram of a device for bone marrow typing based on a blockchain according to an embodiment of the present disclosure. As shown in fig. 6, a blockchain-based bone marrow typing device 600 includes:
a first receiving module 601, configured to receive a first operator node broadcast message.
The first operator node broadcast message is obtained after the operator node signs the registration information of the donation node by using a private key of the operator node under the condition that the operator node checks that the registration information of the donation node is real.
In some embodiments, the registration information of the donor node includes a donor node hash value, a first donor node encryption result and a public key of the donor node, and the registration information of the donor node is signed by the donor node using its private key before the operator node signs, where the donor node hash value is obtained by the donor node performing hash calculation on the personal information of the donor according to a predetermined algorithm, and the first donor node encryption result is obtained by the donor node encrypting the personal information of the donor using the public key of the operator node.
The first verifying module 602 is configured to verify the private key signature of the donor node and the private key signature of the operator node in the first operator node broadcast message by using the public key of the donor node and the public key of the operator node, respectively.
And the query module 603 is configured to query the blockchain ledger based on the donation node hash value if the verification passes.
A writing module 604, configured to write the registration information of the donation node into the blockchain ledger if it is determined that the donation node is not registered in the blockchain.
The marrow type matching device based on the block chain provided by the embodiment, after the first receiving module receives the first operator broadcast message, the first signature verifying module is used for verifying the private key signature in the first operator node broadcast message, and under the condition that the verification is passed, the query module queries the block chain account book to verify that the donation node is not registered in the block chain.
In some embodiments, blockchain-based bone marrow typing device 600 further comprises:
the receiving module 601 is further configured to receive a second operator node broadcast message.
The second operator node broadcast message is obtained after the operator node signs the registration information of the donated node by using the private key of the operator node under the condition that the operator node checks that the registration information of the donated node is real.
In some embodiments, the registration information of the gifted node includes a gifted node hash value, a first gifted node encryption result and a public key of the gifted node, and the registration information of the gifted node is signed by the gifted node by using a private key of the gifted node before the operator node signs, wherein the gifted node hash value is obtained by the gifted node through hash calculation on personal information of the gifted person according to a predetermined algorithm, and the first gifted node encryption result is obtained by the gifted node through encryption on the personal information of the gifted person by using the public key of the operator node.
The first verifying module 602 is further configured to verify the private key signature of the gifted node and the private key signature of the operator node in the broadcast message of the second operator node by using the public key of the gifted node and the public key of the operator node, respectively.
The query module 603 is further configured to query the blockchain ledger based on the hash value of the donated node if the verification passes.
The writing module 604 is further configured to write the registration information of the donated node into the blockchain ledger if it is determined that the donated node is not registered in the blockchain.
In the marrow typing device based on the block chain provided by this embodiment, after the first receiving module receives the second operator broadcast message, the first signature verifying module is used to verify the private key signature in the second operator node broadcast message, and when the verification passes, the query module queries the block chain account book to verify that the given node is not registered in the block chain, and then the write-in module writes the registration information of the given node into the block chain account book, so that one given node can only be registered in the block chain once, thereby avoiding that an illegal given node is registered in the block chain and avoiding that the marrow is sold backwards.
The functions or modules included in the apparatus provided in the embodiments of the present disclosure may be used to execute the method described in the method embodiment of the first aspect, and specific implementation and technical effects thereof may refer to the description of the method embodiment above, and for brevity, are not described here again.
In a sixth aspect, an embodiment of the present application provides a marrow typing device based on a block chain, which is applied to an operator node, and can avoid massive attacks by illegal users, improve authenticity of donation of a marrow database, and thus improve efficiency of marrow typing.
Fig. 7 is a schematic block diagram of a device for bone marrow typing based on a blockchain according to an embodiment of the present disclosure. As shown in fig. 7, a blockchain-based bone marrow typing device 700 includes:
a second receiving module 701, configured to receive the first donation node broadcast message.
The first donation node broadcast message is obtained by the donation node by signing the registration information of the donation node by using a private key of the donation node, and the registration information of the donation node comprises a donation node hash value, a first donation node encryption result and a public key of the donation node; the hash value of the donation node is obtained by the donation node through hash calculation on the personal information of the donator according to a predetermined algorithm, and the first donation node encryption result is obtained by the donation node through encryption on the personal information of the donator by using a public key of the operator node.
A second verifying module 702, configured to verify the private key signature of the donated node in the first donated node broadcast message by using the public key of the donated node.
And the decryption module 703 is configured to decrypt the encrypted result of the first donation node by using the private key of the operator node under the condition that the verification is passed, so as to obtain the personal information of the donator.
A checking module 704 for checking authenticity of the personal information of the donor based on the personal information of the donor and the database of the operator node.
The operator signing module 705 is configured to sign the registration information of the donor again by using the private key of the operator node under the condition that the personal information of the donor is verified to be authentic, obtain a first operator node broadcast message, and broadcast the first operator node broadcast message in the blockchain.
Broadcasting a first operator node broadcast message in the block chain, so that an originating node verifies a private key signature of a donation node and a private key signature of an operator node in the first operator node broadcast message respectively by using a public key of the donation node and a public key of the operator node, and writing registration information of the donation node into a block chain account book under the condition that the verification is passed and the condition that the registration of the donation node in the block chain is not confirmed based on a hash value of the donation node and the block chain account book.
The marrow typing device based on the block chain provided by the embodiment, after the second receiving module receives the broadcast message of the first donation node, under the condition that the signature of the private key of the donation node is verified by the second verifying module, the encrypted result of the first donation node is decrypted by the decrypting module and personal information of a donator is obtained, after the verification module verifies the authenticity of the personal information of the donator, the operator signature module sends the broadcast message of the first operator node, so that the originator node verifies the account book of the block chain under the condition that the signature of the private key in the broadcast message of the first operator node passes through, one donation node can only register once in the block chain, mass registration of illegal users in the block chain is avoided, the authenticity of a donation marrow database is improved, and the marrow typing efficiency is improved.
In some embodiments, blockchain-based bone marrow typing device 700 further comprises:
the second receiving module 701 is further configured to receive the first donated node broadcast message.
The first donated node broadcast message is obtained by the donated node by signing the registration information of the donated node by using a private key of the donated node.
The registration information of the given node comprises a hash value of the given node, an encryption result of the first given node and a public key of the given node; the hash value of the given node is obtained by the given node performing hash calculation on the personal information of the given person according to a predetermined algorithm, and the first encryption result of the given node is obtained by the given node encrypting the personal information of the given person by using the public key of the operator node. The recipient's personal information includes, but is not limited to, the name, identification number, and contact phone of the donor.
The second verification module 702 is further configured to verify the private key signature of the gifted node in the first gifted node broadcast message by using the public key of the gifted node.
The decryption module 703 is further configured to decrypt the encrypted result of the first donated node by using the private key of the operator node to obtain the personal information of the donated person, if the verification passes.
A checking module 704 for checking the authenticity of the personal information of the recipient based on the personal information of the recipient and the database of the operator node.
The operator signing module 705 is further configured to, under the condition that the personal information of the recipient is verified to be authentic, sign the registration information of the recipient node again by using the private key of the operator node, obtain a second operator node broadcast message and broadcast the second operator node broadcast message in the blockchain, so that the originator node verifies the private key signature of the recipient node and the private key signature of the operator node in the second operator node broadcast message by using the public key of the recipient node and the public key of the operator node, and writes the registration information of the recipient node into the blockchain ledger when the verification passes and when the recipient node hash value and the blockchain ledger confirm that the recipient node is not registered in the blockchain.
The functions or modules included in the apparatus provided in the embodiment of the present disclosure may be used to execute the method described in the second aspect of the method embodiment, and specific implementation and technical effects thereof may refer to the description of the method embodiment above, and for brevity, are not described here again.
In a seventh aspect, an embodiment of the present application provides a marrow typing device based on a block chain, which is applied to a donation node, and can avoid a massive attack of an illegal user, thereby improving authenticity of a donation marrow database, and improving efficiency of marrow typing.
Fig. 8 is a schematic block diagram of a device for bone marrow typing based on a blockchain according to an embodiment of the present disclosure. As shown in fig. 8, a blockchain-based bone marrow typing device 800 includes:
the first encryption module 801 is configured to encrypt the personal information of the donor by using the public key of the operator node, and obtain an encryption result of the first donor node.
The first calculating module 802 is configured to perform hash calculation on the personal information of the donor according to a predetermined algorithm to obtain a hash value of the donor node.
The first signature module 803 is configured to generate the registration information of the donation node based on the hash value of the donation node, the encryption result of the first donation node, and the public key of the donation node, and sign the registration information of the donation node using the private key of the donation node to obtain the broadcast message of the first donation node.
A first broadcasting module 804, configured to broadcast a first donation node broadcast message in the blockchain, so that the operator node checks personal information of the donator based on the registration information, and signs the registration information again by using a private key of the operator node when the check passes, obtains and broadcasts the first operator node broadcast message in the blockchain, so that the originator node verifies a private key signature of the donation node and a private key signature of the operator node in the first operator node broadcast message by using a public key of the donation node and a public key of the operator node, respectively, and writes the registration information of the donation node into the blockchain account book when the verification passes and when the donation node is confirmed not to be registered in the blockchain based on the donation node hash value and the blockchain account book.
The functions or modules included in the apparatus provided in the embodiment of the present disclosure may be used to execute the method described in the embodiment of the third aspect of the method, and specific implementation and technical effects may refer to the description of the embodiment of the method above, and for brevity, are not described here again.
In the marrow typing device based on the blockchain provided by the embodiment of the application, the first encryption module obtains the encryption result of the first donation node, the first calculation module obtains the hash value of the donation node, the first signature module signs the registration information of the donation node to obtain the broadcast message of the first donation node, and the first broadcast module broadcasts the broadcast message of the first donation node in the blockchain; the registration information of the donation nodes in the first donation node broadcast message is verified by the operator nodes, the first operator node broadcast message is broadcast in the block chain under the condition that the verification is passed, the account book of the block chain is verified under the condition that the signature of the private key in the first operator node broadcast message passes the verification by the originating node, one donation node can only be registered once in the block chain, massive registration of illegal users in the block chain is avoided, the authenticity of a donation bone marrow database is improved, and the efficiency of bone marrow type allocation is improved.
In an eighth aspect, an embodiment of the present application provides a marrow matching apparatus based on a block chain, which is applied to a given node, and can avoid that an illegal user registers in the block chain and a phenomenon of selling bone marrow backwards is avoided.
Fig. 9 is a schematic block diagram of a device for bone marrow typing based on a blockchain according to an embodiment of the present disclosure. As shown in fig. 9, a blockchain-based bone marrow typing device 900 includes:
the second encryption module 901 is configured to encrypt the personal information of the recipient using the public key of the operator node to obtain an encryption result of the first recipient node.
The second calculating module 902 is configured to perform hash calculation on the personal information of the recipient according to a predetermined algorithm to obtain a hash value of the recipient node.
And the second signature module 903 is configured to generate registration information of the given node based on the hash value of the given node, the encryption result of the first given node, and the public key of the given node, and sign the registration information of the given node by using the private key of the given node to obtain the broadcast message of the first given node.
A second broadcasting module 904, configured to broadcast the first donated node broadcast message in the blockchain, so that the operator node checks the personal information of the donated node based on the registration information of the donated node, and when the check passes, signs the registration information of the donated node again by using the private key of the operator node, obtains a second operator node broadcast message and broadcasts the second operator node broadcast message in the blockchain, so that the originator node verifies the private key signature of the donated node and the private key signature of the operator node in the second operator node broadcast message by using the public key of the donated node and the public key of the operator node, and writes the registration information of the donated node into the blockchain ledger when the verification passes and when the registration of the donated node in the blockchain ledger is confirmed based on the hash value of the donated node and the blockchain ledger.
The functions or modules included in the apparatus provided in the embodiment of the present disclosure may be used to execute the method described in the embodiment of the fourth aspect method, and specific implementation and technical effects thereof may refer to the description of the embodiment of the method above, and for brevity, are not described here again.
In the marrow typing device based on the block chain provided by the embodiment of the application, the second encryption module obtains the encryption result of the first donated node, the second calculation module obtains the hash value of the donated node, the second signature module signs the registration information of the donated node by using the private key of the donated node to obtain the broadcast message of the first donated node, the second broadcast module broadcasts the broadcast message of the first donated node in the block chain to allow the operator to verify the registration information of the donated node in the broadcast message of the first donated node, and in case of passing the verification, the broadcast message of the second operator node is broadcasted in the block chain, and the originator node verifies the block chain account book under the condition of passing the verification of the private key signature in the broadcast message of the second operator node, so that one donated node can only register in the block chain once, thereby avoiding the illegal registration of the donated node in the block chain, the phenomenon of backselling bone marrow can be avoided.
Each module in the present embodiment is a logical module, and in practical applications, one logical unit may be one physical unit, may be a part of one physical unit, or may be implemented by a combination of a plurality of physical units. In addition, in order to highlight the innovative part of the present invention, elements that are not so closely related to solving the technical problems proposed by the present invention are not introduced in the present embodiment, but this does not indicate that other elements are not present in the present embodiment.
In order to better understand the technical solution of the present application, the following describes a method for establishing a bone marrow matching block chain based on a recipient node, a donor node, an operator node, and an originator node.
As shown in fig. 10, the method for bone marrow typing based on blockchain includes:
step S1001, the donation node accesses the block chain, and encrypts the personal information of the donator by using the public key of the operator node to obtain the first donation node encryption result.
The public key of the operator node is obtained by the donation node through inquiring the starting block, the public key of the operator node and the private key of the operator node both belong to the secret key of the operator node, and the signature of the private key of the operator node can be verified through the public key of the operator node.
In some embodiments, after the donor node accesses the blockchain, the starting block of the ledger of the blockchain is synchronized, and then the starting block is queried to obtain the public key and the identity of the operator node.
In order to save the electric quantity and the storage space of the terminal used by the donation node, the donation node only needs the first starting block of the account book of the synchronous block chain, and does not need all the account books of the synchronous block chain.
In some embodiments, the personal information of the donor includes, but is not limited to, the name, identification number, phone number, etc. of the donor. The public key of the operator node is used for encrypting the personal information of the donor, so that the safety of the personal information of the donor can be improved.
It should be noted that each donor corresponds to one donor node, so as to ensure the uniqueness of each donor.
Step S1002, the donation node performs hash calculation on the name and the identification card number of the donator according to a predetermined algorithm to obtain a hash value of the donation node.
The predetermined algorithm may be any algorithm suitable for hash calculation, which is not limited in this embodiment.
Because the identification card number has uniqueness, the hash value obtained according to the identification card number also has uniqueness. Therefore, the hash value of the donation node is used as the unique identifier of the donation node in the block chain, so that the repeatability of the donator can be avoided.
Step S1003, the donation node signs the donation node hash value, the donation node public key and the first donation node encryption result by using the private key of the donation node, obtains a first donation node broadcast message, and broadcasts the first donation node broadcast message in the block chain.
And the hash value of the donation node, the public key of the donation node and the encryption result of the first donation node are used as registration information of the donation node, and the registration information is broadcasted in the block chain so as to complete the registration of the donation node.
The private key of the donation node and the public key of the donation node are both the secret key of the donation node, and the signature of the private key of the donation node can be verified through the public key of the donation node.
When miners in the block chain only receive the broadcast message of the first donation node, the donation node is not registered, and after the fact that the miners receive the verification of the authenticity of the donator by the operator node, the registration of the donation node is completed according to the registration information.
In step S1004, the operator node verifies the registration information of the donor node, and generates a first operator node broadcast message and broadcasts the first operator node broadcast message in the blockchain if the verification passes.
After receiving the broadcast message of the first donation node, the operator node verifies the private key signature of the donation node by using the public key of the donation node, extracts the encrypted result of the first donation node under the condition that the verification is passed, decrypts the encrypted result of the first donation node by using the private key of the operator node according to a predetermined algorithm to obtain the personal information of the donator, and queries a database according to the mobile phone number in the personal information to verify the authenticity of the donator; under the condition of verifying that the information of the donor is real and effective, the operator node signs the registration information of the donor node by using a private key of the operator node to obtain a first operator node broadcast message, and broadcasts the first operator node broadcast message in a block chain.
The registration information of the donation node carried by the first operator node broadcast message is signed by the donation node twice by using a private key of the donation node and by using a private key of the operator node by using the operator node.
Step S1005, after receiving the broadcast message from the first operator node, the originator node/the miners verify their private key signatures using the public key of the donation node and the public key of the operator node, query the block chain account book if the two private key signatures are verified, and write the registration information of the donation node into the block chain account book if the donation node is determined to be unregistered.
The public key of the operator node can be obtained from the originating node, and the public key of the donor node is extracted from the received registration information of the donor node.
In this embodiment, the operator node verifies the donation node registration information, and can ensure the authenticity of the user registered by the donation node, so as to ensure the reliability of the information protection of the donator. Inquiring the blockchain account book can ensure that one donation node can be registered in the blockchain only once, thereby avoiding mass attacks of illegal users.
Step S1006, the donor node encrypts the contact information of the donor by using the public key of the originator node to obtain a second donor node encryption result.
It should be noted that the second donation node encryption result only carries the contact information of the donor, and does not include the name and the identification card information of the donor, so that mutual recognition between the donor and the recipient is avoided, bone marrow donation is performed under the condition that the two parties are not in face and in recognition, and subsequent unnecessary life disputes are avoided.
Step S1007, the donation node signs the donation node hash value, the donator gene hash value, and the second donation node encryption result by using its own private key, obtains a second donation node broadcast message, and broadcasts the second donation node broadcast message in the block chain.
The donor gene hash value is obtained by sequencing a plurality of gene point location information of the donors by the donor nodes according to a predetermined sequence and then performing hash calculation based on the sequenced gene point location information.
In this embodiment, the donor node may select the important gene point location information of ten donors to perform hash calculation, or select the important gene point location information of other numbers of donors to perform hash calculation, so as to obtain the donor gene hash value. The amount of donor gene locus information is based on meeting the bone marrow match.
In this embodiment, the gene site location information of the donor is not directly broadcast in the blockchain, but the hash value based on the gene site location information is broadcast in the blockchain, so that the privacy of the donor can be protected, and the biological crime research can be performed after lawless persons obtain the gene site location information.
Step S1008, after the originator node/the miners receive the second donation node broadcast message, the private key signature of the donation node in the second donation node broadcast message is verified by using the public key of the donation node, and after the verification is passed, the hash value of the donation node, the hash value of the donation gene, and the encryption result of the second donation node are written into the block chain account book.
It should be noted that steps S1001 to S1008 only exemplarily describe how one donor node completes registration in the blockchain, and writes the donor node hash value, the donor gene hash value, and the second donor node encryption result into the blockchain account, and other donor nodes may also register in the blockchain according to steps S1001 to S1008, and write the donor node hash value, the donor gene hash value, and the second donor node encryption result into the blockchain account, so that a large amount of encrypted genetic information and contact information of bone marrow donors are stored in the blockchain account.
In some embodiments, after the donor completes registration and uploads the gene site location information through the donor node, the donor may operate offline until receiving an online notification message.
Step S1009, the gifted node accesses the block chain, encrypts the personal information of the gifted person using the public key of the operator node, and obtains the first gifted node encryption result.
The personal information of the recipient includes, but is not limited to, the name, identification number, phone number, etc. of the recipient. The personal information of the recipient is encrypted by using the public key of the operator node, so that the security of the personal information of the recipient can be improved.
And step S1010, the gifted node performs hash calculation on the name and the identity card number of the gifted person according to a predetermined algorithm to obtain a hash value of the gifted node.
Wherein, the hash value of the donated node is used as the unique identifier of the donated node in the block chain.
In step S1011, the gifted node signs the hash value of the gifted node, the public key of the gifted node, and the encryption result of the first gifted node by using its own private key, obtains a broadcast message of the first gifted node, and broadcasts the broadcast message of the first gifted node in the block chain.
And the hash value of the donated node, the public key of the donated node and the encryption result of the first donated node are used as registration information of the donated node, and the registration information is broadcasted in the block chain so as to complete the registration of the donated node.
The private key of the given node and the public key of the given node are both the keys of the given node, and the signature of the private key of the given node can be verified through the public key of the given node.
When miners in the block chain only receive the broadcast message of the first donated node, the donated node is not registered, and after the miners receive the verification of the authenticity of the donator by the operator node, the registration of the donated node is completed according to the registration information.
In step S1012, the operator node verifies the registration information of the donor-recipient node, and in case the verification passes, generates a second operator node broadcast message, and broadcasts the second operator node broadcast message in the block chain.
After receiving the broadcast message of the first given node, the operator node verifies the private key signature of the given node by using the public key of the given node, extracts the encrypted result of the first given node under the condition that the verification is passed, decrypts the encrypted result of the first given node by using the private key of the operator node according to a predetermined algorithm to obtain the personal information of a given person, and queries a database according to the mobile phone number in the personal information to verify the authenticity of the given person; under the condition that the information of the donate is verified to be real and valid, the operator node signs the registration information of the donate node by using a private key of the operator node, obtains a second operator node broadcast message, and broadcasts the second operator node broadcast message in the block chain.
The registration information of the given node carried by the broadcast message of the second operator node is signed twice by the given node by using the private key of the given node and by using the private key of the operator node by using the operator node.
Step S1013, after the originator node/the miners receive the broadcast message of the second operator node, the public key of the donated node and the public key of the operator node are used for verifying respective private key signatures, the block chain account book is inquired under the condition that the two private key signatures are verified, and the registration information of the donated node is written into the block chain account book under the condition that the donated node is confirmed to be unregistered.
The public key of the operator node can be obtained from the originating node, and the public key of the gifted node is extracted from the received registration information of the gifted node.
In this embodiment, the operator node verifies the gifted node registration information, and can ensure the authenticity of the gifted node registered user, thereby ensuring that the gifted node information is reliable. Inquiring the blockchain ledger can ensure that a given node can only be registered once in the blockchain, thereby avoiding illegal backselling of bone marrow.
And step S1014, synchronizing all block chain accounts by the donated nodes, sequencing the gene point location information of the donates according to a predetermined sequence, and performing Hash calculation based on the sequenced gene point location information to obtain the gene Hash value of the donates.
In this embodiment, the donor node may select the important gene point location information of ten donors to perform hash calculation, or select the important gene point location information of other numbers of donors to perform hash calculation, so as to obtain the donor gene hash value. The number of gene locus location information of the recipient is based on the requirement of bone marrow matching.
Step S1015, the recipient node searches for the block chain account book based on the recipient gene hash value, and if the corresponding donor gene hash value is obtained, signs the donor node hash value, the donor gene hash value, and the second donor node encryption result using its own private key, obtains a second recipient node broadcast message, and broadcasts the second recipient node broadcast message in the block chain.
Wherein, in order to avoid a plurality of receivers to rob the marrow resource, more avoid unfairly flat phenomenon, the node given a gift can be sent the second node broadcast message given a gift to the timestamp server, give the second node broadcast message given a gift by the timestamp server and increase the timestamp, namely, the second node broadcast message given a gift carries the timestamp, the timestamp can distinguish the precedence order of the second node broadcast message given a gift that the node was given a gift issued, the different receivers who need the same type of allotment have been avoided to the question of fairness, thereby avoid unnecessary dispute.
Step S1016, after the originating node receives the second donated node broadcast message, the public key of the donated node is queried in the block chain account book through the donated node hash value, the private key of the donated node in the second donated node broadcast message is verified by using the public key of the donated node, and under the condition that the verification is passed, the donated node hash value, the donator gene hash value, and the second donated node encryption result are obtained. And the originating node decrypts the encrypted result of the second donation node by using the private key of the originating node according to a predetermined algorithm to obtain the contact information of the donator.
The originating node notifies the donor to go online. The present embodiment may notify the donor to go online through a telephone or other means, and the present application does not limit the manner of notifying the donor to go online. After uploading the gene information and the contact information of the donor to the blockchain, the donor may not find a donor capable of being matched with the donor for several years or even for life, and if the donor is always online, unnecessary consumption of electric quantity and flow is easily caused.
Step S1017, the donor node sends a third donor node broadcast message.
And if the donor does not agree with the bone marrow donation, the third donation node broadcast message is not sent.
In some embodiments, the third donor node broadcasts a message including information agreeing to the bone marrow donation and a donation price. And, the donation node signs the information agreeing to the bone marrow donation and the donation offer with its own private key and then obtains a third donation node broadcast message.
Step S1018, after the donated node receives the third donation node broadcast message, the public key of the donation node is used to verify the private key signature of the donation node, and the third donated node broadcast message is broadcast in the block chain under the condition that the verification is passed and the donation offer of the donator is agreed by the donator.
And under the condition that the verification of the donation node is passed and the donation of the donator is agreed by the donator, the donation node signs the thank you information by using the private key of the donation node, and a third donation node broadcast message is obtained. Meanwhile, the gifted node can also send the cost required by the physical examination to the gifted node.
Step S1019, the donation node encrypts the health examination report according to a predetermined algorithm by using the public key of the donation node, signs the encrypted health examination report by using the private key of the donation node to obtain a fourth donation node broadcast message, and broadcasts the fourth donation node broadcast message in the block chain.
For example, to avoid revealing the personal information of the donors, before encrypting the physical examination report, the physical examination report is decrypted, namely the personal information of the names, identification numbers, mobile phone numbers, addresses and the like of the donors is deleted.
And step S1020, after the donated node receives the fourth donation node broadcast message, verifying the private key signature of the donation node in the fourth donation node broadcast message by using the public key of the donation node, and decrypting the encrypted physical examination report by using the private key of the donated node according to a predetermined algorithm under the condition that the verification is passed, so as to obtain the physical examination report of the donator.
And step S1021, under the condition that the physical condition of the donor is confirmed to accord with the bone marrow transplantation operation according to the physical examination report of the donor, making an intelligent contract, and signing the intelligent contract by using a private key of the intelligent contract to obtain a fourth donated node broadcast message.
The recipient can analyze the physical examination report of the donor through a professional, and make an intelligent contract if the physical condition of the donor is confirmed to be in accordance with the bone marrow transplantation operation. Terms in the intelligent contract include, but are not limited to, the donor node hash value, the recipient node hash value, the donor offer amount, and the default amount. The default money is the reimbursement money to be paid to the recipient after the donation default is caused by the non-physical reason of the donor, the reimbursement amount may be 10 times the donation price amount, or other fixed amount, and the reimbursement amount is not limited in this embodiment.
In this embodiment, if the bone marrow donation is over, the patient needs to pay the donation price amount to the donor while returning the deposit to the donor. If a bone marrow donation cannot be made due to the donor, the donor needs to pay a default fee to the recipient.
It should be noted that default time is also agreed in the intelligent contract, for example, after the patient enters a warehouse and begins to undergo large chemotherapy for marrow clearance, the bone marrow donor does not donate or default for more than hours. And if the donation of the bone marrow donor is finished and a donation certification record is issued, and the success of the donation is not confirmed by the patient for more than time, automatically transferring the money to the bone marrow donor. Different thresholds are set for different situations to limit both donor and patient.
Step S1022, the donation node performs secondary signature on the intelligent contract by using its own private key, obtains a fifth donation node broadcast message, and broadcasts the fifth donation node broadcast message in the block chain.
When the donor agrees with each term in the intelligent contract, the donor node signs the intelligent contract for the second time by using the private key of the donor node, namely the fifth donor node broadcast message carries the private key signature of the donated node and the private key signature of the donor node.
And S1023, automatically executing corresponding transfer processing of subsequent deposit and default deposit by the originating node according to a mechanism code of deposit processing in the intelligent contract and a preset condition.
Wherein, the starting node is the leading person and the founding person of the marrow matching block chain network. The preset condition is a condition for executing an intelligent contract term, such as the default term described above.
Step S1024, under the condition that the bone marrow donation is completed, the donation node signs the donation bone marrow operation record sheet and the stem cell extraction record sheet by using a private key of the donation node to obtain a sixth donation broadcast message, and sends the sixth donation broadcast message to the block chain network, so that the originating node can conveniently execute subsequent payment and deposit refund operations according to an intelligent contract.
Referring to fig. 11, an embodiment of the present invention provides an electronic device, including:
one or more processors 1101;
a memory 1102 having one or more programs stored thereon that, when executed by the one or more processors, cause the one or more processors to implement the blockchain based bone marrow typing method of any one of the above;
one or more I/O interfaces 1103 coupled between the processor and the memory and configured to enable information interaction between the processor and the memory.
The processor 1101 is a device with data processing capability, and includes but is not limited to a Central Processing Unit (CPU) and the like; memory 1102 is a device having data storage capabilities including, but not limited to, random access memory (RAM, more specifically SDRAM, DDR, etc.), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), FLASH memory (FLASH); an I/O interface (read/write interface) 1103 is coupled between the processor 1101 and the memory 1102 and enables information interaction between the processor 1101 and the memory 1102, including but not limited to a data Bus (Bus) or the like.
In some embodiments, the processor 1101, memory 1102, and I/O interface 1103 are connected to each other and to other components of the computing device by a bus.
The present embodiment further provides a computer readable medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for matching bone marrow based on a blockchain provided in this embodiment, and in order to avoid repeated descriptions, detailed steps of the method for matching bone marrow based on a blockchain are not described herein again.
It will be understood by those of ordinary skill in the art that all or some of the steps of the above inventive method, systems, functional modules/units in the apparatus may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by the computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
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 apparatus 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 apparatus. 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 apparatus that comprises the element.
Those skilled in the art will appreciate that although some embodiments described herein include some features included in other embodiments instead of others, combinations of features of different embodiments are meant to be within the scope of the embodiments and form different embodiments.
It will be understood that the above embodiments are merely exemplary embodiments taken to illustrate the principles of the present invention, which is not limited thereto. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and substance of the invention, and these modifications and improvements are also considered to be within the scope of the invention.

Claims (12)

1. A bone marrow matching method based on a block chain is characterized in that the method is applied to an initiation node and comprises the following steps:
receiving a first operator node broadcast message; the first operator node broadcast message is obtained after the operator node signs the registration information of the donation node by using a private key of the operator node under the condition that the operator node checks that the registration information of the donation node is real; the registration information of the donation node comprises a donation node hash value, a first donation node encryption result and a public key of the donation node, and the registration information of the donation node is signed by the donation node by using a private key of the donation node before the operator node signs, wherein the donation node hash value is obtained by the donation node through hash calculation on the personal information of the donator according to a pre-agreed algorithm, and the first donation node encryption result is obtained by the donation node through encryption on the personal information of the donation node by using the public key of the operator node;
verifying the private key signature of the donation node and the private key signature of the operator node in the first operator node broadcast message respectively by using the public key of the donation node and the public key of the operator node;
and inquiring a block chain account book based on the hash value of the donation node under the condition that the verification is passed, and writing the registration information of the donation node into the block chain account book under the condition that the donation node is determined not to be registered in the block chain.
2. The method of claim 1, further comprising:
receiving a second operator node broadcast message, wherein the second operator node broadcast message is obtained after a private key of an operator node signs registration information of a donated node under the condition that the operator node checks that the registration information of the donated node is real; the registration information of the given node comprises a given node hash value, a first given node encryption result and a public key of the given node, and the registration information of the given node is signed by the given node by using a private key of the given node before the operator node signs, wherein the given node hash value is obtained by carrying out hash calculation on the personal information of the given by the given node according to a predetermined algorithm, and the first given node encryption result is obtained by encrypting the personal information of the given by the given node by using the public key of the operator node;
verifying the private key signature of the donated node and the private key signature of the operator node in the broadcast message of the second operator node respectively by using the public key of the donated node and the public key of the operator node;
and if the verification is passed, inquiring a blockchain account book based on the hash value of the donated node, and writing the registration information of the donated node into the blockchain account book under the condition that the donated node is determined not to be registered in the blockchain.
3. A bone marrow matching method based on a block chain is characterized by being applied to an operator node and comprising the following steps:
receiving a first donation node broadcast message, wherein the first donation node broadcast message is obtained by a donation node by signing registration information of the donation node by using a private key of the donation node, and the registration information of the donation node comprises a donation node hash value, a first donation node encryption result and a public key of the donation node; the donor node hash value is obtained by the donor node performing hash calculation on the personal information of the donor according to a predetermined algorithm, and the first donor node encryption result is obtained by the donor node encrypting the personal information of the donor by using the public key of the operator node;
verifying the private key signature of the donated node in the first donated node broadcast message by using the public key of the donated node;
under the condition that the verification is passed, decrypting the encrypted result of the first donation node by using a private key of the operator node to obtain the personal information of the donator;
verifying authenticity of the personal information of the donor based on the personal information of the donor and a database of the operator node;
under the condition that the personal information of the donor is verified to be authentic, signing the registration information of the donor again by using the private key of the operator node, obtaining a first operator node broadcast message and broadcasting the message in a block chain, verifying the private key signature of the donor node and the private key signature of the operator node in the first operator node broadcast message by using the public key of the donor node and the public key of the operator node respectively by using the originator node, and writing the registration information of the donor node into the block chain account book under the condition that the verification is passed and under the condition that the donor node is confirmed not to be registered in the block chain based on the hash value of the donor node and the block chain account book.
4. The method of claim 3, further comprising:
receiving a first gifted node broadcast message, wherein the first gifted node broadcast message is obtained by a gifted node by signing registration information of a gifted node by using a private key of the gifted node, and the registration information of the gifted node comprises a gifted node hash value, a first gifted node encryption result and a public key of the gifted node; the hash value of the given node is obtained by the given node performing hash calculation on the personal information of the given person according to a predetermined algorithm, and the first encryption result of the given node is obtained by the given node encrypting the personal information of the given person by using the public key of the operator node;
verifying the private key signature of the donated node in the first donated node broadcast message by using the public key of the donated node;
under the condition that the verification is passed, decrypting the encrypted result of the first donated node by using a private key of the operator node to obtain the personal information of the donated person;
verifying authenticity of the recipient's personal information based on the recipient's personal information and a database of the operator node;
under the condition that the personal information of the donate is verified to be authentic, signing the registration information of the donate node again by using the private key of the operator node, obtaining a second operator node broadcast message and broadcasting the second operator node broadcast message in a block chain, enabling an initiating node to verify the private key signature of the donate node and the private key signature of the operator node in the second operator node broadcast message by using the public key of the donate node and the public key of the operator node respectively, and writing the registration information of the donate node into the block chain account book under the condition that the verification is passed and under the condition that the donate node is confirmed not to be registered in the block chain based on the hash value of the donate node and the block chain account book.
5. A bone marrow typing method based on a block chain is characterized in that the bone marrow typing method is applied to a donation node and comprises the following steps:
encrypting the personal information of the donor by using the public key of the operator node to obtain a first donation node encryption result;
carrying out Hash calculation on the personal information of the donor according to a predetermined algorithm to obtain a Hash value of a donor node;
generating registration information of the donation node based on the donation node hash value, the first donation node encryption result and the public key of the donation node, signing the registration information of the donation node by using the private key of the donation node, obtaining a first donation node broadcast message and broadcasting the first donation node broadcast message in a block chain so that an operator node checks personal information of the donation node based on the registration information, signing the registration information again by using the private key of the operator node if the check is passed, obtaining and broadcasting a first operator node broadcast message in the block chain, respectively verifying the private key signature of the donation node and the private key signature of the operator node in the first operator node broadcast message by using the public key of the donation node and the public key of the operator node, and if the verification is passed, and writing the registration information of the donation node into the blockchain account book under the condition that the donation node is not registered in the blockchain based on the hash value of the donation node and the blockchain account book.
6. A bone marrow matching method based on a block chain is characterized by being applied to a donated node and comprising the following steps:
encrypting the personal information of the donator by using the public key of the operator node to obtain an encryption result of the first donated node;
carrying out Hash calculation on the personal information of the recipient according to a predetermined algorithm to obtain a Hash value of the recipient node;
generating registration information of the given node based on the hash value of the given node, the encryption result of the first given node and the public key of the given node, signing the registration information of the given node by using the private key of the given node, obtaining a first given node broadcast message and broadcasting the first given node broadcast message in a block chain, so that an operator node can check personal information of a given person based on the registration information of the given node, and if the check is passed, signing the registration information of the given node again by using the private key of the operator node, obtaining a second operator node broadcast message and broadcasting the second operator node broadcast message in the block chain, so that an originator node can respectively verify the private key signature of the given node and the private key signature of the operator node in the second operator node broadcast message by using the public key of the given node and the public key of the operator node, and writing the registration information of the donated node into the blockchain account book under the condition that the verification is passed and under the condition that the donated node is not registered in the blockchain based on the hash value of the donated node and the blockchain account book.
7. A device for bone marrow profiling based on blockchain, applied to an initiation node, comprising:
a first receiving module, configured to receive a first operator node broadcast message; the first operator node broadcast message is obtained after the operator node signs the registration information of the donation node by using a private key of the operator node under the condition that the operator node checks that the registration information of the donation node is real; the registration information of the donation node comprises a donation node hash value, a first donation node encryption result and a public key of the donation node, and the registration information of the donation node is signed by the donation node by using a private key of the donation node before the operator node signs, wherein the donation node hash value is obtained by the donation node through hash calculation on the personal information of the donator according to a pre-agreed algorithm, and the first donation node encryption result is obtained by the donation node through encryption on the personal information of the donation node by using the public key of the operator node;
a first verification module, configured to verify, by using the public key of the donation node and the public key of the operator node, the private key signature of the donation node and the private key signature of the operator node in the first operator node broadcast message, respectively;
the query module is used for querying a block chain account book based on the donation node hash value under the condition that the verification is passed;
and the writing module is used for writing the registration information of the donation node into the block chain account book under the condition that the donation node is determined not to be registered in the block chain.
8. A bone marrow matching device based on a block chain is characterized by being applied to an operator node and comprising:
the second receiving module is used for receiving a first donation node broadcast message, wherein the first donation node broadcast message is obtained by a donation node by signing registration information of the donation node through a private key of the donation node, and the registration information of the donation node comprises a donation node hash value, a first donation node encryption result and a public key of the donation node; the donor node hash value is obtained by the donor node performing hash calculation on the personal information of the donor according to a predetermined algorithm, and the first donor node encryption result is obtained by the donor node encrypting the personal information of the donor by using the public key of the operator node;
the second verification module is used for verifying the private key signature of the donation node in the first donation node broadcast message by using the public key of the donation node;
the decryption module is used for decrypting the encrypted result of the first donation node by using the private key of the operator node under the condition that the verification is passed, so as to obtain the personal information of the donator;
a verification module for verifying authenticity of the personal information of the donor based on the personal information of the donor and a database of the operator node;
and the operator signature module is used for signing the registration information of the donor again by using the private key of the operator node under the condition of checking the authenticity of the personal information of the donor, obtaining a first operator node broadcast message and broadcasting the message in a block chain, so that an originator node verifies the private key signature of the donor node and the private key signature of the operator node in the first operator node broadcast message by using the public key of the donor node and the public key of the operator node respectively, and writes the registration information of the donor node into the block chain account book under the condition that the verification is passed and under the condition that the registration of the donor node in the block chain is not confirmed based on the hash value of the donor node and the block chain account book.
9. A bone marrow typing device based on a blockchain, which is applied to a donation node, comprises:
the first encryption module is used for encrypting the personal information of the donor by using the public key of the operator node to obtain an encryption result of the first donor node;
the first calculation module is used for carrying out Hash calculation on the personal information of the donor according to a predetermined algorithm to obtain a Hash value of a donor node;
the first signature module is used for generating the registration information of the donation node based on the hash value of the donation node, the encryption result of the first donation node and the public key of the donation node, and signing the registration information of the donation node by using the private key of the donation node to obtain a first donation node broadcast message;
a first broadcasting module for broadcasting the first donation node broadcast message in a blockchain for an operator node to check personal information of donors based on the registration information, and signing the registration information again by using the private key of the operator node under the condition that the check is passed, obtaining and broadcasting a first operator node broadcast message in the block chain, the originator node verifies the private key signature of the donor node and the private key signature of the operator node in the first operator node broadcast message respectively by using the public key of the donor node and the public key of the operator node, and if the verification passes, and writing the registration information of the donation node into the blockchain account book under the condition that the donation node is not registered in the blockchain based on the hash value of the donation node and the blockchain account book.
10. A bone marrow matching device based on a block chain is applied to a donated node and comprises:
the second encryption module is used for encrypting the personal information of the recipient by using the public key of the operator node to obtain an encryption result of the first recipient node;
the second calculation module is used for carrying out Hash calculation on the personal information of the recipient according to a predetermined algorithm to obtain a Hash value of the recipient node;
the second signature module is used for generating the registration information of the given node based on the Hash value of the given node, the encryption result of the first given node and the public key of the given node, and signing the registration information of the given node by using the private key of the given node to obtain a first given node broadcast message;
a second broadcasting module for broadcasting the first gifted node broadcast message in a blockchain for an operator node to check personal information of a gifted based on registration information of the gifted node, and signing the registration information of the donated node again by using the private key of the operator node under the condition that the verification is passed, obtaining a broadcast message of a second operator node and broadcasting the broadcast message in the block chain, the originator node verifies the private key signature of the donated node and the private key signature of the operator node in the broadcast message of the second operator node respectively by using the public key of the donated node and the public key of the operator node, and if the verification is passed, and writing the registration information of the donated node into the blockchain account book under the condition that the donated node is not registered in the blockchain based on the hash value of the donated node and the blockchain account book.
11. An electronic device, comprising:
one or more processors;
memory having one or more programs stored thereon that, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-2, 3-4, 5, 6;
one or more I/O interfaces connected between the processor and the memory and configured to enable information interaction between the processor and the memory.
12. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-2, 3-4, 5, 6.
CN202111626208.0A 2021-12-28 2021-12-28 Bone marrow matching method and device based on block chain, electronic equipment and readable medium Active CN114329624B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111626208.0A CN114329624B (en) 2021-12-28 2021-12-28 Bone marrow matching method and device based on block chain, electronic equipment and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111626208.0A CN114329624B (en) 2021-12-28 2021-12-28 Bone marrow matching method and device based on block chain, electronic equipment and readable medium

Publications (2)

Publication Number Publication Date
CN114329624A true CN114329624A (en) 2022-04-12
CN114329624B CN114329624B (en) 2023-01-17

Family

ID=81015654

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111626208.0A Active CN114329624B (en) 2021-12-28 2021-12-28 Bone marrow matching method and device based on block chain, electronic equipment and readable medium

Country Status (1)

Country Link
CN (1) CN114329624B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111737311A (en) * 2020-05-26 2020-10-02 山东浪潮质量链科技有限公司 Donation material distribution method, device and medium based on block chain
CN111738704A (en) * 2020-05-29 2020-10-02 易联众信息技术股份有限公司 Donation data processing method and device based on block chain and readable medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111737311A (en) * 2020-05-26 2020-10-02 山东浪潮质量链科技有限公司 Donation material distribution method, device and medium based on block chain
CN111738704A (en) * 2020-05-29 2020-10-02 易联众信息技术股份有限公司 Donation data processing method and device based on block chain and readable medium

Also Published As

Publication number Publication date
CN114329624B (en) 2023-01-17

Similar Documents

Publication Publication Date Title
CN107396360B (en) Block verification method and device
CN108646983B (en) Processing method and device for storing service data on block chain
CN110582793B (en) Anonymity and traceability of digital property transactions on a distributed transaction consensus network
CN109102269B (en) Transfer method and device based on block chain, block chain node and storage medium
CN108734028B (en) Data management method based on block chain, block chain link point and storage medium
CN110633963B (en) Electronic bill processing method, electronic bill processing device, computer readable storage medium and computer readable storage device
CN111476572B (en) Block chain-based data processing method, device, storage medium and equipment
CN112215608A (en) Data processing method and device
CN101527634B (en) System and method for binding account information with certificates
CN111130770A (en) Block chain based information evidence storage method and system, user terminal, electronic equipment and storage medium
US11558199B1 (en) Systems and methods for privacy preserving distributed ledger consensus
CN110336779B (en) Block chain construction method and device and electronic equipment
CN109508564A (en) A kind of digital asset storage system and method based on block chain
CN113255014B (en) Data processing method based on block chain and related equipment
CN109936620B (en) Block chain-based storage method, device, system and storage medium
US20230232222A1 (en) User terminal, authentication terminal, registration terminal, management system and program
CN111523142B (en) Data processing method, device, electronic equipment and medium
CN109242666A (en) Personal reference method, apparatus and computer equipment are obtained based on block chain
CN111314066B (en) Block chain-based data transfer method, terminal and computer-readable storage medium
CN114239072B (en) Block chain node management method and block chain network
CN115796871A (en) Resource data processing method and device based on block chain and server
CN113242242B (en) Block chain application method and block chain application terminal device
CN102542645A (en) Entrance guard authentication method and system
CN113474804A (en) Transaction and account verification method, device and storage medium of digital currency
CN114329624B (en) Bone marrow matching method and device based on block chain, electronic equipment and readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant