Blockchain-based private information protection method, device and storage medium

Three-layer encryption of electronic prescription data is implemented through blockchain technology, which solves the problems of private information leakage and drug abuse in the electronic prescription system, realizes data security management and drug supervision, and ensures the protection of patient privacy.

CN114866288BActive Publication Date: 2024-10-18PINGAN INT SMART CITY TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210380332.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-12
Publication Date
2024-10-18
Estimated Expiration
2042-04-12

AI Technical Summary

Technical Problem

The existing electronic prescription system has problems such as leakage of private information, drug abuse and drug overdose, and the centralized system faces risks and it is difficult to mine the value of data while protecting patient privacy.

Method used

Adopting a blockchain-based private information protection method, the public and private keys are obtained through preset application rules, plaintext and asymmetric encryption are processed, uploaded to the cloud, and decrypted under authorization conditions through a proxy re-encryption algorithm to achieve three-layer encryption. Ensure data security and privacy.

Benefits of technology

Effectively prevent the leakage of private information, improve the security and privacy of data management, ensure open data permissions under authorized conditions, help manage drugs and conduct drug supervision, and support transparent management of patient privacy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114866288B_ABST
    Figure CN114866288B_ABST
Patent Text Reader

Abstract

This invention relates to the field of blockchain, and more particularly to information confidentiality technology. It provides a blockchain-based method for protecting private information. First, the private information of the information holder is encrypted in plaintext using an Advanced Encryption Standard (AES) to form a first encrypted message. The first encrypted message is then subjected to asymmetric encryption to generate a second encrypted message. Next, a proxy re-encryption algorithm is used to re-encrypt the second encrypted message based on an authorized public key to generate a third encrypted message. The authorized party obtains the decryption key for the third encrypted message and decrypts it. This three-layer encryption of the private information not only enables patients to store and manage prescription data in an encrypted and tamper-proof manner through blockchain, and grants data access to specific personnel and institutions under authorized conditions, but also improves the security and privacy of data management through proxy encryption for data authorization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain, to information confidentiality technology, and in particular to a blockchain-based private information protection method, device, electronic device and computer-readable storage medium. Background Art

[0002] With the development and progress of technology, personal information seems to be exposed nowadays. For example, personal asset information and personal electronic prescriptions can be obtained through illegal means.

[0003] In addition, electronic prescriptions record the patient's sensitive personal information, and patients hope to control and manage their own data and privacy in a transparent way. At the same time, in the process of prescribing drugs through electronic prescriptions, both patients and pharmacies may have problems with drug abuse and drug overdose. For example, pharmacies hope to prescribe higher prices or larger quantities of drugs to gain profits. Patients may use old prescriptions to repeatedly prescribe drugs to bypass the drug supervision process. Therefore, managing drugs is also one of the needs. The current electronic prescription solutions are all based on systems controlled by a certain manufacturer or entity, and there are risks faced by centralized systems. In addition, medical institutions have the need to analyze patient data, and there are technical difficulties in how to mine the value of data while protecting the privacy of patients.

[0004] Therefore, there is an urgent need for a blockchain-based private information protection method that helps information owners store and manage data in an encrypted and tamper-proof manner, and opens data permissions to specific individuals and institutions under authorized conditions. Summary of the invention

[0005] The present invention provides a private information protection method based on blockchain to solve the problem of private information leakage.

[0006] To achieve the above purpose, the present invention provides a method for protecting private information based on blockchain, comprising:

[0007] The private information holder applies for a public-private key from a trusted third party through a preset application rule, and the private information of the private information holder is plaintext encrypted based on a preset advanced encryption standard to form a first information ciphertext;

[0008] Performing asymmetric encryption processing on the first information ciphertext to generate a second information ciphertext, and uploading the second information ciphertext and the first information ciphertext to the cloud;

[0009] The authorized party is enabled to obtain the data rights of the private information holder through a preset authorization rule, so that the authorized party obtains the authorized public key of the private information holder;

[0010] The second information ciphertext is re-encrypted based on the authorized public key through a proxy re-encryption algorithm to generate a third information ciphertext, and the authorized party obtains a decryption key of the third information ciphertext to decrypt the third information through the decryption key.

[0011] Optionally, the performing asymmetric encryption processing on the first information ciphertext to generate the second information ciphertext includes:

[0012] Obtaining an advanced ciphertext of the advanced encryption standard;

[0013] The first information ciphertext is asymmetrically encrypted using the public key in the public-private key and the high-level ciphertext through an asymmetric encryption algorithm to generate a second information ciphertext.

[0014] Optionally, enabling the authorized party to obtain the data authority of the private information holder through a preset authorization rule so that the authorized party obtains the authorized public key of the private information holder includes:

