Data authorization method and device based on block chain, equipment and storage medium
By performing data usage request authentication, token generation, product authentication and authorization on the blockchain, the problem of accuracy of authority authorization in data transactions is solved, the accurate expression and protection of data circulation rights is achieved, and the rights cannot be tampered with. It provides important support for the trusted data circulation platform.
Patent Information
- Application Number
- CN202411019609.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-29
AI Technical Summary
In data transactions, how to accurately authorize each data participant is a challenge, especially because there are many participants and each party has different data usage rights. It is difficult for existing technology to effectively manage and protect rights in data circulation. .
By sending a data usage request on the blockchain, generating a data usage certificate after passing the authentication, obtaining data resources for processing, conducting product certification and generating data certificates, verifying product application requirements for use authorization, and using blockchain smart contracts to The rights of each participant in the circulation of data assets are accurately stated and cannot be tampered with in traceability and auditing.
It achieves accurate expression and protection of the rights of each participant in data circulation, ensures the non-tamperability of the rights acquisition and transfer process, and provides an important method and model reference for the trusted data circulation platform.
Smart Images

Figure CN118709159A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data transaction technology, and in particular to a data authorization method, device, equipment and storage medium based on blockchain. Background Art
[0002] Data tokenization is the process of converting data assets into digital tokens or certificates through distributed ledger technologies such as blockchain. Data tokens represent the ownership, usage rights and value of data, and allow these rights to be traded and managed in a digital form. The purpose of data tokenization is to promote the sharing and circulation of data while ensuring that data providers can obtain corresponding benefits and incentives.
[0003] When conducting data transactions, there are many participants involved, and each data participant has different data usage rights. Data tokens represent the ownership, usage rights, and value of data, and allow these rights to be traded and managed in a digital form. Therefore, how to accurately authorize each data participant through data tokens needs to be solved. Summary of the invention
[0004] In view of this, the purpose of the present invention is to provide a data authorization method, device, equipment and storage medium based on blockchain, which can accurately express the rights of each participant in the circulation of data assets. The specific scheme is as follows:
[0005] In the first aspect, the present application discloses a data authorization method based on blockchain, which is applied to data users, including:
[0006] By sending a data use request for the target data resource to the data resource holder, the data resource holder can authenticate the data use request through the blockchain and generate a corresponding data use token after the authentication is passed;
[0007] Acquire target data resources based on the data usage token, and process the target data resources to obtain target data products;
[0008] After the target data product is authenticated by a preset data registration agency to generate a corresponding data certificate, the data certificate is stored on the chain;
[0009] Obtain a product application requirement for the target data product sent by a data product user, verify the product application requirement, and then authorize the data product user to use the data product based on the corresponding verification result and the data certificate.
[0010] Optionally, the data resource holder authenticates the data use request through blockchain, and generates a corresponding data use token after the authentication is passed, including:
[0011] Using the data resource holder to call the data holding token in the data use request through the blockchain, and authenticating the data holding token;
[0012] If the data holding token is authenticated, the data resource holder will derive the corresponding data usage token through the data holding token.
[0013] Optionally, the data holding token is defined and generated by the preset data registration agency through the metadata of the target data resource sent by the data resource holder.
[0014] Optionally, after the target data product is authenticated by a preset data registration agency to generate a corresponding data certificate, the data certificate is stored on a chain, including:
[0015] Sending the product information of the target data product to a preset data registration agency, and conducting a data product compliance assessment on the target data product through the preset data registration agency;
[0016] If the target data product passes the data product compliance assessment, the corresponding data product compliance certificate is obtained and the data product compliance certificate is stored on the chain;
[0017] A corresponding data product token is generated based on the data product compliance certificate, and the mapping relationship between the target data product and the target data resource is stored in the data product token.
[0018] Optionally, obtaining a product application requirement for the target data product sent by a data product user, verifying the product application requirement, and then authorizing the data product user to use the data product based on the corresponding verification result and the data certificate includes:
[0019] Obtaining product application requirements for the target data product sent by the data product user, and verifying the product application requirements;
[0020] If the product application requirement verification is passed, the corresponding data product usage token is derived from the data product token to authorize the user of the data product to use it.
[0021] Optionally, if the product application requirement verification is passed, after the corresponding data product usage token is derived from the data product token to authorize the data product user to use the data product, the method further includes:
[0022] Generate a data signature through the data product user, and send an access token application to a preset authentication center based on the data signature and the data product usage token;
[0023] Verify the data signature and the data product usage token to the blockchain through the preset authentication center;
[0024] If the verification is successful, a target access token is generated by the preset authentication center, and the target access token is sent to the data product user so that the data product user can access the target data product through the target access token.
[0025] Optionally, the data product user accesses the target data product through the target access token, including:
[0026] The data product user carries the target access token to initiate an access request for the target data product to the data product server;
[0027] Verifying the validity of the target access token through the data product server;
[0028] If the verification is successful, an access link of the target data product is sent to the data product user through the data product server, so that the data product user can obtain the target data product through the access link.
[0029] In the second aspect, the present application discloses a data authorization device based on blockchain, which is applied to data users, including:
[0030] A request authentication module, used to send a data use request for a target data resource to a data resource holder, so that the data resource holder can authenticate the data use request through the blockchain, and generate a corresponding data use token after the authentication is passed;
[0031] A product processing module, used to obtain target data resources based on the data usage token, and process the target data resources to obtain target data products;
[0032] A product authentication module, which is used to authenticate the target data product through a preset data registration agency to generate a corresponding data certificate, and then store the data certificate on the chain;
[0033] The permission issuing module is used to obtain the product application requirements for the target data product sent by the data product user, verify the product application requirements, and then authorize the data product user to use the data product based on the corresponding verification results and the data certificate.
[0034] In a third aspect, the present application discloses an electronic device, including:
[0035] Memory, used to store computer programs;
[0036] A processor is used to execute the computer program to implement the aforementioned blockchain-based data authorization method.
[0037] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program, which, when executed by a processor, implements the aforementioned blockchain-based data authorization method.
[0038] It can be seen that in this application, firstly, a data use request for the target data resource is sent to the data resource holder, so that the data resource holder can authenticate the data use request through the blockchain, and generate a corresponding data use token after the authentication is passed; based on the data use token, the target data resource is obtained, and the target data resource is processed to obtain the target data product; after the target data product is authenticated by the preset data registration agency to generate the corresponding data certificate, the data certificate is stored on the chain; the product application requirements for the target data product sent by the data product user are obtained, and the product application requirements are verified, and then the data product user is authorized to use based on the corresponding verification results and the data certificate. By using blockchain smart contracts to accurately express the rights of each participant in the circulation of data assets, the rights of each participant in the data circulation are protected, and the blockchain is used to achieve tamper-proof traceability and auditing of the acquisition and transfer process of rights, providing an important method and model reference for supporting the construction of a trusted data circulation platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0040] Figure 1 A flowchart of a data authorization method based on blockchain disclosed in this application;
[0041] Figure 2 A specific data authorization token derivation flow chart disclosed in this application;
[0042] Figure 3 A flowchart of a specific blockchain-based data authorization method disclosed in this application;
[0043] Figure 4 A specific data authorization token derivation flow chart disclosed in this application;
[0044] Figure 5 A flowchart of a specific blockchain-based data authorization method disclosed in this application;
[0045] Figure 6 This is a schematic diagram of the structure of a data authorization device based on blockchain disclosed in this application;
[0046] Figure 7 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION
[0047] 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 only 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.
[0048] When conducting data transactions, there are many participants involved, and each data participant has different data usage rights. Data tokens represent the ownership, usage rights, and value of data, and allow these rights to be traded and managed in a digital form. Therefore, this application will specifically introduce a data authorization method.
[0049] See also Figure 1 As shown, the embodiment of the present application discloses a data authorization method based on blockchain, which is applied to data users, including:
[0050] Step S11: Send a data usage request for the target data resource to the data resource holder so that the data resource holder can authenticate the data usage request through the blockchain and generate a corresponding data usage token after the authentication is passed.
[0051] In this embodiment, it should be noted that Figure 2As shown in the figure, the data holder (seller) has the right to hold the data set (data resources) and can grant the data user (data vendor) the right to use a certain data set. The data user (data vendor) uses the authorized data set to develop data products and automatically obtains the right to hold and operate the data products. The data product user (buyer) obtains the right to use the data product from the data user (data vendor) through data transactions or applications. For example: for article and book data, the data holder (seller) has the right to hold the article and book data and can grant the data user (data vendor) the right to use the article and book data. The data user (data vendor) uses the authorized article and book data to develop a reading platform and automatically obtains the right to hold and operate the reading platform. The data product user (buyer) obtains the right to use the reading platform from the data user (data vendor) through data transactions or applications.
[0052] In this application, four token smart contracts are designed based on ERC-1155, namely dNFTcontract, duNFTcontract, pNFTcontract and puNFTcontract, which represent data holding token, data usage token, data product holding token and data product usage token respectively. SBT characteristics and derivative relationship (traceability) characteristics are added on the basis of ERC-1155. The "subject" attributes of the four tokens and their permission control logic are defined as follows: dNFT: data holder (holder), the right to transfer its own dNFT and generate (cast) the corresponding duNFT; duNFT: data user (user), the right to use duNFT to generate the corresponding data set access token (JWT); pNFT: data user (user), the right to transfer its own pNFT and generate (cast) the corresponding puNFT; puNFT: data product user (demander), the right to use puNFT to generate the corresponding data product access token (JWT).
[0053] In this embodiment, the data resource holder authenticates the data use request through the blockchain, and generates a corresponding data use token after the authentication is passed, including: using the data resource holder to call the data holding token in the data use request through the blockchain, and authenticating the data holding token; if the data holding token is authenticated, the data resource holder derives the corresponding data use token through the data holding token. Among them, the data holding token is defined and generated by the preset data registration agency through the metadata of the target data resource sent by the data resource holder. In this embodiment, a data set is a data resource, and the holder (holder_did) field in the data set defines which user holds the right to hold the data set, and this field is maintained by the registration agency (or data exchange) user. Described from the perspective of blockchain: the registration agency casts a "data holding token (dNFT)" and sends the dNFT to the data holder. That is, the data holding token is defined and generated by the preset data registration agency through the metadata of the target data resource sent by the data resource holder. Specifically, the implementation logic of data resource holding rights is that the registration agency user enters the data set management and uses the "Add Data Set" operation to add a new data set. Enter the data set metadata in the Add Data Set page and define the holder. Submit the form to the data set management backend. Access the keystore table to obtain the registration agency user's private key s. Get the current system time (the number of milliseconds from 1970 to now) as a random number (nonce) challenge, and use the private key s to digitally sign the nonce. Use the registration agency user, nonce, signature on nonce, token name (data set name), token symbol, data holder and other parameters to initiate a call request to the data holding token contract (dNFTcontract). Then, the registration agency user did has been hard-coded in the dNFTcontract implementation code in advance to verify whether the caller's identity is the same as the registration agency user did. If the did is different, the contract execution is terminated. Using the registration agency user did, nonce, and signature on nonce as parameters to call the digital identity authentication contract, it is mainly to verify the validity of the nonce digital signature. If true is returned, it means that the authentication is passed; if false is returned, the contract is terminated. Execute the mint() function of the ERC-1155 token to generate a new data token, set the holder_did to the receiving address of the new token, and obtain the token ID. Insert the data token information such as the token ID into the data token table; insert the dataset metadata into the datasets table.
[0054] In this embodiment, the data resource holder uses the blockchain to call the data holding token in the data use request, and authenticates the data holding token; if the data holding token is authenticated, the data resource holder derives the corresponding data use token through the data holding token. "Data resource use authorization" is a function used by the data holder, which is used by the holder to grant the data resource (data set) use right to the data user. After the data user obtains the right to use the data set, he can use the data in the data set to develop data products. Described from the perspective of blockchain: the data holder uses the "data holding token" to derive the "data use token (duNFT)" and send the duNFT to the data user. Specifically, the data user enters the "data resource use application" interface and adds an application for the use of a certain data set. The holder of the data set can see this data use application in the "data resource use authorization" interface. If the holder agrees to this application, a call will be initiated to the "data resource use authorization" function background to add a new authorization record. In the background implementation of the "data resource use authorization" function, first, the key library table is accessed to obtain the data holder's private key s. Get the current system time (the number of milliseconds from 1970 to now) as a random number challenge, and use the private key s to digitally sign the nonce. Use the data holder (holder_did), nonce, nonce signature, token name (data set name), token symbol, data user did (user_did), parent_token ID and other parameters to initiate a call request to the data usage token contract (duNFTcontract). Among them, the code implementation of the "data usage contract (duNFTcontract)": Verify the identity of holder_did and the ownership of parent_token ID: Call the ownerOf() function of dNFTcontract to obtain the owner of the parent_tokenID token. If holder_did is not equal to the obtained owner, the contract terminates. Use holder_did, nonce, and the signature of nonce as parameters to call the digital identity authentication contract, mainly to verify the validity of the nonce digital signature. If true is returned, it means that the authentication is passed; if false is returned, it means that the holder_did authentication fails and the contract terminates. Execute the mint() function of the ERC-1155 token to generate a new data token, set the user_did to the receiving address of the new token, and obtain the token ID. It should be noted that duNFTcontract adds the parent_token ID attribute based on the ERC-1155 token, which is a new type of token.Insert the newly minted data token information such as token ID into the "Data Token (dataNFTS)" table; insert the authorization information such as data users and data set metadata into the "Data Usage Rights (usage_rights)" table.
[0055] Step S12: Acquire target data resources based on the data usage token, and process the target data resources to obtain target data products.
[0056] In this embodiment, the target data resource is obtained based on the data usage token, and the target data resource is processed to obtain the target data product. That is, the data user processes the data set, such as encapsulating it into a data service (Rest API, an application programming interface), generating a data analysis report, forming a desensitized data set, etc., so as to obtain a new data product.
[0057] Step S13: After the target data product is authenticated by a preset data registration agency to generate a corresponding data certificate, the data certificate is stored on the chain.
[0058] In this embodiment, data products are developed by data users using data sets, and the registration agency (sometimes represented by data exchanges) confirms the ownership of data products. Data users have the ownership of data products they develop. Data product development may use multiple data sets, so that there is a mapping relationship between data products and data sets (data resources, original data). This mapping relationship is also reflected in the "Data Product Holding Token (pNFT)", that is, an array (parent_token ID) is defined in pNFT to store this mapping relationship. Described from the perspective of blockchain: the registration agency casts the "Data Product Holding Token" and sends the pNFT to the data product holder.
[0059] In this embodiment, after the target data product is authenticated by the preset data registration agency to generate the corresponding data certificate, the data certificate is stored on the chain, including: sending the product information of the target data product to the preset data registration agency, and performing a data product compliance assessment on the target data product through the preset data registration agency; if the target data product passes the data product compliance assessment, the corresponding data product compliance certificate is obtained, and the data product compliance certificate is stored on the chain; based on the data product compliance certificate, a corresponding data product token is generated, and the mapping relationship between the target data product and the target data resource is stored in the data product token. Specifically, the data user enters the "Data Product Registration" page to register the data product, such as registering the data service address, uploading an analysis report or a desensitized data set, etc.; registering the list of data sets used by this data product. The registration agency user inquires about the data product to be confirmed, contacts the assessment agency for a "data product compliance assessment", obtains the data product compliance certificate and uploads it to the data platform. The registration agency user enters the "Issuing Data Product Asset Certificate" interface and enters the newly added asset certificate information in the form. The form information includes the data product holder (user_did, i.e., the data user). Submit the form to the "Issuing Data Product Asset Certificate" background. In the "Issuing Data Product Asset Certificate" background implementation logic, first access the keystore table to obtain the registration agency user private key s. Get the current system time (the number of milliseconds from 1970 to now) as the random number (nonce) challenge, and use the private key s to digitally sign the nonce. Then, obtain the data usage token ID array corresponding to this data product through the product dataset (product_datasets) and data usage rights (usage_rights) tables, recorded as parent_token ID[]. Finally, use the registration agency user did, nonce, signature on nonce, token name (data product name), token symbol, data product holder (user_did), parent_token ID[] and other parameters to initiate a call request to the data product holding token contract (pNFTcontract). The code implementation of the "Data Product Token Holding Contract (pNFTcontract)" includes: the registration agency user did is hard-coded in the dNFTcontract implementation code in advance to verify whether the caller identity is the same as the registration agency user did. If the did is different, the contract execution is terminated.The digital identity authentication contract is called using the registration agency user did, nonce, and the nonce signature as parameters. The main purpose is to verify the validity of the nonce digital signature. If true is returned, the authentication is passed; if false is returned, the contract terminates. Verify the data user user_did's data usage rights for each data set in the product data set array (i.e., ownership of parent_token ID[]): Call the ownerOf() function of duNFTcontract to obtain the owner of all data sets parent_token ID tokens used in data products. If user_did is not equal to the obtained owner, the contract terminates. Execute the mint() function of the ERC-1155 token to generate a new data token (pNFT), set user_did to the receiving address of the new token, and obtain the token ID. Insert the data token information such as the token ID into the data token (dataNFTS) table; insert the newly added data product information into the data product (data_products) table.
[0060] Step S14: obtaining a product application requirement for the target data product sent by the data product user, verifying the product application requirement, and then authorizing the data product user to use the data product based on the corresponding verification result and the data certificate.
[0061] In this embodiment, "data product use authorization" is a function used by the data product holder (i.e., the data user), which is used by the holder to grant the data product use rights to the data product user. After the data product user obtains the right to use the data product, he can use the data product, including calling APIs, downloading data reports, downloading desensitized data sets, etc. Described from the perspective of blockchain: the data product holder uses the "data product holding token (pNFT)" to derive the "data product use token (puNFT)" and sends the puNFT to the data product user.
[0062] In this embodiment, the product application requirement for the target data product sent by the data product user is obtained, the product application requirement is verified, and then the data product user is authorized to use the product based on the corresponding verification result and the data certificate, including: obtaining the product application requirement for the target data product sent by the data product user, and verifying the product application requirement; if the product application requirement is verified, deriving the corresponding data product usage token from the data product token to authorize the data product user to use the product.
[0063] It can be seen that in this embodiment, Figure 3As shown, first, a data use request for the target data resource is sent to the data resource holder, so that the data resource holder can authenticate the data use request through the blockchain, and generate a corresponding data use token after the authentication is passed; the target data resource is obtained based on the data use token, and the target data resource is processed to obtain the target data product; after the target data product is authenticated by the preset data registration agency to generate the corresponding data certificate, the data certificate is stored on the chain; the product application requirements for the target data product sent by the data product user are obtained, and the product application requirements are verified, and then the data product user is authorized to use based on the corresponding verification results and the data certificate. By using blockchain smart contracts to accurately express the rights of each participant in the circulation of data assets, the rights of each participant in the data circulation are protected, and the blockchain is used to achieve tamper-proof traceability and auditing of the acquisition and transfer of rights, providing an important method and model reference for supporting the construction of a trusted data circulation platform.
[0064] In the above embodiment, Figure 4 As shown, the subdivided rights of data assets and their derived relationships are specifically introduced. In this embodiment, the data access process is specifically introduced.
[0065] See also Figure 5 As shown, the embodiment of the present application discloses a specific data access method, which is applied to a data user, including:
[0066] Step S21: Generate a data signature through the data product user, and send an access token application to the preset authentication center based on the data signature and the data product usage token.
[0067] In this embodiment, the data product user application accesses the keystore table to obtain the data product user's private key s. The current system time (the number of milliseconds from 1970 to the present) is obtained as a random number (nonce) challenge, and the nonce is digitally signed using the private key s. The data product user application requests a JWT token from the authentication center with demander_did, nonce, nonce signature, and tokenID as parameters.
[0068] Step S22: Verify the data signature and the data product usage token to the blockchain through the preset authentication center.
[0069] In this embodiment, the authentication center calls the ownerOf() function of puNFTcontract with the token ID as a parameter to obtain the owner of the token and other token information. If demander_did is not equal to owner, the authentication center returns the message "Failed to request JWT token". The authentication center uses demander_did, nonce, and the signature of nonce as parameters to call the digital identity authentication contract, mainly to verify the validity of the nonce digital signature. If true is returned, it means that the authentication is successful; if false is returned, it means that the demander_did authentication failed, and the authentication center returns the message "Failed to request JWT token".
[0070] Step S23: If the verification is successful, a target access token is generated through the preset authentication center, and the target access token is sent to the data product user.
[0071] In this application, if the verification is successful, the authentication center constructs a JWT token, in which the token attributes are iss={authentication center}, sub={demander_did}, aud={data product online service}, etc. The authentication center returns the JWT token to the data product user application.
[0072] Step S24: The data product user carries the target access token and initiates an access request for the target data product to the data product server, and verifies the validity of the target access token through the data product server.
[0073] In this embodiment, the data product user application carries the JWT token to initiate a data product use request to the "Data Product Online Service", which is generally an API call under the https protocol, a data report download, or a desensitized data set download, etc. The JWT is placed in the https header. The Data Product Online Service verifies the validity of the JWT token, such as whether the timestamp exp has expired, whether the digital signature is valid, etc. If the JWT token is invalid, the data product service is refused.
[0074] Step S25: If the verification is successful, the data product server sends an access link to the target data product to the data product user, so that the data product user can obtain the target data product through the access link.
[0075] In this embodiment, if the JWT token is valid, the "Data Product Online Service" returns the data product, which is generally in the form of an API response under the https protocol, a data report download response, or a desensitized data set download response, etc. After the data product user application obtains the data product, it can use the data product content to perform subsequent business execution.
[0076] It can be seen that in this embodiment, the current system time is used as a challenge random number (nonce) to generate a digital signature, and the puNFT is carried to request a JWT token from the "Authentication Center", and the authentication center verifies the demander's identity and puNFT ownership to the blockchain. The authentication center generates a JWT token and returns it to the data product user application, and the application uses the JWT token to access the data product. By using blockchain smart contracts to accurately express the rights of each participant in the circulation of data assets, the rights of each participant in the data circulation are protected, and the blockchain is used to achieve tamper-proof traceability and auditing of the acquisition and transfer of rights, providing an important method and model reference for supporting the construction of a trusted data circulation platform.
[0077] refer to Figure 6 The embodiment of the present application also discloses a data authorization device based on blockchain, which is applied to data users, including:
[0078] The request authentication module 11 is used to send a data use request for a target data resource to a data resource holder so that the data resource holder can authenticate the data use request through the blockchain and generate a corresponding data use token after the authentication is passed;
[0079] A product processing module 12, used to obtain target data resources based on the data usage token, and process the target data resources to obtain target data products;
[0080] The product authentication module 13 is used to authenticate the target data product through a preset data registration agency to generate a corresponding data certificate, and then store the data certificate on the chain;
[0081] The permission issuing module 14 is used to obtain the product application requirements for the target data product sent by the data product user, verify the product application requirements, and then authorize the data product user to use the data product based on the corresponding verification results and the data certificate.
[0082] It can be seen that in this embodiment, by using blockchain smart contracts to accurately express the rights of each participant in the circulation of data assets, the rights of each participant in the data circulation are protected, and the blockchain is used to achieve tamper-proof traceability and auditing of the process of obtaining and transferring rights, providing important methods and model references for supporting the construction of a trusted data circulation platform.
[0083] In some specific embodiments, the request authentication module 11 may specifically include:
[0084] A data holding token authentication unit, used to use the data resource holder to call the data holding token in the data use request through the blockchain and authenticate the data holding token;
[0085] The first token derivation unit is used for deriving a corresponding data usage token from the data holding token by the data resource holder if the data holding token is authenticated.
[0086] In some specific embodiments, the product authentication module 13 may specifically include:
[0087] A product evaluation unit, configured to send product information of the target data product to a preset data registration agency, and perform a data product compliance evaluation on the target data product through the preset data registration agency;
[0088] A product specification certification unit, used to obtain a corresponding data product compliance certificate if the target data product passes the data product compliance assessment, and store the data product compliance certificate on the chain;
[0089] A mapping relationship storage unit is used to generate a corresponding data product token based on the data product compliance certificate, and store the mapping relationship between the target data product and the target data resource in the data product token.
[0090] In some specific embodiments, the permission issuing module 14 may specifically include:
[0091] A demand verification unit, used to obtain a product application demand for the target data product sent by a data product user, and verify the product application demand;
[0092] The second token derivation unit is used to derive a corresponding data product usage token from the data product token to authorize the user of the data product if the product application requirement verification is passed.
[0093] In some specific embodiments, the blockchain-based data authorization device may further include:
[0094] An access application module, used to generate a data signature through the data product user, and send an access token application to a preset authentication center based on the data signature and the data product usage token;
[0095] A qualification verification module, used to verify the data signature and the data product usage token to the blockchain through the preset authentication center;
[0096] The data access module is used to generate a target access token through the preset authentication center if the verification is passed, and send the target access token to the data product user so that the data product user can access the target data product through the target access token.
[0097] In some specific embodiments, the data access module may specifically include:
[0098] An access request application unit, used to obtain a data product user carrying the target access token to initiate an access request for the target data product to the data product server;
[0099] A token verification unit, used to verify the validity of the target access token through the data product server;
[0100] The product access unit is used to send an access link of the target data product to the data product user through the data product server if the verification is passed, so that the data product user can obtain the target data product through the access link.
[0101] Furthermore, the present application also discloses an electronic device. Figure 7 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be regarded as any limitation on the scope of use of the present application.
[0102] Figure 7 A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the blockchain-based data authorization method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.
[0103] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0104] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.
[0105] The operating system 221 is used to manage and control the hardware devices and computer program 222 on the electronic device 20, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the blockchain-based data authorization method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.
[0106] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the aforementioned disclosed blockchain-based data authorization method is implemented. The specific steps of the method can refer to the corresponding contents disclosed in the aforementioned embodiments, and will not be repeated here.
[0107] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0108] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0109] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0110] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0111] The technical solution provided by the present application is introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A data authorization method based on blockchain, characterized in that: Applicable to data users, including: By sending a data use request for the target data resource to the data resource holder, the data resource holder can authenticate the data use request through the blockchain and generate a corresponding data use token after the authentication is passed; Acquire target data resources based on the data usage token, and process the target data resources to obtain target data products; After the target data product is authenticated by a preset data registration agency to generate a corresponding data certificate, the data certificate is stored on the chain; Obtain a product application requirement for the target data product sent by a data product user, verify the product application requirement, and then authorize the data product user to use the data product based on the corresponding verification result and the data certificate.
2. The data authorization method based on blockchain according to claim 1 is characterized in that: The data resource holder authenticates the data use request through the blockchain and generates a corresponding data use token after the authentication is passed, including: Using the data resource holder to call the data holding token in the data use request through the blockchain, and authenticating the data holding token; If the data holding token is authenticated, the data resource holder will derive the corresponding data usage token through the data holding token.
3. The blockchain-based data authorization method according to claim 2, characterized in that: The data holding token is defined and generated by the preset data registration agency through the metadata of the target data resource sent by the data resource holder.
4. The blockchain-based data authorization method according to any one of claims 1 to 3, characterized in that: After the target data product is authenticated by a preset data registration agency to generate a corresponding data certificate, the data certificate is stored on a chain, including: Sending the product information of the target data product to a preset data registration agency, and conducting a data product compliance assessment on the target data product through the preset data registration agency; If the target data product passes the data product compliance assessment, the corresponding data product compliance certificate is obtained and the data product compliance certificate is stored on the chain; A corresponding data product token is generated based on the data product compliance certificate, and the mapping relationship between the target data product and the target data resource is stored in the data product token.
5. The blockchain-based data authorization method according to claim 4 is characterized in that: The obtaining of the product application requirements for the target data product sent by the data product user, verifying the product application requirements, and then authorizing the data product user to use the data product based on the corresponding verification result and the data certificate, includes: Obtaining product application requirements for the target data product sent by the data product user, and verifying the product application requirements; If the product application requirement verification is passed, the corresponding data product usage token is derived from the data product token to authorize the user of the data product to use it.
6. The data authorization method based on blockchain according to claim 5 is characterized in that: If the product application requirement verification is passed, then after the corresponding data product usage token is derived from the data product token to authorize the user of the data product, the method further includes: Generate a data signature through the data product user, and send an access token application to a preset authentication center based on the data signature and the data product usage token; Verify the data signature and the data product usage token to the blockchain through the preset authentication center; If the verification is successful, a target access token is generated by the preset authentication center, and the target access token is sent to the data product user so that the data product user can access the target data product through the target access token.
7. The data authorization method based on blockchain according to claim 6 is characterized in that: The data product user accesses the target data product through the target access token, including: The data product user carries the target access token to initiate an access request for the target data product to the data product server; Verifying the validity of the target access token through the data product server; If the verification is successful, an access link of the target data product is sent to the data product user through the data product server, so that the data product user can obtain the target data product through the access link.
8. A data authorization device based on blockchain, characterized in that: Applicable to data users, including: A request authentication module, used to send a data use request for a target data resource to a data resource holder, so that the data resource holder can authenticate the data use request through the blockchain, and generate a corresponding data use token after the authentication is passed; A product processing module, used to obtain target data resources based on the data usage token, and process the target data resources to obtain target data products; A product authentication module, which is used to authenticate the target data product through a preset data registration agency to generate a corresponding data certificate, and then store the data certificate on the chain; The permission issuing module is used to obtain the product application requirements for the target data product sent by the data product user, verify the product application requirements, and then authorize the data product user to use the data product based on the corresponding verification results and the data certificate.
9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the blockchain-based data authorization method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: Used to store a computer program, which, when executed by a processor, implements the blockchain-based data authorization method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Token management method, supply chain financial system and electronic device
CN110443701A
Token generation method, supply chain financial system and electronic equipment
CN110458700A
Public culture digital resource-oriented block chain right confirmation method and system
CN115758291A
Object digitization utilizing tokens
US20230351347A1
Data storage method and verification method for blockchain structure, blockchain structure implementation method, blockchain-structured system, device, and medium
WO2021120253A1
