Medical clinical data encryption circulation access control method based on smart contract

By setting up local area network isolation between the data requester and provider, and using a blockchain platform to transmit encryption and decryption keys, the problem of insufficient security in the process of medical clinical data transfer is solved, and the confidentiality, integrity and availability of the data are achieved.

CN118940236AActive Publication Date: 2024-11-12PEKING UNIV

Patent Information

Application Number
CN202411122125.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2024-11-12
Estimated Expiration
2044-08-15

AI Technical Summary

Technical Problem

Existing smart contract-based access control methods cannot effectively guarantee the decentralized nature of medical clinical data during storage, resulting in insufficient data security.

Method used

By isolating the local area network (LAN) and wide area network (WAN) at the data requester and provider ends, and using a blockchain platform as an intermediary, secure communication between the data requester and provider ends is achieved by ensuring that encryption and decryption keys are transmitted through the blockchain while the encrypted data itself is transmitted separately.

Benefits of technology

It enhances the security of data transmission, prevents unauthorized access, ensures the confidentiality, integrity, and availability of data, and solves the security and privacy protection issues of medical clinical data during the transfer process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118940236A_ABST
    Figure CN118940236A_ABST
Patent Text Reader

Abstract

The invention discloses a medical clinical data encryption circulation access control method, system, device and equipment based on an intelligent contract, and a storage medium, and belongs to the field of data security, and the method comprises the steps: determining a target digital label of a target digital entity from encrypted digital entities through a second request end authority account, sending the target digital tag to a block chain platform; generating a decryption key of the encrypted digital entity through the first request end permission account according to the target digital tag forwarded from the block chain platform, and sending the decryption key to the block chain platform; and decrypting the encrypted digital entity sent from the data providing end through the second request end permission account and the decryption key to obtain a decrypted target digital entity. Through setting of the block chain and the account authority, isolation between the local area network and the wide area network is realized, and the problem of insufficient data security in the medical data transfer process is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of data security, and specifically relates to a method, system, device, equipment and storage medium for encrypted circulation access control of medical clinical data based on smart contracts. Background Art

[0002] In the modern medical field, the secure transfer and access control of medical clinical data is a crucial issue. Medical clinical data usually contains sensitive information of patients, such as medical records, diagnosis results and treatment plans. These data need to be shared and transferred between different medical institutions to facilitate clinical research, diagnosis and treatment. However, data faces many challenges in the process of transfer, such as confidentiality, integrity and availability. Especially in the data exchange scenario involving multiple subjects, how to ensure the security and privacy of data has become an urgent problem to be solved.

[0003] At present, data encryption algorithms and permission access control based on smart contracts are mainly used to ensure the security of data in the data flow process. Permission access control based on smart contracts ensures that only authorized accounts can perform sensitive operations by defining roles and permissions, using function modifiers, and implementing specific access control modes, thereby enhancing the security and flexibility of contracts.

[0004] However, restrictions on user permissions cannot effectively ensure that medical data has the required decentralized characteristics during storage, which leads to insufficient data security during medical data transfer. Summary of the invention

[0005] The present application aims to provide a method, system, device, equipment and storage medium for medical clinical data encryption and transfer access control based on smart contracts, at least to solve the problem of insufficient data security during medical data transfer.

[0006] In a first aspect, the present application embodiment discloses a medical clinical data encryption flow access control method based on a smart contract, which is applied to a data request end, and the method includes:

[0007] In response to a request to obtain a target digital entity, a target identity authentication application corresponding to the target digital entity is sent to a data provider through a first requester authority account, and an access application for the target digital entity is sent to a blockchain platform; after receiving the target identity authentication application, the data provider is used to determine, through the first provider authority account, an encryption key used to encrypt the target digital entity and a target digital label corresponding to the target digital entity when the target identity authentication application is characterized as a successful identity authentication, and send the encryption key and the target digital label to the blockchain platform; after receiving the access application, the blockchain platform is used to forward the encryption key and the target digital label of the target digital entity sent from the data provider to the data provider;

[0008] In response to the encrypted digital entity sent from the data provider, determine the target digital tag of the target digital entity from the encrypted digital entity through the second requester authority account, and send the target digital tag to the blockchain platform; the blockchain platform is used to forward the target digital tag sent from the data requester to the data requester after receiving the target digital tag;

[0009] In response to the target digital tag forwarded from the blockchain platform, a decryption key of the encrypted digital entity is generated according to the target digital tag forwarded from the blockchain platform by the first requesting end authority account, and the decryption key is sent to the blockchain platform; the blockchain platform is used to forward the decryption key sent from the data requesting end to the data requesting end after receiving the decryption key;

[0010] In response to the decryption key forwarded from the blockchain platform, the encrypted digital entity sent from the data provider is decrypted by the second requester authority account and the decryption key to obtain the decrypted target digital entity.

[0011] In a second aspect, the embodiment of the present application further discloses a medical clinical data encryption circulation access control method based on a smart contract, which is applied to a data provider, and the method includes:

[0012] In response to a target identity authentication application sent from a data requesting end, an encryption key used to encrypt a target digital entity and a target digital label corresponding to the target digital entity are determined through a first providing end authority account when the target identity authentication application is characterized as a successful identity authentication, and the encryption key and the target digital label are sent to a blockchain platform; the blockchain platform is used to forward the encryption key and the target digital label sent from the data providing end to the data providing end after receiving the encryption key and the target digital label;

[0013] In response to the encryption key and target digital label forwarded from the blockchain platform, the target digital entity corresponding to the target digital label is encrypted according to the received encryption key through the second provider authority account to obtain an encrypted digital entity, and the encrypted digital entity is sent to the data requester; after receiving the encrypted digital entity, the data requester is used to determine the target digital label of the target digital entity from the encrypted digital entity through the second requester authority account, and send the target digital label to the blockchain platform.

[0014] In a third aspect, the present application also discloses a method for access control of encrypted circulation of medical clinical data based on smart contracts, which is applied to a blockchain platform. The method includes:

[0015] In response to an access request for a target digital entity sent from a data requesting end, the encryption key sent from a data providing end and the target digital label of the target digital entity are forwarded to the data providing end; after receiving the forwarded encryption key and target digital label, the data providing end is used to encrypt the target digital entity corresponding to the target digital label according to the received encryption key through a second providing end authority account to obtain an encrypted digital entity, and send the encrypted digital entity to the data requesting end;

[0016] In response to the target digital tag sent from the data requesting end, forward the target digital tag sent from the data requesting end to the data requesting end; after receiving the forwarded target digital tag, the data requesting end is used to generate a decryption key for the encrypted digital entity according to the target digital tag forwarded from the blockchain platform through the first requesting end authority account, and send the decryption key to the blockchain platform;

[0017] In response to the decryption key sent from the data requesting end, the decryption key sent from the data requesting end is forwarded to the data requesting end; after receiving the forwarded decryption key, the data requesting end is used to respond to the decryption key forwarded from the blockchain platform through the second requesting end authority account, and decrypt the encrypted digital entity sent from the data providing end through the decryption key to obtain the decrypted target digital entity.

[0018] In a fourth aspect, the embodiment of the present application further discloses a medical clinical data encryption circulation access control system based on a smart contract, comprising: a data request end, a data provider end, and a blockchain platform;

[0019] The data requesting end is connected to the data providing end and the blockchain platform respectively, and the data providing end is connected to the blockchain platform;

[0020] The data request end and the data provider end are respectively used to connect to a wide area network;

[0021] The data request end is provided with a first local area network isolated from the wide area network, and the data request end is provided with a second local area network isolated from the wide area network;

[0022] The data request end is provided with a first request end authority account and a second request end authority account, the first request end authority account is used to log in to the wide area network, and the second request end authority account is used to log in to the first local area network;

[0023] The data provider is provided with a first provider authority account and a second provider authority account, the first provider authority account is used to log in to the wide area network, and the second provider authority account is used to log in to the second local area network;

[0024] The data requesting end is used to respond to a request for obtaining a target digital entity, send a target identity authentication application corresponding to the target digital entity to the data providing end through the first requesting end authority account, and send an access application for the target digital entity to the blockchain platform, and in response to the encrypted digital entity sent from the data providing end, determine the target digital label of the target digital entity from the encrypted digital entity through the second requesting end authority account, and send the target digital label to the blockchain platform, and in response to the target digital label forwarded from the blockchain platform, generate a decryption key for the encrypted digital entity according to the target digital label forwarded from the blockchain platform through the first requesting end authority account, and send the decryption key to the blockchain platform, and in response to the decryption key forwarded from the blockchain platform, decrypt the encrypted digital entity sent from the data providing end through the second requesting end authority account and the decryption key to obtain the decrypted target digital entity;