[0015] Instructing the authorized party to initiate a public key application to the private information holder;

[0016] Based on the public key application, the trusted third party obtains the identity information of the authorized party and the social relationship between the authorized party and the holder of the private information through a preset information acquisition mechanism;

[0017] Based on the preset evaluation rules, it is determined whether the authorized party has the authorization qualification according to the social relationship and the identity information. If the authorized party has the authorization qualification, the private information holder applies to the trusted third party for the public key of the authorized party.

[0018] Optionally, the judging rule is:

[0019] If the identity information of the authorized party is real information, and the social relationship between the authorized party and the holder of the private information is in the preset authorized list, then the authorized party has the authorization qualification;

[0020] If the identity information of the authorized party is true, but the social relationship between the authorized party and the private information holder is not in the authorized list, an inquiry request is sent to the private information holder. If the private information holder confirms the inquiry request, the authorized party is qualified for authorization; if the private information holder rejects the inquiry request, the authorized party is not qualified for authorization.

[0021] Optionally, the re-encrypting the second information ciphertext based on the authorized public key by using a proxy re-encryption algorithm to generate a third information ciphertext includes:

[0022] Instruct the private information holder to use the public key of the authorized party to encrypt the private key of the private information holder to generate a one-way re-encryption key, and upload the one-way re-encryption key to the cloud;

[0023] The second information ciphertext is subjected to proxy re-encryption processing by the information management platform trusted by the private information holder through the one-way re-encryption key through a proxy re-encryption algorithm to generate a third information ciphertext.

[0024] Optionally, enabling the authorized party to obtain a decryption key for the third information ciphertext to decrypt the third information ciphertext by using the decryption key includes:

[0025] The authorized party applies for the single re-encryption key from the information management platform, so that the authorized party decrypts the third information ciphertext through the single re-encryption key to obtain the second information ciphertext and the symmetric key, and decrypts the second information ciphertext and the first information ciphertext through the symmetric key and the public key of the authorized party to obtain the private information of the private information holder, thereby completing the decryption.

[0026] Optionally, it also includes:

[0027] The process of information pre-desensitization includes:

[0028] Desensitizing the identity information of the private information holder and the plan information issued by the authorized person for the private information holder to form block data;

[0029] Uploading the block data to the blockchain to form full block data;

[0030] According to the preset cleaning standard, the whole block data is subjected to block deletion and entry forced deletion to form private information.

[0031] In order to solve the above problems, the present invention also provides a private information protection device based on blockchain, the device comprising:

[0032] A primary encryption unit, used to enable the private information holder to apply for a public-private key from a trusted third party according to a preset application rule, and to perform plaintext encryption processing on the private information of the private information holder based on a preset advanced encryption standard to form a first information ciphertext;

[0033] A secondary encryption unit, configured to perform asymmetric encryption processing on the first information ciphertext to generate a second information ciphertext, and upload the second information ciphertext and the first information ciphertext to the cloud;

[0034] A data authorization unit, used to enable the authorized party to obtain the data rights of the private information holder through a preset authorization rule, so that the authorized party obtains the authorized public key of the private information holder;

[0035] A proxy re-encryption unit is used to re-encrypt the second information ciphertext based on the authorized public key through a proxy re-encryption algorithm to generate a third information ciphertext, and enable the authorized party to obtain a decryption key of the third information ciphertext to decrypt the third information through the decryption key.

[0036] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:

[0037] a memory storing at least one instruction; and

[0038] The processor executes the instructions stored in the memory to implement the steps in the above-mentioned blockchain-based private information protection method.

[0039] In order to solve the above problems, the present invention also provides a computer-readable storage medium, in which at least one instruction is stored, and the at least one instruction is executed by a processor in an electronic device to implement the above-mentioned blockchain-based private information protection method.

[0040] In the embodiment of the present invention, the private information holder first applies for a public-private key from a trusted third party through a preset application rule, and performs plaintext encryption processing on the private information of the private information holder based on the advanced encryption standard to form a first information ciphertext, performs asymmetric encryption processing on the first information ciphertext to generate a second information ciphertext, and uploads the second information ciphertext and the first information ciphertext to the cloud, and then enables the authorized party to obtain the data authority of the private information holder through a preset authorization rule, so that the authorized party obtains the authorized public key of the private information holder, and then re-encrypts the second information ciphertext based on the authorized public key through a proxy re-encryption algorithm to generate a third information ciphertext, and enables the authorized party to obtain the decryption key of the third information ciphertext to decrypt the third information through the decryption key, thereby performing three-layer encryption on the private information. In this way, the blockchain can be used to help patients store and manage prescription data in an encrypted and tamper-proof manner, and open data permissions to specific personnel and institutions under authorized conditions, and can also manage data authorization through proxy encryption, thereby improving the security and privacy of data management. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 A flowchart of a method for protecting private information based on blockchain provided by one embodiment of the present invention;

