Distributed data access authorization and data service method and device, equipment, and medium
Through blockchain authentication and smart contract authorization, combined with Handle or OBDA data services, the security and efficiency issues of traditional data access authorization methods are solved, and distributed data access is achieved with high efficiency, security and scalability.
Patent Information
- Application Number
- CN202310864045.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-14
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2043-07-14
AI Technical Summary
Traditional data access authorization methods have security and efficiency issues, making it difficult to effectively manage and protect access rights to distributed data.
Blockchain technology is used for identity verification and smart contract authorization, and data search and encrypted transmission are performed through Handle or OBDA to ensure the security and efficiency of data access.
It improves the security and efficiency of data access, achieves scalability, reliability, manageability and transparency, and is suitable for cross-institutional and cross-domain data access scenarios.
Smart Images

Figure CN116842546B
Abstract
Description
Technical Field
[0001] The present application relates to a distributed data access authorization and data service method and device, equipment, and medium, and belongs to the field of information technology. Background Art
[0002] At present, with the continuous growth of data and the complexity of application scenarios, more and more data are stored in different storage media in different locations, and these data often need to be accessed and used by multiple users. However, traditional data access authorization methods often have problems such as security and efficiency. Therefore, a new distributed data access authorization and data service method is urgently needed. Summary of the invention
[0003] In order to solve the above technical problems, the embodiments of the present application respectively provide a distributed data access authorization and data service method and apparatus, equipment, and medium to improve the efficiency and security of data access authorization.
[0004] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0005] According to one aspect of an embodiment of the present application, a distributed data access authorization and data service method is provided, comprising: a data application terminal sends identity authentication information to a blockchain, the identity authentication information includes an identity certificate, and the blockchain performs identity authentication on the data application terminal according to the identity certificate;
[0006] After the data applicant successfully authenticates its identity, the data applicant sends a data access request to the data provider through the blockchain. The blockchain uses a smart contract to authorize the data access request of the data applicant and stores the authorization information in the blockchain. The data provider determines the access rights of the data applicant based on the data access request and the authorization information stored in the blockchain.
[0007] When the data provider determines that the data requester has access rights, the data provider uses Handle or OBDA to search for data according to the data service request sent by the data requester, and when the corresponding data is found, the data provider encrypts the data and sends it to the data requester;
[0008] The requesting end receives the encrypted data and decrypts it to obtain the data to be accessed.
[0009] Furthermore, log records are stored in the blockchain, and the log records include the source, time, request parameters and processing results of the data access request.
[0010] Furthermore, the blockchain performs identity authentication on the data requesting end according to the identity certificate, specifically including:
[0011] The blockchain performs identity authentication on the data requesting end according to the identity authentication data stored on the blockchain, wherein the identity authentication data includes a plurality of identity certificates, and the plurality of identity certificates are generated by the identity information provided by the user end when registering as a data requesting end on the blockchain;
[0012] In the case where there is an identity certificate in the identity authentication data that is the same as the identity certificate of the data application end, the identity authentication of the data application end is successful;
[0013] In the case that the identity certificate identical to the identity certificate of the data requesting end does not exist in the identity authentication data, the identity authentication of the data requesting end is unsuccessful.
[0014] Furthermore, the data provider stores a database, and each digital object included in the database is
[0015] There is a unique identifier corresponding to the digital object, and the digital object includes a data service and a data collection;
[0016] The data service request includes a unique identifier, and the data provider searches for data in the database according to the unique identifier:
[0017] After the data service request of the data application end is authorized by the blockchain smart contract, the data provider uses Handle to find the digital object corresponding to the unique identifier, and then encrypts the digital object as the corresponding data and sends it to the data application end;
[0018] If no data is found within a preset time range, a first return message is sent to the data requesting end, wherein the first return message is used to indicate that the request has timed out;
[0019] If no data is found, sending a second return message to the data requesting end, wherein the second return message is used to indicate that the request is invalid;
[0020] When the data service request of the data application end is not authorized by the blockchain smart contract, that is, the relevant authorization information is not stored in the blockchain, a third return information is sent to the data application end, and the third return information is used to indicate insufficient authority.
[0021] Furthermore, the management of the digital object is achieved by updating, renaming or deleting the unique identifier.
[0022] Furthermore, the data provider stores a database, and the data provider integrates part or all of the data in the database into a unified semantic graph, in which different data resources can be identified, classified, connected and queried;
[0023] The data service request includes semantic query information, and the data provider searches for data in the database according to the semantic query information:
[0024] After the data service request of the data application end is authorized by the blockchain smart contract, the data provider end uses OBDA to find the data resources corresponding to the semantic query information based on the ontology model describing the semantics and relationships between data distributed in different data sources, and then encrypts the data resources as the corresponding data and sends them to the data application end;
[0025] If no data is found within a preset time range, a first return message is sent to the data requesting end, wherein the first return message is used to indicate that the request has timed out;
[0026] If no data is found, sending a second return message to the data requesting end, wherein the second return message is used to indicate that the request is invalid;
[0027] When the data service request of the data application end is not authorized by the blockchain smart contract, that is, the relevant authorization information is not stored in the blockchain, a third return information is sent to the data application end, and the third return information is used to indicate insufficient authority.
[0028] Furthermore, the data provider encrypts the data using the public key of the data requester, and the encrypted data can only be decrypted using a private key corresponding to the public key.
[0029] According to one aspect of an embodiment of the present application, a distributed data access authorization and data service device is provided, including:
[0030] The data application end is configured to send identity authentication information to the blockchain, wherein the identity authentication information includes an identity certificate. The blockchain performs identity authentication on the data application end according to the identity certificate. After the identity authentication of the data application end is successful, the blockchain sends a data access request to the data provider end, receives the encrypted data, and decrypts it to obtain the data to be accessed;
[0031] The data provider is configured to determine the access rights of the data applicant according to the data access request and the authorization information stored in the blockchain. When it is determined that the data applicant has the access rights, the data provider uses Handle or OBDA to search for data according to the data service request sent by the data applicant, and when the corresponding data is found, the data is encrypted and sent to the data applicant.
[0032] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: a controller; and a memory for storing one or more programs, wherein when the one or more programs are executed by the controller, the controller implements the above-mentioned distributed data access authorization and data service method.
[0033] According to one aspect of an embodiment of the present application, a computer-readable storage medium is also provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the above-mentioned distributed data access authorization and data service method.
[0034] According to one aspect of the embodiments of the present application, a computer program product or a computer program is also provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned distributed data access authorization and data service method.
[0035] The technical solution provided in the embodiments of the present application has at least the following advantages:
[0036] Security: Through the blockchain's trusted identity authentication and alliance access authorization mechanism, the authenticity of identity and the immutability of data are ensured, avoiding the risk of data tampering or theft.
[0037] Efficiency: Using the Handle or OBDA data service method can quickly respond to user requests and improve data access efficiency.
[0038] Scalability: Distributed data access authorization and data services can be deployed on multiple nodes, and the system scale can be dynamically adjusted according to the increase in data volume and user demand, thereby achieving higher concurrency and better performance.
[0039] Reliability: Distributed data access authorization and data services can use redundancy and backup mechanisms to improve system reliability. When a node fails, it can automatically switch to other nodes to ensure the normal operation of the system.
[0040] Manageability: Distributed data access authorization and data services can be managed and monitored through a centralized management mechanism, which can promptly discover and resolve system problems and improve system manageability.
[0041] Efficiency: Distributed data access authorization and data services can store data authorization information on nearby nodes, reducing data transmission and network delays, thereby improving data access efficiency and response speed.
[0042] Transparency: Blockchain technology is used to record all access authorizations and data service records, ensuring the transparency and traceability of data services.
[0043] Flexibility: Distributed data access authorization adopts a federated access authorization mechanism, which can flexibly adjust the access authorization scope and permission level according to specific needs.
[0044] In short, distributed data access authorization and data services can be widely used in scenarios requiring cross-institutional and cross-domain data access authorization and data service through their advantages in scalability, reliability, security, manageability, transparency, flexibility and efficiency.
[0045] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0047] Figure 1 It is a schematic diagram of an implementation environment involved in this application;
[0048] Figure 2 is a flow chart of a distributed data access authorization and data service method shown in an exemplary embodiment of the present application;
[0049] Figure 3 is an identity authentication flow chart shown in an exemplary embodiment of the present application;
[0050] Figure 4 is a flow chart of a data service shown in another exemplary embodiment of the present application;
[0051] Figure 5 is a flow chart of a data service shown in another exemplary embodiment of the present application;
[0052] Figure 6 is a schematic diagram of the structure of a distributed data access authorization and data service device shown in an exemplary embodiment of the present application;
[0053] Figure 7 It is a structural diagram of a computer system of an electronic device shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0054] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0055] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0056] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0057] The term "multiple" as used in this application refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.
[0058] First, see Figure 1 , Figure 1 1 is a schematic diagram of an implementation environment involved in the present application. The implementation environment includes a data application end 100 and a data provider end 200, and the data application end 100 and the data provider end 200 communicate with each other through a wired or wireless network.
[0059] The data application end 100 and the data provider end 200 can act as participants, namely, the data application end and the data provider end, register their identities through the blockchain system, and provide identity information and identity verification materials. In the process, encryption and anonymization technologies need to be used to ensure that identity information and access rights are fully protected. When the identity information of the participant changes, the identity needs to be updated so that the blockchain system can update the identity information and access rights of the participant.
[0060] See also Figure 2 , Figure 2 The flowchart of a distributed data access authorization and data service method shown in an exemplary embodiment of the present application is executed by a data application end and a data provider end that establish communication, wherein the data application end and the data provider end are implemented as devices that at least have data processing and transmission functions. Figure 2 As shown, the method at least includes steps S201 to S204, which are described in detail as follows:
[0061] In step S201, the data applicant sends identity authentication information to the blockchain, where the identity authentication information includes an identity certificate. The blockchain performs identity authentication on the data applicant based on the identity certificate.
[0062] This step is the identity authentication step, that is, only users registered in the blockchain system can be successfully authenticated. This application adopts a trusted identity authentication mechanism based on blockchain. Each user has his or her own identity certificate, which is used to verify the user's identity and authority to ensure that the user's identity is credible. Before applying to access data, users need to authenticate their identity.
[0063] See also Figure 3 , Figure 3 is an identity authentication flow chart shown in an exemplary embodiment of the present application. Further, the blockchain performs identity authentication on the data application end according to the identity certificate, specifically including:
[0064] Step S301, the blockchain performs identity authentication on the data requesting end according to the identity authentication data stored on the blockchain, the identity authentication data includes multiple identity certificates, and the multiple identity certificates are generated by the identity information provided by the user end when registering as a data requesting end on the blockchain;
[0065] Step S302, when there is an identity certificate in the identity authentication data that is the same as the identity certificate of the data application end, the identity authentication of the data application end is successful;
[0066] Step S303: When there is no identity certificate identical to the identity certificate of the data applicant in the identity authentication data, the identity authentication of the data applicant is unsuccessful.
[0067] Step S202, after the data applicant successfully authenticates his / her identity, the data applicant sends a data access request to the data provider through the blockchain. The blockchain uses a smart contract to authorize the data access request of the data applicant and stores the authorization information in the blockchain. The data provider determines the access rights of the data applicant based on the data access request and the authorization information stored in the blockchain.
[0068] The alliance access authorization mechanism uses smart contracts to authorize data access requests from data applicants and control user access rights to data. Only authorized users can access data services, and the authorization information is stored in the blockchain to ensure the reliability and immutability of the authorization information.
[0069] Specifically, the alliance access authorization mechanism is an access authorization model based on the alliance chain, which is used to control the access rights of data resources. In this mechanism, only authorized members can access data resources, and other unauthorized members cannot access them.
[0070] The implementation of the alliance access authorization mechanism is based on blockchain technology and smart contracts. In this mechanism, the identity and access rights information of authorized members are stored on the blockchain, and smart contracts are used to implement the logic of access authorization. When a member needs to access data resources, it needs to submit an access request and provide its own identity authentication information. The smart contract will determine whether to authorize the member to access the data resources based on the information in the request, and generate the corresponding access authorization token based on the authorization level and timeliness requirements.
[0071] The alliance access authorization mechanism can effectively protect the security and privacy of data resources and prevent unauthorized members from accessing and tampering with data. At the same time, the mechanism can also support fine-grained access control, realize differentiated access rights management among different members, and improve the utilization efficiency and flexibility of data resources.
[0072] Step S203, when the data provider determines that the data requester has access rights, the data provider uses Handle or OBDA to search for data based on the data service request sent by the data requester, and when the corresponding data is found, the data provider encrypts the data and sends it to the data requester.
[0073] This step is to provide targeted data services and data returns. After obtaining access authorization, the data requester can access the data through the Handle (or OBDA) data service. The Handle (or OBDA) data service is an efficient data service method that can quickly respond to user requests and improve data access efficiency.
[0074] Both Handle and OBDA can be used for data services. They are both identifier-based systems that can be used to name, address, access, and manage distributed resources, including data, services, and applications.
[0075] In the distributed data access authorization and data service method, Handle and OBDA can be used to identify and manage data resources, provide data services, and control data access rights through the alliance access authorization mechanism to ensure data security and privacy.
[0076] Handle is a distributed naming system that can provide unique, persistent and manageable identifiers for digital objects. In the present invention, Handle is used to implement distributed data services.
[0077] Specifically, Handle provides a globally unique identifier that can be used to identify and locate digital objects. In the present invention, digital objects can be data services, data collections, or other data resources. By associating digital objects with unique Handle identifiers, distributed provision of data services can be achieved.
[0078] When a user needs to access a specific data service, he can use the Handle identifier of the data service to locate the service. With the support of the federation access authorization mechanism, only authorized users can access the data service. At the same time, because the Handle provides a persistent identifier, even if the provider of the data service changes, the user can still access the data service through the same Handle identifier.
[0079] In addition, Handle also provides manageable identifiers, which can be used to update, rename, delete, and other operations on digital objects when necessary. This makes the management of data services more flexible and efficient.
[0080] In summary, the role of Handle in the present invention is to provide a unique, persistent, and manageable identifier for a digital object, thereby realizing distributed data services. By combining it with the alliance access authorization mechanism, the security and controllability of data services can be guaranteed.
[0081] For example, see Figure 4 , Figure 4 This is a flowchart of a data service shown in an exemplary embodiment of the present application, which specifically includes:
[0082] Step S401: The data provider stores a database, each digital object included in the database corresponds to a unique identifier, and the digital object includes a data service and a data set.
[0083] Step S402: The data service request includes a unique identifier, and the data provider searches for data in a database according to the unique identifier.
[0084] In step S403, after the data service request of the data application end is authorized by the blockchain smart contract, the data provider uses Handle to find the digital object corresponding to the unique identifier, and then encrypts the digital object as the corresponding data and sends it to the data application end.
[0085] Step S404: If no data is found within a preset time range, a first return message is sent to the data requesting end, where the first return message is used to indicate that the request has timed out.
[0086] Step S405: If no data is found, a second return message is sent to the data requesting end, wherein the second return message is used to indicate that the request is invalid.
[0087] Step S406, when the data service request of the data application end is not authorized by the blockchain smart contract, that is, the relevant authorization information is not stored in the blockchain, a third return information is sent to the data application end, and the third return information is used to indicate insufficient authority.
[0088] OBDA is a semantic-based data service provision method that can provide more intelligent and efficient services in data access and data query. In the present invention, OBDA is used to implement distributed data services.
[0089] Specifically, OBDA uses ontology technology to integrate different data sources and data into a unified semantic
[0090] In this semantic graph, a complex, multi-dimensional, semantic data network is formed. Different data resources can be
[0091] Identified, categorized, connected, and queried.
[0092] When users need to access specific data services, they can use the semantic query provided by OBDA to quickly locate and obtain the required data resources. With the support of the alliance access authorization mechanism, only authorized users can access the data service. At the same time, because OBDA is highly intelligent and scalable, it can perform more complex queries and analyses on data resources, providing users with more accurate and efficient data services.
[0093] In addition, OBDA can also use knowledge graph technology to perform data quality control and pre-processing such as data completion and cleaning, which ensures the quality and reliability of data services.
[0094] In summary, the role of OBDA in this invention is to integrate different data resources into a unified semantic graph through the technology of knowledge graph, and provide more intelligent and efficient services for data access and query. By combining with the alliance access authorization mechanism, the security and controllability of data services can be guaranteed. At the same time, OBDA can also perform quality control and preprocessing on data to improve the quality and reliability of data services.
[0095] For example, see Figure 5 , Figure 5 FIG. 1 is a flowchart of a data service shown in another exemplary embodiment of the present application, which specifically includes:
[0096] Step S501: The data provider stores a database, and the data provider integrates part or all of the data in the database into a unified semantic graph, in which different data resources can be identified, classified, connected and queried.
[0097] Step S502: the data service request includes semantic query information, and the data provider searches for data in the database according to the semantic query information.
[0098] Step S503, after the data service request of the data application end is authorized by the blockchain smart contract, the data provider end uses OBDA as the basis to find the data resources corresponding to the semantic query information based on the ontology model that describes the semantics and relationships between data distributed in different data sources, and then encrypts the data resources as corresponding data and sends them to the data application end.
[0099] Step S504: If no data is found within a preset time range, a first return message is sent to the data requesting end, where the first return message is used to indicate that the request has timed out.
[0100] Step S505: If no data is found, a second return message is sent to the data requesting end, wherein the second return message is used to indicate that the request is invalid.
[0101] Step S506, when the data service request of the data application end is not authorized by the blockchain smart contract, that is, the relevant authorization information is not stored in the blockchain, a third return information is sent to the data application end, and the third return information is used to indicate insufficient authority.
[0102] In some embodiments, the data provider processes the data service request, including parsing, verifying, and responding to the request, and also handles abnormal situations, such as request timeout, invalid request, insufficient authority, etc.
[0103] In some embodiments, the data provider performs quality control and preprocessing on the data to ensure the accuracy and reliability of the data, and returns the requested data results to the user while ensuring the security and privacy of the data.
[0104] In some embodiments, the data provider encrypts the data using the public key of the data requester, and the encrypted data can only be decrypted using the private key corresponding to the public key.
[0105] Finally, in step S204, the applicant receives the encrypted data and decrypts it to obtain the data to be accessed.
[0106] In some embodiments, log records are stored in the blockchain, and the log records include the source, time, request parameters and processing results of the data access request.
[0107] Log information about each data service request, including the source, time, and purpose of the request.
[0108] Parameters, processing results, etc. for subsequent analysis and management. Record all access authorizations and data service records to ensure the transparency and traceability of data access authorizations and data services.
[0109] Therefore, the distributed data access authorization and data service method based on blockchain proposed in this application realizes efficient and secure access and control of data services through trusted identity authentication, alliance access authorization mechanism and Handle (or OBDA) data service. This patent has good practicality and economic benefits and is suitable for various distributed data access authorization and data service scenarios.
[0110] Another aspect of the present application also provides a distributed data access authorization and data service device, such as Figure 6 As shown, the device 600 includes:
[0111] The data application end 601 is configured to send identity authentication information to the blockchain, wherein the identity authentication information includes an identity certificate. The blockchain performs identity authentication on the data application end according to the identity certificate. After the identity authentication of the data application end is successful, the data application end sends a data access request to the data provider end through the blockchain, receives the encrypted data, and decrypts it to obtain the data to be accessed;
[0112] The data provider 602 is configured to determine whether the access of the data applicant is allowed according to the data access request and the authorization information stored in the blockchain. When it is determined that the data applicant has access rights, the data provider uses Handle or OBDA to search for data according to the data service request sent by the data applicant, and when the corresponding data is found, the data is encrypted and sent to the data applicant.
[0113] In another embodiment, the blockchain uses smart contracts to implement authorization. The data applicant initiates a data access request to the data provider through the blockchain. The smart contract performs semantic reasoning based on public data access rules and personalized data access rules provided by the data provider to determine whether the data access request is allowed, thereby determining whether to authorize it.
[0114] In another embodiment, log records are stored in the blockchain, and the log records include the source, time, request parameters and processing results of the data access request.
[0115] In another embodiment, the data provider 602 is configured as follows:
[0116] Performing identity authentication on the data requesting end according to identity authentication data stored on the blockchain, wherein the identity authentication data includes a plurality of identity certificates, and the plurality of identity certificates are generated by identity information provided by the user end when registering as a data requesting end on the blockchain;
[0117] In the case where there is an identity certificate in the identity authentication data that is the same as the identity certificate of the data application end, the identity authentication of the data application end is successful;
[0118] In the case that the identity certificate identical to the identity certificate of the data requesting end does not exist in the identity authentication data, the identity authentication of the data requesting end is unsuccessful.
[0119] In another embodiment, the data provider stores a database, each digital object included in the database corresponds to a unique identifier, and the digital object includes a data service and a data set;
[0120] The data service request includes a unique identifier, and the data provider searches for data in the database according to the unique identifier:
[0121] After the data service request of the data application end is authorized by the blockchain smart contract, the data provider uses Handle to find the digital object corresponding to the unique identifier, and then encrypts the digital object as the corresponding data and sends it to the data application end;
[0122] If no data is found within a preset time range, a first return message is sent to the data requesting end, wherein the first return message is used to indicate that the request has timed out;
[0123] If no data is found, sending a second return message to the data requesting end, wherein the second return message is used to indicate that the request is invalid;
[0124] When the data service request of the data application end is not authorized by the blockchain smart contract, that is, the relevant authorization information is not stored in the blockchain, a third return information is sent to the data application end, and the third return information is used to indicate insufficient authority.
[0125] In another embodiment, the data provider 602 is configured to manage the digital object by updating, renaming or deleting the unique identifier.
[0126] In another embodiment, the data provider stores a database, and the data provider integrates part or all of the data in the database into a unified semantic graph, in which different data resources can be identified, classified, connected and queried;
[0127] The data service request includes semantic query information, and the data provider searches for data in the database according to the semantic query information:
[0128] After the data service request of the data application end is authorized by the blockchain smart contract, the data provider end uses OBDA to find the data resources corresponding to the semantic query information based on the ontology model describing the semantics and relationships between data distributed in different data sources, and then encrypts the data resources as the corresponding data and sends them to the data application end;
[0129] If no data is found within a preset time range, a first return message is sent to the data requesting end, wherein the first return message is used to indicate that the request has timed out;
[0130] If no data is found, sending a second return message to the data requesting end, wherein the second return message is used to indicate that the request is invalid;
[0131] When the data service request of the data application end is not authorized by the blockchain smart contract, that is, the relevant authorization information is not stored in the blockchain, a third return information is sent to the data application end, and the third return information is used to indicate insufficient authority.
[0132] In another embodiment, the data provider 602 is configured to encrypt data using the public key of the data requester, and the encrypted data can only be decrypted using a private key corresponding to the public key.
[0133] It should be noted that the distributed data access authorization and data service device provided in the above embodiment and the distributed data access authorization and data service method provided in the above embodiment belong to the same concept, and the specific way in which each module and unit performs operations has been described in detail in the method embodiment and will not be repeated here.
[0134] Another aspect of the present application provides an electronic device, including: a controller; a memory for storing one or more programs, which, when executed by the controller, executes the methods identified in the above-mentioned embodiments.
[0135] See also Figure 7 , Figure 7 1 is a schematic diagram of the structure of a computer system of an electronic device shown in an exemplary embodiment of the present application, which shows a schematic diagram of the structure of a computer system of an electronic device suitable for implementing an embodiment of the present application.
[0136] It should be noted that Figure 7 The computer system 700 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0137] like Figure 7 As shown, computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to the program stored in read-only memory (ROM) 702 or the program loaded from storage part 708 to random access memory (RAM) 703, such as executing the method in the above embodiment. In RAM 703, various programs and data required for system operation are also stored. CPU 701, ROM 702 and RAM 703 are connected to each other through bus 704. Input / output (I / O) interface 705 is also connected to bus 704.
[0138] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed so that a computer program read therefrom is installed into the storage section 708 as needed.
[0139] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 709, and / or installed from a removable medium 711. When the computer program is executed by a central processing unit (CPU) 701, various functions defined in the system of the present application are executed.
[0140] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0141] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0142] The units involved in the embodiments of the present application can be implemented by software or hardware.
[0143] The units described may also be arranged in a processor. The names of these units do not constitute limitations on the units themselves in certain circumstances.
[0144] Another aspect of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the distributed data access authorization and data service method as described above is implemented. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.
[0145] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the distributed data access authorization and data service method provided in each of the above embodiments.
[0146] According to one aspect of an embodiment of the present application, a computer system is also provided, including a central processing unit (CPU), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage portion into a random access memory (RAM), such as executing the method in the above embodiment. In RAM, various programs and data required for system operation are also stored. CPU, ROM and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.
[0147] The following components are connected to the I / O interface: an input part including a keyboard, a mouse, etc.; an output part including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication part performs communication processing via a network such as the Internet. The drive is also connected to the I / O interface as needed. Removable media, such as magnetic disks, optical disks, magneto-optical disks, semiconductor memories, etc., are installed on the drive as needed so that the computer program read therefrom is installed into the storage part as needed.
[0148] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. A person skilled in the art can easily make corresponding changes or modifications based on the main concept and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.
Claims
1. A distributed data access authorization and data service method, It is characterized in that The method comprises: The data requester sends identity authentication information to the blockchain, wherein the identity authentication information includes an identity certificate, and the blockchain performs identity authentication on the data requester according to the identity certificate; After the data applicant successfully authenticates its identity, the data applicant sends a data access request to the data provider through the blockchain. The blockchain uses a smart contract to authorize the data access request of the data applicant and stores the authorization information in the blockchain. The data provider determines the access rights of the data applicant based on the data access request and the authorization information stored in the blockchain. When the data provider determines that the data requester has access rights, the data provider uses Handle or OBDA to search for data according to the data service request sent by the data requester, and when the corresponding data is found, the data provider encrypts the data and sends it to the data requester; The requesting end receives the encrypted data and decrypts it to obtain the data to be accessed; The blockchain uses smart contracts to implement authorization, and the parameters of the smart contract include the source, object, time of the data access request and the processing result of the return request; The blockchain performs identity authentication on the data requesting end according to the identity certificate, specifically including: The blockchain performs identity authentication on the data requesting end according to the identity authentication data stored on the blockchain, wherein the identity authentication data includes a plurality of identity certificates, and the plurality of identity certificates are generated by the identity information provided by the user end when registering as a data requesting end on the blockchain; In the case where there is an identity certificate in the identity authentication data that is the same as the identity certificate of the data application end, the identity authentication of the data application end is successful; If the identity certificate identical to that of the data requesting end does not exist in the identity authentication data, the identity authentication of the data requesting end is unsuccessful; The specific contents of the data provider using Handle to search for data include: The data provider stores a database, each digital object included in the database corresponds to a unique identifier, and the digital objects include data services and data sets; The data service request includes a unique identifier, and the data provider searches for data in the database according to the unique identifier: After the data service request of the data application end is authorized by the blockchain smart contract, the data provider uses Handle to find the digital object corresponding to the unique identifier, and then encrypts the digital object as the corresponding data and sends it to the data application end; If no data is found within a preset time range, a first return message is sent to the data requesting end, wherein the first return message is used to indicate that the request has timed out; If no data is found, sending a second return message to the data requesting end, wherein the second return message is used to indicate that the request is invalid; When the data service request of the data application end is not authorized by the blockchain smart contract, that is, the relevant authorization information is not stored in the blockchain, a third return information is sent to the data application end, and the third return information is used to indicate insufficient authority; Managing the digital object by updating, renaming or deleting the unique identifier; The specific contents of the data provider using OBDA to search for data include: The data provider stores a database, and the data provider integrates part or all of the data in the database into a unified semantic graph, in which different data resources can be identified, classified, connected and queried; The data service request includes semantic query information, and the data provider searches for data in the database according to the semantic query information; After the data service request of the data application end is authorized by the blockchain smart contract, the data provider end uses OBDA to find the data resources corresponding to the semantic query information based on the ontology model describing the semantics and relationships between data distributed in different data sources, and then encrypts the data resources as the corresponding data and sends them to the data application end; If no data is found within a preset time range, a first return message is sent to the data requesting end, wherein the first return message is used to indicate that the request has timed out; If no data is found, sending a second return message to the data requesting end, wherein the second return message is used to indicate that the request is invalid; When the data service request of the data application end is not authorized by the blockchain smart contract, that is, the relevant authorization information is not stored in the blockchain, a third return information is sent to the data application end, and the third return information is used to indicate insufficient authority; The blockchain uses smart contracts to implement authorization, and the parameters of the smart contract include the source, object, time of the data access request and the processing result of the return request; The data provider encrypts the data using the public key of the data requester, and the encrypted data can only be decrypted using the private key corresponding to the public key.
2. A distributed data access authorization and data service device, It is characterized in that include: The data application end is configured to send identity authentication information to the blockchain, wherein the identity authentication information includes an identity certificate. The blockchain performs identity authentication on the data application end according to the identity certificate. After the identity authentication of the data application end is successful, the blockchain sends a data access request to the data provider end through the blockchain, receives the encrypted data, and decrypts it to obtain the data to be accessed; The data provider is configured to determine the access rights of the data requester according to the data access request and the authorization information stored in the blockchain. If it is determined that the data requester has the access rights, the data provider uses Handle or OBDA to search for data according to the data service request sent by the data requester, and if the corresponding data is found, the data provider encrypts the data and sends it to the data requester; The blockchain performs identity authentication on the data requesting end according to the identity certificate, specifically including: The blockchain performs identity authentication on the data requesting end according to the identity authentication data stored on the blockchain, wherein the identity authentication data includes a plurality of identity certificates, and the plurality of identity certificates are generated by the identity information provided by the user end when registering as a data requesting end on the blockchain; In the case where there is an identity certificate in the identity authentication data that is the same as the identity certificate of the data application end, the identity authentication of the data application end is successful; If the identity certificate identical to that of the data requesting end does not exist in the identity authentication data, the identity authentication of the data requesting end is unsuccessful; The specific contents of the data provider using Handle to search for data include: The data provider stores a database, each digital object included in the database corresponds to a unique identifier, and the digital objects include data services and data sets; The data service request includes a unique identifier, and the data provider searches for data in the database according to the unique identifier: After the data service request of the data application end is authorized by the blockchain smart contract, the data provider uses Handle to find the digital object corresponding to the unique identifier, and then encrypts the digital object as the corresponding data and sends it to the data application end; If no data is found within a preset time range, a first return message is sent to the data requesting end, wherein the first return message is used to indicate that the request has timed out; If no data is found, sending a second return message to the data requesting end, wherein the second return message is used to indicate that the request is invalid; When the data service request of the data application end is not authorized by the blockchain smart contract, that is, the relevant authorization information is not stored in the blockchain, a third return information is sent to the data application end, and the third return information is used to indicate insufficient authority; Managing the digital object by updating, renaming or deleting the unique identifier; The specific contents of data search performed by the data provider using OBDA include: The data provider stores a database, and the data provider integrates part or all of the data in the database into a unified semantic graph, in which different data resources can be identified, classified, connected and queried; The data service request includes semantic query information, and the data provider searches for data in the database according to the semantic query information; After the data service request of the data application end is authorized by the blockchain smart contract, the data provider end uses OBDA to find the data resources corresponding to the semantic query information based on the ontology model describing the semantics and relationships between data distributed in different data sources, and then encrypts the data resources as the corresponding data and sends them to the data application end; If no data is found within a preset time range, a first return message is sent to the data requesting end, wherein the first return message is used to indicate that the request has timed out; If no data is found, sending a second return message to the data requesting end, wherein the second return message is used to indicate that the request is invalid; When the data service request of the data application end is not authorized by the blockchain smart contract, that is, the relevant authorization information is not stored in the blockchain, a third return information is sent to the data application end, and the third return information is used to indicate insufficient authority.
3. An electronic device, It is characterized in that include: Controller; A memory is used to store one or more programs. When the one or more programs are executed by the controller, the controller implements the distributed data access authorization and data service method described in claim 1.
4. A computer-readable storage medium, It is characterized in that Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is enabled to execute the distributed data access authorization and data service method described in claim 1.
Citation Information
Patent Citations
Blockchain access authentication method and device, storage medium and electronic device
CN108632268A
Service data access method, apparatus and system, and electronic device
CN109327314A
Industrial internet identifier analysis system and method based on alliance blockchain
CN113301185A
Data privacy protection method and system based on block chain and authority contract
CN113420319A
Verification method and system based on block chain gateway
CN114331723A