[0025] The data provider is used to respond to the target identity authentication application sent from the data requester, and determine, through the first provider authority account, an encryption key used to encrypt the target digital entity and a target digital label corresponding to the target digital entity when the target identity authentication application is characterized as a successful identity authentication, and send the encryption key and the target digital label to the blockchain platform; and in response to the encryption key and target digital label forwarded from the blockchain platform, encrypt the target digital entity corresponding to the target digital label according to the received encryption key through the second provider authority account to obtain an encrypted digital entity, and send the encrypted digital entity to the data requester;

[0026] The blockchain platform is used to forward the encryption key sent from the data provider and the target digital label of the target digital entity to the data provider after receiving the access application, and to forward the target digital label sent from the data requesting end to the data requesting end after receiving the target digital label, and to forward the decryption key sent from the data requesting end to the data requesting end after receiving the decryption key, and to forward the encryption key sent from the data provider and the target digital label of the target digital entity to the data provider after receiving the encryption key and the target digital label.

[0027] In a fifth aspect, the embodiment of the present application further discloses a medical clinical data encryption circulation access control device based on a smart contract, which is applied to a data request end, and the device includes:

[0028] A task initiation module is used to respond to a request for obtaining a target digital entity, send a target identity authentication application corresponding to the target digital entity to a data provider through a first requester authority account, and send an access application for the target digital entity to a blockchain platform; after receiving the target identity authentication application, the data provider is used to determine an encryption key used to encrypt the target digital entity and a target digital label corresponding to the target digital entity through the first provider authority account when the target identity authentication application is characterized as a successful identity authentication, and send the encryption key and the target digital label to the blockchain platform; after receiving the access application, the blockchain platform is used to forward the encryption key and the target digital label of the target digital entity sent from the data provider to the data provider;

[0029] The encrypted file receiving module is used to respond to the encrypted digital entity sent from the data providing end, determine the target digital label of the target digital entity from the encrypted digital entity through the second requesting end authority account, and send the target digital label to the blockchain platform; the blockchain platform is used to forward the target digital label sent from the data requesting end to the data requesting end after receiving the target digital label;

[0030] A decryption initiation module, configured to generate a decryption key of the encrypted digital entity according to the target digital tag forwarded from the blockchain platform through a first requester authority account in response to the target digital tag forwarded from the blockchain platform, and send the decryption key to the blockchain platform; the blockchain platform is configured to forward the decryption key sent from the data requester to the data requester after receiving the decryption key;

[0031] A decryption module is used to respond to the decryption key forwarded from the blockchain platform, decrypt the encrypted digital entity sent from the data provider through the second request end authority account and the decryption key to obtain the decrypted target digital entity.

[0032] In a sixth aspect, the embodiment of the present application further discloses a medical clinical data encryption circulation access control device based on a smart contract, which is applied to a data provider, and the device includes:

[0033] An authentication module, configured to respond to a target identity authentication application sent from a data request end, and determine, through a first provider end authority account, an encryption key used to encrypt a target digital entity and a target digital label corresponding to the target digital entity when the target identity authentication application is characterized as a successful identity authentication, and send the encryption key and the target digital label to a blockchain platform; the blockchain platform is configured to forward the encryption key and the target digital label sent from the data provider end to the data provider end after receiving the encryption key and the target digital label;

[0034] An encrypted file sending module is used to respond to the encryption key and target digital label forwarded from the blockchain platform, encrypt the target digital entity corresponding to the target digital label according to the received encryption key through the second provider end authority account to obtain an encrypted digital entity, and send the encrypted digital entity to the data request end; the data request end is used to determine the target digital label of the target digital entity from the encrypted digital entity through the second request end authority account after receiving the encrypted digital entity, and send the target digital label to the blockchain platform.

[0035] In a seventh aspect, the embodiment of the present application further discloses a medical clinical data encryption circulation access control device based on a smart contract, which is applied to a blockchain platform, and the device includes:

[0036] A first forwarding module is used to forward the encryption key sent from the data providing end and the target digital label of the target digital entity to the data providing end in response to the access request for the target digital entity sent from the data requesting end; the data providing end is used to encrypt the target digital entity corresponding to the target digital label according to the received encryption key through the second providing end authority account after receiving the forwarded encryption key and target digital label, so as to obtain an encrypted digital entity, and send the encrypted digital entity to the data requesting end;

[0037] A second forwarding module is configured to respond to the target digital tag sent from the data requesting end and forward the target digital tag sent from the data requesting end to the data requesting end; the data requesting end is configured to generate a decryption key for the encrypted digital entity according to the target digital tag forwarded from the blockchain platform through the first requesting end authority account after receiving the forwarded target digital tag, and send the decryption key to the blockchain platform;

[0038] The third forwarding module is used to respond to the decryption key sent from the data requesting end and forward the decryption key sent from the data requesting end to the data requesting end; after receiving the forwarded decryption key, the data requesting end is used to respond to the decryption key forwarded from the blockchain platform through the second requesting end authority account, and decrypt the encrypted digital entity sent from the data providing end through the decryption key to obtain the decrypted target digital entity.

[0039] In the eighth aspect, an embodiment of the present application further discloses an electronic device, comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect, the second aspect, or the third aspect are implemented.

[0040] In the ninth aspect, an embodiment of the present application further discloses a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect, the second aspect, or the third aspect are implemented.

[0041] In summary, in the embodiment of the present application, by setting up a local area network isolated from the wide area network, the security of the data transmission process is enhanced to prevent unauthorized access, and by setting up the first permission account and the second permission account at the data request end and the data provider end respectively, the access control in different network environments is ensured, and then by making the blockchain platform play an intermediary role in the entire data flow process, it is ensured that the encryption key and the decryption key are transmitted through the blockchain, and the encrypted data itself is transmitted separately, ensuring the secure communication between the data request end and the data provider end, and enhancing the overall security of the data flow process. Therefore, the method based on the embodiment of the present application effectively solves the security and privacy protection issues of medical clinical data in the flow process, ensures the confidentiality, integrity and availability of the data, and solves the problem of insufficient data security during the transfer of medical data. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In the attached picture:

[0043] Figure 1 It is a flowchart of another method for controlling access to encrypted circulation of medical clinical data based on smart contracts provided in an embodiment of the present application;

[0044] Figure 2 It is a flowchart of another method for controlling access to encrypted circulation of medical clinical data based on smart contracts provided in an embodiment of the present application;

[0045] Figure 3 It is a block diagram of a medical clinical data encryption circulation access control system based on smart contracts provided in an embodiment of the present application;

[0046] Figure 4 It is a software architecture under the method provided in the embodiment of the present application;

[0047] Figure 5 It is a deployment architecture under the method provided in the embodiment of the present application;

[0048] Figure 6 It is a data transfer process under the method provided in the embodiment of the present application;

[0049] Figure 7 It is a block diagram of a medical clinical data encryption circulation access control device based on smart contract provided in an embodiment of the present application;

[0050] Figure 8 It is a block diagram of a medical clinical data encryption circulation access control device based on smart contract provided in an embodiment of the present application;

[0051] Fig. 9 This is a block diagram of a medical clinical data encryption circulation access control device based on smart contracts provided in an embodiment of the present application

[0052] Fig.10 is a block diagram of an electronic device according to an embodiment of the present application;

[0053] Fig.11 It is a block diagram of an electronic device of another embodiment provided by the embodiments of the present application. DETAILED DESCRIPTION

[0054] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0055] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0056] Figure 1 This embodiment provides a medical clinical data encryption flow access control method based on smart contracts, wherein steps 101, 105, 107, and 109 are applied to the data request end, steps 102 and 104 are applied to the data provider end, and steps 103, 106, and 108 are applied to the blockchain platform.

[0057] The method may include the following steps:

[0058] Step 101, in response to a request to obtain a target digital entity, a target identity authentication application corresponding to the target digital entity is sent to a data provider through a first requester authority account, and an access application for the target digital entity is sent to a blockchain platform.