[0042] Figure 2A schematic diagram of a module of a blockchain-based private information protection device provided by an embodiment of the present invention;

[0043] Figure 3 A schematic diagram of the internal structure of an electronic device for a private information protection method based on blockchain provided by an embodiment of the present invention;

[0044] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0045] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0046] In private information, such as electronic prescriptions that record patients' sensitive personal information, patients hope to control and manage their own data and privacy in a transparent way. At the same time, in the process of prescribing drugs through electronic prescriptions, both patients and pharmacies may have problems with drug abuse and drug overdose. For example, pharmacies hope to prescribe higher prices or more drugs to gain profits. Patients may use old prescriptions to repeatedly prescribe drugs to bypass the drug supervision process. Therefore, managing drugs is also one of the needs. The current electronic prescription solutions are all based on systems controlled by a certain manufacturer or entity, and there are risks faced by centralized systems. In addition, medical institutions have the need to analyze patient data, and there are technical difficulties in how to mine the value of data while protecting the privacy of patients.

[0047] In order to solve the above problems, an embodiment of the present invention provides a private information protection method based on blockchain.

[0048] In this embodiment, the execution subject is the blockchain-based private information protection system of the entire server cluster. The blockchain-based private information protection system is integrated in the server cluster, that is, different modules of the blockchain-based private information protection system under the server cluster perform different operation steps respectively, wherein the architecture of the server cluster includes multiple servers, multiple cluster instances running under each server, and multiple scheduled tasks stored under each cluster instance, so that the orderly execution of the scheduled task is achieved through the following steps.

[0049] It should be noted that the embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0050] like Figure 1As shown, in this embodiment, the private information protection method based on blockchain includes:

[0051] S1: The private information holder applies for a public-private key from a trusted third party through a preset application rule, and the private information of the private information holder is plaintext encrypted based on a preset advanced encryption standard to form a first information ciphertext;

[0052] S2: Perform asymmetric encryption processing on the first information ciphertext to generate a second information ciphertext, and upload the second information ciphertext and the first information ciphertext to the cloud;

[0053] S3: enabling the authorized party to obtain the data rights of the private information holder through a preset authorization rule, so that the authorized party obtains the authorized public key of the private information holder;

[0054] S4: re-encrypt the second information ciphertext based on the authorized public key through a proxy re-encryption algorithm to generate a third information ciphertext, and enable the authorized party to obtain the decryption key of the third information ciphertext to decrypt the third information through the decryption key.

[0055] exist Figure 1 In the illustrated embodiment, step S1 is a process in which a private information holder applies for a public-private key from a trusted third party through a preset application rule, and encrypts the private information of the private information holder in plain text based on an advanced encryption standard to form a first information ciphertext; in this process, the trusted third party may be a CA center.

[0056] It also includes the process of pre-information desensitization, including:

[0057] S11: Desensitizing the identity information of the private information holder and the plan information issued by the authorized person for the private information holder to form block data;

[0058] S12: Upload the block data to the blockchain to form full block data;

[0059] S13: Deleting blocks and forcibly deleting entries of the entire block data according to a preset cleaning standard to form private information.

[0060] In a specific embodiment, taking doctors and patients as an example, the private information holder is the patient; the private information is the patient's prescription; the authorized person is the doctor or pharmacist who prescribes the prescription, as well as the person or unit authorized by the patient. In this specific embodiment, the doctor creates treatment plan data by recording the diagnosis, recommended drugs and dosage; in this specific embodiment, the process of pre-desensitization of information is also included, including:

[0061] S11: Desensitizing the patient's identity information and the treatment plan prescribed by the doctor for the patient to form block data;

[0062] S12: Upload the block data to the blockchain to form full block data;

[0063] S13: Deleting blocks and forcibly deleting entries of the entire block data according to a preset cleaning standard to form a prescription.

[0064] The prescription data is then encrypted using the patient’s public key and stored in the blockchain via a smart contract. Assume that a patient shares their public key with their doctor when they make an appointment to see a doctor. The patient needs to allow the pharmacist to access the prescription data in order to receive the medication from the pharmacy. Every access log to the data, including any query or update, is recorded in the blockchain.

[0065] In addition, in order to prevent pharmacies from selling illegal drugs, regulators will read the data of the "sales" smart contract through the "regulatory" smart contract to record the number of drugs supplied to the pharmacy and the number of drugs sold. In addition, patients can report pharmacies that sell illegal drugs through the "report" smart contract and receive rewards (such as tokens).

