A secure medical data sharing method based on lattice cryptography and alliance chain
By combining lattice cryptography and alliance chain technology, the problem of the vulnerability of centralized platforms to attacks and the insecurity of traditional encryption algorithms in medical data sharing systems is solved, achieving information transparency and high-security medical data sharing, and adapting to the threat of future quantum computers. .
Patent Information
- Application Number
- CN202110830671.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-22
- Publication Date
- 2024-08-23
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Because the existing medical data sharing system relies on a centralized cloud computing platform, it is vulnerable to hacker attacks and has high data recovery costs. Moreover, traditional encryption algorithms are no longer safe after the emergence of quantum computers and cannot effectively guarantee the privacy and security of data.
Adopt a medical data security sharing method based on lattice cryptography and alliance chain, integrate secret sharing algorithm and blockchain technology, utilize the anti-quantum computing attack characteristics of lattice cryptography, and achieve information transparency and data through smart contracts and the identity management mechanism of alliance chain. Security.
It improves the security and transparency of the medical data sharing system, can effectively deal with the threats of quantum computers, and ensures the privacy and integrity of the data during the sharing process.
Smart Images

Figure CN113656829B
Abstract
Description
Technical Field
[0001] The present invention relates to a medical data security sharing method, and in particular to a medical data security sharing method based on lattice cryptography and alliance chain, and belongs to the technical field of blockchain. Background Art
[0002] With the development of computer and Internet technology, electronic medical data has become widely used in daily life. The electronic medical data generated by medical institutions usually includes patient information, clinical trial data, cost records, etc. Some medical product development companies generally use real medical data for product development.
[0003] The medical data sharing system provides a platform for sharing medical data for numerous medical institutions and medical product development companies. Its main design goal is to ensure the privacy, integrity, and correctness of medical data during the sharing process.
[0004] In order to improve data security, the medical data sharing system will consider the following business scenarios: When a medical product research and development institution (referred to as the user) hopes to use medical data released by a medical institution, each medical institution will decide whether to agree to the user's access to and use of the data based on its credit assessment of the user. Only when a certain number of medical institutions choose to agree can the user access the data.
[0005] At present, the mainstream medical data sharing system is based on centralized service providers such as cloud computing platforms. The records of users accessing data, records of medical institutions making decisions, and information about medical data itself are all stored on third-party cloud platforms. Organizations participating in medical data sharing need to rely on a trusted third party that provides data sharing services. There are two main types of disadvantages caused by this:
[0006] First, centralized service providers are vulnerable to hacker attacks, and the cost of recovering data after an attack is huge or even impossible.
[0007] Second, the service provider can modify the relevant records of organizations participating in data sharing.
[0008] To meet the needs, existing medical data sharing systems usually use secret sharing algorithms, most of which are based on the discrete logarithm problem in number theory. However, with the emergence of quantum computers, cryptographic mechanisms based on the discrete logarithm problem and the integer factorization problem will no longer be secure in the future.
[0009] The core idea of blockchain technology is that the identity management mechanism of consortium blockchain technology can manage the identities of data sharing participants, and the efficient consensus mechanism can meet the performance requirements for enterprises. Summary of the invention
[0010] The purpose of the present invention is to address the defects of the existing medical data sharing system due to the opaque interaction records between participants, and to creatively propose a medical data security sharing method based on lattice cryptography and alliance chain in order to cope with the security threat posed by future quantum computers to traditional encryption algorithms.
[0011] The innovation of this method lies in: for the first time, the secret sharing algorithm is integrated with the business on the alliance blockchain; for the first time, the characteristics of lattice cryptography to resist quantum computing attacks are proposed, and the secret sharing algorithm based on lattice cryptography is applied to the medical data sharing system.
[0012] In order to achieve the above objectives, the present invention adopts the following technical solutions.
[0013] First, let’s explain the relevant concepts:
[0014] Definition 1: Medical data sharing network
[0015] It includes medical institutions that provide medical data, medical product research and development institutions that request medical data, referred to as users, and managers who generate public parameters of secret sharing algorithms and manage secret sharing shares.
[0016] Definition 2: Consortium blockchain network
[0017] That is, the consortium chain network is an infrastructure network for sharing medical data, which includes three types of nodes: client nodes, peer nodes, and sorting nodes.
[0018] Definition 3: Client Node
[0019] Refers to users in a medical data sharing network based on a consortium chain network, who send requests to the consortium chain network and process transaction information through the consortium chain. Each data sharing participant must have a client node.
[0020] Definition 4: Peer Node
[0021] Refers to the nodes that provide service functions in the alliance chain network. Each data sharing participant needs to have a peer node. Among them, service functions include smart contract execution, transaction verification, and maintenance of distributed ledgers.
[0022] Definition 5: Ordering Node
[0023] In the alliance chain network, it is responsible for sorting the transaction execution results through the consensus algorithm, packaging them into blocks, and distributing them to peer nodes.
[0024] Definition 6: Smart Contract
[0025] A distributed computer program that can be automatically executed according to the terms of the agreement. When it is executed, the content of the distributed ledger in the consortium chain will be updated.
[0026] A method for securely sharing medical data based on lattice cryptography and alliance chain, comprising the following steps:
[0027] Step 1: Initialize the operation.
[0028] The administrator initializes the alliance chain network configuration, establishes the network, and initializes the security parameters related to the secret sharing algorithm.
[0029] Specifically, step 1 includes the following steps:
[0030] Step 1.1: The alliance chain network configuration parameters include: trusted organization list, organization role division, block parameters, server node parameters, and network communication parameters.
[0031] The administrator creates and starts the network based on the above parameters and writes these parameters into the ledger.
[0032] Step 1.2: Add the server nodes and client nodes of each medical institution and user to the alliance chain network.
[0033] Each node must provide a certificate issued by its own organization, and these certificates must come from a list of trusted organizations.
[0034] Step 1.3: The administrator determines the security parameters of the secret sharing algorithm, including the secret sharing threshold, prime number domain, and key size, and calls the smart contract to put these parameters on the chain.
[0035] Step 2: Distribute shares.
[0036] The administrator generates shares for each participant in the system and distributes them to various medical institutions. After each participant receives the share, they need to verify and confirm the share.
[0037] Specifically, step 2 includes the following steps:
[0038] Step 2.1: The manager randomly generates a public vector Λ that is the same as the number of medical institutions and randomly generates a secret sharing share C for each participant.
[0039] Step 2.2: Distribute the shares to respective medical institutions and call the smart contract to put Λ on the chain.
[0040] Step 2.3: The medical institution that receives the share verifies the share through the hash algorithm. If it passes the verification, the confirmation information will be published to the blockchain. Otherwise, wait for the administrator to send the share again. The next step can only be performed after all medical institutions confirm it.
[0041] Step 3: Publish the data.
[0042] Medical institutions use symmetric encryption to generate ciphertext for a piece of data and publish the summary information of the data on the chain.
[0043] Specifically, step 3 includes the following steps:
[0044] Step 3.1: The medical institution generates a ciphertext through symmetric encryption of a piece of data, and generates a corresponding secret s to recover the plaintext data.
[0045] Step 3.2: The medical institution publishes the encrypted data address on the chain.
[0046] Step 3.3: The administrator calculates a public matrix A corresponding to the data and publishes it on the chain.
[0047] Step 4: Perform data recovery.
[0048] The user publishes the request information for a piece of data on the blockchain, and the other medical institutions construct a pseudo-share and send it to the user to help him recover the data.
[0049] Specifically, step 4 includes the following steps:
[0050] Step 4.1: The user generates a ledger status with the requested data information and publishes it on the blockchain. The information includes the status of data recovery and the number of pseudo shares received.
[0051] Step 4.2: The medical institution that agrees to allow the user to access the data calculates a pseudo share based on its own share and the public matrix A of the medical data, and sends the pseudo share to the user.
[0052] Step 4.3: The user calculates the secret s based on the received pseudo shares. The secret can only be recovered when the user receives at least the same number of pseudo shares as the threshold value.
[0053] Step 4.4: The user sends the recovered secret to the medical institution that published the data, which determines whether the recovered secret is valid based on the blockchain ledger status content. If the verification is successful, the medical institution will send the key for decrypting the ciphertext data to the user to restore the plaintext data. Otherwise, the request fails and the user cannot obtain the key.
[0054] Beneficial Effects
[0055] Compared with the prior art, the method of the present invention has the following advantages:
[0056] 1. This method is based on blockchain technology, and the information between all participants is open and transparent.
[0057] 2. This method adopts the identity management mechanism of the alliance chain, so that only authorized nodes can join the network, improving data security.
[0058] 3. This method integrates the secret sharing algorithm based on lattice cryptography for the first time, enabling the medical data sharing system to effectively respond to the threat of quantum computer technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 The figure is a flow chart of an embodiment of the method of the present invention. DETAILED DESCRIPTION
[0060] The method of the present invention is further described in detail below with reference to the accompanying drawings and embodiments.
[0061] Example
[0062] This embodiment describes the process of data sharing in a medical data sharing network using the method of the present invention.
[0063] like Figure 1 As shown, there are x hospitals P1,…,P x , a user P k and a manager. represents an m-dimensional vector space over the finite integer field modulo q, represents the m×n matrix space over the finite integer field modulo q, M -1 Represents the inverse matrix of matrix M.
[0064] Step 1: The administrator first establishes the network by initializing the alliance chain network configuration and initializes the parameters related to the secret sharing algorithm.
[0065] Specifically, step 1 includes the following sub-steps:
[0066] Step 1.1: The administrator initializes the alliance chain network parameters, generates the ledger state NetConfig, and writes it into the blockchain ledger. NetConfig includes the list of trusted organizations, organizational role division, block parameters, server node parameters, network communication parameters, etc.
[0067] Step 1.2: The administrator needs to determine the secret sharing threshold t, the prime number q, the key size r, and a vector v, where The last term of v is 1, r>tlogq, c represents a real constant, represents a t-dimensional vector space over the finite integer field modulo q, Indicates the computational complexity.
[0068] Step 1.3: Call the smart contract, publish q, v, t, r to the chain, and generate the account status MathParams.
[0069] Step 2: The administrator generates a share for each participant in the system and distributes it to each hospital. After each participant receives the share, the share needs to be verified and confirmed.
[0070] Specifically, step 2 includes the following sub-steps:
[0071] Step 2.1: The manager randomly generates x linearly independent vectors λ j , j=1,…,x, randomly generate x linearly independent vectors c j , c j ∈{0,1} r , c j As shares and distributed to various hospitals.
[0072] Step 2.2: The manager randomly generates a matrix F, represents a t×r matrix space over the finite integer field modulo q. j =Fc j Calculate a matrix H = [h1 … h x ], calling the smart contract to set λ1,…,λ x , F, and H are published on the chain to generate a ledger state PublicMats. x represents a column vector.
[0073] In step 2.2, the column vector h in the matrix H j They are all outputs of a one-way function (hereinafter referred to as SIS-OWF) constructed based on the lattice cryptographic least integer solution (SIS) problem. When the matrices F and H are published, the information about the shares will not be revealed. The generated ledger state PublicMats contains a confirm field, whose value type is an array, which is responsible for storing the hospitals that have confirmed their shares. The initial value is null.
[0074] Step 2.3: Become a Hospital P j After receiving your share, you can get F and H by querying the PublicMats status in the ledger. j =Fc j Is it true? If it is true, it means that the correct share has been received, and the smart contract is called to j Add to the confirm array of PublicMats.
[0075] Step 3: Assume that hospital 1 publishes data DT1.
[0076] Specifically, step 3 includes the following steps:
[0077] Step 3.1: Hospital 1 encrypts data DT1 using private key sk1 to generate data ciphertext CT1, and uploads the ciphertext to the file server at URL1. Bind s1 to sk1.
[0078] Among them, s1 represents the corresponding key sk i The secret. represents an r-dimensional vector space over the finite integer field modulo q.
[0079] Step 3.2: Hospital 1 generates a ledger state InfoDT1, which contains information such as URL1 and the identity of Hospital 1.
[0080] Step 3.3: Hospital 1 generates a matrix B1 for s1 based on vector v as the lattice basis of s1, satisfying s i =B1v, and send B1 to the manager. Let C = [c1 … c x ],Λ=[λ1 … λ x ]The manager obtains the common matrix A1 about the data DT1 through calculation, satisfying A1C=B1Λ.
[0081] Among them, the method for obtaining matrix B1 in step 3.3 is:
[0082] Randomly generate a matrix B′1 whose column vectors are linearly independent of each other. represents a t×(t-1)-dimensional matrix space over a finite integer field modulo q, where B1=[B′1 b1], b1 represents the last column vector of the matrix B1, and the unknown quantity is b1, which is calculated according to the following formula:
[0083]
[0084] b1=s1-B′1v′ (2) where v′ represents the first (t-1) term of vector v.
[0085] In step 3.3, the manager calculates the common matrix A1 of the data DT1 as follows:
[0086] The manager randomly generates a matrix A″1, Representing the t×(rx)-dimensional matrix space over the finite integer field modulo q, we have:
[0087]
[0088] A′1=(B1Λ-A″1C″)C′-1 (4)
[0089] Among them, A′1 represents the first x columns of A1, C′ represents the first (rx) rows of the share matrix C, and C″ represents the last x rows of C.
[0090] Step 4: User P k Obtaining data DT1 includes the following sub-steps:
[0091] Step 4.1: User P k Call the smart contract to generate a ledger state ReqDT1P k , the fields are shown in Table 1.
[0092] Table 1 Ledger Status ReqDT1P5
[0093]
[0094]
[0095] Step 4.2: If a hospital P j Agree to user P k Request, then according to Calculate the pseudo share And the pseudo share Send to user P k .
[0096] The pseudo-share constructed here It is based on SIS-OWF, so even when the user gets the pseudo share, they cannot calculate the hospital's share value.
[0097] Step 4.3: When user P k After receiving at least t pseudo shares reaching the secret sharing threshold, they are combined into a matrix Let L be the λ corresponding to the hospital providing the pseudo share j Composition, calculation Further according to Recover data DT i The corresponding secret
[0098] Step 4.4: User P k Keep secret Sent to hospital 1, hospital 1 passed the verification Is it equal to s1? The legitimacy of the request is checked. If it passes, the decryption key sk1 is sent to user P. k Otherwise the request fails and the user cannot obtain the key.
[0099] Among them, the legitimacy verification method used in step 4.4 is as follows:
[0100] First, the hospital tested Whether it is equal to s1, if it is equal, continue the verification step, otherwise return the verification failure information;
[0101] Then, the hospital obtains the ledger status generated during the entire data recovery phase, namely ReqP j DT i , denoted as set S R ;
[0102] Finally, traverse the set S R , if the requester field is P k , field dataID is DT1, and field status is 2 (indicating ready), the secret verification is successful, otherwise the verification failure information is returned.
[0103] The pseudo code form of the secret legitimacy verification method is as follows:
[0104] Method 1: Secret legitimacy verification algorithm
[0105] enter: P k ,DT1
[0106] Output: sk1
[0107] (1) if then
[0108] (2) return Failed
[0109] (3)end if
[0110] (4)S R ←All of the ledger states of data recovery stage / / Get all the ledger states S generated in the data recovery stage R
[0111] (5)
[0112] (6)
[0113] (7) return sk i
[0114] (8)end if
[0115] (9)end for
[0116] (10)return Failed
[0117] The above secret verification algorithm can prevent the impact caused by the leakage of secret s1 by checking the ledger state ReqDt1P k The field in the middle is used to ensure data security.
[0118] Table 2 shows the ledger states used in the present invention and their meanings.
[0119] Table 2 Several ledger states and their meanings
[0120]
Claims
1. A medical data security sharing method based on lattice cryptography and alliance chain, characterized in that: The following steps are involved: Step 1: The administrator initializes the alliance chain network configuration, establishes the network, and initializes the security parameters related to the secret sharing algorithm. The alliance chain network is an infrastructure network for medical data sharing, which contains three types of nodes: client nodes, peer nodes, and sorting nodes; Client nodes refer to users in the medical data sharing network based on the alliance chain network. They send requests to the alliance chain network and process transaction information through the alliance chain. Each data sharing participant must have a client node. A peer node refers to a node that provides service functions in the consortium chain network. Each data sharing participant needs to have a peer node. The service functions include smart contract execution, transaction verification, and distributed ledger maintenance. Sorting nodes are responsible for sorting transaction execution results through consensus algorithms in the alliance chain network, packaging them into blocks, and distributing them to peer nodes; Step 1.1: The alliance chain network configuration parameters include: trusted organization list, organization role division, block parameters, server node parameters, and network communication parameters; The administrator creates and starts the network based on the above parameters and writes these parameters into the ledger; Step 1.2: Add the server nodes and client nodes of each medical institution and user to the alliance chain network; Each node must provide a certificate issued by its own organization, which must come from a list of trusted organizations. Step 1.3: The manager determines the security parameters of the secret sharing algorithm, including the secret sharing threshold, prime number domain, and key size, and calls the smart contract to put these parameters on the chain; Step 2: The administrator generates a share for each participant in the system and distributes it to various medical institutions. After each participant receives the share, they need to verify and confirm the share, including the following steps: Step 2.1: The manager randomly generates a public vector Λ equal to the number of medical institutions, and randomly generates a secret sharing share C for each participant; Step 2.2: Distribute the shares to respective medical institutions and call the smart contract to put Λ on the chain; Step 2.3: The medical institution that receives the share verifies the share through the hash algorithm; if it passes the verification, the confirmation information is published to the blockchain, otherwise it waits for the administrator to send the share again until all medical institutions confirm it before executing the next step; Step 3: The medical institution generates ciphertext from a piece of data through symmetric encryption and publishes the summary information of the data on the chain, including the following steps: Step 3.1: The medical institution generates a ciphertext by symmetric encryption of a piece of data, and generates a corresponding secret s to restore the plaintext of the data; Step 3.2: The medical institution publishes the encrypted data address on the chain; Step 3.3: The administrator calculates a public matrix A corresponding to the data and publishes it on the chain; Suppose there are x hospitals P1,…,P x , a user P k and a manager, where represents an m-dimensional vector space over the finite integer field modulo q, represents the m×n matrix space over the finite integer field modulo q, M -1 represents the inverse matrix of the matrix M; wherein the medical data sharing network includes medical institutions that provide medical data, medical product research and development institutions that request medical data, referred to as users, and managers that generate public parameters of secret sharing algorithms and manage secret sharing shares; Assume that hospital 1 publishes data DT1, hospital 1 encrypts data DT1 using private key sk1, generates data ciphertext CT1, and uploads the ciphertext to the file server at URL1; randomly generate represents an r-dimensional vector space over a finite integer field modulo q; bind s1 to sk1, where s1 represents the secret corresponding to key sk1; hospital 1 generates a ledger state InfoDT1, which contains URL1 and the identity of hospital 1; Hospital 1 generates a matrix B1 for s1 based on vector v as the lattice basis of s1, satisfying s1 = B1v, and sends B1 to the administrator; s1 represents the secret of the corresponding key sk1; Let C = [c1 … c x ],Λ=[λ1 … λ x ], the manager obtains the common matrix A1 about the data DT1 through calculation, which satisfies A1C=B1Λ; Among them, the method for finding matrix B1 is: Randomly generate a matrix B′1 whose column vectors are linearly independent of each other. in, Represents a t×(t-1)-dimensional matrix space on the finite integer field of module q, B1=[B′1 b1], b1 represents the last column vector of matrix B1, then the unknown quantity is b1, and b1 is calculated according to the following formula: b1=s1-B′1v′ (2) Where v′ represents the first (t-1) term of vector v; The method for the manager to calculate the public matrix A1 of the data DT1 is: The manager randomly generates a matrix A″1, Representing the t×(rx)-dimensional matrix space over the finite integer field modulo q, we have: A′1=(B1Λ-A"1C")C′ -1 (4) Where A′1 represents the first x columns of A1, C′ represents the first (rx) rows of the share matrix C, and C″ represents the last x rows of C; Step 4: The user publishes the request information for a piece of data on the blockchain, and the rest of the medical institutions construct a pseudo-share and send it to the user to help him recover the data, including the following steps: Step 4.1: The user generates a ledger status with the requested data and publishes it on the blockchain. The information includes the data recovery status and the number of pseudo shares received. Step 4.2: The medical institution that agrees to allow the user to access the data calculates a pseudo share based on its own share and the public matrix A of the medical data, and sends the pseudo share to the user; Step 4.3: The user calculates the secret s based on the pseudo shares received. The secret can only be recovered when the number of pseudo shares received is at least equal to the threshold value. Step 4.4: The user sends the recovered secret to the medical institution that published the data. The latter determines whether the recovered secret is valid based on the status content of the blockchain ledger. If the verification is successful, the medical institution will send the key for decrypting the ciphertext data to the user to recover the plaintext data. Otherwise, the request fails and the user cannot obtain the key.
2. A method for securely sharing medical data based on lattice cryptography and alliance chain as claimed in claim 1, characterized in that: The legitimacy verification method used in step 4.4 is as follows: First, the hospital tested Is it equal to s1? If so, continue the verification step; otherwise, return the verification failure information; Then, the hospital obtains the ledger status generated during the entire data recovery phase, namely ReqP j DT i , denoted as set S R ; Finally, traverse the set S R , if the requester field is P k , field dataID is DT1, field status is "ready" ledger status, then the secret verification is successful, otherwise the verification failure message is returned; Among them, P k is the user, DT1 is the user P k The data obtained; s1 represents the secret corresponding to the key sk1, Indicates the secret corresponding to data DT1.