[0059] Among them, the data provider is used to determine the encryption key used to encrypt the target digital entity and the target digital label corresponding to the target digital entity through the first provider authority account after receiving the target identity authentication application, when the target identity authentication application is characterized as successful identity authentication, and send the encryption key and the target digital label to the blockchain platform; the blockchain platform is used to forward the encryption key and the target digital label of the target digital entity sent from the data provider to the data provider after receiving the access application.

[0060] In some embodiments of the present application, the data requesting end will perform operations through the first requesting end permission account. Specifically, when the data requesting end needs to obtain the target digital entity, it first sends a target identity authentication application to the data providing end, and at the same time sends an access application for the target digital entity to the blockchain platform. The target identity authentication application is used to verify the identity of the requesting party to ensure that it has the right to access the requested digital entity. After receiving the access application, the blockchain platform will forward the encryption key sent by the data providing end and the target digital tag of the target digital entity to the data providing end. This process ensures the legitimacy and security of the data request, and realizes transparent and tamper-proof records through blockchain technology.

[0061] For example, suppose that an ordinary user U of the first institution (data requesting end) needs to access the medical digital object D of the second institution (data providing end). User U can send a target identity authentication application to the second institution through the first requesting end authority account, and send an access application for digital object D to the blockchain platform. When the second institution receives the identity authentication application, it verifies the identity of user U and generates an encryption key K for encrypting digital object D and a target digital label T corresponding to digital object D. The second institution sends the encryption key K and the target digital label T to the blockchain platform. After receiving the access application, the blockchain platform forwards the encryption key K and the target digital label T to the second institution for subsequent encryption and data transmission operations. In this way, the identity authentication and data security of user U when accessing digital object D are ensured.

[0062] Step 102, in response to the target identity authentication application sent from the data requesting end, the first providing end authority account determines the encryption key used to encrypt the target digital entity and the target digital label corresponding to the target digital entity when the target identity authentication application is characterized as a successful identity authentication, and sends the encryption key and the target digital label to the blockchain platform.

[0063] Among them, the blockchain platform is used to forward the encryption key and the target digital label of the target digital entity sent from the data provider to the data provider after receiving the encryption key and the target digital label.

[0064] In some embodiments of the present application, the data provider will perform operations through the first provider's permission account. When the data requester sends a target identity authentication application, the data provider needs to verify the legitimacy of the application. If the identity authentication is successful, the data provider will generate an encryption key for encrypting the target digital entity and a target digital label corresponding to the target digital entity. Subsequently, the data provider sends this information to the blockchain platform. After receiving the encryption key and the target digital label, the blockchain platform will forward this information back to the data provider for subsequent encryption operations. This process ensures the security and integrity of the data during transmission, and realizes transparent and tamper-proof records through blockchain technology.

[0065] For example, suppose that after the example of the above steps. In the case of successful identity authentication, the second institution generates an encryption key K for encrypting the digital object D and a target digital label T corresponding to the digital object D. The second institution sends the encryption key K and the target digital label T to the blockchain platform. After receiving this information, the blockchain platform forwards the encryption key K and the target digital label T back to the second institution. In this way, the security and integrity of the digital object D during the transmission process are ensured, and the entire process is recorded through blockchain technology to prevent data tampering and leakage.

[0066] Step 103: In response to the access request for the target digital entity sent from the data requesting end, the encryption key sent from the data providing end and the target digital tag of the target digital entity are forwarded to the data providing end.

[0067] Among them, after receiving the forwarded encryption key and target digital label, the data provider is used to encrypt the target digital entity corresponding to the target digital label according to the received encryption key through the second provider authority account to obtain the encrypted digital entity, and send the encrypted digital entity to the data requester.

[0068] In some embodiments of the present application, the blockchain platform will forward the encryption key and target digital label previously sent by the data provider back to the data provider according to the access request for the target digital entity sent by the data requester. After receiving this information, the data provider performs encryption operations through the second provider's authority account. Specifically, the data provider uses the received encryption key to encrypt the target digital entity corresponding to the target digital label to generate an encrypted digital entity. Subsequently, the data provider sends the encrypted digital entity to the data requester. This process achieves the isolation of the first local area network and the wide area network of the data requester by utilizing blockchain technology, thereby ensuring data security.

[0069] For example, suppose that after the example of the above steps. The blockchain platform will forward the encryption key K and the target digital tag T previously sent by the second institution back to the second institution. After the second institution receives this information through the second provider authority account, it uses the encryption key K to encrypt the digital object D to generate an encrypted digital entity D'. Then, the second institution sends the encrypted digital entity D' to the first institution. In this way, the security and integrity of the digital object D during transmission are ensured, and the entire process is recorded through blockchain technology to prevent data tampering and leakage.

[0070] Step 104, in response to the encryption key and target digital label forwarded from the blockchain platform, encrypt the target digital entity corresponding to the target digital label according to the received encryption key through the second provider authority account to obtain an encrypted digital entity, and send the encrypted digital entity to the data requesting end.

[0071] Among them, after receiving the encrypted digital entity, the data requesting end is used to determine the target digital tag of the target digital entity from the encrypted digital entity through the second requesting end authority account, and send the target digital tag to the blockchain platform.

[0072] In some embodiments of the present application, the data provider will perform encryption operations through the second provider authority account. Specifically, the data provider responds to the encryption key and target digital label forwarded by the blockchain platform, and uses the received encryption key to encrypt the target digital entity corresponding to the target digital label to generate an encrypted digital entity. Subsequently, the data provider sends the encrypted digital entity to the data requester. After receiving the encrypted digital entity, the data requester extracts the target digital label from the encrypted digital entity through the second requester authority account, and sends the target digital label to the blockchain platform.

[0073] For example, suppose that after the example of the above steps. The second institution will use the encryption key K through the second provider-end authority account to encrypt the medical digital object D to generate an encrypted digital entity D'. Then, the second institution sends the encrypted digital entity D' to the first institution. After the first institution receives the encrypted digital entity D', it extracts the target digital label T from it through the second requester-end authority account and sends the target digital label to the blockchain platform. In this way, the security and integrity of the digital object D during transmission are ensured, and the entire process is recorded through blockchain technology to prevent data tampering and leakage.

[0074] Step 105, in response to the encrypted digital entity sent from the data provider, determine the target digital tag of the target digital entity from the encrypted digital entity through the second requester authority account, and send the target digital tag to the blockchain platform.

[0075] Among them, the blockchain platform is used to forward the target digital tag sent from the data request end to the data request end after receiving the target digital tag.

[0076] In some embodiments of the present application, when the data request end receives the encrypted digital entity from the data provider, the data request end needs to extract the target digital tag of the target digital entity from the encrypted digital entity. After extracting the target digital tag, the data request end sends it to the blockchain platform. After receiving the target digital tag, the blockchain platform forwards the tag back to the data request end. This process achieves the isolation of the second local area network of the data request end from the wide area network by using blockchain technology, thereby ensuring data security.

[0077] For example, suppose that after the example of the above steps, user U extracts the target digital label T from the encrypted digital object D' through the second request end authority account, and sends the target digital label T to the blockchain platform. After receiving the target digital label T, the blockchain platform forwards it back to the first institution. In this way, the security and integrity of the digital object D during the transmission process are ensured, and the entire process is recorded through blockchain technology to prevent data tampering and leakage.

[0078] Step 106, in response to the target digital tag sent from the data requesting end, forwarding the target digital tag sent from the data requesting end to the data requesting end.

[0079] Among them, after receiving the forwarded target digital label, the data requesting end is used to generate a decryption key for the encrypted digital entity according to the target digital label forwarded from the blockchain platform through the first requesting end authority account, and send the decryption key to the blockchain platform.

[0080] In some embodiments of the present application, the blockchain platform will respond to the target digital tag sent by the data request end and forward the tag back to the data request end. After receiving the forwarded target digital tag, the data request end performs further operations through the first request end authority account. Specifically, the data request end generates a decryption key for the encrypted digital entity based on the target digital tag forwarded back from the blockchain platform, and sends the decryption key to the blockchain platform. This process ensures the security and integrity of the data during transmission, and realizes transparent and tamper-proof records through blockchain technology.

[0081] For example, suppose that after the example of the above steps. After receiving the target digital tag T, the blockchain platform forwards it back to the first institution. After the first institution receives the forwarded target digital tag T through the first request end authority account, it generates a decryption key K' for decrypting the digital object D'. Then, the first institution sends the decryption key K' to the blockchain platform. In this way, the security and integrity of the digital object D during the transmission process are ensured, and the entire process is recorded through blockchain technology to prevent data tampering and leakage.