[0066] ·During the supervision process, there is no restriction on the way smart contracts are expressed. In this specific embodiment, it can be: 1) Create a prescription: The doctor creates prescription data and calls the create prescription smart contract. The contract records the use of the patient's personal information, recommended drugs, and diagnoses for updates. Each contract instance has the addresses of the doctor (initiator) and the patient (recipient). The create prescription contract only accepts transactions from doctors. During the smart contract verification process, only signatures that have been authenticated by the doctor's role in advance can pass. For data usage tracking, any query to the contract must be signed with its own private key, and the operation record is stored in the blockchain network.

[0067] 2) Reporting: If a pharmacy has committed illegal acts, such as selling drugs without a valid prescription, patients can report it to the regulatory agency. If the report is valid, the patient can receive tokens as a reward.

[0068] 3) Drug sales: The pharmacy sells drugs to patients. The pharmacy creates a smart contract instance with the patient and initiates a sales transaction record. The sales data (drug name, dosage, and price) is recorded and the current status is updated.

[0069] 4) Regulation: The regulator states the quantity of drugs supplied and sold by the pharmacy. The quota of regulated drugs is proposed by the regulator. After the pharmacy calls the drug sales smart contract, it automatically calls the regulatory smart contract to automatically update the quantity of available drugs. When the regulatory smart contract updates the pharmacy drug sales data, it will automatically update by reading the data of the drug sales smart contract instead of obtaining the data submitted by the pharmacy.

[0070] 5) Prescription data authorization: Stakeholders request to decrypt patient prescription data. Parameters include the requester's address and whether the patient agrees.

[0071] 6) Reward smart contract: used by regulators to transfer tokens to patients when complaints are proven. When registering, pharmacies need to submit a certain amount of tokens to the regulator in the form of a deposit. After accepting the user's complaint and verifying it, the regulator will deduct a certain amount of the deposit and transfer a certain amount to the patient's account.

[0072] exist Figure 1 In the illustrated embodiment, step S2 is a process of performing asymmetric encryption processing on the first information ciphertext to generate a second information ciphertext, and uploading the second information ciphertext and the first information ciphertext to the cloud; in this process, performing asymmetric encryption processing on the first information ciphertext to generate the second information ciphertext includes:

[0073] S21: Obtaining an advanced ciphertext of the advanced encryption standard;

[0074] S22: Performing asymmetric encryption processing on the first information ciphertext by using an asymmetric encryption algorithm using the public key in the public-private key and the high-level ciphertext to generate a second information ciphertext.

[0075] In short, step S2 is that the private information holder uses AES (Advanced Encryption Standard) to encrypt the plain text to generate the first information ciphertext, and uses an asymmetric encryption algorithm to encrypt the AES key with the private information holder's own public key to generate the second information ciphertext; then the private information holder uploads the first information ciphertext and the second information ciphertext to the cloud.

[0076] exist Figure 1 In the illustrated embodiment, step S3 is a process of enabling the authorized party to obtain the data rights of the private information holder through a preset authorization rule, so that the authorized party obtains the authorized public key of the private information holder; wherein,

[0077] The method enables the authorized party to obtain the data authority of the private information holder through a preset authorization rule, so that the authorized party obtains the authorized public key of the private information holder, including:

[0078] S31: Instructing the authorized party to initiate a public key application to the private information holder;

[0079] S32: Based on the public key application, the trusted third party obtains the identity information of the authorized party and the social relationship between the authorized party and the private information holder through a preset information acquisition mechanism;

[0080] S33: Based on the preset evaluation rules, it is determined whether the authorized party has the authorization qualification according to the social relationship and the identity information. If the authorized party has the authorization qualification, the private information holder applies to the trusted third party for the public key of the authorized party.

[0081] The judging rules are:

[0082] If the identity information of the authorized party is real information, and the social relationship between the authorized party and the holder of the private information is in the preset authorized list, then the authorized party has the authorization qualification;

[0083] If the identity information of the authorized party is true, but the social relationship between the authorized party and the private information holder is not in the authorized list, an inquiry request is sent to the private information holder. If the private information holder confirms the inquiry request, the authorized party is qualified for authorization; if the private information holder rejects the inquiry request, the authorized party is not qualified for authorization.

[0084] exist Figure 1 In the embodiment shown, step S4 is a process of re-encrypting the second information ciphertext based on the authorized public key through a proxy re-encryption algorithm to generate a third information ciphertext, and enabling the authorized party to obtain a decryption key for the third information ciphertext to decrypt the third information through the decryption key; in this process,

