CN114328729B - Method and device for establishing bone marrow matching block chain, electronic equipment and storage medium - Google Patents

Method and device for establishing bone marrow matching block chain, electronic equipment and storage medium Download PDF

Info

Publication number
CN114328729B
CN114328729B CN202111627810.6A CN202111627810A CN114328729B CN 114328729 B CN114328729 B CN 114328729B CN 202111627810 A CN202111627810 A CN 202111627810A CN 114328729 B CN114328729 B CN 114328729B
Authority
CN
China
Prior art keywords
node
donation
block chain
donated
broadcast message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111627810.6A
Other languages
Chinese (zh)
Other versions
CN114328729A (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 CN202111627810.6A priority Critical patent/CN114328729B/en
Publication of CN114328729A publication Critical patent/CN114328729A/en
Application granted granted Critical
Publication of CN114328729B publication Critical patent/CN114328729B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Medical Treatment And Welfare Office Work (AREA)

Abstract

The invention discloses a method and a device for establishing a bone marrow matching block chain, electronic equipment and a storage medium, belongs to the technical field of block chains, and solves the problem of low bone marrow matching efficiency. The method for establishing the bone marrow matching block chain comprises the following steps: receiving a first donation broadcast message broadcasted by a donation node; writing a donation node blockchain identification into a blockchain account book under the condition that the donation node is determined not to be registered in the blockchain based on the first donation broadcast message; receiving a first donation receiving broadcast message broadcasted by a donation receiving node; in the event that it is determined, based on the first gifted broadcast message, that the gifted node is not registered in the blockchain, writing a gifted node blockchain identification to a blockchain ledger. The method can improve the efficiency of bone marrow typing, thereby reducing the waiting time of patients.

Description

Method and device for establishing bone marrow matching block chain, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of block chains, in particular to a method and a device for establishing a marrow matching block chain, electronic equipment and a storage 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.
At present, in the bone marrow matching stage, a patient needs to go through a complicated process from the submission of an application to the receipt of a result, great inconvenience is brought to the patient and family members, the matching waiting time is long, the optimal operation time is easily missed, and the transplantation operation cannot be performed in time.
Disclosure of Invention
Therefore, the invention provides a bone marrow matching block chain establishing method and device, electronic equipment and a storage medium, which aim to solve the problems that a patient cannot perform transplantation operation in time due to inconvenience caused by complicated bone marrow matching procedures and long waiting time in the prior art.
In order to achieve the above object, a first aspect of the present invention provides a method for establishing a bone marrow matching block chain, which is applied to an originating node, and includes:
receiving a first donation broadcast message broadcasted by a donation node; wherein the first donation broadcast message is a message obtained by a donation node signing a donation node blockchain identifier and a public key of the donation node by using a private key of the donation node; the donation node block chain identifier is a unique identifier which is generated by the donation node through a predetermined Hash algorithm based on the personal information of the donator and identifies the identity of the donation node block chain identifier;
writing the donor node blockchain identification to the blockchain ledger if it is determined that the donor node is not registered in a blockchain based on the first donor broadcast message;
receiving a first donation broadcast message broadcasted by a donation receiving node; wherein the first donated broadcast message is obtained by the donated node block chain identification and a donated node public key signed by the donated node through a private key of the donated node; the block chain identifier of the donated node is a unique identifier which is generated by the donated node through a pre-agreed hash algorithm based on the personal information of the patient and identifies the identity of the donated node;
writing the gifted node blockchain identification to the blockchain ledger if it is determined that the gifted node is not registered in a blockchain based on the first gifted broadcast message.
Wherein after writing the donation node blockchain identification into the blockchain ledger, the method further comprises:
receiving a second donation broadcast message sent by the donation node; wherein the second donation broadcast message is a message obtained by the donation node signing the donation node blockchain identification, the donator gene hash value and the donator encryption result with its private key; the donor gene hash value is obtained by calculating the gene point location information of the donor by using an agreed hash algorithm; the encryption result of the donor is obtained by encrypting the contact way of the donor by using the public key of the originating node;
writing the donor node blockchain identification, the donor gene hash value, and the donor encryption result into the blockchain ledger.
After writing the given node blockchain identifier into the blockchain ledger, the method further includes:
receiving a second donation broadcast message sent by the donation receiving node; wherein the second donated broadcast message is a message obtained by the donated node signing the donated node blockchain identifier, the donator gene hash value and the donator encryption result by using the private key of the donated node;
and decrypting the encrypted result of the donor according to a pre-agreed algorithm by using the private key of the originating node to obtain the contact way of the donor so as to inform the donor of getting online.
Wherein the second gifted broadcast message includes a timestamp generated by a timestamp node based on the gifted node request to identify the second gifted broadcast message release time.
In a second aspect, a method for establishing a bone marrow matching block chain is provided, which is applied to a donation node, and includes:
generating a donation node block chain identifier through a predetermined hash algorithm based on personal information of a donator; wherein the donation node blockchain identification is the only identification of the donation node in the blockchain;
signing the donation node block chain identifier and the public key of the donation node by using the private key of the donation node to obtain a first donation broadcast message, and broadcasting the first donation broadcast message in the block chain, so that the originating node writes the donation node block chain identifier into a block chain account book based on the donation node block chain identifier and the public key of the donation node.
Wherein, after the broadcasting the first donation broadcast message in the blockchain, further comprising:
after receiving the message that the registration of the donor node is successful, carrying out hash calculation on the gene point location information of the donor according to a predetermined algorithm to obtain a donor gene hash value;
signing the donation node block chain identifier and the donator gene hash value by using a private key of a donation node to obtain a second donation broadcast message, and broadcasting the second donation broadcast message in the block chain.
Before the generating of the donation node blockchain identifier based on the personal information of the donator through a predetermined hash algorithm, the method further includes:
and encrypting the contact way of the donor by using the public key of the originating node to obtain an encryption result of the donor.
Wherein said broadcasting said second donation broadcast message in said blockchain further comprises:
receiving an online notification; the online notification is a notification sent by the originating node after obtaining the contact information of the donor based on the encryption result of the donor;
and under the condition of agreeing to the bone marrow donation, signing the message agreeing to the donation and the donation offer amount by using a donation node private key to obtain a third donation broadcast message, and broadcasting the third donation broadcast message in the blockchain.
The third aspect of the present invention provides a method for establishing a bone marrow matching block chain, which is applied to a donated node, and includes:
generating a block chain identifier of a gifted node by a predetermined Hash algorithm based on personal information of a patient; wherein the gifted node blockchain identification is the only identification of the gifted node in the blockchain;
signing the block chain identification of the donated node and the public key of the donated node by using the private key of the donated node to obtain a first donated broadcast message, and broadcasting the first donated broadcast message in the block chain so that the originating node writes the block chain identification of the donated node into a block chain account book based on the block chain identification of the donated node and the public key of the donated node.
Wherein, after broadcasting the first complimentary broadcast message in the blockchain, further comprising:
inquiring the block chain account book to obtain a donor gene hash value matched with the patient gene hash value;
signing the block chain identifier of the donation node, the gene hash value of the donator and the encryption result of the donator by using a private key of the donated node to obtain a second donated broadcast message;
broadcasting the second donated broadcast message in the blockchain for the originating node to obtain a contact address for the donor based on the second donated broadcast message.
Wherein, prior to broadcasting the second complimentary broadcast message in the blockchain, further comprising:
sending the second gifted broadcast message to a timestamp server;
receiving a second donation broadcast message which is returned by the timestamp server and carries a timestamp; wherein the timestamp is information that the timestamp server identifies the time at which the second gifted broadcast message was issued.
In a fourth aspect of the present invention, an apparatus for establishing a bone marrow matching block chain is provided, which is applied to an originating node, and includes:
the receiving module is used for receiving a first donation broadcast message broadcasted by the donation node; wherein the first donation broadcast message is a message obtained by a donation node signing a donation node block chain identifier and a public key of the donation node by using a private key of the donation node; the donation node block chain identifier is a unique identifier which is generated by the donation node through a predetermined Hash algorithm based on the personal information of the donator and identifies the identity of the donation node block chain identifier;
a registration module for writing the donor node blockchain identification to the blockchain ledger if it is determined that the donor node is not registered in a blockchain based on the first donor broadcast message;
the receiving module is further configured to receive a first donation broadcast message broadcast by a donation receiving node; wherein the first donated broadcast message is obtained by the donated node by using a private key of the donated node to sign the donated node block chain identifier and the donated node public key; the block chain identifier of the donated node is a unique identifier which is generated by the donated node through a pre-agreed hash algorithm based on the personal information of the patient and identifies the identity of the donated node;
the registration module is further configured to write the gifted node blockchain identification into the blockchain ledger if it is determined that the gifted node is not registered in a blockchain based on the first gifted broadcast message.
In a fifth aspect of the present invention, an apparatus for establishing a bone marrow block chain is provided, which is applied to a donation node, and includes:
the first generation module is used for generating a donation node block chain identifier through a predetermined hash algorithm based on the personal information of the donator; wherein the donor node blockchain identification is the only identification of the donor node in the blockchain;
a first obtaining module, configured to sign the donation node block chain identifier and the public key of the donation node by using a private key of the donation node, obtain a first donation broadcast message, and broadcast the first donation broadcast message in the block chain, so that the originating node writes the donation node block chain identifier into a block chain ledger based on the donation node block chain identifier and the public key of the donation node.
In a sixth aspect of the present invention, an apparatus for establishing a bone marrow matching block chain is provided, which is applied to a donated node, and includes:
the second generation module is used for generating the block chain identifier of the donated node based on the personal information of the patient through a predetermined Hash algorithm; wherein the gifted node blockchain identification is the only identification of the gifted node in the blockchain;
a second obtaining module, configured to sign the block chain identifier of the donated node and the public key of the donated node by using the private key of the donated node, obtain a first donated broadcast message, and broadcast the first donated broadcast message in the block chain, so that the originating node writes the block chain identifier of the donated node into a block chain account book based on the block chain identifier of the donated node and the public key of the donated node.
A seventh aspect of the present invention provides an electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon, which when executed by the one or more processors, cause the one or more processors to implement the methods provided in the first, second and third 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 an eighth aspect of the present invention, there is provided a computer readable medium having stored thereon a computer program which, when executed by a processor, implements the method as provided in the first, second and third aspects.
The invention has the following advantages:
in the method for establishing a bone marrow typing block chain provided in this embodiment, when it is determined that a donation node is not registered in a block chain based on a first donation broadcast message, a donation node block chain identifier is written into a block chain account book, and when a donor and a patient satisfy a registration condition, registration is completed in the block chain, so that the bone marrow typing block chain is established, and the patient and the donator can reduce labor cost through the bone marrow typing block chain, improve bone marrow typing efficiency, reduce waiting time of the patient, and enable the patient to perform a bone marrow transplantation operation as soon as possible.
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 of an application scenario in an embodiment of the present application;
FIG. 2 is a flowchart of a method for establishing a bone marrow block chain according to an embodiment of the present disclosure;
fig. 3 is a flowchart of a method for establishing a bone marrow match block chain according to an embodiment of the present application;
fig. 4 is a flowchart of a method for establishing a bone marrow match block chain according to an embodiment of the present application;
fig. 5 is a schematic block diagram of an apparatus for establishing a bone marrow matching block chain according to an embodiment of the present application;
fig. 6 is a schematic block diagram of an apparatus for establishing a bone marrow matching block chain according to an embodiment of the present application;
fig. 7 is a schematic block diagram of an apparatus for establishing a bone marrow match block chain according to an embodiment of the present application;
FIG. 8 is a flowchart illustrating a method for establishing a bone marrow match block chain according to an embodiment of the present disclosure;
fig. 9 is a schematic block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following describes in detail embodiments of the present invention with reference to the 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 herein, the presence of the 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 disclosure, and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
Fig. 1 is an application scenario diagram according to an embodiment of the present application. As shown in fig. 1, the method for establishing the marrow matching blockchain involves a donated node 11, a donated node 12, a timestamp server node 13 and an originating node 14, wherein the donated node is a node used by a patient, the patient sends and receives messages from the blockchain network to the blockchain network through the donated node, the donor sends and receives messages from the blockchain network to the blockchain network through the donated node, the timestamp server node is used for marking the release time of the messages broadcasted by the blockchain, and the originating node is used for registration, information verification and forwarding and the like of the patient and the donor. In this embodiment, each node has its own public key and private key of the blockchain, and the public key and identifier of the origination node are recorded in the origination blockchain node.
For convenience of description, in the embodiments of the present application, the blockchain network is referred to as a blockchain, the public key of the blockchain is referred to as a public key, and the private key of the blockchain is referred to as a private key.
In a first aspect, an embodiment of the present application provides a method for establishing a bone marrow typing block chain, which is applied to a starting node, and the bone marrow typing block chain may be applied to a bone marrow typing patient and a bone marrow donor, so as to reduce labor cost and improve efficiency of bone marrow typing, thereby reducing waiting time of the patient and further enabling a transplantation operation to be performed as soon as possible.
Fig. 2 is a flowchart of a method for establishing a bone marrow match block chain according to an embodiment of the present application. As shown in fig. 2, the method for establishing the bone marrow matching block chain comprises the following steps:
step S201, receiving a first donation broadcast message broadcast by a donation node.
The first donation broadcast message is obtained by the donation node by utilizing a private key of the donation node to sign the donation node block chain identifier and a public key of the donation node; the donation node blockchain identifier is a unique identifier which is generated by the donation node through a pre-agreed hash algorithm based on the personal information of the donator and identifies the identity of the donation node blockchain identifier. The public key of the donor node and the private key of the donor node are the identity keys of the donor node. The personal information of the donor includes, but is not limited to, name and identification card. The predetermined algorithm may be any suitable hash algorithm, and the hash algorithm is not limited in this embodiment.
In some embodiments, the originator node receives a first donation broadcast message broadcast by the donation node in the blockchain.
In step S202, under the condition that it is determined that the donor node is not registered in the blockchain based on the first donor broadcast message, the donor node blockchain identifier is written into the blockchain ledger.
In some embodiments, after receiving the first donation broadcast message, the originating node extracts the public key of the donation node from the first donation broadcast message, verifies the signature of the private key of the donation node, queries the block chain account book if the verification passes, and writes the correspondence between the block chain identifier of the donation node and the public key of the donation node into the block chain account book if it is determined that the block chain identifier of the donation node is not registered, thereby completing the registration of the donation node.
Step S203, receiving a first donation broadcast message broadcasted by the donation node.
The first donated broadcast message is obtained by the donated node through signing the donated node block chain identifier and the donated node public key by using a private key of the donated node; the block chain identifier of the donated node is a unique identifier which is generated by the donated node through a pre-agreed hash algorithm based on the personal information of the patient and identifies the identity of the donated node. The public key of the gifted node and the private key of the gifted node are identity keys of the gifted node. The patient's personal information includes, but is not limited to, name and identification card. The predetermined algorithm may be any suitable hash algorithm, and the hash algorithm is not limited in this embodiment.
In some embodiments, the originating node receives a first complimentary broadcast message broadcast by a complimentary node in a blockchain.
Step S204, under the condition that the donated node is determined not to be registered in the block chain based on the first donated broadcast message, writing the donated node block chain identification into the block chain account book.
In some embodiments, after receiving the first given broadcast message, the originating node extracts the public key of the given node from the first given broadcast message, verifies the signature of the private key of the given node, queries the block chain account book if the verification passes, and writes the corresponding relationship between the block chain identifier of the given node and the public key of the given node into the block chain account book if the block chain identifier of the given node is determined not to be registered, thereby completing the registration of the given node in the block chain. In the event that it is determined that the recipient node blockchain identification has been registered, the donor is denied registration with the blockchain.
In some embodiments, step S202 is followed by: and the originating node receives a second donation broadcast message sent by the donation node, and writes the donation node block chain identifier, the donator gene hash value and the donator encryption result into the block chain account book.
The second donation broadcast message is obtained by the donation node signing the donation node block chain identifier, the donator gene hash value and the donator encryption result by using a private key of the donation node; the donor gene hash value is obtained by calculating the gene point location information of the donor by using an agreed hash algorithm.
The donor encryption result is that the donor uses the public key of the originating node to encrypt the contact address of the donor. The contact details of the donor include, but are not limited to, the donor's phone, address, etc. information.
In some embodiments, after writing the donated node blockchain identifier into the blockchain ledger in step S204, the method further includes:
and receiving a second donation broadcast message sent by the donation receiving node, decrypting the encrypted result of the donor by using the private key of the originating node according to a predetermined algorithm, and acquiring the contact way of the donor so as to inform the donor of getting online.
The second donated broadcast message is obtained by the donated node signing the donated node block chain identifier, the donator gene hash value and the donator encryption result by using the private key of the donated node.
In some embodiments, the recipient node queries the blockchain ledger to obtain the donor genetic locus location information that matches the patient genetic locus location information, e.g., to obtain the same donor genetic hash value as the patient genetic hash value, i.e., to determine the bone marrow type of the donor. And the donation node block chain identification, the donator gene hash value and the donator encryption result are signed by the donation node by using the private key of the donation node, and a second donation broadcast message is obtained.
After the originating node receives the second donated broadcast message, the public key of the donated node is inquired in the block chain account book through the block chain identifier of the donated node, the private key of the donated node in the second donated broadcast message is verified by using the public key of the donated node, and under the condition that the verification is passed, the block chain identifier of the donated node, the hash value of the donator gene and the encryption result of the donator are obtained. The originating node decrypts the encrypted result of the donor according to a predetermined algorithm by using a private key of the originating node, and obtains the contact way of the donor. If the contact way of the donor is the mobile phone number, the donor is informed to be on-line in a telephone way.
In the method for establishing a bone marrow typing block chain provided in this embodiment, when it is determined that a donation node is not registered in a block chain based on a first donation broadcast message, a donation node block chain identifier is written into a block chain account book, and when a donor and a patient satisfy a registration condition, registration is completed in the block chain, so that the bone marrow typing block chain is established, and the patient and the donator can reduce labor cost through the bone marrow typing block chain, improve bone marrow typing efficiency, reduce waiting time of the patient, and enable the patient to perform a bone marrow transplantation operation as soon as possible.
In a second aspect, an embodiment of the present application provides a method for establishing a bone marrow matching block chain, which is applied to a donation node, and the bone marrow matching block chain can be applied to a bone marrow donor, so as to reduce labor cost and improve bone marrow matching efficiency, thereby reducing waiting time of a patient and performing a transplantation operation as soon as possible.
Fig. 3 is a flowchart of a method for establishing a bone marrow match block chain according to an embodiment of the present application. As shown in fig. 3, the method for establishing the bone marrow matching block chain includes:
step S301, generating a donation node block chain identifier by a predetermined hash algorithm based on the personal information of the donator.
Wherein the donation node blockchain identification is the unique identification of the donation node in the blockchain.
In some embodiments, the donor node generates the donor node blockchain identification based on the personal information of the donor through a pre-agreed hash algorithm.
The personal information of the donor includes, but is not limited to, the name and the identification card of the donor. The predetermined algorithm may be any suitable hash algorithm, and the hash algorithm is not limited in this embodiment.
Because the identification card number of the donor has uniqueness, the hash value obtained based on the identification card number has uniqueness in the block chain, and the donor takes the hash value as the unique identification of the donor in the block chain, so that the repeated phenomenon of the block chain identification of the bone marrow donor in the block chain can be avoided.
The embodiment does not broadcast the personal information of the donor in the blockchain, but stores the obtained hash value based on the personal information in the blockchain, so that the leakage of the personal information of the donor can be avoided.
Step S302, the private key of the donation node is used for signing the donation node block chain identifier and the public key of the donation node, a first donation broadcast message is obtained, the first donation broadcast message is broadcasted in the block chain, and the donation node block chain identifier is written into a block chain account book by the originating node based on the donation node block chain identifier and the public key of the donation node.
Wherein the public key of the donation node and the private key of the donation node are identity keys of the donation node.
After the originating node receives the first donation broadcast message, the donation node public key is extracted from the first donation broadcast message, the signature of the donation node private key is verified, under the condition that the verification is passed, the block chain account book is inquired, under the condition that the block chain identification of the donation node is determined not to be registered, the block chain account book is written into the corresponding relation between the block chain identification of the donation node and the donation node public key, and therefore the registration of the donation is completed. In the event that it is determined that the donor node blockchain identification has been registered, the donor is denied registration with the blockchain.
In some embodiments, step S302 further comprises, after broadcasting the first donation broadcast message in the blockchain:
and after receiving the message that the registration of the donation node is successful, carrying out Hash calculation on the gene point location information of the donator according to a preset algorithm to obtain a gene Hash value of the donator. And signing the block chain identifier of the donation node and the hash value of the donator gene by using the private key of the donation node to obtain a second donation broadcast message, and broadcasting the second donation broadcast message in the block chain.
In some embodiments, the gene site location information of the donor may adopt important gene site location information of the donor, for example, ten important gene site location information are adopted, the ten important gene site location information are sorted according to a predetermined sequence, and the gene site location information of the donor is subjected to hash calculation according to a predetermined algorithm to obtain a corresponding gene hash value.
And the donation node signs the donation node block chain identification, the donator gene hash value and the donator encryption result by using the private key of the donator, obtains a second donation broadcast message, and broadcasts the second donation broadcast message in the block chain.
In some embodiments, before generating the donation node blockchain identifier by a pre-agreed hash algorithm based on the personal information of the donator, the method further includes: and encrypting the contact way of the donor by using the public key of the starting node to obtain an encryption result of the donor.
Wherein the donor may obtain the public key of the originating node from the founder block query. The contact details of the donor include, but are not limited to, the donor's phone, address, etc. information. In order to save the electric quantity and the storage space of the terminal used by the donor, after the donor is connected with the current block chain, only the first creation block of the account book of the current block chain needs to be synchronized, and all the account books of the current block chain do not need to be synchronized. The embodiment encrypts the contact information of the donor by using the public key of the originating node, so as to ensure the privacy of the personal information of the donor.
In some embodiments, after broadcasting the second donation broadcast message in the blockchain, further comprising: and receiving an online notification, signing the donation agreeing message and the donation offer amount by using the donation node private key under the condition of agreeing to the bone marrow donation, acquiring a third donation broadcast message, and broadcasting the third donation broadcast message in the block chain.
The online notification is a notification sent by the originating node after obtaining the contact information of the donor based on the encryption result of the donor.
In some embodiments, after receiving the second donated broadcast message, the originator node queries the public key of the donated node in the blockchain account book through the block chain identifier of the donated node, verifies the private key of the donated node in the second donated broadcast message by using the public key of the donated node, and obtains the block chain identifier of the donation node, the hash value of the gene of the donator, and the encryption result of the donator if the verification is passed. The originator decrypts the donor encryption result by using the private key of the originator according to a predetermined algorithm to obtain the contact information of the donor.
In the method for establishing a bone marrow type blockchain provided by this embodiment, a donation node generates a donation node blockchain identifier based on personal information of a donator through a predetermined hash algorithm; and signing the donation node block chain identifier and the public key of the donation node by using the private key of the donation node to obtain a first donation broadcast message, broadcasting the first donation broadcast message in the block chain, and writing the donation node block chain identifier into a block chain account book by the originating node based on the donation node block chain identifier and the public key of the donation node to complete the establishment of the bone marrow matching block chain.
In a third aspect, an embodiment of the present application provides a method for establishing a bone marrow matching block chain, which is applied to a given node, and the bone marrow matching block chain can be applied to a bone marrow matching patient, so as to reduce labor cost and improve bone marrow matching efficiency, thereby reducing waiting time of the patient and performing a transplantation operation as soon as possible.
Fig. 4 is a flowchart of a method for establishing a bone marrow match block chain according to an embodiment of the present application. As shown in fig. 4, the method for establishing the bone marrow gametic block chain includes:
step S401, generating a block chain identifier of the donated node based on the personal information of the patient through a pre-agreed hash algorithm.
And the block chain identifier of the donated node is the unique identifier of the donated node in the block chain.
In this embodiment, the personal information of the patient includes, but is not limited to, the patient's name and identification card. The predetermined algorithm may be any suitable hash algorithm, and the hash algorithm is not limited in this embodiment. Because the identity card number of the patient has uniqueness, the hash value obtained based on the identity card number has uniqueness in the current block chain, and the patient uses the hash value as the unique identification of the patient in the block chain, so that the repeated phenomenon of the block chain identification of the patient in the block chain can be avoided.
Step S402, signing the block chain identification of the donated node and the public key of the donated node by using the private key of the donated node to obtain a first donated broadcast message, and broadcasting the first donated broadcast message in the block chain so that the originating node writes the block chain identification of the donated node into the block chain book based on the block chain identification of the donated node and the public key of the donated node.
In some embodiments, after receiving the first given broadcast message, the originator node extracts the public key of the given node from the first given broadcast message, verifies the signature of the private key of the given node, queries the block chain account book if the verification is passed, and writes the corresponding relationship between the block chain identifier of the given node and the public key of the given node into the block chain account book if it is determined that the block chain identifier of the given node is not registered, thereby completing the registration of the patient. In the event that it is determined that the recipient node blockchain identification has been registered, the donor is denied registration with the blockchain.
In some embodiments, after broadcasting the first complimentary broadcast message in the blockchain, further comprising: inquiring a block chain account book to obtain a donor gene hash value matched with the patient gene hash value; signing the block chain identifier of the donation node, the gene hash value of the donator and the encryption result of the donator by using the private key of the donated node to obtain a second donated broadcast message; broadcasting a second donated broadcast message in the blockchain for the originator node to obtain a contact address for the donor based on the second donated broadcast message.
And (4) the patient queries the block chain account book, and obtains a donor gene hash value identical to the patient gene hash value, namely finding the donor matched with the patient gene point location information. And the patient signs the block chain identifier of the donation node, the hash value of the donator gene and the encryption result of the donator in the second donation broadcast message by using the private key of the patient to obtain a second donation broadcast message.
In some embodiments, before broadcasting the second complimentary broadcast message in the blockchain, further comprising: sending the second gifted broadcast message to a timestamp server; receiving a second donation broadcast message which is returned by the timestamp server and carries a timestamp; wherein the timestamp is information that the timestamp server identifies a time at which the second gifted broadcast message was issued.
Because the second given broadcast messages all carry the time stamps, the time stamps can be used for distinguishing the sequence of the second given broadcast messages issued by the patients, and the condition that different patients needing the same match dispute contend for marrow match resources due to the fact that the different patients ask for the request time are not fair can be avoided, so that unnecessary disputes are avoided.
In the method for establishing a bone marrow type blockchain provided by this embodiment, a given node generates a given node blockchain identifier based on personal information of a patient through a pre-agreed hash algorithm, the given node block chain identifier and a public key of the given node are signed by using a private key of the given node to obtain a first given broadcast message, and the first given broadcast message is broadcast in a blockchain, so that an initiating node writes the given node blockchain identifier into a blockchain account based on the given node blockchain identifier and the public key of the given node to complete establishment of the bone marrow matching blockchain.
The steps in the above embodiments are divided for clarity of description, and the implementation may be combined into one step or split some steps, and the steps are decomposed into multiple steps, so long as the steps include the same logical relationship, which is within the scope of the present patent; it is within the scope of this patent to add insignificant modifications or introduce insignificant designs to the algorithms or processes, but not to change the core designs of the algorithms and processes.
In a fourth aspect, an embodiment of the present application provides an apparatus for establishing a bone marrow matching block chain, which is applied to an originating node, and the bone marrow matching block chain can be applied to a bone marrow matching patient and a bone marrow donor, so as to reduce labor cost and improve bone marrow matching efficiency, thereby reducing waiting time of the patient and further performing a transplantation operation as soon as possible.
Fig. 5 is a schematic block diagram of an apparatus for establishing a bone marrow matching block chain according to an embodiment of the present application. As shown in fig. 5, the apparatus 500 for establishing a bone marrow typing block chain includes:
a receiving module 501, configured to receive a first donation broadcast message broadcast by a donation node.
The first donation broadcast message is obtained by the donation node by utilizing a private key of the donation node to sign the donation node block chain identifier and a public key of the donation node; the donation node blockchain identifier is a unique identifier which is generated by the donation node through a pre-agreed hash algorithm based on the personal information of the donator and identifies the identity of the donation node blockchain identifier. The public key of the donor node and the private key of the donor node are the identity keys of the donor node. The personal information of the donor includes, but is not limited to, name and identification card. The predetermined algorithm may be any suitable hash algorithm, and the hash algorithm is not limited in this embodiment.
A registration module 502, configured to write a donated node blockchain identification into a blockchain ledger if it is determined that the donated node is not registered in the blockchain based on the first donated broadcast message.
In some embodiments, after receiving the first donation broadcast message, the originator node extracts the public key of the donation node from the first donation broadcast message, verifies the signature of the private key of the donation node, queries the block chain ledger if the verification passes, and writes the correspondence between the block chain identifier of the donation node and the public key of the donation node into the block chain ledger if it is determined that the block chain identifier of the donation node is not registered, thereby completing the registration of the donation node.
The receiving module 501 is further configured to receive a first gifted broadcast message broadcast by a gifted node.
The first donated broadcast message is obtained by the donated node block chain identification and the public key of the donated node through signature of the donated node by the private key of the donated node; the block chain identifier of the donated node is a unique identifier which is generated by the donated node through a pre-agreed hash algorithm based on the personal information of the patient and identifies the identity of the donated node. The public key of the gifted node and the private key of the gifted node are identity keys of the gifted node. The patient's personal information includes, but is not limited to, name and identification card. The predetermined algorithm may be any suitable hash algorithm, and the hash algorithm is not limited in this embodiment.
The registration module 502 is further configured to write a gifted node blockchain identification into a blockchain ledger if it is determined that the gifted node is not registered in the blockchain based on the first gifted broadcast message.
In some embodiments, after receiving the first given broadcast message, the originating node extracts the public key of the given node from the first given broadcast message, verifies the signature of the private key of the given node, queries the block chain account book if the verification passes, and writes the corresponding relationship between the block chain identifier of the given node and the public key of the given node into the block chain account book if the block chain identifier of the given node is determined not to be registered, thereby completing the registration of the given node in the block chain. In the event that it is determined that the recipient node blockchain identification has been registered, the donor is denied registration with the blockchain.
The apparatus for establishing a bone marrow type blockchain may further include a sending module, where the sending module receives, at the originating node, the second donation broadcast message sent by the donation node, and writes the donation node blockchain identifier, the donator gene hash value, and the donator encryption result into a blockchain ledger.
The second donation broadcast message is obtained by the donation node signing the donation node block chain identifier, the donator gene hash value and the donator encryption result by using a private key of the donation node; the donor gene hash value is obtained by calculating the gene point location information of the donor by using an agreed hash algorithm.
The donor encryption results in the donor's contact being obtained by the donor encrypting the donor's contact using the public key of the originating node. The contact details of the donor include, but are not limited to, the donor's phone, address, etc. information.
The device for establishing the marrow type block chain may further include a decryption module, configured to decrypt the encrypted result of the donor according to a predetermined algorithm by using the private key of the originating node after receiving the second donated broadcast message sent by the donated node, and obtain a contact manner of the donor, so as to notify the donor of going online.
The establishing device of marrow matching block chain that this embodiment provided, receiving module receives the broadcast message of the first donation of donation node broadcast, the registration module confirms that the donation node is not under the circumstances of registering in the block chain based on the broadcast message of first donation, write in block chain account book with donation node block chain identification, under the circumstances that donator and patient satisfy the registration condition, thereby accomplish the establishment of marrow matching block chain, patient and donator can reduce the cost of labor through this marrow matching block chain, improve the efficiency of marrow matching, thereby reduce patient's latency, and make the patient carry out the bone marrow transplantation operation as early as possible.
In a fifth aspect, an embodiment of the present application provides an apparatus for establishing a bone marrow matching block chain, which is applied to a donation node, and the bone marrow matching block chain can be applied to a bone marrow donor, so as to reduce labor cost and improve bone marrow matching efficiency, thereby reducing waiting time of a patient and performing a transplantation operation as soon as possible.
Fig. 6 is a schematic block diagram of an apparatus for establishing a bone marrow matching block chain according to an embodiment of the present application. As shown in fig. 6, the apparatus 600 for creating a bone marrow typing block chain includes:
a first generating module 601, configured to generate the donation node blockchain identifier through a pre-agreed hash algorithm based on the personal information of the donor.
Wherein the donor node blockchain identification is the unique identification of the donor node in the blockchain.
The personal information of the donor includes, but is not limited to, the name and the identification card of the donor. The predetermined algorithm may be any suitable hash algorithm, and the hash algorithm is not limited in this embodiment.
Because the identification card number of the donor has uniqueness, the hash value obtained based on the identification card number has uniqueness in the block chain, and the donor uses the hash value as the unique identifier of the donor in the block chain, so that the repeated phenomenon of the block chain identifier of the bone marrow donor in the block chain can be avoided.
According to the embodiment, the personal information of the donor is not broadcasted in the blockchain, but the hash value obtained based on the personal information is stored in the blockchain, so that the leakage of the personal information of the donor can be avoided.
A first obtaining module 602, configured to sign the donation node block chain identifier and the public key of the donation node by using the private key of the donation node, obtain a first donation broadcast message, and broadcast the first donation broadcast message in the block chain, so that the originating node writes the donation node block chain identifier into a block chain book based on the donation node block chain identifier and the public key of the donation node.
Wherein the public key of the donation node and the private key of the donation node are identity keys of the donation node.
After the originating node receives the first donation broadcast message, the donation node public key is extracted from the first donation broadcast message, the signature of the donation node private key is verified, under the condition that the verification is passed, the block chain account book is inquired, under the condition that the block chain identification of the donation node is determined not to be registered, the block chain account book is written into the corresponding relation between the block chain identification of the donation node and the donation node public key, and therefore the registration of the donation is completed. In the event that it is determined that the donor node blockchain identification has been registered, the donor is denied registration with the blockchain.
In some embodiments, the apparatus for establishing a bone marrow typing block chain further includes a first computing module, configured to, after receiving the message that the registration of the donor node is successful, perform a hash computation on the genetic point location information of the donor according to a predetermined algorithm to obtain a donor genetic hash value.
The first obtaining module 602 is further configured to sign the donor node blockchain identifier and the donor genetic hash value by using the private key of the donor node, obtain a second donor broadcast message, and broadcast the second donor broadcast message in the blockchain.
In some embodiments, the gene site location information of the donor may adopt important gene site location information of the donor, for example, ten important gene site location information are adopted, the ten important gene site location information are sorted according to a predetermined sequence, and the gene site location information of the donor is subjected to hash calculation according to a predetermined algorithm to obtain a corresponding gene hash value.
And the donation node signs the donation node block chain identification, the donator gene hash value and the donator encryption result by using the private key of the donator, obtains a second donation broadcast message, and broadcasts the second donation broadcast message in the block chain.
In some embodiments, before generating the donor node blockchain identifier by a pre-agreed hash algorithm based on the personal information of the donor, the method further comprises: and encrypting the contact way of the donor by using the public key of the starting node to obtain an encryption result of the donor.
Wherein the donor may obtain the public key of the origination node from the origination block query. The contact details of the donor include, but are not limited to, the donor's phone, address, etc. information. In order to save the electric quantity and the storage space of the terminal used by the donor, after the donor is connected with the current block chain, only the first creation block of the account book of the current block chain needs to be synchronized, and all the account books of the current block chain do not need to be synchronized. The embodiment encrypts the contact information of the donor by using the public key of the originating node, so as to ensure the privacy of the personal information of the donor.
In some embodiments, after broadcasting the second donation broadcast message in the blockchain, further comprising: and receiving an online notification, signing the donation agreeing message and the donation offer amount by using the donation node private key under the condition of agreeing to the bone marrow donation, acquiring a third donation broadcast message, and broadcasting the third donation broadcast message in the block chain.
In some embodiments, after receiving the second donated broadcast message, the originating node queries the public key of the donated node in the blockchain account book through the donated node blockchain identifier, verifies the private key of the donated node in the second donated broadcast message by using the public key of the donated node, and obtains the donated node blockchain identifier, the donator gene hash value, and the donator encryption result if the verification is passed. The originator uses the private key of the originator to decrypt the encrypted result of the donor according to a predetermined algorithm, and obtains the contact way of the donor.
In the apparatus for establishing a bone marrow type blockchain provided in this embodiment, a first generation module of a donation node generates a donation node blockchain identifier through a predetermined hash algorithm based on personal information of a donor; the first obtaining module signs the donation node block chain identification and the public key of the donation node by using the private key of the donation node, obtains a first donation broadcast message, broadcasts the first donation broadcast message in the block chain, writes the donation node block chain identification into a block chain book by the originating node based on the donation node block chain identification and the public key of the donation node, completes the establishment of the bone marrow matching block chain, the donation can reduce labor cost through the bone marrow matching block chain, the efficiency of bone marrow matching is improved, the waiting time of a patient is reduced, and the patient can perform bone marrow transplantation operation as soon as possible.
In a sixth aspect, an embodiment of the present invention provides an apparatus for establishing a bone marrow matching block chain, which is applied to a donated node, and the bone marrow matching block chain can be applied to a bone marrow matching patient, so as to reduce labor cost and improve efficiency of bone marrow matching, thereby reducing waiting time of the patient and performing a transplantation operation as soon as possible.
Fig. 7 is a schematic block diagram of an apparatus for establishing a bone marrow matching block chain according to an embodiment of the present application. As shown in fig. 7, the apparatus 700 for establishing a bone marrow typing block chain includes:
a second generating module 701, configured to generate the donor node blockchain identifier by a pre-agreed hash algorithm based on the personal information of the patient.
In this embodiment, the gifted node blockchain identifier is a unique identifier of the gifted node in the blockchain. The patient's personal information includes, but is not limited to, the patient's name and identification card. The predetermined algorithm may be any suitable hash algorithm, and the hash algorithm is not limited in this embodiment. Because the identity card number of the patient has uniqueness, the hash value obtained based on the identity card number has uniqueness in the current block chain, and the patient uses the hash value as the unique identification of the patient in the block chain, so that the repeated phenomenon of the block chain identification of the patient in the block chain can be avoided.
A second obtaining module 702, configured to sign the block chain identifier of the donated node and the public key of the donated node by using the private key of the donated node, obtain the first donated broadcast message, and broadcast the first donated broadcast message in the block chain, so that the originating node writes the block chain identifier of the donated node into a block chain ledger based on the block chain identifier of the donated node and the public key of the donated node.
In some embodiments, after receiving the first given broadcast message, the originating node extracts the public key of the given node from the first given broadcast message, verifies the signature of the private key of the given node, queries the block chain account book if the verification is passed, and writes the corresponding relationship between the block chain identifier of the given node and the public key of the given node into the block chain account book if the block chain identifier of the given node is determined not to be registered, thereby completing the registration of the patient. In the event that it is determined that the recipient node blockchain identification has been registered, the donor is denied registration with the blockchain.
In some embodiments, the apparatus for establishing a bone marrow typing blockchain further comprises a query module for querying a blockchain ledger to obtain a donor genetic hash value that matches the patient genetic hash value.
A second obtaining module 702, configured to sign the donor node block chain identifier, the donor gene hash value, and the donor encryption result by using the recipient node private key to obtain a second recipient broadcast message; broadcasting a second donated broadcast message in the blockchain for the originating node to obtain contact details of the donor based on the second donated broadcast message.
In some embodiments, the apparatus for creating a bone marrow typing block chain further comprises: the second sending module is used for sending the second donation broadcast message to the timestamp server; the second receiving module is used for receiving a second gifted broadcast message which is returned by the timestamp server and carries a timestamp; wherein the timestamp is information that the timestamp server identifies a time at which the second gifted broadcast message was issued.
Because the second given broadcast messages all carry the time stamps, the time stamps can be used for distinguishing the sequence of the second given broadcast messages issued by the patients, and the condition that different patients needing the same match dispute contend for marrow match resources due to the fact that the different patients ask for the request time are not fair can be avoided, so that unnecessary disputes are avoided.
In the apparatus for establishing a bone marrow type blockchain provided in this embodiment, the second generating module of the given node generates a given node blockchain identifier based on personal information of a patient through a predetermined hash algorithm, the second obtaining module uses a private key of the given node to sign the given node blockchain identifier and a public key of the given node to obtain a first given broadcast message, and broadcasts the first given broadcast message in the blockchain, so that the originating node writes the given node blockchain identifier into a blockchain account based on the given node blockchain identifier and the public key of the given node to complete establishment of the bone marrow type blockchain.
In addition, each module in the above embodiments is a logical module, and in practical applications, one logical unit may be one physical unit, may be a part of one physical unit, and 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, a method for establishing a bone marrow matching block chain is described below based on a recipient node, a donor node, a timestamp server node, and a starting node.
As shown in fig. 8, the method for establishing the marrow type block chain includes:
step S801, the donor node encrypts its contact information using the public key of the originator node to obtain the donor encryption result.
Wherein the donor node may obtain the public key of the originator node from the founder block query. The contact details of the donor include, but are not limited to, the donor's phone, address, etc. information.
In this embodiment, in order to save the electric quantity and the storage space of the terminal used by the donor, after the donor node is connected to the current block chain, only the first generative block of the ledger of the current block chain needs to be synchronized, and not all the ledgers of the current block chain need to be synchronized.
The embodiment encrypts the contact information of the donor by using the public key of the originating node, so as to ensure the privacy of the personal information of the donor.
Step S802, the donation node performs HASH calculation on the personal information according to a predetermined algorithm to obtain a HASH value HASH-A1 as a donation node block chain identifier.
Personal information includes, but is not limited to, name and identification card. The predetermined algorithm may be any suitable hash algorithm, and the hash algorithm is not limited in this embodiment.
Because the ID card number of the donor has uniqueness, the HASH value HASH-A1 obtained based on the ID card number has uniqueness in the current block chain, and the donor node takes the HASH value HASH-A1 as the unique identifier of the donor node in the block chain, namely the donor node block chain identifier HASH-A1, so that the block chain identifier of the bone marrow donor node is prevented from generating a repeated phenomenon in the block chain.
In step S803, the donor node signs the donor node block chain identifier HASH-A1 and the donor node public key using the donor node private key, and obtains a first donor broadcast message.
In step S804, the donor node broadcasts the first donation broadcast message in the blockchain.
Step S805, after the originating node receives the first donation broadcast message, the originating node extracts the donation node public key from the first donation broadcast message, verifies the signature of the donation node private key, queries the block chain ledger if the verification passes, and writes the corresponding relationship between the donation node block chain identifier HASH-A1 and the donation node public key into the block chain ledger if it is determined that the donation node block chain identifier is not registered. In the event that it is determined that the donor node blockchain identification has been registered, the donor is denied registration with the blockchain.
In this embodiment, the blockchain ledger is queried to determine whether the blockchain identifier of the donor node has been registered, so as to ensure that each donor is registered only once, thereby preventing one donor from obtaining multiple registration identities, i.e., ensuring the uniqueness of the donor in the blockchain.
In step S806, the originating node returns the result of passing the verification to the donor node.
Step S807, the donor nodes sort the gene point location information of the donors according to a predetermined sequence, perform Hash calculation on the gene point location information to obtain corresponding donor gene Hash values HASH-A2, and then sign the block chain identifiers HASH-A1, HASH-A2 and the encryption results of the donors by using the private keys of the donors to obtain a second donor broadcast message.
The gene site location information may be important gene site location information, for example, ten important gene site location information are adopted, and the ten important gene site location information are sorted according to a predetermined sequence.
In this embodiment, the genetic point location information of the donor is not directly broadcast in the blockchain, but the hash value based on the genetic point location information is broadcast in the blockchain, so that not only the privacy of the donor can be protected, but also the biological crime research can be avoided after lawbreakers obtain the genetic point location information.
At step S808, the donor node broadcasts a second donation broadcast message in the blockchain.
Step S809, after the originating node receives the second donation broadcast message, verifying the private key signature of the donor, and writing the donation node block chain identifier HASH-A1, the gene HASH value HASH-A2, and the donor encryption result into a new block under the condition that the verification is passed, thereby writing into the block chain account book.
The private key signature may be verified in any suitable manner, which is not limited in this embodiment.
It should be noted that, this embodiment only describes how the donor writes the information such as the contact information and the gene into the blockchain account book in an encrypted manner by taking the donor as an example, but the embodiment is not limited thereto. In fact, any donor can also write the information of the respective contact addresses, genes, etc. into the blockchain ledger through steps S801 to S809 in an encrypted manner, that is, the blockchain ledger stores a large amount of information of the contact addresses, genes, etc. of the donors.
It should be further noted that after the donor uploads the information such as the contact information and the gene to the blockchain, the account book information of the blockchain is not required to be synchronized in real time, but the donor can be operated offline until the donor receives the wake-up information. The wake-up message may be a phone or a mail of the originator, or may also be other ways to notify the donor to go online, which is not limited in this embodiment.
And step S810, the gifted node performs HASH calculation on the personal information according to a pre-agreed algorithm to obtain a HASH value HASH-AA1 as a gifted node block chain identifier.
The personal information of the patient includes, but is not limited to, the name and identification card of the patient. The predetermined algorithm may be any suitable hash algorithm, and the hash algorithm is not limited in this embodiment.
Because the identity card number of the patient has uniqueness, the HASH value HASH-AA1 obtained based on the identity card number has uniqueness in the current block chain, and the patient uses the HASH value HASH-AA1 as the unique identifier of the patient in the block chain, namely the block chain identifier HASH-AA1 of the donated node, so that the block chain identifier of the patient is prevented from being repeated in the block chain.
In step S811, the gifted node signs the gifted node block chain identifier HASH-A1 and the gifted node public key using the gifted node private key to obtain a first gifted broadcast message.
In step S812, the gifted node broadcasts the first gifted broadcast message in the block chain.
Step S813, after receiving the first given broadcast message, the originating node extracts the public key of the given node from the first given broadcast message, verifies the signature of the private key of the given node, queries the block chain ledger if the verification passes, and writes the corresponding relationship between the block chain identifier HASH-AA1 of the given node and the public key of the given node into the block chain ledger if the block chain identifier of the given node is determined not to be registered. In the event that it is determined that the recipient node blockchain identification has been registered, the donor node is denied registration with the blockchain.
Step S814, the donated node synchronizes all the account book information of the current block chain, sorts the gene point location information according to a predetermined sequence, and performs HASH calculation on the gene point location information to obtain a corresponding patient gene HASH value HASH-AA2.
The gene site location information may be important gene site location information, for example, ten important gene site location information are adopted, and the ten important gene site location information are sorted according to a predetermined sequence.
According to the method, the gene point location information of the patient is not directly broadcast in the block chain, but the hash value based on the gene point location information is broadcast in the block chain, so that the privacy of the patient can be protected, and the biological crime research can be avoided after lawbreakers obtain the gene point location information.
Step S815, the recipient node queries the block chain account book, and obtains the gene point location information of the donor matched with the gene point location information of the recipient node, that is, obtains the donor gene HASH value HASH-A2 corresponding to the patient gene HASH value HASH-AA2 based on the patient gene HASH value HASH-AA2.
In step S816, the recipient node signs the block chain identifier HASH-A1, the donor gene HASH value HASH-A2, and the donor encryption result of the donor in the second donation broadcast message using its own private key, and obtains a second recipient broadcast message.
In this embodiment, since the second given broadcast messages all carry timestamps, the sequence of the second given broadcast messages issued by the patients can be distinguished by using the timestamps, and it is possible to avoid that different patients requiring the same assignment challenge request time are unfair and compete for bone marrow assignment resources, thereby avoiding unnecessary disputes.
Step S817, the donated node sends the second donated broadcast message to the timestamp server.
In step S818, the timestamp server signs and marks the timestamp on the second gifted broadcast message by using its own private key, and the gifted node sends the second gifted broadcast message carrying the timestamp to the originating node.
In step S819, the timestamp server returns the second gifted broadcast message carrying the timestamp to the gifted node.
Step S820, after the originating node receives the second donated broadcast message, the recipient node public key is queried in the block chain account book through the recipient node block chain identifier HASH-AA1, the recipient node private key in the second donated broadcast message is verified by using the recipient node public key, and under the condition that the verification is passed, the donation node block chain identifier HASH-A1, the donator gene HASH value HASH-A2, and the donator encryption result are obtained. The originating node decrypts the encrypted result of the donor according to a predetermined algorithm by using a private key of the originating node, and obtains the contact way of the donor.
In step S821, the originating node notifies the donor of the online.
It should be noted that, in this embodiment, the donor may be notified to go online through a telephone notification manner, or may be notified to go online through other manners, and the manner of notifying the donor to go online is not limited in this application.
In this embodiment, after uploading the genetic information and the contact information of the donor to the blockchain, the donor may not find a patient that can be matched with the donor for several years or even for life, and if the donor is online all the time, unnecessary consumption of electric power and flow is easily caused.
Step S822, after the donation node receives the online notification, if the donation node still agrees to donate, the online block chain is started, the private key of the donation node is used for signing the message agreeing to donation and the donation amount of the donation price, a third donation broadcast message is obtained, and the third donation broadcast message is broadcast in the block chain.
Wherein the donation price amount is the price the donor proposes for the bone marrow donation, i.e., the desired return.
Step S823, after the donated node receives the third donation broadcast message, the donated node verifies the private key of the donated node by using the public key of the donated node, and under the condition that the verification is passed and the donator is agreed, the donated node signs the thank you information by using its private key to obtain a second donated broadcast message.
Wherein the thank you message is information that the patient thank you donor donates bone marrow to himself. The medical costs may be provided to the donor by money transfer, etc.
In step S824, the donated node broadcasts the second donated broadcast message in the blockchain, and sends the physical examination cost to the donating node.
Step S825, after the donor is subjected to physical examination, encrypting the physical examination report by using the public key of the patient according to a predetermined algorithm, signing the encrypted physical examination report by using the private key of the donor, obtaining a fourth donation broadcast message, and broadcasting the fourth donation broadcast message in the block chain.
In order to protect the privacy of the donor and prevent the donor and the patient from knowing, the donor can perform desensitization processing on the physical examination report, such as deleting personal information such as name, identification number, contact information, address and the like in the physical examination report.
And step S826, after receiving the fourth donation broadcast message, the donation node public key is used for verifying the signature of the donation node private key, and under the condition that the signature passes, the donation node public key in the encrypted physical examination report is decrypted by using the private key of the donation node public key according to a predetermined algorithm to obtain the physical examination report of the donator.
And step S827, under the condition that the physical examination report is qualified, drafting an intelligent contract by the gifted node, and signing the intelligent contract by using a private key of the gifted node to obtain a third gifted broadcast message.
Wherein, the qualification of the physical examination report means that all indexes of the bone marrow donation accord with the bone marrow transplantation operation. The terms in the intelligent contract include, but are not limited to, the donor node blockchain identification, the recipient node blockchain identification, the donor bid amount, and the default funds. The default money is an amount of compensation to be paid to the patient for the default of the donation due to the non-physical reason of the donor, the amount of compensation may be 10 times the amount of the donation offer, or other amounts, and the embodiment does not limit the amount of compensation.
In this embodiment, if the bone marrow donation is over, the patient needs to pay the donation price amount to the donor, and if the bone marrow donation cannot be performed due to the donor, the donor needs to pay the default money to the patient.
It should be noted that default time is also stipulated in the intelligent contract, for example, after the patient enters a warehouse and begins to undergo chemotherapy for myeloablation, the bone marrow donor does not donate or violates 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 S828, after receiving the third donation broadcast message, the donation node verifies the signature of the private key of the donation node using the public key of the donation node, obtains the specific terms of the intelligent contract if the verification passes, and if the terms of the intelligent contract are agreed, performs secondary signature on the intelligent contract using its own private key to obtain a fifth donation broadcast message, and sends the fifth donation broadcast message to the blockchain network.
Step S829, the starting node automatically executes the corresponding transfer processing of the subsequent deposit and the default deposit according to the condition and the mechanism code of deposit processing in the intelligent contract.
Step S830, when the donation node completes the bone marrow donation, the donation node signs the donation bone marrow surgery record slip and the stem cell extraction record slip by using its own private key to obtain a sixth donation broadcast message, and sends the sixth donation broadcast message to the blockchain network, so that the originating node can perform subsequent payment and deposit refund operations according to the intelligent contract.
Referring to fig. 9, an embodiment of the present application provides an electronic device, which includes:
one or more processors 901;
a memory 902 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 for establishing a bone marrow typing blockchain of any one of the above;
one or more I/O interfaces 903 coupled between the processor and the memory and configured to enable information interaction between the processor and the memory.
Among them, the processor 901 is a device with data processing capability, which includes but is not limited to a Central Processing Unit (CPU) or the like; memory 902 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) 903 is connected between the processor 901 and the memory 902, and can implement information interaction between the processor 901 and the memory 902, which includes but is not limited to a data Bus (Bus) and the like.
In some embodiments, the processor 901, memory 902, and I/O interface 903 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 establishing a bone marrow matching block chain provided in the present embodiment, and in order to avoid repeated descriptions, specific steps of the method for establishing a bone marrow matching block chain 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 a 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 phrases "comprising a component of' 8230; \8230;" does not exclude the presence of another like element 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, not 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 scope of the invention, and such modifications and improvements are also considered to be within the scope of the invention.