[0082] Step 107, in response to the target digital tag forwarded from the blockchain platform, a decryption key for the encrypted digital entity is generated by the first requesting end authority account according to the target digital tag forwarded from the blockchain platform, and the decryption key is sent to the blockchain platform.

[0083] Among them, the blockchain platform is used to forward the decryption key sent from the data request end to the data request end after receiving the decryption key.

[0084] In some embodiments of the present application, when the data request end receives the target digital tag forwarded by the blockchain platform, the data request end needs to generate a decryption key for the encrypted digital entity based on the tag. After generating the decryption key, the data request end sends it to the blockchain platform. After receiving the decryption key, the blockchain platform forwards the key back to the data request end. This process uses blockchain technology to isolate the second local area network of the data request end from the wide area network, ensuring data security.

[0085] For example, suppose that after the example of the above steps. User U generates a decryption key K' for decrypting the medical digital object D' according to the target digital tag T through the first request end authority account. Then, user U sends the decryption key K' to the blockchain platform. After receiving the decryption key K', the blockchain platform forwards it back to the first institution. In this way, the security and integrity of the digital object D during the transmission process are ensured, and the entire process is recorded through blockchain technology to prevent data tampering and leakage.

[0086] Step 108, in response to the decryption key sent from the data requesting end, forwarding the decryption key sent from the data requesting end to the data requesting end.

[0087] Among them, after receiving the forwarded decryption key, the data requesting end is used to respond to the decryption key forwarded from the blockchain platform through the second requesting end authority account, and decrypt the encrypted digital entity sent from the data providing end through the decryption key to obtain the decrypted target digital entity.

[0088] In some embodiments of the present application, the blockchain platform will forward the decryption key sent by the data requesting end back to the data requesting end. After receiving the forwarded decryption key, the data requesting end performs the decryption operation through the second requesting end authority account. Specifically, the data requesting end uses the received decryption key to decrypt the encrypted digital entity from the data providing end, thereby obtaining the decrypted target digital entity.

[0089] For example, suppose that after the example of the above steps. After receiving the decryption key K', the blockchain platform forwards it back to the first institution. After the first institution receives the forwarded decryption key K' through the second request end authority account, it uses the key to decrypt the encrypted medical digital object D' from the second institution, and finally obtains the decrypted medical digital object D. In this way, the security and integrity of the digital object D during the transmission process are ensured, and the entire process is recorded through blockchain technology to prevent data tampering and leakage.

[0090] Step 109, in response to the decryption key forwarded from the blockchain platform, the encrypted digital entity sent from the data provider is decrypted through the second requesting end authority account and the decryption key to obtain the decrypted target digital entity.

[0091] In some embodiments of the present application, when the data request end receives the decryption key forwarded by the blockchain platform, the data request end needs to use the decryption key to decrypt the encrypted digital entity from the data provider. Through the decryption operation, the data request end can obtain the decrypted target digital entity.

[0092] For example, suppose that after the example of the above steps, user U uses the decryption key K' to decrypt the encrypted medical digital object D' from the second institution through the second request end authority account, and finally obtains the decrypted medical digital object D. In this way, the security and integrity of the digital object D during the transmission process are ensured, and the entire process is recorded through blockchain technology to prevent data tampering and leakage.

[0093] In summary, in the embodiment of the present application, by setting up a local area network isolated from the wide area network, the security of the data transmission process is enhanced to prevent unauthorized access, and by setting up the first permission account and the second permission account at the data request end and the data provider end respectively, the access control in different network environments is ensured, and then by making the blockchain platform play an intermediary role in the entire data flow process, it is ensured that the encryption key and the decryption key are transmitted through the blockchain, and the encrypted data itself is transmitted separately, ensuring the secure communication between the data request end and the data provider end, and enhancing the overall security of the data flow process. Therefore, the method based on the embodiment of the present application effectively solves the security and privacy protection issues of medical clinical data in the flow process, ensures the confidentiality, integrity and availability of the data, and solves the problem of insufficient data security during the transfer of medical data.

[0094] Figure 2 This is another smart contract-based medical clinical data encryption flow access control method provided by this embodiment, wherein steps 201, 205, 207, and 209 are applied to the data request end, steps 202 and 204 are applied to the data provider end, and steps 203, 206, and 208 are applied to the blockchain platform.

[0095] The method may include the following steps:

[0096] Step 201, in response to a request to obtain a target digital entity, a target identity authentication application corresponding to the target digital entity is sent to a data provider through a first requester authority account, and an access application for the target digital entity is sent to a blockchain platform.

[0097] Among them, the data provider is used to determine the encryption key used to encrypt the target digital entity and the target digital label corresponding to the target digital entity through the first provider authority account after receiving the target identity authentication application, when the target identity authentication application is characterized as successful identity authentication, and send the encryption key and the target digital label to the blockchain platform; the blockchain platform is used to forward the encryption key and the target digital label of the target digital entity sent from the data provider to the data provider after receiving the access application.

[0098] The method shown in this step has been explained in step 101 and will not be repeated here.

[0099] Step 202, in response to the target identity authentication application sent from the data requesting end, the first providing end authority account determines the encryption key used to encrypt the target digital entity and the target digital label corresponding to the target digital entity when the target identity authentication application is characterized as a successful identity authentication, and sends the encryption key and the target digital label to the blockchain platform.

[0100] Among them, the blockchain platform is used to forward the encryption key and the target digital label of the target digital entity sent from the data provider to the data provider after receiving the encryption key and the target digital label.

[0101] The method shown in this step has been explained in step 102 and will not be repeated here.

[0102] Optionally, step 202 includes the following sub-steps:

[0103] Sub-step 2021, determining the digital tag that matches the target identity authentication application as the target digital tag, and generating an encryption key based on the target digital tag.

[0104] In some embodiments of the present application, after receiving the target identity authentication application, the data provider determines the digital tag that matches the application as the target digital tag. The target digital tag is a unique identifier for identifying the target digital entity. According to the determined target digital tag, the data provider generates an encryption key for encrypting the target digital entity. The encryption key is used to encrypt the target digital entity to ensure the security and confidentiality of the data during transmission. In this way, it is ensured that only authenticated users can access and decrypt the target digital entity.

[0105] For example, suppose that the second institution receives a target identity authentication application from an ordinary user U of the first institution, in which the application requests access to a medical digital object D. The second institution verifies the identity of the user U and determines that the digital tag T that matches the application is the target digital tag. Based on the target digital tag T, the second institution generates an encryption key K for encrypting the digital object D. The encryption key K will be used to encrypt the digital object D to ensure the security and confidentiality of the data during transmission. In this way, it is ensured that only the authenticated user U can access and decrypt the digital object D.

[0106] Sub-step 2022, sending the encryption key and the target digital tag to the blockchain platform.

[0107] In some embodiments of the present application, after the data provider generates the encryption key and the target digital label, it will send this information to the blockchain platform. The encryption key is used to encrypt the target digital entity, and the target digital label is a unique identifier used to identify the target digital entity. Sending the encryption key and the target digital label to the blockchain platform can ensure the security and integrity of these key information during transmission. The immutability and distributed ledger characteristics of the blockchain platform further enhance the transparency and traceability of the data.

[0108] For example, assume that the second institution has generated an encryption key K for encrypting a medical digital object D and a target digital label T corresponding to the digital object D. The second institution sends the encryption key K and the target digital label T to the blockchain platform. After receiving this information, the blockchain platform records it in the distributed ledger to ensure the transparency and immutability of the information. In this way, the security and integrity of the encryption key K and the target digital label T during transmission are ensured, while providing complete audit and traceability capabilities.

[0109] Step 203: In response to the access request for the target digital entity sent from the data requesting end, the encryption key sent from the data providing end and the target digital tag of the target digital entity are forwarded to the data providing end.

[0110] Among them, after receiving the forwarded encryption key and target digital label, the data provider is used to encrypt the target digital entity corresponding to the target digital label according to the received encryption key through the second provider authority account to obtain the encrypted digital entity, and send the encrypted digital entity to the data requester.

[0111] The method shown in this step has been explained in step 103 and will not be repeated here.

[0112] Step 204, in response to the encryption key and target digital label forwarded from the blockchain platform, encrypt the target digital entity corresponding to the target digital label according to the received encryption key through the second provider authority account to obtain an encrypted digital entity, and send the encrypted digital entity to the data requesting end.