[0085] The second information ciphertext is re-encrypted based on the authorized public key by a proxy re-encryption algorithm to generate a third information ciphertext, including:

[0086] S41: Instructing the private information holder to use the public key of the authorized party to encrypt the private key of the private information holder to generate a one-way re-encryption key, and upload the one-way re-encryption key to the cloud;

[0087] S42: The information management platform trusted by the private information holder uses the one-way re-encryption key to perform proxy re-encryption processing on the second information ciphertext through a proxy re-encryption algorithm to generate a third information ciphertext.

[0088] In a specific embodiment, the holder of private information is still the patient; the private information is the patient's prescription; the authorized person is the doctor, pharmacist who prescribes the prescription, and the person or unit authorized by the patient. In the process of proxy re-encryption, first, according to the appointment with the patient, the doctor will create a prescription containing the following items: personal information (PI), medicine (MED) and diagnosis (DIA) for future analysis. Before sending the prescription to the smart contract method for storage, the patient's public key Pk P Encrypt the prescription; authorized doctors, pharmacies or regulatory agencies need to send their public key Pk Req Published to the patient; then the agent in the information (prescription) management platform performs the ReEncrypt operation using the respective delegation key and the allowed prescription items. For example, a doctor can access all prescription data. To do this, the agent will re-encrypt personal information, drugs, and diagnoses. Pharmacies and regulatory agencies can only re-encrypt prescription drugs. After the re-encryption step, the authorized person can obtain the patient's permitted information through his own private key.

[0089] The method enables the authorized party to obtain the decryption key of the third information ciphertext to decrypt the third information ciphertext by using the decryption key, comprising:

[0090] S43: The authorized party applies for the single re-encryption key from the information management platform, so that the authorized party decrypts the third information ciphertext through the single re-encryption key to obtain the second information ciphertext and the symmetric key, and decrypts the second information ciphertext and the first information ciphertext through the symmetric key and the public key of the authorized party to obtain the private information of the private information holder, thereby completing the decryption.

[0091] In addition, in this embodiment, since the patient's private information and the information of other people involved are relatively large, in this embodiment, if the holder of the private information is the patient; the private information is the patient's prescription; the authorized person is the doctor or pharmacist who prescribes the prescription, as well as the person or unit authorized by the patient; it also includes:

[0092] The specific desensitization method is not limited. In this embodiment, the information pre-desensitization process includes:

[0093] Desensitizing the patient's identity information and the treatment plan prescribed by the doctor for the patient to form block data;

[0094] Uploading the block data to the blockchain to form full block data;

[0095] The whole block data is subjected to block deletion and entry forced deletion according to a preset cleaning standard to form a prescription.

[0096] In a specific embodiment, the entry can be deleted, for example, based on a smart contract that can delete entries. The smart contract is a strict smart contract integrated in the blockchain and requires the verification party to manually confirm the submission. When the user submits a deletion request, the deletion request will be submitted to the blockchain. But it will not be deleted immediately. It is equivalent to a deletion instruction. The deletion of the asset will be deleted along with the deletion of the oldest area. After the oldest area is deleted, the first subsequent block will be used as the founding block of the entire blockchain. But the prehash of the founding block is not null. In the above figure, the data in the third blue block is the deletion instruction del 100-2, indicating that the data with index 2 in block No. 100 needs to be deleted, that is, data2 needs to be deleted. When generating the summary block (the second yellow block), traverse blocks 103 to 249, read the del instruction, and then read all blocks in the deleted area and the data in the summary block. The read data is deleted according to the instruction and added to the new block. The data added to the new block does not include the instruction data (del 100-2). The final result is that the block number, timestamp and data of the entire blockchain asset entry are preserved. Non-asset data in the block is deleted.

[0097] Block deletion can also be used. Under certain conditions, the oldest block, that is, the area containing the genesis block, is deleted to delete the original useless information; the blocks in the deleted area are traversed, and the data area, block number blocknumber and timestamp in the block are copied to the newly generated summary block. The premise of triggering regional deletion can be triggered according to time or the number of blocks in the latest area. For example, it is triggered once a day, or the number of blocks in the latest area reaches a threshold, or both are effective at the same time. Since the deletion of blocks is not executed immediately, but only when the number of blocks reaches a certain amount, it will be deleted. In this way, if the asset does not change for a long time (the blockchain does not generate blocks for a long time), the asset will stay in the blockchain for a very long time. Therefore, a timed empty block is invented for placeholder processing. If no blocks are generated within time t, the blockchain network will generate an empty block without data to accelerate the triggering of the deletion of the area. Moreover, because the generation of blocks may generate too many empty blocks due to time, too many empty blocks may frequently trigger the deletion operation. Therefore, a short protection mechanism is defined. The short protection mechanism is implemented by two parameters: the minimum length of the blockchain and the minimum summary block. When the total length of the blockchain is less than x, or the total number of summary blocks is less than n, the deletion operation will not be triggered. When the block is too short, it does not meet the conditions for big data analysis, so it does not affect normal use.

