Disclosure of Invention
The embodiment of the invention aims to provide a medical data sharing method, device and system based on a cloud server and a blockchain, which can realize safe sharing of electronic medical record information.
In order to achieve the above object, an embodiment of the present invention provides a medical data sharing method based on a cloud server and a blockchain, the sharing method including: storing primary encrypted medical record information of the object through a cloud server, and storing primary encrypted keyword information and object information corresponding to each medical record information through a blockchain; the blockchain acquires a search trapdoor converted based on a search request containing target keyword information, and determines target object information corresponding to the target keyword information according to the search trapdoor and the stored primary encryption keyword information, so that a visitor sends access encryption information to a target object shown by the target object information, and the target object can generate re-encryption information based on the access encryption information of the visitor and the object encryption information of the target object; and the cloud server acquires the re-encryption information, re-encrypts the primary encryption medical record information of the target object according to the re-encryption information and the stored primary encryption medical record information of the target object, so that the visitor can decrypt the re-encryption according to the access encryption information and the object encryption information, and then continue decrypting the primary encryption to acquire the medical record information of the target object.
Preferably, before the primary encrypted medical record information of the object is stored by the cloud server, and the primary encrypted keyword information and the object information corresponding to each medical record information are stored by the blockchain, the medical data sharing method includes: encrypting the medical record information once, including: obtaining medical record information m epsilon {0,1}, of object
* The method comprises the steps of carrying out a first treatment on the surface of the Random number selected based on generator
The medical record information is encrypted once through the following formula to obtain once encrypted medical record information C
m Wherein said->
For non-zero integers, q is the prime number chosen by the generator: />
c
4 =r(H
3 (m)P
1 +P
2 );c
5 =r(H
3 (c
1 )P
1 +H
3 (c
1 ||c
2 ||c
4 )P
2 +P
3 );c
6 =rp; wherein the P is a cyclic group G
1 The generator on the elliptic curve of>
For preset double linesSex pair G
1 ×G
1 →G
2 The G is
1 For the addition cycle group, the G
2 As a multiplication loop group, the H
3 Is a Hash function->
The w is
i Keyword information of the ith object, the pk
i For object public key Y
i The x is
k To share system private key, P
1 G selected for generator-based selection
1 By the formula g
1 P calculated result, P
2 G selected for generator-based selection
2 By the formula g
2 P calculated result, P
3 G selected for generator-based selection
3 By the formula g
3 Results after P calculation, and g
1 、g
2 、/>
C
m =(c
1 ,c
2 ,c
3 ,c
4 ,c
5 ,c
6 ) The method comprises the steps of carrying out a first treatment on the surface of the And/or encrypt the keyword information once, including: obtaining medical record information m epsilon {0,1}, selected by generator
* Corresponding keyword set w= (W)
1 ,w
2 ,...,w
n ) And u, v, wherein said u, -are>
Primary encrypting the keyword set by the following formula to obtain primary encrypted keyword information C
w :A=vP;B=uX
k =ux
k P;C
i =vh
i +uf
i The method comprises the steps of carrying out a first treatment on the surface of the Wherein h is
i =H
1 (w
i ),f
i =H
2 (w
i AB), said H
1 Is a Hash function {0,1}
* →G
1 The H is
2 Is a Hash function {0,1}
* ×G
1 ×G
1 →G
1 The X is
k For sharing system private key x
k A corresponding shared system public key; c (C)
w =(A,B,C
1 ,C
2 …,C
n )。
Preferably, inThe medical data sharing method further comprises the following steps before the blockchain acquires the search trapdoor: converting search request containing target keyword information into search trapdoor T
Q Comprising: the generator generates a target keyword set Ω= (Ω) corresponding to the search request
1 ,…,Ω
t ) The method comprises the steps of carrying out a first treatment on the surface of the Generating a search trapdoor T for the target keyword set transformation by the following formula
Q :T
Q1 =aP,
Wherein a is a random number and +.>
The I is
t For said Ω
t Is used for the identification information of the mobile terminal.
Preferably, the blockchain determining target object information corresponding to the target keyword information according to the search trapdoor and the stored one-time encryption keyword information includes: judging whether the following equation is satisfied:
if the equation is satisfied, after determining the target keyword information in the equation, continuing to determine the target object information corresponding to the target keyword information.
Preferably, the medical data sharing method further includes: before the target object generates re-encryption information based on the access encryption information of the visitor and the object encryption information of the target object, the visitor sends the visitor identity and address information and the shared system public key to the target object, and receives authorization information from the target object, wherein the authorization information comprises a data storage address and index information F i The method comprises the steps of carrying out a first treatment on the surface of the The visitor can perform re-encrypted decryption according to the access encryption information and the object encryption information, and then continue to perform one-time encrypted decryption to obtain the medical record of the target objectInformation: the visitor can access the encrypted information, the object encrypted information, and the data storage address and index information F i And after re-encrypting and decrypting, continuing to decrypt once encryption to acquire medical record information of the target object.
Preferably, the target object is capable of generating the re-encryption information based on the access encryption information of the visitor and the object encryption information of the target object, including: generating re-encrypted information by the following formula
rk=(rk
1 ,rk
2 ) The method comprises the steps of carrying out a first treatment on the surface of the Wherein said pk
j An access public key for the jth visitor in the access encryption information, the x
i For object public key Y
i Corresponding randomly selected ith object private key, and x
i =sk
i ,Y
i =x
i P。
Preferably, the cloud server re-encrypts the primary encrypted medical record information of the target object according to the re-encrypted information and the stored primary encrypted medical record information of the target object, and the primary encrypted medical record information of the target object comprises: the cloud server determines whether a first equation is true, wherein the first equation is configured to
If the first equation is satisfied, continuing to determine whether a second equation is satisfied, wherein the second equation is configured as +.>
If the second equation is satisfied, re-encrypting the primary encrypted medical record information C 'of the target object by the following formula'
m :
c′
4 =c
4 =r(aH
3 (m)+b);c′
5 =c
5 =r(aH
3 (c
1 )+bH
3 (c
1 ||c
2 ||c
4 )+P
3 );c′
6 =c
6 =rP;C′
m =(c′
1 ,c′
2 ,c′
3 ,c′
4 ,c′
5 ,c′
6 ) The method comprises the steps of carrying out a first treatment on the surface of the Wherein said F
i The storage address and index information of the medical record information are encrypted once.
In addition, the invention also provides a medical data sharing device based on the cloud server and the blockchain, which comprises: the cloud server is used for storing the primary encrypted medical record information of the object; the block chain is used for storing primary encryption keyword information and object information corresponding to each medical record information; the blockchain is further used for acquiring a search trapdoor converted based on a search request containing target keyword information, determining target object information corresponding to the target keyword information according to the search trapdoor and the stored primary encryption keyword information, enabling the visitor to send access encryption information to a target object shown by the target object information, and enabling the target object to generate re-encryption information based on the access encryption information of the visitor and the object encryption information of the target object; the cloud server is further configured to obtain the re-encrypted information, and re-encrypt the primary encrypted medical record information of the target object according to the re-encrypted information and the stored primary encrypted medical record information of the target object, so that the visitor can decrypt the re-encrypted information according to the access encrypted information and the target encrypted information, and then continue decrypting the primary encryption to obtain the medical record information of the target object.
In addition, the invention also provides a medical data sharing system based on the cloud server and the blockchain, which comprises: the sharing device; the visitor server is used for sending access encryption information to the target object shown by the target object information; the target object server is used for generating re-encryption information based on the access encryption information of the visitor and the object encryption information of the target object; and the visitor server is further used for continuing to decrypt the primary encryption after decrypting the re-encryption according to the access encryption information and the object encryption information so as to acquire medical record information of the target object.
In addition, the invention also provides a machine-readable storage medium, wherein the machine-readable storage medium is stored with instructions for causing a machine to execute the medical data sharing method based on the cloud server and the blockchain.
According to the technical scheme, the primary encryption medical record information is stored through the cloud server, the primary encryption keyword information and the object information are stored through the blockchain, in addition, the blockchain can determine the target keyword information and the corresponding target object information in the stored primary encryption keyword information based on the search trapdoor converted by the search request, so that a visitor can communicate with the target object based on the target object information, the target object can obtain access encryption information of the visitor, the target object can generate re-encryption information based on the access encryption information and the object encryption information of the target object, the cloud server re-encrypts the stored primary encryption medical record information of the target object by adopting the re-encryption information, the visitor can obtain the object encryption information of the target object, and decrypt the primary encryption medical record information by adopting the object encryption information and the access encryption information, and finally, the information of the target object can be obtained, the safety of data is ensured by utilizing the re-encryption and decryption modes, and all data can be integrated into whole and sustainable shared data is realized.
Additional features and advantages of embodiments of the invention will be set forth in the detailed description which follows.
Detailed Description
The following describes the detailed implementation of the embodiments of the present invention with reference to the drawings. It should be understood that the detailed description and specific examples, while indicating and illustrating the invention, are not intended to limit the invention.
Before the invention is described in detail, the lower blockchain is briefly introduced, and the blockchain can realize the search of keywords in the invention so as to finally obtain target object information corresponding to target keywords. The cloud server can store on-line medical record information, the primary encrypted medical record information is the medical record information after initial encryption, so that the safety of medical record data uploaded to the cloud server is guaranteed, and the primary encryption of keyword information is also used for guaranteeing the safety of the medical record information entering a blockchain. The medical data sharing method of the present invention is briefly described below with reference to the accompanying drawings. In the embodiments described below, the subject may be a patient, the generator may be a hospital and doctor, the visitor may be a clinic, laboratory, government, etc.
Example 1
Fig. 1 is a flowchart of a medical data sharing method based on a cloud server and a blockchain in embodiment 1.
As shown in fig. 1, S110, primary encrypted medical record information of an object is stored through a cloud server, and primary encrypted keyword information and object information corresponding to each medical record information are stored through a blockchain.
The medical data may include medical record information, keyword information, etc., and due to different types of medical data, different storage modes are needed, and the medical data is transmitted and stored through different channels, and is processed subsequently, so that corresponding functions are realized. The keywords are keywords in medical records, and are generated according to each medical record, and the object information can be account information of the object and is used for showing account numbers of the object to be found.
Further preferably, the manner of encrypting the medical record information once and encrypting the keyword information once can be performed by the following steps.
The primary encrypting medical record information can include the steps of:
a1 Obtaining medical record information m epsilon {0,1}, of object * ;
A2 Based on the random number selected by the generator
Primary encrypting the medical record information by the following formulas (1) - (8) to obtain primary encrypted medical record information C
m Wherein said->
For non-zero integers, q is the prime number chosen by the generator:
equation (5): c 4 =r(H 3 (m)P 1 +P 2 );
Equation (6): c 5 =r(H 3 (c 1 )P 1 +H 3 (c 1 ||c 2 ||c 4 )P 2 +P 3 );
Equation (7): c 6 =rP;
Equation (8): c (C) m =(c 1 ,c 2 ,c 3 ,c 4 ,c 5 ,c 6 );
Wherein the P is a cyclic group G
1 Generating elements on elliptic curve of (a), said
For a predetermined bilinear pair G
1 ×G
1 →G
2 The G is
1 For the addition cycle group, the G
2 As a multiplication loop group, the H
3 Is a Hash function->
The w is
i Keyword information of the ith object, the pk
i For object public key Y
i The x is
k To share system private key, P
1 G selected for generator-based selection
1 By the formula g
1 P calculated result, P
2 G selected for generator-based selection
2 By the formula g
2 P calculated result, P
3 G selected for generator-based selection
3 By the formula g
3 Results after P calculation, and g
1 、g
2 、/>
Encrypting the keyword information once may include the steps of:
b1 Obtaining medical record information m epsilon {0,1}, selected by a generator
* Corresponding keyword set w= (W)
1 ,w
2 ,...,w
n ) And u, v, wherein said u,
B2 Primary encrypting the keyword set by formulas (8) - (11) to obtain primary encrypted keyword information C w :
Equation (8): a=vp;
equation (9): b=ux k =ux k P;
Equation (10): c (C) i =vh i +uf i ;
Equation (11): c (C) w =(A,B,C 1 ,C 2 …,C n );
Wherein h is i =H 1 (w i ),f i =H 2 (w i AB), said H 1 Is a Hash function {0,1} * →G 1 The H is 2 Is a Hash function {0,1} * ×G 1 ×G 1 →G 1 The X is k For sharing system private key x k A corresponding shared system public key.
The storing, by the cloud server, the primary encrypted medical record information of the object and storing, by the blockchain, the primary encrypted keyword information and the object information corresponding to each medical record information may include:
data packet
Storing the data package in the cloud server>
Stored in a blockchain, wherein the A
i Account address of the ith object, namely target object information, C
k Is a consensus statement for the producer.
S120, the blockchain acquires a search trapdoor converted based on a search request containing target keyword information, determines target object information corresponding to the target keyword information according to the search trapdoor and the stored primary encryption keyword information, enables a visitor to send access encryption information to a target object shown by the target object information, and enables the target object to generate re-encryption information based on the access encryption information of the visitor and the object encryption information of the target object.
Wherein, before S120, a search request containing target keyword information can be madeConversion to search trapdoor T Q The conversion method comprises the following steps:
the generator generates a target keyword set Ω= (Ω) corresponding to the search request 1 ,…,Ω t );
Generating a search trapdoor T for the target keyword set transformation by the following formulas (12) - (14) Q :
Equation (12): t (T)
Q1 =aP,
equation (14):
wherein a is a random number and +.>
The I is
t For said Ω
t I.e. it can identify the target keywords in the target keyword set.
Wherein, in S120, determining target object information corresponding to the target keyword information according to the search trapdoor and the stored primary encrypted keyword information includes:
determining whether equation (15) is true, wherein equation (15) is
If the equation (15) is satisfied, indicating that the stored keyword information shown in the equation (15) is the same as the search trapdoor, and the keyword information is the target keyword information, and then continuously determining target object information opposite to the target keyword information, wherein the target object information can realize subsequent operations; if the equation (15) is not satisfied, it indicates that the search fails, and the target keyword information cannot be searched from the stored keyword information.
Further preferably, in S120, before the target object generates re-encrypted information based on the access encryption information of the visitor and the object encryption information of the target object, the visitor sends the visitor identity and address information, the shared system public key to the target object, and receives authorization information from the target object, the authorization information including a data storage address and index information F i 。
Wherein the data information sent by the visitor to the target object can be sent in the form of
The I is
j For the identity information of the visitor, A
j Address information for the visitor. The authorization information can be transmitted as +.>
Accordingly, if the visitor also shares the system public key with visitor identity and address information, the subsequent re-encryption needs to be adjusted according to the above information, specifically, through subsequent steps.
Further preferably, the method for re-encrypting the target object based on the acquired information includes:
the re-encryption information rk is generated by the following formulas (15) - (16):
equation (17): rk= (rk) 1 ,rk 2 ) The method comprises the steps of carrying out a first treatment on the surface of the Wherein said pk j An access public key for the jth visitor in the access encryption information, the x i To pair(s)Elephant public key Y i Corresponding randomly selected ith object private key, and x i =sk i ,Y i =x i P。
S130, the cloud server acquires the re-encryption information, re-encrypts the primary encryption medical record information of the target object according to the re-encryption information and the stored primary encryption medical record information of the target object, so that the visitor can decrypt the re-encryption according to the access encryption information and the object encryption information, and then continue decrypting the primary encryption to acquire the medical record information of the target object.
After the cloud server acquires the re-encryption information, the cloud server firstly analyzes primary encryption medical record information C 'of the target object' m Obtaining (c) 1 ,c 2 ,c 3 ,c 4 ,c 5 ,c 6 ) The method comprises the steps of carrying out a first treatment on the surface of the Re-resolving the re-encrypted information rk to obtain (rk 1 ,rk 2 )。
Through the re-encryption mode, the re-encryption of the once-encrypted medical record information can be realized, a visitor can realize the decryption of the re-encryption based on the obtained information, and the medical record information of the target object can be obtained after the decryption of the once-encrypted medical record information is continued.
Further preferably, the cloud server re-encrypts the primary encrypted medical record information of the target object according to the re-encrypted information and the stored primary encrypted medical record information of the target object, and the primary encrypted medical record information of the target object may include:
c1 Determining whether a first equation is true, wherein the first equation is configured to
C2 If the first equation is satisfied, continuing to determine whether a second equation is satisfied, wherein the second equation is configured to
Execution continues with S134.
C3 Further preferably, if the first equation is not established, indicating that the primary encrypted medical record information of the target object cannot be re-encrypted;
c4 If the second equation is satisfied, re-encrypting the primary encrypted medical record information of the target object by the following formulas (18) - (24) to obtain re-encrypted primary encrypted medical record information C' m :
equation (21): c' 4 =c 4 =r(aH 3 (m)+b);
Equation (22): c' 5 =c 5 =r(H 3 (c 1 )P 1 +H 3 (c 1 ||c 2 ||c 4 )P 2 +P 3 );
Equation (23): c' 6 =c 6 =rP;
Equation (24): c'. m =(c′ 1 ,c′ 2 ,c′ 3 ,c′ 4 ,c′ 5 ,c′ 6 ) The method comprises the steps of carrying out a first treatment on the surface of the Wherein said F i The storage address and index information of the medical record information are encrypted once.
C5, further preferably, if the second equation is satisfied, indicating that the re-encryption information is invalid.
Further preferably, the visitor is able to access the encrypted information, the object encrypted information, and the data storage address and index information F i And after re-encrypting and decrypting, continuing to decrypt once encryption to acquire medical record information of the target object.
Wherein the visitor adopts a visitor private key sk
j Authorization information
The re-encrypted primary encrypted medical record information C'
m Decryption is performed, specifically, calculated by the following formula (25):
and judges whether or not the equation (26) and the equation (27) are satisfied, wherein the equation (26) is
Said equation (27) is +.>
If both equations (26) and (27) are true, medical record information of the target object is decrypted.
Example 2
In embodiment 2, a medical data sharing device corresponding to embodiment 1 is specifically described in detail. Fig. 2 is a block diagram of the apparatus, further described in connection with fig. 2. As shown in fig. 2, 1, service request; 2, data storage; 3, file position; 4, keyword, account address; 5, searching request; 6, trapdoors; 7, searching keywords; 8, searching results; 9, searching request; 10, requesting notification; 11, authorization; 12, re-encrypting the key; 13, re-encrypting the data. The data visitor is the visitor in this embodiment, the data owner is the generator in this embodiment, and the data provider is the target object in this embodiment.
As shown in fig. 2, the present invention further provides a medical data sharing device based on a cloud server and a blockchain, where the sharing device includes: the cloud server is used for storing the primary encrypted medical record information of the object; the block chain is used for storing primary encryption keyword information and object information corresponding to each medical record information; the blockchain is further used for acquiring a search trapdoor converted based on a search request containing target keyword information, determining target object information corresponding to the target keyword information according to the search trapdoor and the stored primary encryption keyword information, enabling the visitor to send access encryption information to a target object shown by the target object information, and enabling the target object to generate re-encryption information based on the access encryption information of the visitor and the object encryption information of the target object; the cloud server is further configured to obtain the re-encrypted information, and re-encrypt the primary encrypted medical record information of the target object according to the re-encrypted information and the stored primary encrypted medical record information of the target object, so that the visitor can decrypt the re-encrypted information according to the access encrypted information and the target encrypted information, and then continue decrypting the primary encryption to obtain the medical record information of the target object.
Preferably, the medical data sharing system further comprises: the primary medical record information encrypting module is configured to encrypt the medical record information once before the primary encrypted medical record information of the object is stored by the cloud server and the primary encrypted keyword information and the object information corresponding to each medical record information are stored by the blockchain, and includes: a medical record information acquisition sub-module for acquiring medical record information m epsilon {0,1}
* The method comprises the steps of carrying out a first treatment on the surface of the A medical record information encryption sub-module for encrypting the random number selected based on the generator
The medical record information is encrypted once through the following formula to obtain once encrypted medical record information C
m Wherein said->
For non-zero integers, q is the prime number chosen by the generator: />
c
4 =r(H
3 (m)P
1 +P
2 );c
5 =r(H
3 (c
1 )P
1 +H
3 (c
1 ||c
2 ||c
4 )P
2 +P
3 );c
6 =rP;C
m =(c
1 ,c
2 ,c
3 ,c
4 ,c
5 ,c
6 ) The method comprises the steps of carrying out a first treatment on the surface of the Wherein the P is a cyclic group G
1 The generator on the elliptic curve of>
For a predetermined bilinear pair G
1 ×G
1 →G
2 The G is
1 For the addition cycle group, the G
2 As a multiplication loop group, the H
3 Is a Hash function->
The w is
i Keyword information of the ith object, the pk
i For object public key Y
i The x is
k To share system private key, P
1 G selected for generator-based selection
1 By the formula g
1 P calculated result, P
2 G selected for generator-based selection
2 By the formula g
2 P calculated result, P
3 G selected for generator-based selection
3 By the formula g
3 Results after P calculation, and g
1 、g
2 、/>
And/or a keyword information primary encryption module, for encrypting the keyword information once before the primary encrypted medical record information of the object is stored by the cloud server and the primary encrypted keyword information and the object information corresponding to each medical record information are stored by the blockchain, comprising: a keyword acquisition sub-module for acquiring medical record information m epsilon {0,1}, selected by the generator
* Corresponding keyword set w= (W)
1 ,w
2 ,...,w
n ) And u, v, wherein said u, -are>
The keyword encryption sub-module is used for primary encrypting the keyword set to obtain primary encrypted keyword information C through the following formula
w :A=vP;B=uX
k =ux
k P;C
i =vh
i +uf
i The method comprises the steps of carrying out a first treatment on the surface of the Wherein h is
i =H
1 (w
i ),f
i =H
2 (w
i AB), said H
1 Is a Hash function {0,1}
* →G
1 The H is
2 Is a Hash function {0,1}
* ×G
1 ×G
1 →G
1 The X is
k For sharing system private key x
k A corresponding shared system public key; c (C)
w =(A,B,C
1 ,C
2 …,C
n )。
Preferably, before the blockchain acquires the search trapdoor, the medical data sharing system may further include: a search trapdoor conversion module for converting the search request containing the target keyword information into a search trapdoor T
Q Comprising: a target keyword set generation sub-module for enabling the generator to generate a target keyword set Ω= (Ω) corresponding to the search request
1 ,…,Ω
t ) The method comprises the steps of carrying out a first treatment on the surface of the A search trapdoor generation sub-module for generating a search trapdoor T for the target keyword set transformation by the following formula
Q :
Wherein a is a random number and +.>
The I is
t For said Ω
t Is used for the identification information of the mobile terminal.
Preferably, the blockchain includes:
the target keyword judging module is used for judging whether the following equation is satisfied:
and the target object determining module is used for continuously determining target object information corresponding to the target keyword information after determining the target keyword information in the equation if the equation is satisfied.
Preferably, the cloud server includes:
a first equation judging module for judging whether the first equation is satisfied, wherein the first equation is configured as
A second equation judging module for continuing to judge whether the second equation is satisfied if the first equation is satisfied, wherein the second equation is configured to
The re-encryption module is used for re-encrypting the primary encrypted medical record information C 'of the target object through the following formula if the second equation is satisfied'
m :
c′
4 =c
4 =r(aH
3 (m)+b);c′
5 =c
5 =r(H
3 (c
1 )P
1 +H
3 (c
1 ||c
2 ||c
4 )P
2 +P
3 );c′
6 =c
6 =rP;C′
m =(c′
1 ,c′
2 ,c′
3 ,c′
4 ,c′
5 ,c′
6 ) The method comprises the steps of carrying out a first treatment on the surface of the Wherein said F
i The storage address and index information of the medical record information are encrypted once.
The technical effects of embodiment 2, which are the same as those of embodiment 1, can be achieved as compared with the prior art, and are not described herein.
Example 3
Fig. 3 is a block diagram of a medical data sharing system based on a cloud server and a blockchain according to embodiment 3. The data visitor is the visitor system in this embodiment, the data owner is the generator system in this embodiment, and the data provider is the target object system in this embodiment.
As shown in fig. 3, the present invention further provides a medical data sharing system based on a cloud server and a blockchain, where the sharing system includes: the sharing device described in the above embodiment 2; the visitor server is used for sending access encryption information to the target object shown by the target object information; the target object server is used for generating re-encryption information based on the access encryption information of the visitor and the object encryption information of the target object; and the visitor server is further used for continuing to decrypt the primary encryption after decrypting the re-encryption according to the access encryption information and the object encryption information so as to acquire medical record information of the target object.
Wherein, the visitor server is positioned at the visitor terminal; the target object server is at the object end.
In addition, in this embodiment, a generator server is provided at the generator end, which is convenient for the generator to operate to encrypt the medical record information once, encrypt the keyword information once, and convert the search request containing the target keyword information into a search trapdoor.
In comparison with the prior art, the embodiment 3 achieves the same technical effects as those of the embodiment 1, and will not be described in detail herein.
The medical data sharing device based on the cloud server and the blockchain comprises a processor and a memory, wherein the cloud server and the blockchain are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one, and medical data sharing is realized by adjusting kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
An embodiment of the present invention provides a machine-readable storage medium having instructions stored thereon for causing a machine to perform the cloud server and blockchain-based medical data sharing method of embodiment 1 of the present application.
The embodiment of the invention provides a processor which is used for running a program, wherein the medical data sharing method based on a cloud server and a blockchain is executed when the program runs.
The embodiment of the invention provides a device, which comprises a processor, a memory and a program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the steps in the embodiment 1. The device herein may be a server, PC, PAD, cell phone, etc.
The present application also provides a computer program product adapted to perform a program initialized with the method steps of embodiment 1 when executed on a data processing device.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.