[0113] Among them, after receiving the encrypted digital entity, the data requesting end is used to determine the target digital tag of the target digital entity from the encrypted digital entity through the second requesting end authority account, and send the target digital tag to the blockchain platform.

[0114] The method shown in this step has been described in step 104 and will not be repeated here.

[0115] Step 205, in response to the encrypted digital entity sent from the data provider, the target digital tag of the target digital entity is determined from the encrypted digital entity through the second requester authority account, and the target digital tag is sent to the blockchain platform.

[0116] Among them, the blockchain platform is used to forward the target digital tag sent from the data request end to the data request end after receiving the target digital tag.

[0117] The method shown in this step has been explained in step 105 and will not be repeated here.

[0118] Step 206, in response to the target digital tag sent from the data requesting end, forward the target digital tag sent from the data requesting end to the data requesting end.

[0119] Among them, after receiving the forwarded target digital label, the data requesting end is used to generate a decryption key for the encrypted digital entity according to the target digital label forwarded from the blockchain platform through the first requesting end authority account, and send the decryption key to the blockchain platform.

[0120] The method shown in this step has been described in step 106 and will not be repeated here.

[0121] Step 207, in response to the target digital tag forwarded from the blockchain platform, a decryption key for the encrypted digital entity is generated by the first requesting end authority account according to the target digital tag forwarded from the blockchain platform, and the decryption key is sent to the blockchain platform.

[0122] Among them, the blockchain platform is used to forward the decryption key sent from the data request end to the data request end after receiving the decryption key.

[0123] The method shown in this step has been described in step 107 and will not be repeated here.

[0124] Optionally, step 207 includes the following sub-steps:

[0125] Sub-step 2071, generating a decryption private key according to the target digital tag.

[0126] In some embodiments of the present application, the data request end generates a decryption private key based on the target digital tag. The target digital tag is a unique identifier for identifying the target digital entity. The decryption private key is a key key for decrypting the encrypted digital entity. By generating a decryption private key based on the target digital tag, it is ensured that only authenticated users can generate the correct decryption key to access and decrypt the target digital entity. This process ensures the security and confidentiality of the data.

[0127] For example, assume that an ordinary user U of the first institution has received the target digital tag T from the blockchain platform. User U generates a decryption private key K based on the target digital tag T through the first request end authority account. priv . Decryption private key K priv It will be used to decrypt the encrypted medical digital object D' from the second institution. In this way, it is ensured that only the authenticated user U can generate the correct decryption key K priv , thereby accessing and decrypting the digital object D, ensuring the security and confidentiality of the data.

[0128] Sub-step 2072, encrypt and decrypt the private key using the preset public key to obtain the decryption key, and send the decryption key to the blockchain platform.

[0129] In some embodiments of the present application, the data request end will use the preset public key to encrypt the decryption private key to generate a decryption key. The preset public key is a key pair for encryption and decryption, where the public key is used for encryption and the private key is used for decryption. By encrypting the decryption private key with the public key, the security of the decryption private key during transmission can be ensured. The generated decryption key is then sent to the blockchain platform for subsequent decryption operations. This process ensures the security and confidentiality of data during transmission.

[0130] For example, suppose that the ordinary user U of the first institution has generated a decryption private key K according to the target digital label T. priv User U uses the preset public key K through the first request end authority account pub For the decryption private key K priv Encrypt and generate the decryption key K enc The encrypted decryption key K enc This ensures security during transmission. User U will decrypt the key K enc Sent to the blockchain platform. The blockchain platform receives the decryption key K enc After that, it is recorded in the distributed ledger to ensure the transparency and non-tamperability of the information. In this way, the decryption private key K is ensured. priv Security and confidentiality during transmission, while providing complete audit and traceability capabilities.

[0131] Step 208, in response to the decryption key sent from the data requesting end, forward the decryption key sent from the data requesting end to the data requesting end.

[0132] Among them, after receiving the forwarded decryption key, the data requesting end is used to respond to the decryption key forwarded from the blockchain platform through the second requesting end authority account, and decrypt the encrypted digital entity sent from the data providing end through the decryption key to obtain the decrypted target digital entity.

[0133] The method shown in this step has been explained in step 108 and will not be repeated here.

[0134] Step 209, in response to the decryption key forwarded from the blockchain platform, the encrypted digital entity sent from the data provider is decrypted through the second requester authority account and the decryption key to obtain the decrypted target digital entity.

[0135] The method shown in this step has been explained in step 109 and will not be repeated here.

[0136] Optionally, step 209 includes the following sub-steps:

[0137] Sub-step 2091, decrypting the decryption key using a preset private key to obtain a decryption private key.

[0138] In some implementations of the present application, the data requesting end will use a preset private key to decrypt the decryption key to obtain a decryption private key. The preset private key is a key pair for encryption and decryption, where the private key is used for decryption. By using the private key to decrypt the decryption key, it can be ensured that only authorized users can obtain the decryption private key. The decryption private key is a key key used to decrypt the encrypted digital entity, ensuring the security and confidentiality of the data during transmission.

[0139] For example, suppose that the ordinary user U of the first institution has received the encrypted decryption key K through the blockchain platform enc User U uses the preset private key K through the second request end authority account priv For the decryption key K enc Decrypt and obtain the decryption private key K dec . Decryption private key K dec It will be used to decrypt the encrypted medical digital object D' from the second institution. In this way, it is ensured that only authorized users U can obtain the decryption private key K dec , thereby accessing and decrypting the digital object D, ensuring the security and confidentiality of the data.

[0140] Sub-step 2092, decrypting the encrypted digital entity using the decryption private key to obtain the decrypted target digital entity.

[0141] In some implementations of the present application, the data request end will use the decryption private key to decrypt the encrypted digital entity to obtain the decrypted target digital entity. The decryption private key is a key key used to decrypt the encrypted digital entity. By decrypting the encrypted digital entity using the decryption private key, the data request end can restore the original target digital entity. This process ensures the security and confidentiality of data during transmission, and only authorized users can access and decrypt the target digital entity.

[0142] For example, suppose that the ordinary user U of the first institution has obtained the decryption private key K through the second request end authority account dec User U uses the decryption private key K dec The encrypted medical digital object D' from the second institution is decrypted, and finally the decrypted medical digital object D is obtained. In this way, it is ensured that only the authorized user U can access and decrypt the digital object D, ensuring the security and confidentiality of the data.

[0143] Optionally, in addition to the above steps, the blockchain platform in the embodiment of the present application also performs the following steps at the same time:

[0144] In step 210, the encryption key sent from the data provider and the target digital tag of the target digital entity, the target digital tag sent from the data requester, and the data receiving event and the data forwarding event corresponding to the decryption key sent from the data requester are recorded in the blockchain respectively.

[0145] In some embodiments of the present application, the blockchain platform records the following events on the blockchain: the encryption key sent from the data provider and the target digital label of the target digital entity, the target digital label sent from the data requester, and the data reception event and data forwarding event corresponding to the decryption key sent from the data requester. By recording these events on the blockchain, the transparency and traceability of the entire data flow process are ensured. The immutability and distributed ledger characteristics of blockchain technology further enhance the security and integrity of data.

[0146] For example, when an ordinary user U of the first institution requests to access a medical digital object D of the second institution, the blockchain platform will record the following events: the encryption key K and target digital label T sent by the second institution, the target digital label T sent by the first institution, and the decryption key K' sent by the first institution. These events correspond to the operations of data reception and data forwarding, respectively. By recording these events on the blockchain, it is ensured that every step of the user U's access to the digital object D is transparently recorded and tracked, preventing data tampering and leakage, while providing complete audit and traceability capabilities.

[0147] It is worth emphasizing that the various public keys or private keys that appear in the various embodiments of the present application, such as decryption private keys, private key keys, and encryption keys, etc., and the specific keys involved in the encryption algorithm can be selected as static or dynamic keys according to specific needs. Static keys remain unchanged during the entire data transmission process and are suitable for scenarios with low security requirements. Dynamic keys generate new keys each time data is transmitted, which are suitable for scenarios with high security requirements. The use of dynamic keys can effectively prevent key leakage and replay attacks, and further enhance the security and confidentiality of data.

[0148] Figure 3 The present invention provides an architecture of a medical clinical data encryption circulation access control system based on a smart contract, including a data request terminal A, a data provider terminal B, and a blockchain platform C;

[0149] The data requesting end A is connected to the data providing end B and the blockchain platform C respectively, and the data providing end B is connected to the blockchain platform C;