[0098] In this embodiment, the server can be an independent server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.

[0099] As described above, the blockchain-based private information protection method provided by the embodiment of the present invention first enables the private information holder to apply for a public-private key from a trusted third party through a preset application rule, and performs plaintext encryption processing on the private information of the private information holder based on the advanced encryption standard to form a first information ciphertext, performs asymmetric encryption processing on the first information ciphertext to generate a second information ciphertext, and uploads the second information ciphertext and the first information ciphertext to the cloud, and then enables the authorized party to obtain the data authority of the private information holder through a preset authorization rule, so that the authorized party obtains the authorized public key of the private information holder, and then performs a proxy re-encryption algorithm based on the authorized public key to encrypt the second information ciphertext. The data is encrypted again to generate a third information ciphertext, and the authorized party obtains the decryption key of the third information ciphertext to decrypt the third information through the decryption key, thereby performing three-layer encryption on the private information. In this way, the blockchain can be used to help patients store and manage prescription data in an encrypted and tamper-proof manner, and open data permissions to specific personnel and institutions under authorized conditions. It can also manage data authorization through agent encryption to improve the security and privacy of data management, and in the doctor-patient relationship, it helps to conduct drug supervision by connecting the data between drug regulatory agencies and pharmacies and patients, and desensitize patient data by deleting data entries in the blockchain for big data analysis.

[0100] like Figure 2 As shown, the present invention provides a private information protection device 100 based on blockchain, which can be installed in an electronic device. According to the functions implemented, the private information protection device 100 based on blockchain can include a primary encryption unit 101, a secondary encryption unit 102, a data authorization unit 103, and a proxy re-encryption unit 104. The module described in the present invention can also be referred to as a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.

[0101] In this embodiment, the functions of each module / unit are as follows:

[0102] The primary encryption unit 101 is used to enable the private information holder to apply for a public-private key from a trusted third party according to a preset application rule, and to perform plaintext encryption processing on the private information of the private information holder based on a preset advanced encryption standard to form a first information ciphertext;

[0103] The secondary encryption unit 102 is used to perform asymmetric encryption processing on the first information ciphertext to generate a second information ciphertext, and upload the second information ciphertext and the first information ciphertext to the cloud;

[0104] The data authorization unit 103 is used to enable the authorized party to obtain the data authority of the private information holder through a preset authorization rule, so that the authorized party obtains the authorized public key of the private information holder;

[0105] The proxy re-encryption unit 104 is used to re-encrypt the second information ciphertext based on the authorized public key through a proxy re-encryption algorithm to generate a third information ciphertext, and enable the authorized party to obtain the decryption key of the third information ciphertext to decrypt the third information through the decryption key.

[0106] As described above, the blockchain-based private information protection device 100 provided by the present invention first enables the private information holder to apply for a public-private key from a trusted third party based on the primary encryption unit 101 through a preset application rule, and performs plaintext encryption processing on the private information of the private information holder based on the advanced encryption standard to form a first information ciphertext, and then performs asymmetric encryption processing on the first information ciphertext through the secondary encryption unit 102 to generate a second information ciphertext, and uploads the second information ciphertext and the first information ciphertext to the cloud, and then based on the data authorization unit 103 through a preset authorization rule, enables the authorized party to obtain the data authority of the private information holder, so that the authorized party obtains the authorized public key of the private information holder, and then uses the proxy re-encryption unit 104 to The proxy re-encryption algorithm re-encrypts the second information ciphertext based on the authorized public key to generate the third information ciphertext, and enables the authorized party to obtain the decryption key of the third information ciphertext to decrypt the third information through the decryption key, thereby performing three-layer encryption on the private information. In this way, the blockchain can not only help patients store and manage prescription data in an encrypted and tamper-proof manner, and open data permissions to specific personnel and institutions under authorized conditions, but also manage data authorization through proxy encryption to improve the security and privacy of data management. In the doctor-patient relationship, it helps to carry out drug supervision by connecting the data between drug regulatory agencies, pharmacies and patients, and desensitizes patient data by deleting data entries in the blockchain for big data analysis.

[0107] like Figure 3As shown, the present invention provides an electronic device 1 for a private information protection method based on blockchain.

[0108] The electronic device 1 may include a processor 10, a memory 11 and a bus, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a blockchain-based private information protection program 12.