Claims (16)

1. A method for establishing a bone marrow matching block chain is applied to an originating node and comprises the following steps:
receiving a first donation broadcast message broadcasted by a donation node; wherein the first donation broadcast message is a message obtained by a donation node signing a donation node blockchain identifier and a public key of the donation node by using a private key of the donation node; the donation node block chain identifier is a unique identifier which is generated by the donation node through a predetermined Hash algorithm based on the personal information of the donator and identifies the identity of the donation node block chain identifier;
in the event that it is determined, based on the first donation broadcast message, that the donation node is not registered in a blockchain, writing the donation node blockchain identification to the blockchain ledger;
receiving a first donation receiving broadcast message broadcasted by a donation receiving node; wherein the first donated broadcast message is obtained by the donated node block chain identification and a donated node public key signed by the donated node through a private key of the donated node; the block chain identifier of the donated node is a unique identifier which is generated by the donated node through a pre-agreed hash algorithm based on the personal information of the patient and identifies the identity of the donated node;
writing the gifted node blockchain identification to the blockchain ledger if it is determined that the gifted node is not registered in a blockchain based on the first gifted broadcast message.
2. The method of claim 1, wherein after writing the donor node blockchain identification to the blockchain ledger, further comprising:
receiving a second donation broadcast message sent by the donation node; wherein the second donation broadcast message is a message obtained by the donation node signing the donation node blockchain identification, the donator gene hash value and the donator encryption result with its private key; the donor gene hash value is obtained by calculating the gene point location information of the donor by using an agreed hash algorithm; the donor encryption result is obtained by encrypting the contact way of the donor by using the public key of the originating node by the donor;
writing the donor node blockchain identification, the donor gene hash value, and the donor encryption result into the blockchain ledger.
3. The method of claim 2, wherein after writing the donor-recipient node blockchain identification to the blockchain ledger, further comprising:
receiving a second donation receiving broadcast message sent by the donation receiving node; wherein the second donated broadcast message is a message obtained by the donated node signing the donated node blockchain identifier, the donator gene hash value and the donator encryption result by using the private key of the donated node;
and decrypting the encrypted result of the donor according to a predetermined algorithm by using the private key of the originating node to obtain the contact way of the donor so as to inform the donor of online.
4. The method of claim 3, wherein the second gifted broadcast message includes a timestamp generated by a timestamp node based on the gifted node request to identify the second gifted broadcast message release time.
5. A method for establishing a marrow matching block chain is applied to donation nodes and comprises the following steps:
generating a donation node block chain identifier through a predetermined hash algorithm based on personal information of a donator; wherein the donation node blockchain identification is the only identification of the donation node in the blockchain;
signing the donation node block chain identifier and the public key of the donation node by using the private key of the donation node to obtain a first donation broadcast message, and broadcasting the first donation broadcast message in the block chain, so that the originating node writes the donation node block chain identifier into a block chain account book based on the donation node block chain identifier and the public key of the donation node.
6. The method of claim 5, wherein after broadcasting the first donation broadcast message in the blockchain, further comprising:
after receiving the message that the registration of the donation node is successful, carrying out Hash calculation on the gene point location information of the donator according to a predetermined algorithm to obtain a gene Hash value of the donator;
signing the donation node block chain identifier and the donator gene hash value by using a private key of a donation node to obtain a second donation broadcast message, and broadcasting the second donation broadcast message in the block chain.
7. The method of claim 6, wherein before generating the donor node blockchain identification by a pre-agreed hash algorithm based on the personal information of the donor, further comprising:
and encrypting the contact way of the donor by using the public key of the originating node to obtain an encryption result of the donor.
8. The method of claim 7, wherein after broadcasting the second donation broadcast message in the blockchain, further comprising:
receiving an online notification; wherein the online notification is a notification sent by the originator node after obtaining the contact information of the donor based on the encryption result of the donor;
and under the condition of agreeing to bone marrow donation, signing the message agreeing to donation and the donation offer amount by using a donation node private key to obtain a third donation broadcast message, and broadcasting the third donation broadcast message in the blockchain.
9. A method for establishing a bone marrow matching block chain is applied to a donated node and comprises the following steps:
generating a block chain identifier of a donated node by a predetermined Hash algorithm based on personal information of a patient; wherein the gifted node blockchain identification is the only identification of the gifted node in the blockchain;
signing the block chain identification of the donated node and the public key of the donated node by using the private key of the donated node to obtain a first donated broadcast message, and broadcasting the first donated broadcast message in the block chain so that the originating node writes the block chain identification of the donated node into a block chain account book based on the block chain identification of the donated node and the public key of the donated node.
10. The method of claim 9, wherein after broadcasting the first complimentary broadcast message in the blockchain, further comprising:
inquiring the block chain account book to obtain a donor gene hash value matched with the patient gene hash value;
signing the block chain identifier of the donation node, the gene hash value of the donator and the encryption result of the donator by using a private key of the donated node to obtain a second donated broadcast message;
broadcasting the second donated broadcast message in the blockchain for the originating node to obtain a contact address for the donor based on the second donated broadcast message.
11. The method of claim 10, wherein prior to broadcasting the second complimentary broadcast message in the blockchain, further comprising:
sending the second gifted broadcast message to a timestamp server;
receiving a second donation broadcast message which is returned by the timestamp server and carries a timestamp; wherein the timestamp is information that the timestamp server identifies the time at which the second gifted broadcast message was issued.
12. An apparatus for establishing a bone marrow matching block chain, applied to an originating node, comprising:
the receiving module is used for receiving a first donation broadcast message broadcasted by the donation node; wherein the first donation broadcast message is a message obtained by a donation node signing a donation node blockchain identifier and a public key of the donation node by using a private key of the donation node; the donation node block chain identifier is a unique identifier which is generated by the donation node through a predetermined Hash algorithm based on the personal information of the donator and identifies the identity of the donation node block chain identifier;
a registration module for writing the donor node blockchain identification to the blockchain ledger if it is determined that the donor node is not registered in a blockchain based on the first donor broadcast message;
the receiving module is further configured to receive a first donation broadcast message broadcast by a donation receiving node; wherein the first donated broadcast message is obtained by the donated node block chain identification and a donated node public key signed by the donated node through a private key of the donated node; the block chain identifier of the donated node is a unique identifier which is generated by the donated node through a pre-agreed Hash algorithm based on the personal information of the patient and identifies the identity of the donated node;
the registration module is further configured to write the gifted node blockchain identification into the blockchain ledger if it is determined that the gifted node is not registered in a blockchain based on the first gifted broadcast message.
13. An apparatus for establishing a bone marrow block chain, applied to a donation node, comprises:
the first generation module is used for generating a donation node block chain identifier through a predetermined hash algorithm based on the personal information of the donator; wherein the donation node blockchain identification is the only identification of the donation node in the blockchain;
a first obtaining module, configured to sign the donation node block chain identifier and the public key of the donation node by using the private key of the donation node, obtain a first donation broadcast message, and broadcast the first donation broadcast message in the block chain, so that the originating node writes the donation node block chain identifier into a block chain book based on the donation node block chain identifier and the public key of the donation node.
14. An apparatus for establishing a bone marrow matching block chain, applied to a donated node, comprises:
the second generation module is used for generating the block chain identifier of the donated node based on the personal information of the patient through a predetermined Hash algorithm; wherein the gifted node blockchain identifier is the only identifier of the gifted node in the blockchain;
a second obtaining module, configured to sign the block chain identifier of the donated node and the public key of the donated node by using the private key of the donated node, obtain a first donated broadcast message, and broadcast the first donated broadcast message in the block chain, so that an originating node writes the block chain identifier of the donated node into a block chain account book based on the block chain identifier of the donated node and the public key of the donated node.
15. An electronic device, comprising:
one or more processors;
storage means having one or more programs stored thereon which, when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-4, 5-8, 9-11;
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.
16. 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-4, 5-8, 9-11.
CN202111627810.6A 2021-12-28 2021-12-28 Method and device for establishing bone marrow matching block chain, electronic equipment and storage medium Active CN114328729B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111627810.6A CN114328729B (en) 2021-12-28 2021-12-28 Method and device for establishing bone marrow matching block chain, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111627810.6A CN114328729B (en) 2021-12-28 2021-12-28 Method and device for establishing bone marrow matching block chain, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114328729A CN114328729A (en) 2022-04-12
CN114328729B true CN114328729B (en) 2023-01-17