[0150] The data request terminal A and the data provider terminal B are respectively used to connect to the wide area network W;

[0151] The data request end A is provided with a first local area network A1 isolated from the wide area network W, and the data request end B is provided with a second local area network B1 isolated from the wide area network W;

[0152] The data requesting end A is provided with a first requesting end authority account and a second requesting end authority account, the first requesting end authority account is used to log in to the wide area network W, and the second requesting end authority account is used to log in to the first local area network A1;

[0153] The data provider B is provided with a first provider authority account and a second provider authority account. The first provider authority account is used to log in to the wide area network W, and the second provider authority account is used to log in to the second local area network B1.

[0154] The data requesting end A is used to respond to a request to obtain the target digital entity, send a target identity authentication application corresponding to the target digital entity to the data providing end through the first requesting end authority account, and send an access application for the target digital entity to the blockchain platform, and in response to the encrypted digital entity sent from the data providing end, determine the target digital tag of the target digital entity from the encrypted digital entity through the second requesting end authority account, and send the target digital tag to the blockchain platform, and in response to the target digital tag forwarded from the blockchain platform, generate a decryption key for the encrypted digital entity according to the target digital tag forwarded from the blockchain platform through the first requesting end authority account, and send the decryption key to the blockchain platform, and in response to the decryption key forwarded from the blockchain platform, decrypt the encrypted digital entity sent from the data providing end through the second requesting end authority account and the decryption key to obtain the decrypted target digital entity;

[0155] The data provider B is used to respond to the target identity authentication application sent from the data requester, determine the encryption key used to encrypt the target digital entity and the target digital label corresponding to the target digital entity through the first provider authority account when the target identity authentication application is characterized as successful identity authentication, and send the encryption key and the target digital label to the blockchain platform, and in response to the encryption key and the target digital label forwarded from the blockchain platform, encrypt the target digital entity corresponding to the target digital label according to the received encryption key through the second provider authority account to obtain an encrypted digital entity, and send the encrypted digital entity to the data requester;

[0156] Blockchain platform C is used to forward the encryption key sent from the data provider and the target digital label of the target digital entity to the data provider after receiving the access application, and to forward the target digital label sent from the data requesting end to the data requesting end after receiving the target digital label, and to forward the decryption key sent from the data requesting end to the data requesting end after receiving the decryption key, and to forward the encryption key sent from the data provider and the target digital label of the target digital entity to the data provider after receiving the encryption key and the target digital label.

[0157] The embodiment of the present application discloses a system based on smart contracts for encrypted circulation and access control of medical clinical data. The system includes a data request end A, a data provider end B and a blockchain platform C, which are interconnected through a network. The data request end A and the data provider end B are respectively connected to the wide area network W to realize the transmission and access of general users; the data request end A and the data provider end B are interconnected to realize the circulation of medical data; the data request end A and the data provider end B are respectively connected to the blockchain platform C to realize the interaction of medical data encryption information. At the same time, the data request end A and the data provider end B are respectively configured with a local area network A1 and a local area network B1 isolated from the wide area network W. This isolation design enhances the security during data transmission and prevents unauthorized access and data leakage. The data request end A is equipped with two permission accounts: a first request end permission account and a second request end permission account. The first request end permission account is only used to log in to the wide area network W, and the second request end permission account is only used to log in to the local area network A1. The data provider end B is also equipped with two permission accounts: a first provider permission account and a second provider permission account. The first provider end authority account is used to log in to the wide area network W, and the second provider end authority account is used to log in to the local area network B1. This design ensures access control in different network environments, ensures data isolation within the system, and ensures data security.

[0158] refer to Figure 4It is a software architecture under a medical clinical data encryption circulation access control method based on a smart contract provided in an embodiment of the present application, and specifically performs the process of steps S1 to S4:

[0159] S1: Issue access request: The data requester initiates an access request to the smart contract to apply for access to specific encrypted medical data.

[0160] S2: Access request response: After receiving the access request, the smart contract verifies the legitimacy of the request and decides whether to allow access based on the access control policy.

[0161] S3: Data access request review: The data provider reviews the access request, generates the corresponding encryption key and target digital label, and sends this information to the blockchain platform.

[0162] S4: Request access response: The blockchain platform forwards the encryption key and target digital tag to the data requester, which uses this information to decrypt and access the target digital entity.

[0163] Figure 5 It is a deployment architecture under a medical clinical data encryption circulation access control method based on smart contracts provided in an embodiment of the present application. Under this architecture, users initiate data access requests to the system through these terminals through user terminals. Requests from user terminals are received through gateway nodes, and these requests are forwarded to the blockchain network and data storage services. They act as a bridge for data transmission to ensure the smooth flow of data requests and responses. The blockchain network is the core part of the entire system, responsible for recording and verifying all data access requests and responses. Through smart contracts, the blockchain network ensures the security, transparency and immutability of data. The data storage service is used to store encrypted medical clinical data. Only authorized users can access these data through decryption keys to ensure the security and privacy of the data.

[0164] Figure 6 It is a data transfer process under a medical clinical data encryption transfer access control method based on a smart contract provided in an embodiment of the present application, specifically executing steps M1 to M6:

[0165] M1: Access application and target identity authentication application:

[0166] M1(a): Access application: the data requester initiates an access application to the blockchain platform to request access to specific encrypted medical data;

[0167] M1(b): The data requester simultaneously initiates a target identity authentication request to the data provider to verify its access rights;

[0168] M2: Access request response. After receiving the access application, the blockchain platform verifies the authority of the organization and the account to ensure the legality and compliance of the request.

[0169] M3: Digital object review: the data provider reviews the access request, generates the corresponding encryption key and target digital label, and writes this information into the blockchain platform;

[0170] M4: Write the target digital tag. The blockchain platform records the target digital tag and encryption key in the distributed ledger to ensure the transparency and non-tamperability of the information.

[0171] M5: Write the decryption key. After receiving the encrypted digital entity, the data request end extracts the target digital label from it through the second request end authority account and sends the target digital label to the blockchain platform. The blockchain platform records the decryption key in the distributed ledger;

[0172] M6: Decryption of encrypted digital entity. The data requesting end uses the decryption key to decrypt the encrypted digital entity and finally obtains the decrypted target digital entity.

[0173] In summary, in the embodiment of the present application, by setting up a local area network isolated from the wide area network, the security of the data transmission process is enhanced to prevent unauthorized access, and by setting up the first permission account and the second permission account at the data request end and the data provider end respectively, the access control in different network environments is ensured, and then by making the blockchain platform play an intermediary role in the entire data flow process, it is ensured that the encryption key and the decryption key are transmitted through the blockchain, and the encrypted data itself is transmitted separately, ensuring the secure communication between the data request end and the data provider end, and enhancing the overall security of the data flow process. Therefore, the method based on the embodiment of the present application effectively solves the security and privacy protection issues of medical clinical data in the flow process, ensures the confidentiality, integrity and availability of the data, and solves the problem of insufficient data security during the transfer of medical data.

[0174] refer to Figure 7 , which shows a medical clinical data encryption transfer access control device 30 based on smart contract provided in an embodiment of the present application, applied to a data request end, including:

[0175] The task initiation module 301 is used to respond to the acquisition request for the target digital entity, send a target identity authentication application corresponding to the target digital entity to the data provider through the first request end authority account, and send an access application for the target digital entity to the blockchain platform; after receiving the target identity authentication application, the data provider is used to determine the encryption key used to encrypt the target digital entity and the target digital label corresponding to the target digital entity through the first provider end authority account when the target identity authentication application is characterized as successful identity authentication, and send the encryption key and the target digital label to the blockchain platform; after receiving the access application, the blockchain platform is used to forward the encryption key and the target digital label of the target digital entity sent from the data provider to the data provider;

[0176] The encrypted file receiving module 302 is used to respond to the encrypted digital entity sent from the data providing end, determine the target digital tag of the target digital entity from the encrypted digital entity through the second requesting end authority account, and send the target digital tag to the blockchain platform; the blockchain platform is used to forward the target digital tag sent from the data requesting end to the data requesting end after receiving the target digital tag;

[0177] The decryption initiation module 303 is used to generate a decryption key of the encrypted digital entity according to the target digital tag forwarded from the blockchain platform through the first request end authority account in response to the target digital tag forwarded from the blockchain platform, and send the decryption key to the blockchain platform; after receiving the decryption key, the blockchain platform is used to forward the decryption key sent from the data request end to the data request end;