[0109] Among them, the memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of the electronic device 1, such as a mobile hard disk of the electronic device 1. In other embodiments, the memory 11 can also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 1. Further, the memory 11 can also include both an internal storage unit of the electronic device 1 and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device 1, such as a code for private information protection based on blockchain, but also can be used to temporarily store data that has been output or is to be output.

[0110] The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or a plurality of integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 10 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect the various components of the entire electronic device, and executes or executes programs or modules (such as blockchain-based private information protection programs, etc.) stored in the memory 11, and calls the data stored in the memory 11 to execute various functions of the electronic device 1 and process data.

[0111] The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.

[0112] Figure 3 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 3 The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0113] For example, although not shown, the electronic device 1 may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include any components such as one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, etc. The electronic device 1 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

[0114] Furthermore, the electronic device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device 1 and other electronic devices.

[0115] Optionally, the electronic device 1 may further include a user interface, which may be a display, an input unit (such as a keyboard), or a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device 1 and to display a visual user interface.

[0116] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.

[0117] The blockchain-based private information protection program 12 stored in the memory 11 in the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve:

[0118] The private information holder applies for a public-private key from a trusted third party through a preset application rule, and the private information of the private information holder is plaintext encrypted based on the Advanced Encryption Standard to form a first information ciphertext;

[0119] Performing asymmetric encryption processing on the first information ciphertext to generate a second information ciphertext, and uploading the second information ciphertext and the first information ciphertext to the cloud;

[0120] The authorized party is enabled to obtain the data rights of the private information holder through a preset authorization rule, so that the authorized party obtains the authorized public key of the private information holder;

[0121] The second information ciphertext is re-encrypted based on the authorized public key through a proxy re-encryption algorithm to generate a third information ciphertext, and the authorized party obtains a decryption key of the third information ciphertext to decrypt the third information through the decryption key.

[0122] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to Figure 1 The description of the relevant steps in the corresponding embodiment is not repeated here. It should be emphasized that in order to further ensure the privacy and security of the above-mentioned blockchain-based private information protection, the data of the above-mentioned blockchain-based private information protection is stored in the node of the blockchain where the server cluster is located.

[0123] The server can be a stand-alone server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), as well as big data and artificial intelligence platforms.

[0124] Furthermore, if the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).

[0125] An embodiment of the present invention further provides a computer-readable storage medium, which may be non-volatile or volatile, and stores a computer program, which, when executed by a processor, implements:

[0126] The private information holder applies for a public-private key from a trusted third party through a preset application rule, and the private information of the private information holder is plaintext encrypted based on the Advanced Encryption Standard to form a first information ciphertext;

[0127] Performing asymmetric encryption processing on the first information ciphertext to generate a second information ciphertext, and uploading the second information ciphertext and the first information ciphertext to the cloud;

[0128] The authorized party is enabled to obtain the data rights of the private information holder through a preset authorization rule, so that the authorized party obtains the authorized public key of the private information holder;

[0129] The second information ciphertext is re-encrypted based on the authorized public key through a proxy re-encryption algorithm to generate a third information ciphertext, and the authorized party obtains a decryption key of the third information ciphertext to decrypt the third information through the decryption key.

[0130] Specifically, the specific implementation method when the computer program is executed by the processor can refer to the description of the relevant steps in the blockchain-based private information protection method in the embodiment, which will not be repeated here.

[0131] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0132] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0133] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0134] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0135] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.

[0136] The blockchain referred to in this invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0137] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The second and other words are used to indicate names, but not to indicate any particular order.

[0138] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. A method for protecting private information based on blockchain, characterized in that: include: The private information holder applies for a public-private key from a trusted third party through a preset application rule, and the private information of the private information holder is plaintext encrypted based on a preset advanced encryption standard to form a first information ciphertext; Performing asymmetric encryption processing on the first information ciphertext to generate a second information ciphertext, and uploading the second information ciphertext and the first information ciphertext to the cloud; The authorized party is enabled to obtain the data rights of the private information holder through a preset authorization rule, so that the authorized party obtains the authorized public key of the private information holder; The method of enabling the authorized party to obtain the data authority of the private information holder through a preset authorization rule so that the authorized party can obtain the authorized public key of the private information holder includes: enabling the authorized party to initiate a public key application to the private information holder; based on the public key application, enabling the trusted third party to obtain the identity information of the authorized party and the social relationship between the authorized party and the private information holder through a preset information acquisition mechanism; judging whether the authorized party has the authorization qualification based on the social relationship and the identity information based on a preset evaluation rule; if the authorized party has the authorization qualification, the private information holder shall apply to the trusted third party for authorization. The public key of the authorized party is requested; the evaluation rule is: if the identity information of the authorized party is true information, and the social relationship between the authorized party and the holder of the private information is in the preset authorized list, then the authorized party has the authorization qualification; if the identity information of the authorized party is true information, but the social relationship between the authorized party and the holder of the private information is not in the authorized list, then send a query request to the holder of the private information, if the holder of the private information confirms the query request, then the authorized party has the authorization qualification, if the holder of the private information refuses the query request, then the authorized party does not have the authorization qualification; The second information ciphertext is re-encrypted based on the authorized public key through a proxy re-encryption algorithm to generate a third information ciphertext, and the authorized party obtains a decryption key of the third information ciphertext to decrypt the third information through the decryption key.