Family

ID=81014089

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111627810.6A Active CN114328729B (en) 2021-12-28 2021-12-28 Method and device for establishing bone marrow matching block chain, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114328729B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108985863A (en) * 2018-08-27 2018-12-11 中国联合网络通信集团有限公司 A kind of whip-round donations method and system
CN110544193A (en) * 2019-09-06 2019-12-06 腾讯科技(深圳)有限公司 Donation information distributed storage method and device
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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108985863A (en) * 2018-08-27 2018-12-11 中国联合网络通信集团有限公司 A kind of whip-round donations method and system
CN110544193A (en) * 2019-09-06 2019-12-06 腾讯科技(深圳)有限公司 Donation information distributed storage method and device
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
CN114328729A (en) 2022-04-12

Similar Documents

Publication Publication Date Title
CN108712395B (en) Account management method, device, server and storage medium based on block chain
JP2020517165A5 (en)
CN101777978B (en) Method and system based on wireless terminal for applying digital certificate and wireless terminal
CN109003081B (en) Transaction method, system and storage medium based on block chain
EP3701667B1 (en) Anonymity system for goods delivery
CN103109509B (en) For the method and apparatus using receiver's identifier to provide the communication with service
CN109729041B (en) Method and device for issuing and acquiring encrypted content
CN110582793A (en) Anonymity and traceability of digital property transactions over a distributed transaction consensus network
CN110663055A (en) Facilitating funds transfer between user accounts
CN111476572B (en) Block chain-based data processing method, device, storage medium and equipment
CN110336779B (en) Block chain construction method and device and electronic equipment
TWI632798B (en) Server, mobile terminal, and network real-name authentication system and method
CN111723385B (en) Data information processing method, device, electronic equipment and storage medium
US20100241852A1 (en) Methods for Producing Products with Certificates and Keys
CN114239072B (en) Block chain node management method and block chain network
KR102409982B1 (en) Operation method of blockchain currency remittance service system and electronic wallet for currency remittance
CN110401531B (en) Cooperative signature and decryption system based on SM9 algorithm
CN109948370A (en) A kind of method for processing business based on block chain, device and electronic equipment
CN110620776B (en) Data transfer information transmission method and device
JP2012150793A (en) System and method for providing and operating secure communication network
EP3792855A1 (en) A method and system for executing fast and safe transactions involving a high-latency blockchain
CN114328729B (en) Method and device for establishing bone marrow matching block chain, electronic equipment and storage medium
CN112491907A (en) Data transmission method, device, system, storage medium and electronic equipment
CN111553686A (en) Data processing method and device, computer equipment and storage medium
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