[0178] The decryption module 304 is used to respond to the decryption key forwarded from the blockchain platform, decrypt the encrypted digital entity sent from the data provider through the second request end authority account and the decryption key to obtain the decrypted target digital entity.

[0179] Optionally, the decryption initiation module 303 includes:

[0180] The decryption private key generation submodule is used to generate a decryption private key according to the target digital label.

[0181] The decryption key submodule is used to encrypt and decrypt the private key through the preset public key to obtain the decryption key, and send the decryption key to the blockchain platform.

[0182] Optionally, the decryption module 304 includes:

[0183] The private key decryption submodule is used to decrypt the decryption key using a preset private key to obtain a decrypted private key.

[0184] The data decryption submodule is used to decrypt the encrypted digital entity using the decryption private key to obtain the decrypted target digital entity.

[0185] refer to Figure 8 , which shows a medical clinical data encryption circulation access control device 31 based on smart contract provided in an embodiment of the present application, applied to a data provider, including:

[0186] The authentication module 311 is used to respond to the target identity authentication application sent from the data request end, and determine the encryption key used to encrypt the target digital entity and the target digital label corresponding to the target digital entity through the first provider end authority account when the target identity authentication application is characterized as successful identity authentication, and send the encryption key and the target digital label to the blockchain platform; the blockchain platform is used to forward the encryption key and the target digital label sent from the data provider end to the data provider end after receiving the encryption key and the target digital label;

[0187] The encrypted file sending module 312 is used to respond to the encryption key and target digital label forwarded from the blockchain platform, encrypt the target digital entity corresponding to the target digital label according to the received encryption key through the second provider end authority account to obtain the encrypted digital entity, and send the encrypted digital entity to the data request end; the data request end is used to determine the target digital label of the target digital entity from the encrypted digital entity through the second request end authority account after receiving the encrypted digital entity, and send the target digital label to the blockchain platform.

[0188] Optionally, the authentication module 311 includes:

[0189] The encryption generation submodule is used to determine the digital label that matches the target identity authentication application as the target digital label, and generate an encryption key according to the target digital label.

[0190] The authentication sending submodule is used to send the encryption key and the target digital label to the blockchain platform.

[0191] refer to Fig. 9 , which shows a medical clinical data encryption circulation access control device 32 based on smart contract provided in an embodiment of the present application, applied to a blockchain platform, including:

[0192] The first forwarding module 321 is used to forward the encryption key sent from the data providing end and the target digital label of the target digital entity to the data providing end in response to the access request for the target digital entity sent from the data requesting end; after receiving the forwarded encryption key and target digital label, the data providing end is used to encrypt the target digital entity corresponding to the target digital label according to the received encryption key through the second providing end authority account to obtain the encrypted digital entity, and send the encrypted digital entity to the data requesting end;

[0193] The second forwarding module 322 is used to respond to the target digital tag sent from the data requesting end and forward the target digital tag sent from the data requesting end to the data requesting end; after receiving the forwarded target digital tag, the data requesting end is used to generate a decryption key of the encrypted digital entity according to the target digital tag forwarded from the blockchain platform through the first requesting end authority account, and send the decryption key to the blockchain platform;

[0194] The third forwarding module 323 is used to respond to the decryption key sent from the data requesting end and forward the decryption key sent from the data requesting end to the data requesting end; after receiving the forwarded decryption key, the data requesting end is used to respond to the decryption key forwarded from the blockchain platform through the second requesting end authority account, and decrypt the encrypted digital entity sent from the data providing end through the decryption key to obtain the decrypted target digital entity.

[0195] Optionally, the device 32 further includes:

[0196] The blockchain recording module is used to record the encryption key sent from the data provider and the target digital label of the target digital entity, the target digital label sent from the data requester, and the data reception event and data forwarding event corresponding to the decryption key sent from the data requester in the blockchain respectively.

[0197] In summary, in the embodiment of the present application, by setting up a local area network isolated from the wide area network, the security of the data transmission process is enhanced to prevent unauthorized access, and by setting up the first permission account and the second permission account at the data request end and the data provider end respectively, the access control in different network environments is ensured, and then by making the blockchain platform play an intermediary role in the entire data flow process, it is ensured that the encryption key and the decryption key are transmitted through the blockchain, and the encrypted data itself is transmitted separately, ensuring the secure communication between the data request end and the data provider end, and enhancing the overall security of the data flow process. Therefore, the method based on the embodiment of the present application effectively solves the security and privacy protection issues of medical clinical data in the flow process, ensures the confidentiality, integrity and availability of the data, and solves the problem of insufficient data security during the transfer of medical data.

[0198] Reference Fig.10 , the electronic device 500 may include one or more of the following components: a processing component 502 , a memory 504 , a power component 506 , a multimedia component 508 , an audio component 510 , an input / output (I / O) interface 512 , a sensor component 514 , and a communication component 516 .

[0199] The processing component 502 generally controls the overall operation of the electronic device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.

[0200] The memory 504 is used to store various types of data to support the operation of the electronic device 500. Examples of such data include instructions for any application or method operating on the electronic device 500, contact data, phone book data, messages, pictures, multimedia, etc. The memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0201] The power supply component 506 provides power to the various components of the electronic device 500. The power supply component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 500.

[0202] The multimedia component 508 includes an interface that provides an output interface between the electronic device 500 and the user. In some embodiments, the interface may include a liquid crystal display (LCD) and a touch panel (TP). If the interface includes a touch panel, the interface may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the electronic device 500 is in an operating mode, such as a shooting mode or a multimedia mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0203] The audio component 510 is used to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC), and when the electronic device 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is used to receive an external audio signal. The received audio signal can be further stored in the memory 504 or sent via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.

[0204] The input / output I / O interface 512 provides an interface between the processing component 502 and the peripheral interface module, which may be a keyboard, a click wheel, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0205] The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the electronic device 500. For example, the sensor assembly 514 can detect the open / closed state of the electronic device 500, the relative positioning of components, such as the display and keypad of the electronic device 500, and the sensor assembly 514 can also detect the position change of the electronic device 500 or a component of the electronic device 500, the presence or absence of user contact with the electronic device 500, the orientation or acceleration / deceleration of the electronic device 500, and the temperature change of the electronic device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0206] The communication component 516 is used to facilitate wired or wireless communication between the electronic device 500 and other devices. The electronic device 500 can access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G or 5G), or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0207] In an exemplary embodiment, the electronic device 500 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to implement the methods provided in the embodiments of the present application.

[0208] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, and the instructions can be executed by a processor 520 of an electronic device 500 to perform the above method. For example, the non-transitory storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0209] Fig.11 600 is a block diagram of an electronic device 600 according to another embodiment of the present invention. For example, the electronic device 600 may be provided as a server. Fig.11 , the electronic device 600 includes a processing component 622, which further includes one or more processors, and a memory resource represented by a memory 632, for storing instructions that can be executed by the processing component 622, such as an application. The application stored in the memory 632 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 622 is configured to execute instructions to perform the method provided in the embodiment of the present application.

[0210] The electronic device 600 may also include a power supply component 626 configured to perform power management of the electronic device 600, a wired or wireless network interface 650 configured to connect the electronic device 600 to a network, and an input / output (I / O) interface 658. The electronic device 600 may operate based on an operating system stored in the memory 632, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.

[0211] It should be noted that the medical data information involved in this application is all medical data information that has been fully authorized by all parties, and the collection, use and processing of relevant medical data information must comply with relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0212] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the application disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0213] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A medical clinical data encryption circulation access control method based on smart contracts, characterized in that: Applied to a data requesting end, the method comprises: In response to a request to obtain a target digital entity, a target identity authentication application corresponding to the target digital entity is sent to a data provider through a first requester authority account, and an access application for the target digital entity is sent to a blockchain platform; after receiving the target identity authentication application, the data provider is used to determine, through the first provider authority account, an encryption key used to encrypt the target digital entity and a target digital label corresponding to the target digital entity when the target identity authentication application is characterized as a successful identity authentication, and send the encryption key and the target digital label to the blockchain platform; after receiving the access application, the blockchain platform is used to forward the encryption key and the target digital label of the target digital entity sent from the data provider to the data provider; In response to the encrypted digital entity sent from the data provider, determine the target digital tag of the target digital entity from the encrypted digital entity through the second requester authority account, and send the target digital tag to the blockchain platform; the blockchain platform is used to forward the target digital tag sent from the data requester to the data requester after receiving the target digital tag; In response to the target digital tag forwarded from the blockchain platform, a decryption key of the encrypted digital entity is generated according to the target digital tag forwarded from the blockchain platform by the first requesting end authority account, and the decryption key is sent to the blockchain platform; the blockchain platform is used to forward the decryption key sent from the data requesting end to the data requesting end after receiving the decryption key; In response to the decryption key forwarded from the blockchain platform, the encrypted digital entity sent from the data provider is decrypted by the second requester authority account and the decryption key to obtain the decrypted target digital entity.