2. The method for protecting private information based on blockchain as claimed in claim 1, characterized in that: The asymmetric encryption processing of the first information ciphertext to generate the second information ciphertext includes: Obtaining an advanced ciphertext of the advanced encryption standard; The first information ciphertext is asymmetrically encrypted using the public key in the public-private key and the high-level ciphertext through an asymmetric encryption algorithm to generate a second information ciphertext.

3. The method for protecting private information based on blockchain as claimed in claim 1, characterized in that: The step of re-encrypting the second information ciphertext based on the authorized public key by using a proxy re-encryption algorithm to generate a third information ciphertext includes: Instruct the private information holder to use the public key of the authorized party to encrypt the private key of the private information holder to generate a one-way re-encryption key, and upload the one-way re-encryption key to the cloud; The second information ciphertext is subjected to proxy re-encryption processing by the information management platform trusted by the private information holder through the one-way re-encryption key through a proxy re-encryption algorithm to generate a third information ciphertext.

4. The method for protecting private information based on blockchain as claimed in claim 3, characterized in that: The step of enabling the authorized party to obtain the decryption key of the third information ciphertext to decrypt the third information ciphertext by using the decryption key includes: The authorized party applies for the one-way re-encryption key from the information management platform, so that the authorized party decrypts the third information ciphertext through the one-way re-encryption key to obtain the second information ciphertext and the symmetric key, and decrypts the second information ciphertext and the first information ciphertext through the symmetric key and the public key of the authorized party to obtain the private information of the private information holder, thereby completing the decryption.

5. The method for protecting private information based on blockchain as claimed in claim 4, characterized in that: Also includes: The process of information pre-desensitization includes: Desensitizing the identity information of the private information holder and the plan information issued by the authorized person for the private information holder to form block data; Uploading the block data to the blockchain to form full block data; According to the preset cleaning standard, the whole block data is subjected to block deletion and entry forced deletion to form private information.

6. A private information protection device based on blockchain, characterized in that: The device comprises: A primary encryption unit, used to enable the private information holder to apply for a public-private key from a trusted third party according to a preset application rule, and to perform plaintext encryption processing on the private information of the private information holder based on a preset advanced encryption standard to form a first information ciphertext; A secondary encryption unit, configured to perform asymmetric encryption processing on the first information ciphertext to generate a second information ciphertext, and upload the second information ciphertext and the first information ciphertext to the cloud; A data authorization unit, used to enable the authorized party to obtain the data authority of the private information holder through a preset authorization rule, so that the authorized party can obtain the authorized public key of the private information holder; the method of enabling the authorized party to obtain the data authority of the private information holder through a preset authorization rule, so that the authorized party can obtain the authorized public key of the private information holder, includes: enabling the authorized party to initiate a public key application to the private information holder; based on the public key application, enabling the trusted third party to obtain the identity information of the authorized party and the social relationship between the authorized party and the private information holder through a preset information acquisition mechanism; judging whether the authorized party has the social relationship and the identity information based on the preset evaluation rules. Authorization qualification, if there is authorization qualification, the private information holder applies to the trusted third party for the public key of the authorized party; the evaluation rule is: if the identity information of the authorized party is true information, and the social relationship between the authorized party and the private information holder is in the preset authorized list, then the authorized party has authorization qualification; if the identity information of the authorized party is true information, but the social relationship between the authorized party and the private information holder is not in the authorized list, then send an inquiry request to the private information holder, if the private information holder confirms the inquiry request, then the authorized party has authorization qualification, if the private information holder rejects the inquiry request, then the authorized party does not have authorization qualification; A proxy re-encryption unit is used to re-encrypt the second information ciphertext based on the authorized public key through a proxy re-encryption algorithm to generate a third information ciphertext, and enable the authorized party to obtain a decryption key of the third information ciphertext to decrypt the third information through the decryption key.

7. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the steps in the blockchain-based private information protection method as described in any one of claims 1 to 5.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the blockchain-based private information protection method as described in any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Electronic medical record sharing method, device and system based on block chain and storage medium

    CN112434336A