2. The method according to claim 1, characterized in that The step of generating a decryption key for the encrypted digital entity according to the target digital tag forwarded from the blockchain platform by a first requesting end authority account in response to the target digital tag forwarded from the blockchain platform, and sending the decryption key to the blockchain platform includes: Generate a decryption private key according to the target digital tag; The decryption private key is encrypted by a preset public key to obtain the decryption key, and the decryption key is sent to the blockchain platform.

3. The method according to claim 1, characterized in that The step of decrypting the encrypted digital entity sent from the data provider by using the second requester authority account and the decryption key in response to the decryption key forwarded from the blockchain platform to obtain the decrypted target digital entity includes: Decrypting the decryption key by using a preset private key to obtain a decryption private key; The encrypted digital entity is decrypted using the decryption private key to obtain the decrypted target digital entity.

4. A method for access control of encrypted circulation of medical clinical data based on smart contracts, characterized in that: Applied to a data provider, the method comprises: In response to a target identity authentication application sent from a data requesting end, an encryption key used to encrypt a target digital entity and a target digital label corresponding to the target digital entity are determined through a first providing end authority account when the target identity authentication application is characterized as a successful identity authentication, and the encryption key and the target digital label are sent to a blockchain platform; the blockchain platform is used to forward the encryption key and the target digital label sent from the data providing end to the data providing end after receiving the encryption key and the target digital label; In response to the encryption key and target digital label forwarded from the blockchain platform, the target digital entity corresponding to the target digital label is encrypted according to the received encryption key through the second provider authority account to obtain an encrypted digital entity, and the encrypted digital entity is sent to the data requester; after receiving the encrypted digital entity, the data requester is used to determine the target digital label of the target digital entity from the encrypted digital entity through the second requester authority account, and send the target digital label to the blockchain platform.

5. The method according to claim 4, characterized in that The method comprises: responding to a target identity authentication application sent from a data requesting end, determining, through a first providing end authority account, an encryption key for encrypting a target digital entity and a target digital label corresponding to the target digital entity when the target identity authentication application is characterized as successful identity authentication, and sending the encryption key and the target digital label to a blockchain platform, including: Determine the digital tag matching the target identity authentication application as the target digital tag, and generate the encryption key according to the target digital tag; The encryption key and the target digital tag are sent to a blockchain platform.

6. A medical clinical data encryption circulation access control system based on smart contracts, characterized in that: include: Data request side, data provider side, and blockchain platform; The data requesting end is connected to the data providing end and the blockchain platform respectively, and the data providing end is connected to the blockchain platform; The data request end and the data provider end are respectively used to connect to a wide area network; The data request end is provided with a first local area network isolated from the wide area network, and the data request end is provided with a second local area network isolated from the wide area network; The data request end is provided with a first request end authority account and a second request end authority account, the first request end authority account is used to log in to the wide area network, and the second request end authority account is used to log in to the first local area network; The data provider is provided with a first provider authority account and a second provider authority account, the first provider authority account is used to log in to the wide area network, and the second provider authority account is used to log in to the second local area network; The data requesting end is used to respond to a request for obtaining a target digital entity, send a target identity authentication application corresponding to the target digital entity to the data providing end through the first requesting end authority account, and send an access application for the target digital entity to the blockchain platform, and in response to the encrypted digital entity sent from the data providing end, determine the target digital label of the target digital entity from the encrypted digital entity through the second requesting end authority account, and send the target digital label to the blockchain platform, and in response to the target digital label forwarded from the blockchain platform, generate a decryption key for the encrypted digital entity according to the target digital label forwarded from the blockchain platform through the first requesting end authority account, and send the decryption key to the blockchain platform, and in response to the decryption key forwarded from the blockchain platform, decrypt the encrypted digital entity sent from the data providing end through the second requesting end authority account and the decryption key to obtain the decrypted target digital entity; The data provider is used to respond to the target identity authentication application sent from the data requester, and determine, through the first provider authority account, an encryption key used to encrypt the target digital entity and a target digital label corresponding to the target digital entity when the target identity authentication application is characterized as a successful identity authentication, and send the encryption key and the target digital label to the blockchain platform; and in response to the encryption key and target digital label forwarded from the blockchain platform, encrypt the target digital entity corresponding to the target digital label according to the received encryption key through the second provider authority account to obtain an encrypted digital entity, and send the encrypted digital entity to the data requester; The blockchain platform is used to forward the encryption key sent from the data provider and the target digital label of the target digital entity to the data provider after receiving the access application, and to forward the target digital label sent from the data requesting end to the data requesting end after receiving the target digital label, and to forward the decryption key sent from the data requesting end to the data requesting end after receiving the decryption key, and to forward the encryption key sent from the data provider and the target digital label of the target digital entity to the data provider after receiving the encryption key and the target digital label.

7. A medical clinical data encryption circulation access control device based on smart contracts, characterized in that: Applied to a data requesting end, the device comprises: A task initiation module is used to respond to a request for obtaining a target digital entity, send a target identity authentication application corresponding to the target digital entity to a data provider through a first requester authority account, and send an access application for the target digital entity to a blockchain platform; after receiving the target identity authentication application, the data provider is used to determine an encryption key used to encrypt the target digital entity and a target digital label corresponding to the target digital entity through the first provider authority account when the target identity authentication application is characterized as a successful identity authentication, and send the encryption key and the target digital label to the blockchain platform; after receiving the access application, the blockchain platform is used to forward the encryption key and the target digital label of the target digital entity sent from the data provider to the data provider; The encrypted file receiving module is used to respond to the encrypted digital entity sent from the data providing end, determine the target digital label of the target digital entity from the encrypted digital entity through the second requesting end authority account, and send the target digital label to the blockchain platform; the blockchain platform is used to forward the target digital label sent from the data requesting end to the data requesting end after receiving the target digital label; A decryption initiation module, configured to generate a decryption key of the encrypted digital entity according to the target digital tag forwarded from the blockchain platform through a first requester authority account in response to the target digital tag forwarded from the blockchain platform, and send the decryption key to the blockchain platform; the blockchain platform is configured to forward the decryption key sent from the data requester to the data requester after receiving the decryption key; A decryption module is used to respond to the decryption key forwarded from the blockchain platform, decrypt the encrypted digital entity sent from the data provider through the second request end authority account and the decryption key to obtain the decrypted target digital entity.

8. A medical clinical data encryption circulation access control device based on smart contracts, characterized in that: Applied to a data provider, the device comprises: An authentication module, configured to respond to a target identity authentication application sent from a data request end, and determine, through a first provider end authority account, an encryption key used to encrypt a target digital entity and a target digital label corresponding to the target digital entity when the target identity authentication application is characterized as a successful identity authentication, and send the encryption key and the target digital label to a blockchain platform; the blockchain platform is configured to forward the encryption key and the target digital label sent from the data provider end to the data provider end after receiving the encryption key and the target digital label; An encrypted file sending module is used to respond to the encryption key and target digital label forwarded from the blockchain platform, encrypt the target digital entity corresponding to the target digital label according to the received encryption key through the second provider end authority account to obtain an encrypted digital entity, and send the encrypted digital entity to the data request end; the data request end is used to determine the target digital label of the target digital entity from the encrypted digital entity through the second request end authority account after receiving the encrypted digital entity, and send the target digital label to the blockchain platform.

9. An electronic device, characterized in that: include: A processor, a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method as claimed in any one of claims 1 to 5.

10. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the method as claimed in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Digital asset management method and device based on block chain, storage medium and equipment

    CN114666064A

  • Block chain-based power data access method, device and system

    CN116055225A

  • Digital identity authentication method, device, apparatus and system, and storage medium

    WO2020192773A1

  • Smart contract-based private data query method and device

    WO2021088535A1

Cited By

  • Digital management system and method for science and technology project archives

    CN120723960A